/* roulang page: index */
:root {
  --brand-yellow: #FACC15;
  --brand-green: #059669;
  --brand-accent: #FB923C;
  --ink: #1C1917;
  --bg-warm: #FFFDF5;
  --cream: #FEFCE8;
  --text-main: #292524;
  --text-sub: #57534E;
  --text-muted: #A8A29E;
  --border-light: #e7e5e4;
  --radius-card: 1rem;
  --radius-lg: 1.5rem;
  --shadow-card: 0 4px 24px rgba(28,25,23,0.06);
  --shadow-hover: 0 12px 36px rgba(28,25,23,0.13);
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-warm);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--brand-yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--brand-green);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--brand-yellow);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: all .3s ease;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.28);
}

.btn-primary:active {
  transform: scale(.96);
  box-shadow: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: all .3s ease;
  white-space: nowrap;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--ink);
  color: var(--brand-yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,25,23,0.15);
}

.btn-outline:active {
  transform: scale(.96);
  box-shadow: none;
}

.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-green);
  transition: color .3s ease;
}

.btn-link-arrow:hover,
.btn-link-arrow:focus-visible {
  color: var(--ink);
}

.btn-link-arrow .arrow-ico {
  transition: transform .3s ease;
}

.btn-link-arrow:hover .arrow-ico,
.btn-link-arrow:focus-visible .arrow-ico {
  transform: translateX(4px);
}

/* ---------- Section ---------- */
.section-padding {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 0;
  }
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--brand-green);
  background: rgba(5,150,105,0.1);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 640px;
  margin-top: 12px;
}

/* ---------- Card ---------- */
.base-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.base-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(250,204,21,0.5);
}

/* ---------- Mega Menu ---------- */
.mega-wrap {
  position: relative;
}

.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #fff;
  transition: all .25s ease;
}

.mega-trigger:hover,
.mega-trigger:focus-visible {
  color: var(--brand-green);
  border-color: var(--brand-yellow);
  background: var(--cream);
}

.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 640px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(28,25,23,0.16);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .3s ease;
  z-index: 100;
}

.mega-wrap:hover .mega-panel,
.mega-wrap:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
}

.mega-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.mega-col a.mega-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 0;
  border-radius: 6px;
  transition: color .2s ease, padding-left .2s ease;
}

.mega-col a.mega-link:hover,
.mega-col a.mega-link:focus-visible {
  color: var(--brand-green);
  padding-left: 6px;
}

.mega-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f4;
}

.mega-item:last-child {
  border-bottom: none;
}

.mega-item img {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.mega-item p {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.mega-cta {
  background: var(--brand-yellow);
  border-radius: 0.875rem;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.mega-cta h4 {
  color: var(--ink);
  margin-bottom: 0;
}

.mega-cta p {
  font-size: 13px;
  color: #57534e;
}

.mega-cta .btn-primary {
  background: var(--ink);
  color: var(--brand-yellow);
  border-color: var(--ink);
  font-size: 13px;
  padding: 8px 16px;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-warm);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  padding: 12px 8px;
  border-radius: 10px;
  border-bottom: 1px solid #f5f5f4;
  transition: all .2s ease;
}

.mobile-nav-link:hover {
  background: var(--cream);
  color: var(--brand-green);
  padding-left: 14px;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  background-image: url('/assets/images/backpic/back-1.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(254,252,232,0.96) 0%, rgba(255,253,245,0.92) 40%, rgba(250,204,21,0.25) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(28,25,23,0.1);
  border-radius: 999px;
  padding: 8px 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all .25s ease;
}

.hero-tag:hover,
.hero-tag:focus-visible {
  background: var(--brand-yellow);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(250,204,21,0.35);
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 620px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-sub {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 560px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .hero-sub {
    font-size: 18px;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .hero-stats {
    gap: 16px;
  }
}

.stat-item {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .stat-num {
    font-size: 28px;
  }
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--brand-yellow);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: 0 4px 12px rgba(250,204,21,0.25);
}

/* ---------- 裂变说明 ---------- */
.perk-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}

.perk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-green));
  opacity: 0;
  transition: opacity .3s ease;
}

