:root {
    --bg-deep: #190611;
    --bg-dark: #1E0915;
    --panel-1: #2E0F20;
    --panel-2: #40162C;
    --pink: #F45C96;
    --wine: #B93A70;
    --gold: #FFC879;
    --border-light: rgba(255, 190, 215, .10);
    --border-strong: rgba(255, 190, 215, .20);
    --text-main: #FCE8F1;
    --text-dim: #C9A9BA;
    --text-dark: #2A0715;
  }

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

  body {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 90px; /* 给浮动下载框留空间 */
    overflow-x: hidden;
  }

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

  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }

  /* 顶部导航 */
  header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--gold);
  }
  .brand img {
    height: 34px;
    width: 34px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
  }
  .nav-desktop {
    display: none;
    gap: 24px;
    font-size: 15px;
  }
  .nav-desktop a {
    color: var(--text-dim);
    position: relative;
    padding: 6px 0;
    transition: color .3s;
  }
  .nav-desktop a:hover { color: var(--pink); }
  .nav-desktop a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--gold));
    transition: width .3s;
    border-radius: 2px;
  }
  .nav-desktop a:hover::after { width: 100%; }

  /* 移动端折叠菜单 */
  .menu-toggle {
    display: block;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
  }
  .nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--panel-1);
    border-bottom: 1px solid var(--border-strong);
    padding: 10px 16px;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 15px;
  }
  .nav-mobile a:last-child { border-bottom: none; }

  /* 首屏 */
  .hero {
    padding: 32px 0 20px;
    background: radial-gradient(circle at 50% 0%, rgba(244,92,150,0.15) 0%, transparent 60%), var(--bg-deep);
    position: relative;
    overflow: hidden;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  h1 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--pink), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-dark); /* fallback */
    font-weight: 800;
    letter-spacing: 1px;
    max-width: 800px;
  }
  .hero-desc {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 24px;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
    width: 100%;
  }
  .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(90deg, var(--pink), var(--gold));
    color: var(--text-dark);
    font-weight: 700;
    font-size: 15px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 15px rgba(244,92,150,0.3);
    white-space: nowrap;
  }
  .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,200,121,0.4);
  }
  .btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    box-shadow: none;
  }
  .btn-outline:hover {
    background: var(--panel-1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  }

  .hero-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 900px;
    margin-top: 16px;
  }
  .hero-gallery img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    object-fit: cover;
    aspect-ratio: 16/10;
    background: var(--panel-1);
  }

  /* 跑马灯 */
  .marquee {
    background: var(--panel-2);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
  }
  .marquee-track {
    display: inline-block;
    animation: marquee 20s linear infinite;
  }
  .marquee-track span {
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(90deg, #F45C96, #FFC879, #B93A70, #FFC879, #F45C96);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 24px;
  }
  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* 公共 section 样式 */
  section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-light);
  }
  .section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
  }
  .section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--pink), var(--gold));
    border-radius: 2px;
  }

  /* 游戏展示区 */
  .game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .game-card {
    background: var(--panel-1);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color .3s;
  }
  .game-card:hover { border-color: var(--pink); }
  .game-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--panel-2);
  }
  .game-card h3 {
    font-size: 17px;
    color: var(--pink);
  }
  .game-card p {
    font-size: 14px;
    color: var(--text-dim);
  }

  /* 漫画区 */
  .comic-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .comic-item {
    display: flex;
    gap: 16px;
    background: var(--panel-2);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 12px;
    align-items: center;
  }
  .comic-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--panel-1);
  }
  .comic-info h3 {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 4px;
  }
  .comic-info p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
  }

  /* 写真区 */
  .photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .photo-card {
    background: var(--panel-1);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
  }
  .photo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    background: var(--panel-2);
  }
  .photo-card p {
    padding: 12px;
    font-size: 14px;
    color: var(--text-main);
    text-align: center;
    border-top: 1px solid var(--border-light);
  }

  /* 问答 / 隐私 / 反馈公用 */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .faq-item {
    background: var(--panel-1);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
  }
  .faq-item h3 {
    font-size: 15px;
    color: var(--pink);
    margin-bottom: 8px;
  }
  .faq-item p {
    font-size: 14px;
    color: var(--text-dim);
  }

  .info-block {
    background: var(--panel-2);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
  }
  .info-block h3 {
    font-size: 17px;
    color: var(--gold);
    margin-bottom: 12px;
  }
  .info-block p {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
  }
  .info-block ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-dim);
    font-size: 14px;
  }
  .info-block ul li { margin-bottom: 6px; }

  /* 评论 */
  .comments-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .comment-card {
    display: flex;
    gap: 12px;
    background: var(--panel-1);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--border-light);
  }
  .comment-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
  }
  .comment-content p {
    font-size: 14px;
    color: var(--text-main);
  }
  .comment-content span {
    font-size: 12px;
    color: var(--text-dim);
    display: block;
    margin-top: 4px;
  }

  /* 下载区 */
  .download-panel {
    background: linear-gradient(135deg, var(--panel-2), var(--bg-dark));
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }
  .download-panel img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
  }
  .download-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .download-info h2 {
    font-size: 20px;
    color: var(--gold);
  }
  .download-info p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.8;
  }
  .download-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  /* 浮动下载框 */
  .floating-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 500px;
    background: var(--panel-2);
    border: 1px solid var(--border-strong);
    border-radius: 30px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 200;
    backdrop-filter: blur(10px);
  }
  .floating-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
  }
  .floating-left img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .floating-text {
    display: flex;
    flex-direction: column;
  }
  .floating-text span:first-child {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .floating-text span:last-child {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
  }
  .floating-btn {
    background: linear-gradient(90deg, var(--pink), var(--gold));
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
  }

  /* 页脚 */
  footer {
    background: var(--bg-dark);
    padding: 32px 16px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.8;
  }
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
  }
  .footer-nav a {
    color: var(--text-dim);
    transition: color .2s;
  }
  .footer-nav a:hover { color: var(--pink); }

  /* 弹出框 */
  .modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(25,6,17,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 20px;
  }
  .modal-overlay.show { display: flex; }
  .modal-box {
    background: var(--panel-1);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
  }
  .modal-box p {
    color: var(--text-main);
    font-size: 15px;
    margin-bottom: 16px;
  }
  .modal-box code {
    display: block;
    background: var(--bg-dark);
    padding: 10px;
    border-radius: 8px;
    color: var(--gold);
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
  }

  /* 响应式 */
  @media (min-width: 768px) {
    h1 { font-size: 36px; }
    .hero-gallery {
      grid-template-columns: repeat(3, 1fr);
    }
    .hero-gallery img { aspect-ratio: 3/4; }
    .game-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .photo-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .nav-desktop { display: flex; }
    .menu-toggle { display: none; }
    .nav-mobile { display: none !important; }
    .download-panel {
      flex-direction: row;
      text-align: left;
      align-items: center;
      justify-content: space-between;
    }
    .download-info {
      flex: 1;
      align-items: flex-start;
    }
    .download-btns {
      justify-content: flex-start;
    }
  }

  @media (min-width: 1024px) {
    h1 { font-size: 44px; }
    .game-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .photo-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .comic-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
  }