/* roulang page: index */
:root {
  --primary: #0FBF6F;
  --primary-dark: #0A8C50;
  --accent: #F7B733;
  --dark: #0F1D16;
  --bg: #F6F7F4;
  --card-bg: #FFFFFF;
  --text-1: #16211A;
  --text-2: #67736B;
  --border: #E2E7E2;
  --danger: #D64545;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 29, 22, .06);
  --shadow-md: 0 8px 24px rgba(15, 29, 22, .08);
  --shadow-primary: 0 6px 20px rgba(15, 191, 111, .25);
  --container: 1200px;
  --space-section: clamp(64px, 8vw, 112px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-1);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--primary);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.5px;
}

.logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.logo-text .hl {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .25s ease;
  border-radius: 2px;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--primary);
  font-weight: 700;
}

.header-cta {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  transition: all .2s ease;
  cursor: pointer;
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 191, 111, .2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(.98);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .8);
  color: #fff;
}

.btn-light:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-sm {
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-lg {
  height: 52px;
  padding: 0 36px;
  font-size: 16px;
}

/* Mobile bottom nav */
.bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-tab-bar .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  position: relative;
  transition: color .2s;
}

.bottom-tab-bar .tab-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-tab-bar .tab-item.active {
  color: var(--primary);
}

.bottom-tab-bar .tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 2px 2px;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-1);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(720px, 90vh);
  display: flex;
  align-items: center;
  background-image: url('/assets/images/backpic/back-1.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 29, 22, .82) 0%, rgba(15, 29, 22, .62) 45%, rgba(15, 29, 22, .25) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(15, 29, 22, .35), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(247, 183, 51, .6);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero h1 .hl-green {
  color: var(--primary);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  max-width: 720px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat .num {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1.1;
}

.hero-stat .label {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  font-weight: 500;
}

/* Section common */
.section {
  padding: var(--space-section) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.section-head .head-left {
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.section-head .lead {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
}

.section-line {
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  margin-bottom: 12px;
}

.section-head .more-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.section-head .more-link:hover {
  border-bottom-color: var(--primary);
}

/* Feature / alternating blocks */
.feature-block {
  background: var(--bg);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 72px;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}

.feature-media:hover img {
  transform: scale(1.02);
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-content h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-1);
}

.feature-content .desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(15, 191, 111, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-item .icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Stats dark section */
.stats-section {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 32px solid rgba(15, 191, 111, .12);
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(15, 191, 111, .15) 12px, rgba(15, 191, 111, .15) 24px);
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stats-section h2 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.stats-section .lead {
  font-size: 16px;
  color: rgba(255, 255, 255, .6);
  max-width: 560px;
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: left;
}

.stat-item .num {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 900;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.5;
}

/* Case cards */
.case-section {
  background: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.case-card .img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.case-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.case-card:hover .img-wrap img {
  transform: scale(1.03);
}

.case-card .card-body {
  padding: 20px 24px 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(15, 191, 111, .12);
  color: var(--primary-dark);
}

.case-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 12px 0 8px;
}

.case-card .summary {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.case-card .detail-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s ease;
}

.case-card .detail-link:hover {
  gap: 8px;
  color: var(--primary-dark);
}

/* Plan section */
.plan-section {
  background: var(--bg);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.plan-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.plan-head {
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.plan-head.green {
  background: var(--primary);
}

.plan-head.orange {
  background: var(--accent);
}

.plan-head::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(255, 255, 255, .08) 6px, rgba(255, 255, 255, .08) 12px);
}

.plan-head h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.plan-head p {
  font-size: 14px;
  opacity: .9;
  position: relative;
  z-index: 1;
}

.plan-body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-list {
  flex: 1;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.plan-list li .check {
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 900;
}

.plan-list li .text {
  color: var(--text-2);
}

.plan-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.plan-meta .amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.plan-meta .unit {
  font-size: 14px;
  color: var(--text-2);
}

.plan-card .btn {
  width: 100%;
}

/* News list */
.news-section {
  background: #fff;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}

.news-item:first-child {
  padding-top: 8px;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-main {
  flex: 1;
  min-width: 0;
}

.news-main h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-main h3 a:hover {
  color: var(--primary);
}

.news-main .desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.news-meta .badge {
  background: rgba(15, 191, 111, .1);
  color: var(--primary-dark);
  font-size: 12px;
}

.news-meta .date {
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.news-arrow {
  color: var(--text-2);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform .2s, color .2s;
  font-weight: 700;
}

.news-item:hover .news-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.news-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.news-empty svg {
  width: 48px;
  height: 48px;
  stroke: #9CA3AF;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* FAQ */
.faq-section {
  background: var(--bg);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.faq-left {
  position: sticky;
  top: 96px;
}

.faq-left h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.faq-left .desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  user-select: none;
}

.faq-question .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform .25s ease;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.faq-item.active .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* Contact */
.contact-section {
  background: var(--bg);
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 48px;
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 48px;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--text-1);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 191, 111, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-row .icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-row .text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-1);
}

.contact-row .text .label {
  font-size: 13px;
  color: var(--text-2);
  display: block;
}

.contact-note {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 28px;
}

.contact-note strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 15px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  color: var(--text-1);
  height: 44px;
}

.form-group textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9CA3AF;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 191, 111, .15);
  outline: none;
}

.form-group .error-msg {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--danger);
}

.form-group.has-error .error-msg {
  display: block;
}

.contact-form .btn {
  width: 100%;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand .logo-text .hl {
  color: var(--primary);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .6);
  max-width: 260px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .6);
}

.footer-contact li .f-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .5);
  margin-left: 16px;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* Media queries */