.perk-card:hover::before {
  opacity: 1;
}

.perk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.perk-card .number {
  font-size: 42px;
  font-weight: 900;
  color: var(--brand-yellow);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.perk-card:nth-child(2) .number {
  color: var(--brand-green);
}

.perk-card:nth-child(3) .number {
  color: var(--brand-accent);
}

.perk-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 8px;
}

.perk-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid rgba(250,204,21,0.35);
  border-radius: 999px;
  padding: 12px 12px 12px 24px;
  margin-top: 40px;
}

.share-box span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.share-box code {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-sub);
}

@media (max-width: 640px) {
  .share-box {
    border-radius: 20px;
    padding: 16px;
  }
}

/* ---------- 邀请进度 ---------- */
.progress-section {
  background: var(--cream);
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  .progress-section {
    padding: 6rem 0;
  }
}

.progress-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
  padding: 36px;
}

@media (max-width: 640px) {
  .progress-card {
    padding: 24px;
  }
}

.progress-bar-wrap {
  margin-top: 24px;
}

.progress-bar {
  height: 12px;
  background: #f5f5f4;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-yellow), #f59e0b);
  border-radius: 999px;
  position: relative;
  transition: width 1s ease;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: rgba(255,255,255,0.35);
  border-radius: 999px;
}

.reward-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reward-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 18px;
  transition: all .3s ease;
}

.reward-item.locked {
  opacity: 0.65;
}

.reward-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.reward-item p {
  font-size: 13px;
  color: var(--text-sub);
}

.reward-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #fff;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.reward-item.done {
  border-color: rgba(5,150,105,0.25);
  background: rgba(5,150,105,0.04);
}

.reward-item.done .reward-ico {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

/* ---------- 排行榜 ---------- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 12px 20px 12px 12px;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(250,204,21,0.5);
}

.rank-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  background: #f5f5f4;
  color: var(--text-sub);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.rank-item:nth-child(1) .rank-num {
  background: var(--brand-yellow);
  color: var(--ink);
}

.rank-item:nth-child(2) .rank-num {
  background: var(--brand-green);
  color: #fff;
}

.rank-item:nth-child(3) .rank-num {
  background: var(--brand-accent);
  color: #fff;
}

.rank-thumb {
  width: 96px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.rank-item:hover .rank-thumb img {
  transform: scale(1.05);
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info p {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 2px;
}

.rank-views {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .rank-views {
    display: none;
  }
  .rank-thumb {
    width: 72px;
    height: 48px;
  }
}

/* ---------- 资讯 ---------- */
.news-section {
  background: var(--cream);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .news-section {
    padding: 6rem 0;
  }
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  border-bottom: 1px solid #f5f5f4;
  transition: all .25s ease;
}

.news-item:hover,
.news-item:focus-visible {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transform: translateX(4px);
}

.news-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-green);
  background: rgba(5,150,105,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.news-item h3 {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  min-width: 0;
}

.news-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .news-meta {
    display: none;
  }
}

.news-recommend {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}

.news-recommend:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.news-recommend img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-recommend-body {
  padding: 20px;
}

.news-recommend-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.news-recommend-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  margin-top: 8px;
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 6rem 0;
  }
}

.cta-box {
  background: linear-gradient(135deg, var(--brand-green) 0%, #047857 100%);
  color: #fff;
  border-radius: 2rem;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 56px;
  }
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(250,204,21,0.15);
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.cta-box h2 {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
}

@media (min-width: 768px) {
  .cta-box h2 {
    font-size: 2.25rem;
  }
}

.cta-box p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-top: 12px;
  max-width: 460px;
}

.cta-box .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 999px;
  transition: all .3s ease;
}

