:root {
    --bg-main: #0B0D1F;
    --bg-dark: #141833;
    --panel-1: #1C2145;
    --panel-2: #262C58;
    --rainbow: linear-gradient(90deg, #FF3D81, #FF8A00, #FFE14D, #2ED47A, #00C2FF, #5B5BFF, #B93DFF);
    --border-1: rgba(255, 61, 129, .18);
    --border-2: rgba(255, 225, 77, .16);
    --border-3: rgba(0, 194, 255, .18);
    --text-main: #F4F6FF;
    --text-sub: #A9B0D6;
    --text-dark: #0B0D1F;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    padding-bottom: 70px;
  }

  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; border: none; }
  ul { list-style: none; }

  .rainbow-text {
    background: var(--rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .rainbow-border {
    position: relative;
    background: var(--panel-1);
    border-radius: var(--radius-md);
    z-index: 1;
  }
  .rainbow-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--rainbow);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    z-index: -1;
  }

  .btn-rainbow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rainbow);
    color: var(--text-dark);
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
  }
  .btn-rainbow:active, .btn-rainbow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 61, 129, 0.3);
  }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 31, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-1);
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text-main);
    letter-spacing: 0.5px;
  }
  .brand img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    object-fit: cover;
  }
  .nav-desktop {
    display: none;
    align-items: center;
    gap: 4px;
  }
  .nav-desktop a {
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-sub);
    border-radius: 20px;
    transition: color 0.2s, background 0.2s;
    position: relative;
  }
  .nav-desktop a:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
  }
  .nav-desktop a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--rainbow);
    border-radius: 2px;
    transition: transform 0.3s;
  }
  .nav-desktop a:hover::after {
    transform: translateX(-50%) scaleX(1);
  }

  /* Mobile Nav */
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
  }
  .mobile-nav-panel {
    display: none;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-1);
    padding: 10px 20px 20px;
  }
  .mobile-nav-panel.is-open {
    display: block;
  }
  .mobile-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .mobile-nav-links a {
    font-size: 14px;
    color: var(--text-sub);
    padding: 8px 16px;
    background: var(--panel-1);
    border-radius: 10px;
    border: 1px solid var(--border-1);
  }

  /* Hero */
  .hero {
    position: relative;
    padding: 40px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
  }
  .hero-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 61, 129, 0.2) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
  }
  .hero-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 800;
  }
  .hero-subtitle {
    font-size: 15px;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto 24px;
  }
  .hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  .hero-actions .btn-rainbow {
    padding: 10px 18px;
    font-size: 14px;
  }
  .hero-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 50px;
    color: var(--text-main);
    border: 1px solid var(--border-2);
    background: rgba(255,255,255,0.03);
    transition: 0.2s;
  }
  .hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.08);
  }

  .hero-showcase {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 0 30px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hero-showcase::-webkit-scrollbar { display: none; }
  .hero-showcase .showcase-item {
    flex: 0 0 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-1);
    transition: transform 0.3s;
  }
  .hero-showcase .showcase-item:hover {
    transform: translateY(-5px);
  }
  .hero-showcase .showcase-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  /* Marquee */
  .marquee-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--panel-1);
    border-top: 1px solid var(--border-1);
    border-bottom: 1px solid var(--border-1);
    padding: 10px 0;
    white-space: nowrap;
    display: flex;
  }
  .marquee-track {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
  }
  .marquee-track span {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    background: var(--rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 20px;
  }
  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Sections */
  .section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
  }
  .section-head {
    text-align: center;
    margin-bottom: 30px;
  }
  .section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
  }
  .section-desc {
    font-size: 14px;
    color: var(--text-sub);
  }

  /* Card panels */
  .panel {
    background: var(--panel-1);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    padding: 24px;
  }

  /* Match Grid */
  .match-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .match-card {
    background: var(--panel-1);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  .match-card .dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 8px;
    background: var(--rainbow);
  }
  .match-card .text {
    font-size: 14px;
    color: var(--text-main);
  }
  .match-card .text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--text-main);
  }

  /* Community List */
  .community-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .community-item {
    background: var(--panel-2);
    border-radius: var(--radius-md);
    padding: 18px;
    border-left: 4px solid transparent;
    border-image: var(--rainbow) 1;
  }
  .community-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-main);
  }
  .community-item p {
    font-size: 14px;
    color: var(--text-sub);
  }

  /* Interest Split */
  .interest-split {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .interest-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-3);
  }
  .interest-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
  .interest-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .interest-text li {
    font-size: 14px;
    color: var(--text-main);
    padding: 8px 12px;
    background: var(--panel-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-1);
  }

  /* Drama Showcase */
  .drama-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .drama-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-2);
    background: var(--panel-1);
    position: relative;
  }
  .drama-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .drama-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    padding: 2px 8px;
    background: var(--rainbow);
    color: var(--text-dark);
    border-radius: 10px;
    font-weight: 700;
  }

  /* FAQ Grid */
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .faq-item {
    background: var(--panel-1);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    border: 1px solid var(--border-3);
  }
  .faq-item .q {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .faq-item .q::before {
    content: "Q";
    font-size: 12px;
    font-weight: 800;
    color: #FF3D81;
    background: rgba(255, 61, 129, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
  }
  .faq-item .a {
    font-size: 14px;
    color: var(--text-sub);
    padding-left: 28px;
  }

  /* Comments */
  .comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .comment-item {
    display: flex;
    gap: 12px;
    background: var(--panel-2);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-1);
  }
  .comment-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-2);
  }
  .comment-body .name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
  }
  .comment-body .content {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 2px;
  }

  /* Download Section */
  .download-section {
    text-align: center;
  }
  .dl-panel {
    background: var(--panel-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  .dl-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
  }
  .dl-buttons .btn-rainbow {
    padding: 12px 26px;
  }
  .dl-figure {
    margin-top: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-3);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .dl-figure img {
    width: 100%;
    height: auto;
  }
  .steps-list {
    text-align: left;
    max-width: 600px;
    margin: 20px auto 0;
    background: var(--bg-dark);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-1);
  }
  .steps-list li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 12px;
  }
  .steps-list li:last-child { margin-bottom: 0; }
  .steps-list .step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rainbow);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Footer */
  .site-footer {
    border-top: 1px solid var(--border-3);
    background: var(--bg-dark);
    padding: 40px 20px 20px;
    font-size: 13px;
    color: var(--text-sub);
  }
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .footer-links a {
    color: var(--text-sub);
    transition: color 0.2s;
  }
  .footer-links a:hover {
    color: var(--text-main);
  }
  .footer-about {
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
  }
  .footer-about summary {
    cursor: pointer;
    font-size: 12px;
    color: var(--text-sub);
    list-style: none;
    display: inline-block;
  }
  .footer-about summary::-webkit-details-marker { display: none; }
  .footer-about[open] summary { color: var(--text-main); }
  .about-content {
    padding-top: 12px;
  }
  .about-content p {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
  }
  .about-links a {
    font-size: 12px;
    color: var(--text-sub);
  }
  .footer-bottom {
    font-size: 12px;
    color: rgba(169, 176, 214, 0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .footer-bottom a {
    color: rgba(169, 176, 214, 0.8);
  }

  /* Floating Download */
  .floating-download {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    background: rgba(28, 33, 69, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-1);
    border-radius: 50px;
    padding: 8px 12px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }
  .floating-download .info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
  }
  .floating-download .info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
  }
  .floating-download .text {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .floating-download .text span {
    font-size: 10px;
    color: var(--text-sub);
    display: block;
  }
  .floating-download .btn-rainbow {
    font-size: 13px;
    padding: 8px 18px;
    flex-shrink: 0;
  }

  /* Modal for Baidu */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.is-open { display: flex; }
  .modal-box {
    background: var(--panel-1);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 340px;
    text-align: center;
  }
  .modal-box .tip {
    font-size: 15px;
    margin-bottom: 16px;
    color: var(--text-main);
  }
  .modal-box .link-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 13px;
    color: #00C2FF;
    word-break: break-all;
    margin-bottom: 16px;
    user-select: all;
  }

  @media (min-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-showcase .showcase-item { flex: 0 0 180px; }
    .hero-showcase .showcase-item img { height: 250px; }
    .match-grid { grid-template-columns: repeat(2, 1fr); }
    .community-list { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: repeat(2, 1fr); }
    .drama-showcase { grid-template-columns: repeat(3, 1fr); }
    .interest-split { flex-direction: row; align-items: stretch; }
    .interest-image { flex: 4; }
    .interest-image img { height: 100%; min-height: 280px; }
    .interest-text { flex: 6; justify-content: center; }
    .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
    .footer-links { flex: 1 1 100%; order: 2; }
    .footer-bottom { flex: 1 1 100%; order: 3; flex-direction: row; justify-content: space-between; }
    .footer-about { flex: 1 1 100%; order: 4; }
    .section-title { font-size: 26px; }
    .floating-download { bottom: 24px; }
  }

  @media (min-width: 1024px) {
    .nav-desktop { display: flex; }
    .mobile-nav-toggle { display: none; }
    .mobile-nav-panel { display: none !important; }
    .hero-title { font-size: 44px; }
    .hero-showcase .showcase-item { flex: 0 0 220px; }
    .hero-showcase .showcase-item img { height: 300px; }
    .match-grid { grid-template-columns: repeat(3, 1fr); }
    .community-list { grid-template-columns: repeat(3, 1fr); }
    .faq-grid { grid-template-columns: repeat(3, 1fr); }
    .drama-showcase { grid-template-columns: repeat(4, 1fr); }
    .hero-showcase { gap: 20px; }
    .section { padding: 70px 20px; }
  }