@media (max-width: 1023px) {
  .main-nav {
    gap: 20px;
  }

  .feature-row {
    gap: 40px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-left {
    position: static;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .bottom-tab-bar {
    display: flex;
  }

  .site-header {
    height: 64px;
  }

  .header-inner {
    height: 64px;
  }

  body {
    padding-bottom: 64px;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: 92vh;
    min-height: calc(100vh - 64px);
  }

  .hero-stats {
    gap: 24px;
    justify-content: space-between;
    width: 100%;
  }

  .hero-stat .num {
    font-size: 26px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .news-thumb {
    width: 100px;
    height: 68px;
  }

  .news-meta {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .news-arrow {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom a {
    margin: 0 8px;
  }
}

@media (max-width: 520px) {
  .logo-text {
    font-size: 18px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat .num {
    font-size: 22px;
  }

  .hero-stat .label {
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .plan-head {
    padding: 24px;
  }

  .plan-body {
    padding: 24px;
  }

  .contact-card {
    padding: 24px;
  }
}

/* Dropdown for mobile */
.mobile-dropdown {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(15, 29, 22, .08);
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
}

.mobile-dropdown a:last-child {
  border-bottom: none;
}

.mobile-dropdown a.active {
  color: var(--primary);
}

/* roulang page: category1 */
:root {
  --primary: #0FBF6F;
  --primary-dark: #0A8C50;
  --accent: #F7B733;
  --dark: #0F1D16;
  --bg: #F6F7F4;
  --card: #FFFFFF;
  --text-1: #16211A;
  --text-2: #67736B;
  --border: #E2E7E2;
  --danger: #D64545;
  --shadow-sm: 0 1px 3px rgba(15, 29, 22, .06);
  --shadow-md: 0 8px 24px rgba(15, 29, 22, .08);
  --shadow-primary: 0 6px 20px rgba(15, 191, 111, .25);
  --radius: 14px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { margin-bottom: 48px; }
.section-head .tagline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary-dark); background: rgba(15,191,111,.1); padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; line-height: 1.25; color: var(--text-1); }
.section-head p { max-width: 560px; font-size: 16px; color: var(--text-2); margin-top: 14px; }
.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; cursor: pointer;
  transition: all .2s ease; height: 44px; padding: 0 26px; font-size: 15px;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: transparent; border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--dark); }
.btn-lg { height: 48px; padding: 0 34px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 18px; font-size: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(15,191,111,.12); color: var(--primary-dark);
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: var(--text-1); }
.logo .logo-icon {
  width: 34px; height: 34px; background: var(--primary); border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; flex: none;
}
.logo .hl { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  position: relative; font-size: 15px; font-weight: 600; color: var(--text-2);
  padding: 8px 0; transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--primary);
  border-radius: 2px; transition: width .25s ease;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after { width: 100%; }
.header-cta { flex: none; }
.menu-toggle { display: none; background: none; font-size: 24px; color: var(--text-1); cursor: pointer; }

/* Bottom tab */
.bottom-tab {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  background: #fff; border-top: 1px solid var(--border);
  height: 64px;
}
.tab-list { display: flex; align-items: center; justify-content: space-around; height: 64px; }
.tab-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 12px; font-weight: 600; color: var(--text-2);
  position: relative; width: 33.33%; height: 100%; transition: color .2s;
}
.tab-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-item::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px; background: var(--primary); border-radius: 0 0 2px 2px;
  opacity: 0; transition: opacity .2s;
}
.tab-item.active { color: var(--primary); }
.tab-item.active::before { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  background: var(--dark) url("/assets/images/backpic/back-1.png") center center / cover no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(15,29,22,.92) 20%, rgba(15,29,22,.55) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--accent); font-weight: 600; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
  max-width: 680px;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 16px 48px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15);
}
.stat-mini { text-align: left; }
.stat-mini .num { font-size: 28px; font-weight: 900; color: var(--primary); line-height: 1.2; display: block; }
.stat-mini .label { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* Why section */
.why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(15,191,111,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--primary-dark);
  margin-bottom: 20px;
}
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* Identify */
.identify { background: #fff; }
.identify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.identify-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.identify-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.identify-steps { display: flex; flex-direction: column; gap: 28px; }
.step-line { display: flex; gap: 20px; position: relative; }
.step-line:not(:last-child)::after {
  content: ""; position: absolute; left: 22px; top: 52px; bottom: -28px;
  width: 2px; background: var(--border);
}
.step-num {
  width: 44px; height: 44px; flex: none;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 5px rgba(15,191,111,.15);
}
.step-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.step-body p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* Steps flow */
.steps { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.steps::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 40px solid rgba(15,191,111,.08);
  pointer-events: none;
}
.steps .section-head h2 { color: #fff; }
.steps .section-head p { color: rgba(255,255,255,.65); }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 2; }
.flow-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background .25s, transform .25s;
}
.flow-item:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.flow-item .f-num { font-size: 40px; font-weight: 900; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.flow-item h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 16px 0 8px; }
.flow-item p { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.65; }