.cta-box .btn-white:hover {
  background: var(--brand-yellow);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.cta-box .btn-white:active {
  transform: scale(.95);
}

.faq-mini {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1.25rem;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.faq-mini h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.faq-mini .faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.faq-mini .faq-item:last-child {
  border-bottom: none;
}

.faq-mini .faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 14px 0;
  text-align: left;
  transition: color .25s ease;
}

.faq-mini .faq-q:hover {
  color: var(--brand-yellow);
}

.faq-mini .faq-q .faq-icon {
  font-size: 16px;
  transition: transform .3s ease;
  flex-shrink: 0;
}

.faq-mini .faq-item.open .faq-q .faq-icon {
  transform: rotate(45deg);
}

.faq-mini .faq-a {
  display: none;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  padding-bottom: 14px;
}

.faq-mini .faq-item.open .faq-a {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d6d3d1;
  padding-top: 56px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: #a8a29e;
  padding: 5px 0;
  transition: color .25s ease, padding-left .25s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--brand-yellow);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #44403c;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-bottom .footer-small-link {
  font-size: 13px;
  color: #a8a29e;
  transition: color .25s ease;
}

.footer-bottom .footer-small-link:hover {
  color: var(--brand-yellow);
}

/* ---------- Mobile Fixed CTA ---------- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(28,25,23,0.96);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-cta-bar p {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.mobile-cta-bar .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .25s ease;
}

.mobile-cta-bar .cta-btn:active {
  transform: scale(.94);
}

/* ---------- Line Clamp ---------- */
.line-clamp-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .mega-panel {
    display: none;
  }
}

@media (max-width: 639px) {
  .section-title {
    font-size: 24px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-sub {
    font-size: 15px;
  }
  .cta-box {
    padding: 28px 24px;
    border-radius: 1.5rem;
  }
  .cta-box h2 {
    font-size: 22px;
  }
  .faq-mini {
    margin-top: 20px;
    padding: 16px;
  }
  .progress-card {
    padding: 20px;
  }
  .share-box code {
    width: 100%;
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    flex-direction: column;
    width: 100%;
  }
  .stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }
}

/* roulang page: category1 */
:root {
  --brand-yellow: #FACC15;
  --brand-green: #059669;
  --brand-accent: #FB923C;
  --ink: #1C1917;
  --bg-warm: #FFFDF5;
  --cream: #FEFCE8;
  --text-main: #292524;
  --text-sub: #57534E;
  --text-muted: #A8A29E;
  --border-light: #e7e5e4;
  --radius-card: 1rem;
  --radius-lg: 1.5rem;
  --shadow-card: 0 4px 24px rgba(28,25,23,0.06);
  --shadow-hover: 0 12px 36px rgba(28,25,23,0.13);
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-warm);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
button { font-family: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; border-radius: 4px; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--brand-yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { color: var(--brand-green); }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.block { display: block; padding: 10px 14px; }
.nav-link.block::after { display: none; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--brand-yellow);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: all .3s ease;
  white-space: nowrap;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.28);
}
.btn-primary:active { transform: scale(.96); box-shadow: none; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: all .3s ease;
  white-space: nowrap;
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--ink);
  color: var(--brand-yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,25,23,0.15);
}
.btn-outline:active { transform: scale(.96); box-shadow: none; }
.btn-sm { padding: 6px 18px; font-size: 14px; }

/* Section */
.section-padding { padding: 4rem 0; }
@media (min-width: 768px) { .section-padding { padding: 6rem 0; } }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--brand-green);
  background: rgba(5,150,105,0.1);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 640px;
  margin-top: 12px;
}

/* Card */
.base-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.base-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(250,204,21,0.5);
}

