/* roulang page: index */
:root {
    --color-primary: #1e3a2f;
    --color-primary-dark: #14261f;
    --color-accent: #c9a959;
    --color-accent-light: #e4c97a;
    --color-bg: #faf7f2;
    --color-surface: #ffffff;
    --color-text: #1f2a24;
    --color-muted: #6b7a71;
    --color-border: #e5e0d5;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  img {
    max-width: 100%;
    display: block;
  }

  a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
  }

  button,
  input,
  textarea {
    font-family: inherit;
    font-size: inherit;
  }

  button:focus,
  a:focus,
  input:focus,
  textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }

  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* 导航 */
  #site-header {
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    background: rgba(20, 30, 25, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  #site-header.header-scrolled {
    background: rgba(20, 30, 25, 0.92);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-bottom-color: rgba(255,255,255,0.08);
  }

  .nav-link {
    position: relative;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.4rem 0;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
  }

  .nav-link:hover::after,
  .nav-link.active-nav::after {
    width: 100%;
  }

  /* Hero */
  .hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: #1e3a2f;
    color: #fff;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.7) 100%);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 5rem;
    padding-top: 8rem;
  }

  .countdown-bar {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
  }

  .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.2rem;
  }

  .countdown-number {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 700;
    color: #fff;
  }

  .countdown-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }

  .hero-desc {
    max-width: 720px;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-top: 2rem;
  }

  .hero-stat {
    display: flex;
    flex-direction: column;
  }

  .hero-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
  }

  .hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
  }

  /* 按钮 */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
  }

  .btn-primary {
    background: var(--color-accent);
    color: #1e3a2f;
  }
  .btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,169,89,0.35);
  }

  .btn-outline {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
    background: transparent;
  }
  .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
  }

  .btn-dark {
    background: var(--color-primary);
    color: #fff;
  }
  .btn-dark:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
  }

  /* 板块通用 */
  .section {
    padding: 5rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(30,58,47,0.08);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 0.75rem;
  }

  .section-desc {
    font-size: 1.05rem;
    color: var(--color-muted);
    max-width: 760px;
    line-height: 1.8;
  }

  /* 券面卡片 */
  .coupon-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
  }

  .coupon-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }

  .coupon-image {
    position: relative;
    height: 180px;
    overflow: hidden;
  }

  .coupon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .coupon-card:hover .coupon-image img {
    transform: scale(1.05);
  }

  .coupon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-accent);
    color: #1e3a2f;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  .coupon-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .coupon-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
  }

  .coupon-desc {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
  }

  .coupon-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
  }

  /* 规则/步骤 */
  .rule-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-accent);
    transition: box-shadow 0.3s ease;
  }

  .rule-item:hover {
    box-shadow: var(--shadow-md);
  }

  .rule-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
  }

  .rule-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
  }

  .rule-content p {
    color: var(--color-muted);
    line-height: 1.7;
  }

  /* FAQ */
  .faq-item {
    border-bottom: 1px solid var(--color-border);
  }

  .faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
  }

  .faq-question:hover {
    color: var(--color-primary);
  }

  .faq-icon {
    transition: transform 0.3s ease;
    color: var(--color-accent);
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .faq-answer p {
    padding-bottom: 1.25rem;
    color: var(--color-muted);
    line-height: 1.8;
  }

  /* 资讯列表 */
  .news-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
  }

  .news-list-item:hover {
    background: rgba(0,0,0,0.02);
  }

  .news-date {
    min-width: 4.5rem;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .news-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--color-text);
  }

  .news-content p {
    color: var(--color-muted);
    font-size: 0.9rem;
  }

  .recommend-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
  }

  .recommend-card:hover {
    box-shadow: var(--shadow-md);
  }

  .recommend-image {
    height: 180px;
    overflow: hidden;
  }

  .recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .recommend-body {
    padding: 1.5rem;
  }

  .rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .rank-title {
    font-weight: 500;
    color: var(--color-text);
  }

  .rank-value {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* CTA */
  .cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0;
  }

  .cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 25, 0.85);
  }

  /* Footer */
  .site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
  }

  .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
  }

  .footer-link {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
  }

  .footer-link:hover {
    color: var(--color-accent);
  }

  /* 浮动转化条 */
  .floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(20, 30, 25, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .floating-cta.show {
    transform: translateY(0);
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .hero-title {
      font-size: 2.6rem;
    }
    .hero-desc {
      font-size: 1rem;
    }
  }

  @media (max-width: 768px) {
    .hero-section {
      min-height: auto;
      padding-top: 6rem;
      padding-bottom: 4rem;
    }
    .hero-content {
      padding-top: 4rem;
      padding-bottom: 2rem;
    }
    .hero-title {
      font-size: 2rem;
    }
    .hero-desc {
      font-size: 0.95rem;
    }
    .hero-stats {
      gap: 1rem;
    }
    .hero-stat-value {
      font-size: 1.4rem;
    }
    .coupon-card {
      margin-bottom: 1.5rem;
    }
    .rule-item {
      flex-direction: column;
    }
    .section {
      padding: 3rem 0;
    }
  }

  @media (max-width: 520px) {
    .hero-title {
      font-size: 1.6rem;
    }
    .countdown-bar {
      padding: 0.5rem 1rem;
      gap: 0.5rem;
    }
    .countdown-number {
      font-size: 1.2rem;
    }
    .btn {
      padding: 0.7rem 1.2rem;
      font-size: 0.9rem;
    }
    .news-list-item {
      flex-direction: column;
      align-items: flex-start;
    }
    .floating-cta {
      flex-direction: column;
      align-items: stretch;
      padding: 0.5rem;
    }
  }
