:root {
    --midnight: #0B0C10;
    --purple: #8A2BE2;
    --neon-blue: #00F0FF;
    --magenta: #FF007F;
    --text-main: #E8EAF6;
    --text-muted: #9FA8C0;
    --glass: rgba(11, 12, 16, 0.72);
    --card-bg: #151722;
  }

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

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--midnight);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
  }

  /* 全局网点纸背景 */
  .halftone-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(var(--purple) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.08;
    animation: bgPan 20s linear infinite;
  }
  @keyframes bgPan {
    0% { background-position: 0 0; }
    100% { background-position: 24px 24px; }
  }

  /* 鼠标光晕 */
  .mouse-glow {
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: transform 0.1s ease-out;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
  }

  /* 顶部悬浮导航 */
  header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
  }
  header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neon-blue);
  }
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  .logo-group img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--purple));
  }
  .nav-links {
    display: none;
    gap: 25px;
  }
  .nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
  }
  .nav-links a:hover, .nav-links a.active {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
  }
  .btn-highlight {
    display: inline-block;
    background: var(--purple);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
    transition: all 0.3s;
  }
  .btn-highlight:hover {
    background: var(--magenta);
    box-shadow: 0 0 20px var(--magenta);
  }

  /* 首屏 Hero */
  #home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }
  .hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--neon-blue), var(--purple), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.4));
  }
  .hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
  }
  .hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  .btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
  }
  .btn-primary {
    background: linear-gradient(45deg, var(--purple), var(--magenta));
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
  }
  .btn-primary:hover {
    box-shadow: 0 0 35px rgba(255, 0, 127, 0.8);
    transform: translateY(-2px);
  }
  .btn-secondary {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
  }
  .btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  }
  .hero-covers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    perspective: 1000px;
  }
  .hero-covers img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: transform 0.4s;
  }
  .hero-covers img:nth-child(1) { transform: translateY(20px) rotate(-2deg); }
  .hero-covers img:nth-child(2) { transform: translateY(0) rotate(1deg); }
  .hero-covers img:nth-child(3) { transform: translateY(-10px) rotate(2deg); }
  .hero-covers img:nth-child(4) { transform: translateY(30px) rotate(-1deg); }
  .hero-covers:hover img {
    transform: scale(1.05) rotate(0);
    z-index: 10;
    position: relative;
  }

  .floating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
  }
  .tag {
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid var(--purple);
    color: var(--text-main);
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    animation: floatTag 3s ease-in-out infinite alternate;
  }
  .tag:nth-child(2) { animation-delay: 0.5s; border-color: var(--neon-blue); background: rgba(0, 240, 255, 0.1); }
  .tag:nth-child(3) { animation-delay: 1s; border-color: var(--magenta); background: rgba(255, 0, 127, 0.1); }
  .tag:nth-child(4) { animation-delay: 1.5s; }
  @keyframes floatTag {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
  }

  /* 韩漫大全 */
  section {
    padding: 80px 0;
    position: relative;
  }
  .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #fff;
  }
  .section-title span {
    color: var(--neon-blue);
  }
  .masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .comic-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s;
    position: relative;
  }
  .comic-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15);
  }
  .card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 140%; /* 竖版比例 */
    overflow: hidden;
  }
  .card-img-wrap img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  .comic-card:hover .card-img-wrap img {
    transform: scale(1.08);
  }
  .card-info {
    padding: 15px;
  }
  .card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
  }
  .card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .card-tags span {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-muted);
  }
  .read-btn {
    display: block;
    text-align: center;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 8px 0;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
  }
  .read-btn:hover {
    background: var(--neon-blue);
    color: #000;
  }

  /* 热门榜单 */
  #ranking .rank-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .rank-list {
    list-style: none;
  }
  .rank-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s;
  }
  .rank-item:hover {
    background: rgba(138, 43, 226, 0.1);
    border-left-color: var(--magenta);
    transform: translateX(5px);
  }
  .rank-num {
    font-size: 1.5rem;
    font-weight: 900;
    width: 40px;
    text-align: center;
    color: var(--text-muted);
  }
  .rank-item:nth-child(1) .rank-num { color: #FFD700; text-shadow: 0 0 10px #FFD700; }
  .rank-item:nth-child(2) .rank-num { color: #C0C0C0; text-shadow: 0 0 10px #C0C0C0; }
  .rank-item:nth-child(3) .rank-num { color: #CD7F32; text-shadow: 0 0 10px #CD7F32; }
  .rank-info {
    flex: 1;
    margin-left: 15px;
  }
  .rank-info h4 {
    font-size: 1.1rem;
    color: #fff;
  }
  .rank-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  .rank-heat {
    color: var(--magenta);
    font-weight: bold;
    font-size: 0.9rem;
  }
  .rank-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .rank-visual img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 3/4;
  }

  /* 阅读特色 */
  .feature-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
  }
  .feature-row:nth-child(even) {
    flex-direction: column-reverse;
  }
  .feature-text h3 {
    font-size: 1.8rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
  }
  .feature-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
  }
  .feature-img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
  }

  /* App下载 */
  #app {
    background: linear-gradient(180deg, transparent 0%, rgba(138, 43, 226, 0.1) 50%, transparent 100%);
    text-align: center;
  }
  .app-box {
    background: rgba(21, 23, 34, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
  }
  .app-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .app-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
  }
  .download-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
  }
  .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    padding: 15px 20px;
    border-radius: 12px;
    background: #1a1c29;
    border: 1px solid var(--purple);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .btn-download:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  }
  .btn-download svg {
    width: 24px; height: 24px;
    fill: currentColor;
  }

  /* 每日更新 */
  .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid rgba(138, 43, 226, 0.3);
  }
  .tl-item {
    position: relative;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.02);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
  }
  .tl-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
  }
  .tl-item h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
  }
  .new-badge {
    background: var(--magenta);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    animation: blink 1.5s infinite;
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  /* 漫迷热评 */
  .review-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
  }
  .review-scroll::-webkit-scrollbar { display: none; }
  .review-card {
    flex: 0 0 280px;
    background: var(--card-bg);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
  }
  .review-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0,240,255,0.1);
  }
  .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--purple), var(--neon-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
  }
  .stars {
    color: #FFD700;
    font-size: 0.8rem;
  }
  .review-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  /* FAQ */
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }
  .faq-item {
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    background: var(--card-bg);
    overflow: hidden;
    transition: all 0.3s;
  }
  .faq-item:hover {
    border-color: var(--neon-blue);
  }
  .faq-q {
    padding: 18px 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    list-style: none;
  }
  .faq-q::-webkit-details-marker { display: none; }
  .faq-q::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--neon-blue);
    transition: transform 0.3s;
  }
  details[open] .faq-q::after {
    content: '-';
    transform: rotate(180deg);
  }
  .faq-a {
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  /* 订阅 */
  #join {
    text-align: center;
  }
  .subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
  }
  .subscribe-form input {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    outline: none;
  }
  .subscribe-form input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0,240,255,0.2);
  }
  .subscribe-form button {
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: var(--purple);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
  }
  .subscribe-form button:hover {
    background: var(--magenta);
  }

  /* Footer */
  footer {
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    padding: 50px 0 30px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #08090c;
  }
  footer a {
    color: var(--text-muted);
    text-decoration: none;
  }
  footer a:hover {
    color: var(--neon-blue);
  }
  .footer-meta {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  /* 响应式 768px */
  @media (min-width: 768px) {
    .nav-links { display: flex; }
    .hero-grid {
      flex-direction: row;
      align-items: center;
    }
    .hero-text { flex: 1; }
    .hero-covers { flex: 1; }
    .hero-text h1 { font-size: 3.5rem; }
    .masonry-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .rank-layout {
      flex-direction: row;
      align-items: center;
    }
    .rank-list { flex: 1; }
    .rank-visual { flex: 1; grid-template-columns: 1fr 1fr; }
    .feature-row {
      flex-direction: row;
      justify-content: space-between;
      text-align: left;
    }
    .feature-row:nth-child(even) {
      flex-direction: row-reverse;
    }
    .feature-text { flex: 1; padding: 0 30px; }
    .feature-img { width: 40%; }
    .download-group {
      flex-direction: row;
    }
    .subscribe-form {
      flex-direction: row;
    }
    .subscribe-form input { flex: 1; }
  }

  /* 响应式 1024px */
  @media (min-width: 1024px) {
    .masonry-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    .hero-text h1 { font-size: 4rem; }
    .section-title { font-size: 2.5rem; }
    .app-box { padding: 60px; }
  }