/* Mega Menu */
.mega-wrap { position: relative; }
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #fff;
  transition: all .25s ease;
}
.mega-trigger:hover, .mega-trigger:focus-visible {
  color: var(--brand-green);
  border-color: var(--brand-yellow);
  background: var(--cream);
}
.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 640px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(28,25,23,0.16);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .3s ease;
  z-index: 100;
}
.mega-wrap:hover .mega-panel,
.mega-wrap:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
}
.mega-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.mega-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 0;
  border-radius: 6px;
  transition: color .2s ease, padding-left .2s ease;
}
.mega-link:hover, .mega-link:focus-visible {
  color: var(--brand-green);
  padding-left: 6px;
}
.mega-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f4;
}
.mega-item:last-child { border-bottom: none; }
.mega-item img {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.mega-item p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}
.mega-item span {
  font-size: 12px;
  color: var(--text-muted);
}
.mega-entry-card {
  background: var(--brand-yellow);
  border-radius: 1rem;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
}
.mega-entry-card p {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

/* Category Hero */
.category-hero {
  position: relative;
  background-image: url('/assets/images/backpic/back-2.jpg');
  background-size: cover;
  background-position: center;
  padding: 3.5rem 0 4.5rem;
}
.category-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250,204,21,0.92), rgba(255,253,245,0.88) 70%, rgba(255,255,255,0.92));
}
.category-hero .hero-content {
  position: relative;
  z-index: 1;
}
.crumb {
  font-size: 14px;
  color: var(--text-sub);
}
.crumb a:hover { color: var(--brand-green); }
.hero-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--brand-yellow);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: .02em;
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 28px;
}
.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-light);
  background: #fff;
  color: var(--text-main);
  transition: all .25s ease;
}
.toolbar-btn:hover, .toolbar-btn:focus-visible {
  background: var(--cream);
  border-color: var(--brand-yellow);
  color: var(--ink);
}
.toolbar-btn.active {
  background: var(--ink);
  color: var(--brand-yellow);
  border-color: var(--ink);
}
.toolbar-btn:active { transform: scale(.97); }

/* Content Card */
.content-card { background: #fff; }
.video-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.video-card-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .5s ease;
}
.content-card:hover .video-card-img-wrap img { transform: scale(1.05); }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(28,25,23,0.85);
  color: var(--brand-yellow);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: .02em;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0 8px;
}
.page-item, .page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border-light);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all .25s ease;
}
.page-item:hover, .page-arrow:hover, .page-item:focus-visible, .page-arrow:focus-visible {
  border-color: var(--brand-yellow);
  color: var(--ink);
}
.page-item.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--brand-yellow);
}
.page-item:active, .page-arrow:active { transform: scale(.95); }

/* Feature Rows */
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition: all .3s ease;
}
.feature-row:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(250,204,21,0.5);
}
.feature-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-yellow);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  line-height: 1;
  min-width: 52px;
}
.feature-num.green { color: var(--brand-green); }
.feature-num.orange { color: var(--brand-accent); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(250,204,21,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-text h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.feature-text p { font-size: 14px; line-height: 1.7; color: var(--text-sub); margin: 0; }

/* Scenes */
.scene-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
@media (min-width: 1024px) {
  .scene-block { flex-direction: row; }
  .scene-block.reverse { flex-direction: row-reverse; }
}
.scene-media { flex: 1; width: 100%; }
.scene-text { flex: 1; }
.scene-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.scene-tag {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.scene-text h3 { font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1.3; margin: 0 0 12px; }
.scene-text p { font-size: 15px; line-height: 1.8; color: var(--text-sub); max-width: 480px; }

/* FAQ */
.faq-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-card:hover { border-color: rgba(250,204,21,0.5); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: none;
  text-align: left;
  transition: background .25s ease;
}
.faq-question:hover, .faq-question:focus-visible { background: var(--cream); }
.faq-question[aria-expanded="true"] { background: var(--cream); }
.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--brand-green);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 20px; }
.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 0;
}

/* CTA Banner */
.cta-banner {
  border-radius: 1rem;
  border: 1px solid rgba(250,204,21,0.6);
  background: var(--cream);
  padding: 40px 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-banner { padding: 56px 48px; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--text-muted);
  padding-top: 3.5rem;
}
.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color .25s ease, padding-left .25s ease;
}
.footer-link:hover, .footer-link:focus-visible {
  color: var(--brand-yellow);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid #44403c;
  padding: 20px 0;
}
.footer-small-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .25s ease;
}
.footer-small-link:hover, .footer-small-link:focus-visible { color: var(--brand-yellow); }

/* Mobile Menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* Mobile CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  inset-x: 0;
  z-index: 40;
  background: rgba(28,25,23,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 1024px) { .mobile-cta { display: none; } }

/* Utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