/* Scenario */
.scenario { background: var(--bg); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scenario-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.scenario-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.scenario-card .cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.scenario-card .body { padding: 22px 24px 26px; }
.scenario-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.scenario-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.scenario-card .badge { margin-bottom: 14px; }

/* FAQ */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq-left { position: sticky; top: 96px; align-self: flex-start; }
.faq-left h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.faq-left p { color: var(--text-2); font-size: 15px; margin-bottom: 24px; max-width: 320px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 15px;
  user-select: none; transition: color .2s;
}
.faq-q:hover { color: var(--primary-dark); }
.faq-q .icon {
  width: 22px; height: 22px; flex: none; position: relative;
}
.faq-q .icon::before,
.faq-q .icon::after {
  content: ""; position: absolute; background: var(--text-2); border-radius: 2px;
  transition: transform .25s ease, background .25s;
}
.faq-q .icon::before { top: 10px; left: 2px; width: 18px; height: 2px; }
.faq-q .icon::after { top: 2px; left: 10px; width: 2px; height: 18px; }
.faq-item.open .faq-q .icon::before { transform: rotate(180deg); }
.faq-item.open .faq-q .icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item.open .faq-q .icon::before,
.faq-item.open .faq-q .icon::after { background: var(--primary); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  font-size: 14px; color: var(--text-2); line-height: 1.7;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }

/* CTA */
.cta-block {
  background: var(--dark) url("/assets/images/backpic/back-2.png") center center / cover no-repeat;
  position: relative; color: #fff; text-align: center;
}
.cta-block::before { content: ""; position: absolute; inset: 0; background: rgba(15,29,22,.85); }
.cta-block .container { position: relative; z-index: 2; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.cta-block h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 16px; }
.cta-block p { font-size: 16px; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 32px; }
.cta-block .btn-lg { margin-bottom: 20px; }
.cta-meta { font-size: 13px; color: rgba(255,255,255,.55); display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.cta-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 72px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-text { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 14px; display: block; }
.footer-brand .logo-text .hl { color: var(--primary); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-contact li { font-size: 14px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); margin-bottom: 12px; }
.footer-contact .f-icon { width: 22px; color: var(--primary); font-size: 14px; text-align: center; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 28px; font-size: 13px; color: rgba(255,255,255,.45);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color .2s; margin-left: 20px; }
.footer-bottom a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 1024px) {
  .identify-grid { gap: 40px; }
  .why-grid, .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-left { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { height: 64px; }
  .header-inner { height: 64px; }
  .bottom-tab { display: block; }
  main { padding-bottom: 64px; }
  .hero { min-height: auto; }
  .hero .container { padding-top: 48px; padding-bottom: 48px; }
  .hero-stats { gap: 16px 32px; }
  .why-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .identify-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom a { margin: 0 10px; }
  .cta-block .btn-lg { width: 100%; max-width: 360px; }
}
@media (max-width: 520px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .why-card { padding: 26px 22px; }
  .section-head p { font-size: 15px; }
}

/* roulang page: article */
:root {
  --primary: #0FBF6F;
  --primary-dark: #0A8C50;
  --accent: #F7B733;
  --dark: #0F1D16;
  --bg: #F6F7F4;
  --card-bg: #FFFFFF;
  --text-1: #16211A;
  --text-2: #67736B;
  --border: #E2E7E2;
  --danger: #D64545;
  --shadow-sm: 0 1px 3px rgba(15, 29, 22, .06);
  --shadow-md: 0 8px 24px rgba(15, 29, 22, .08);
  --shadow-primary: 0 6px 20px rgba(15, 191, 111, .25);
  --radius-lg: 14px;
  --radius-sm: 8px;
  --clamp-pad: clamp(24px, 4vw, 48px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: 15px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  padding: 0 24px;
  height: 44px;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .01em;
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-lg {
  height: 48px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(.98);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
}

.btn-light:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ===== 徽章 / 标签 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(15, 191, 111, .12);
  color: var(--primary-dark);
}

.badge-gray {
  background: var(--bg);
  color: var(--text-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .2s ease;
}

.tag:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(15, 191, 111, .06);
}

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-text .hl {
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 8px;
}

.main-nav a {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  padding: 26px 0;
  display: block;
  transition: color .2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .25s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active {
  color: var(--primary);
}

.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-toggle {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  transition: background .2s;
}

.header-toggle:hover {
  background: var(--bg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 190;
  padding: 8px 0;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  transition: all .2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
  background: rgba(15, 191, 111, .06);
}

/* ===== 底部 Tab ===== */
.bottom-tab {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 180;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(15, 29, 22, .04);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  position: relative;
  transition: color .2s;
}

.tab-item.active {
  color: var(--primary);
}

.tab-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

.tab-item:hover {
  color: var(--primary);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 28px 0 12px;
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-2);
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: var(--border);
}

.breadcrumb .current {
  color: var(--primary);
  font-weight: 500;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 文章头部 ===== */
.article-header-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--clamp-pad);
  margin-bottom: 24px;
}

.article-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text-1);
  margin: 16px 0 8px;
  word-break: break-word;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 4px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.m-icon {
  color: var(--primary);
}

/* ===== 正文 ===== */
.article-body-wrap {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: var(--clamp-pad);
  margin-bottom: 32px;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-1);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  margin: 40px 0 16px;
  position: relative;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 32px 0 12px;
}

.article-body img {
  border-radius: 12px;
  margin: 24px 0;
  height: auto;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-2);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(15, 191, 111, .3);
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-dark);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.article-body th {
  background: var(--bg);
  font-weight: 700;
}

