/* roulang page: index */
:root {
    --ink: #0C221E;
    --deep: #12332C;
    --paper: #F6F3EC;
    --sand: #EDE9DF;
    --card: #FFFDF8;
    --body: #1F2A27;
    --muted: #6E7C77;
    --coral: #E8764E;
    --lime: #C9F24B;
    --line: #E2DCCF;
    --radius-card: 18px;
    --radius-btn: 9999px;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: var(--font-sans), 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  ::selection {
    background: #C9F24B;
    color: #0C221E;
  }

  img,
  svg,
  video {
    max-width: 100%;
    vertical-align: middle;
  }

  a,
  button,
  input,
  textarea,
  select {
    transition: all 0.25s ease;
  }

  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
  }

  section[id],
  div[id],
  footer[id] {
    scroll-margin-top: 96px;
  }

  .font-display {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', STSong, serif;
  }

  .hero-bg {
    position: relative;
    background-color: #0C221E;
    background-image:
      linear-gradient(120deg, rgba(12, 34, 30, 0.88) 0%, rgba(12, 34, 30, 0.7) 40%, rgba(18, 51, 44, 0.82) 100%),
      url('/assets/images/backpic/back-1.jpg');
    background-size: cover;
    background-position: center;
  }

  .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(246, 243, 236, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(246, 243, 236, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mix-blend-mode: overlay;
  }

  .nav-menu-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0C221E;
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
  }

  .nav-menu-chip:hover {
    background: #EDE9DF;
    color: #0C221E;
  }

  .nav-menu-chip.active {
    background: #0C221E;
    color: #C9F24B;
    border-color: #0C221E;
  }

  .nav-menu-chip.active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #C9F24B;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 9999px;
    background: var(--coral);
    color: #0C221E;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
  }

  .btn-primary:hover {
    background: #0C221E;
    color: #FFFDF8;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -18px rgba(12, 34, 30, 0.6);
  }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 9999px;
    background: transparent;
    color: #FFFDF8;
    border: 1px solid rgba(255, 253, 248, 0.6);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
  }

  .btn-ghost:hover {
    border-color: #C9F24B;
    color: #C9F24B;
    transform: translateY(-2px);
    background: rgba(201, 242, 75, 0.08);
  }

  .btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 9999px;
    background: #0C221E;
    color: #FFFDF8;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
  }

  .btn-dark:hover {
    background: var(--coral);
    color: #0C221E;
    transform: translateY(-2px);
  }

  .card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -24px rgba(17, 32, 27, 0.28);
  }

  .arrow-slide {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  a:hover .arrow-slide,
  button:hover .arrow-slide {
    transform: translateX(4px);
  }

  .tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 9999px;
    background: #EDE9DF;
    border: 1px solid #E2DCCF;
    color: #1F2A27;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .tag-badge.hot {
    background: #0C221E;
    color: #C9F24B;
    border-color: #0C221E;
  }

  .field {
    width: 100%;
    border: 1px solid #DCD5C7;
    background: rgba(255, 253, 248, 0.9);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: #1F2A27;
  }

  .field::placeholder {
    color: #92A09A;
  }

  .field:focus {
    outline: none;
    border-color: #0C221E;
    box-shadow: 0 0 0 3px rgba(12, 34, 30, 0.12);
  }

  .timeline-dot {
    width: 10px;
    height: 10px;
    background: var(--coral);
    border-radius: 9999px;
    flex: none;
  }

  @media (min-width: 1024px) {
    .lg\:text-hero {
      font-size: clamp(3rem, 6.2vw, 5.4rem);
      line-height: 1.08;
    }
  }

  @media (max-width: 640px) {
    .hero-title-main {
      font-size: 2.4rem !important;
      line-height: 1.12 !important;
    }
  }

  .animate-up {
    opacity: 0;
    transform: translateY(16px);
    animation: riseUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .delay-1 { animation-delay: 0.12s; }
  .delay-2 { animation-delay: 0.24s; }
  .delay-3 { animation-delay: 0.36s; }
  .delay-4 { animation-delay: 0.48s; }

  @keyframes riseUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

/* roulang page: category1 */
:root {
            --ink: #0C221E;
            --deep: #12332C;
            --paper: #F6F3EC;
            --sand: #EDE9DF;
            --card: #FFFDF8;
            --body: #1F2A27;
            --muted: #6E7C77;
            --coral: #E8764E;
            --lime: #C9F24B;
            --line: #E2DCCF;
            --radius-card: 18px;
            --radius-btn: 9999px;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            background: var(--paper);
            color: var(--body);
            font-family: var(--font-sans), 'PingFang SC', 'Microsoft YaHei', sans-serif;
            line-height: 1.75;
            letter-spacing: 0.01em;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        img,
        svg,
        video {
            max-width: 100%;
            vertical-align: middle;
        }

        a,
        button,
        input,
        textarea,
        select {
            transition: all 0.25s ease;
        }

        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        textarea:focus-visible,
        select:focus-visible {
            outline: 2px solid var(--coral);
            outline-offset: 3px;
        }

        section[id],
        div[id],
        footer[id] {
            scroll-margin-top: 96px;
        }

        .nav-menu-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border-radius: 9999px;
            padding: 0.55rem 1.1rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: #0C221E;
            background: transparent;
            border: 1px solid transparent;
            white-space: nowrap;
        }

        .nav-menu-chip:hover {
            background: #EDE9DF;
            color: #0C221E;
        }

        .nav-menu-chip.active {
            background: #0C221E;
            color: #C9F24B;
            border-color: #0C221E;
        }

        .nav-menu-chip.active::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 9999px;
            background: #C9F24B;
        }

        .btn-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            border-radius: 9999px;
            background: var(--coral);
            color: #0C221E;
            padding: 0.75rem 1.5rem;
            font-weight: 700;
            font-size: 0.95rem;
            border: 1px solid transparent;
            text-decoration: none;
            cursor: pointer;
        }

        .btn-primary:hover {
            background: #0C221E;
            color: #FFFDF8;
            transform: translateY(-2px);
            box-shadow: 0 16px 28px -18px rgba(12, 34, 30, 0.6);
        }

        .btn-ghost {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            border-radius: 9999px;
            background: transparent;
            color: #FFFDF8;
            border: 1px solid rgba(255, 253, 248, 0.6);
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            cursor: pointer;
        }

        .btn-ghost:hover {
            border-color: #C9F24B;
            color: #C9F24B;
            transform: translateY(-2px);
            background: rgba(201, 242, 75, 0.08);
        }

        .btn-dark {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            border-radius: 9999px;
            background: #0C221E;
            color: #FFFDF8;
            padding: 0.75rem 1.5rem;
            font-weight: 700;
            font-size: 0.95rem;
            text-decoration: none;
        }

        .btn-dark:hover {
            background: var(--coral);
            color: #0C221E;
            transform: translateY(-2px);
        }

        .card-lift {
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .card-lift:hover {
            transform: translateY(-4px);
            box-shadow: 0 24px 50px -24px rgba(17, 32, 27, 0.28);
        }

        .arrow-slide {
            display: inline-block;
            transition: transform 0.3s ease;
        }

        a:hover .arrow-slide,
        button:hover .arrow-slide {
            transform: translateX(4px);
        }

        .tag-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            border-radius: 9999px;
            background: #EDE9DF;
            border: 1px solid #E2DCCF;
            color: #1F2A27;
            padding: 0.2rem 0.7rem;
            font-size: 0.75rem;
            white-space: nowrap;
        }

        .tag-badge.hot {
            background: #0C221E;
            color: #C9F24B;
            border-color: #0C221E;
        }

        .topic-card-thumb {
            aspect-ratio: 16/10;
            object-fit: cover;
            width: 100%;
            border-radius: 14px 14px 0 0;
            transition: transform 0.45s ease;
        }

        .topic-card-img-wrap {
            overflow: hidden;
            border-radius: 14px 14px 0 0;
            position: relative;
            aspect-ratio: 16/10;
            background: linear-gradient(135deg, #12332C, #0C221E);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .topic-card-img-wrap img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.45s ease;
        }

        .topic-card:hover .topic-card-img-wrap img {
            transform: scale(1.04);
        }

        .page-hero-grid {
            background-color: #0C221E;
            background-image:
                linear-gradient(115deg, rgba(12, 34, 30, 0.96) 10%, rgba(12, 34, 30, 0.92) 48%, rgba(18, 51, 44, 0.86) 100%),
                url('/assets/images/backpic/back-3.jpg');
            background-size: cover;
            background-position: center 30%;
        }

        .page-hero-grid::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(246, 243, 236, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(246, 243, 236, 0.04) 1px, transparent 1px);
            background-size: 48px 48px;
            mix-blend-mode: overlay;
        }

        .chip-filter {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.5rem 1.15rem;
            border-radius: 9999px;
            border: 1px solid var(--line);
            background: var(--card);
            color: var(--body);
            font-size: 0.83rem;
            font-weight: 600;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .chip-filter:hover {
            border-color: var(--coral);
            color: var(--coral);
            background: #fffdf8;
        }

        .chip-filter.current {
            background: var(--ink);
            color: var(--lime);
            border-color: var(--ink);
        }

        .horizontal-scroll {
            scrollbar-width: thin;
            scrollbar-color: var(--line) transparent;
        }

        .horizontal-scroll::-webkit-scrollbar {
            height: 4px;
        }

        .horizontal-scroll::-webkit-scrollbar-thumb {
            background: var(--line);
            border-radius: 4px;
        }

        .timeline-item {
            position: relative;
            padding-left: 2rem;
            padding-bottom: 2.2rem;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: 7px;
            top: 6px;
            width: 1px;
            height: calc(100% - 6px);
            background: var(--line);
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            left: 2px;
            top: 8px;
            width: 11px;
            height: 11px;
            border-radius: 9999px;
            background: var(--paper);
            border: 2px solid var(--coral);
        }

        .timeline-item:last-child {
            padding-bottom: 0;
        }

        .timeline-item:last-child::before {
            display: none;
        }

        .timeline-item:hover::after {
            background: var(--coral);
            box-shadow: 0 0 0 4px rgba(232, 118, 78, 0.2);
        }

        .quote-bar {
            border-left: 3px solid var(--coral);
            background: linear-gradient(90deg, rgba(201, 242, 75, 0.28), rgba(201, 242, 75, 0.03) 60%);
        }

        .dot-list li {
            position: relative;
            padding-left: 1.2rem;
        }

        .dot-list li::before {
            content: '▪';
            position: absolute;
            left: 0;
            top: 0;
            color: var(--deep);
            font-size: 0.9rem;
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease, padding 0.25s ease;
        }

        details[open] .faq-answer {
            max-height: none;
        }

        details[open] .faq-arrow {
            transform: rotate(45deg);
        }

        .faq-arrow {
            transition: transform 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 9999px;
            border: 1px solid var(--line);
            color: var(--ink);
            flex-shrink: 0;
        }

        details[open] .faq-arrow {
            background: var(--ink);
            color: var(--lime);
            border-color: var(--ink);
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