/* ===== 空态 ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 72px;
  text-align: center;
  gap: 16px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-2);
}

/* ===== 文章标签 & 上下篇 ===== */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.post-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.post-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-1);
  transition: color .2s;
}

.post-nav-item a:hover {
  color: var(--primary);
}

.post-nav-item.disabled {
  color: var(--text-2);
  opacity: .6;
  cursor: default;
}

/* ===== 相关推荐 ===== */
.related-section {
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  position: relative;
  padding-left: 12px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--primary);
  border-radius: 3px;
}

.section-head p {
  font-size: 15px;
  color: var(--text-2);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: block;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.related-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.related-card:hover .related-cover img {
  transform: scale(1.04);
}

.related-body {
  padding: 16px 20px 20px;
}

.related-body .badge {
  margin-bottom: 8px;
}

.related-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card:hover .related-body h3 {
  color: var(--primary);
}

/* ===== CTA 区块 ===== */
.cta-section {
  margin-bottom: 56px;
}

.cta-card {
  background: var(--dark);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border: 16px solid rgba(15, 191, 111, .3);
  border-radius: 50%;
}

.cta-content h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .7);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand .logo-text .hl {
  color: var(--primary);
}

.footer-brand .footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
  margin-top: 16px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.6;
}

.f-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .45);
  margin-left: 16px;
  transition: color .2s;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ===== 响应式 ===== */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .site-main {
    padding-bottom: 88px;
  }

  .header-inner {
    height: 64px;
  }

  .main-nav {
    display: none;
  }

  .header-toggle {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .breadcrumb {
    padding-top: 20px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .article-title {
    font-size: 26px;
  }

  .article-meta {
    gap: 16px;
    font-size: 13px;
  }

  .article-body {
    font-size: 15px;
    line-height: 1.8;
  }

  .article-body h2 {
    font-size: 22px;
    margin-top: 32px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .bottom-tab {
    display: flex;
  }
}

@media (max-width: 480px) {
  .header-actions .btn {
    display: none;
  }

  .logo-text {
    font-size: 20px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-icon svg {
    width: 20px;
    height: 20px;
  }

  .article-header-card {
    padding: 20px;
  }

  .article-body-wrap {
    padding: 20px;
  }

  .related-title {
    font-size: 15px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}
