:root {
    --bg-grad: linear-gradient(135deg, #F3F6FF 0%, #FFF0F9 100%);
    --text-main: #1D1A38;
    --text-sub: #6A6882;
    --pink: #FF5CCE;
    --mint: #00F5A0;
    --lemon: #FFD500;
    --glass: rgba(255, 255, 255, 0.65);
    --glass-heavy: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px rgba(46, 155, 255, 0.1), inset 0 0 0 1px var(--glass-border);
    --grad-btn: linear-gradient(90deg, #7C3AED 0%, #3B82F6 100%);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-grad);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
  }

  /* 背景光晕 */
  body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
  }
  body::before {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    top: -20vh; left: -10vw;
  }
  body::after {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(255, 92, 206, 0.15) 0%, transparent 70%);
    bottom: 10vh; right: -10vw;
  }

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

  section {
    padding: 90px 0 !important;
    position: relative;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }

  h2 {
    margin-bottom: 40px !important;
    font-size: 2.2rem;
    text-align: center;
    position: relative;
    font-weight: 800;
  }
  
  .text-grad {
    background: var(--grad-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* 顶栏 */
  header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, #7C3AED, #3B82F6) 1;
  }
  .header-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 64px; padding: 0 5%;
  }
  .logo { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 1.2rem; }
  .logo img { height: 32px; }
  .nav-links { display: flex; gap: 24px; font-weight: 500; color: var(--text-sub); }
  .nav-links a:hover { color: var(--text-main); }
  
  .btn {
    display: inline-block; padding: 10px 24px; border-radius: 50px;
    background: var(--grad-btn); color: #fff; font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3); }
  .btn-outline {
    background: transparent; border: 2px solid #7C3AED; color: #7C3AED;
  }

  /* 首屏 Hero */
  #hero {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 120px !important;
    position: relative;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    z-index: 0;
  }
  .hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px); }
  .hero-mask {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(243, 246, 255, 0.85) 0%, rgba(255, 240, 249, 0.85) 100%);
    z-index: 1;
  }
  .hero-card {
    position: relative; z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 32px; padding: 60px 40px; text-align: center;
    max-width: 800px; margin: 0 auto;
    box-shadow: var(--shadow);
  }
  .tag {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: rgba(124, 58, 237, 0.1); color: #7C3AED; font-weight: bold; font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .hero-card h1 {
    font-size: 3rem; line-height: 1.3; margin-bottom: 24px;
  }
  .hero-card p {
    color: var(--text-sub); font-size: 1.1rem; margin-bottom: 40px; max-width: 600px; margin-inline: auto;
  }
  .hero-actions { display: flex; gap: 16px; justify-content: center; }

  /* 数据条 */
  #define-bar {
    background: var(--grad-btn); color: #fff; padding: 30px 0 !important;
  }
  .bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
  .bar-slogan { font-size: 1.5rem; font-weight: bold; }
  .bar-stats { display: flex; gap: 40px; }
  .stat-item { text-align: center; }
  .stat-num { display: block; font-size: 2rem; font-weight: 900; }
  .stat-text { font-size: 0.9rem; opacity: 0.9; }

  /* 今日片单 */
  .today-grid {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px;
  }
  .main-media {
    background: var(--glass); backdrop-filter: blur(12px); border-radius: 24px;
    box-shadow: var(--shadow); overflow: hidden; position: relative;
    display: flex; flex-direction: column;
  }
  .main-media img { width: 100%; height: 400px; object-fit: cover; }
  .media-info { padding: 24px; }
  .media-info h3 { font-size: 1.5rem; margin-bottom: 12px; }
  .media-info p { color: var(--text-sub); }
  .badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--pink); color: #fff; padding: 4px 12px;
    border-radius: 20px; font-size: 0.8rem; font-weight: bold;
  }
  .list-side { display: flex; flex-direction: column; gap: 24px; }
  .list-item {
    display: flex; align-items: center; gap: 16px; padding: 16px;
    background: linear-gradient(135deg, #FFF0F9 0%, #F3F6FF 100%);
    border-radius: 16px; transition: transform 0.3s;
  }
  .list-item:hover { transform: translateX(5px); }
  .item-num { font-size: 2rem; font-weight: 900; background: var(--grad-btn); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .list-item img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
  .list-text { font-weight: bold; font-size: 1rem; }

  /* 题材分类 */
  .bookmarks-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
  }
  .bookmark {
    background: var(--glass); backdrop-filter: blur(12px); border-radius: 16px;
    box-shadow: var(--shadow); padding: 30px 10px; text-align: center;
    position: relative; transition: all 0.3s; cursor: pointer;
  }
  .bookmark::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 20px; height: 10px; border-radius: 0 0 10px 10px; background: rgba(255,255,255,0.8);
  }
  .bookmark:nth-child(odd) { transform: translateY(20px); }
  .bookmark:nth-child(1) { background: #FFF0F9; }
  .bookmark:nth-child(2) { background: #F3F6FF; }
  .bookmark:nth-child(3) { background: #F5F0FF; }
  .bookmark:nth-child(4) { background: #FFFAF0; }
  .bookmark:nth-child(5) { background: #F0FFF9; }
  .bookmark:nth-child(6) { background: #FFF0F9; }
  .bookmark:hover { transform: rotate(-2deg) translateY(-10px); }
  .bookmark h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .bookmark p { font-size: 0.8rem; color: var(--text-sub); }

  /* 使用说明 */
  .howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .steps-list { display: flex; flex-direction: column; gap: 24px; }
  .step {
    display: flex; align-items: center; gap: 20px;
  }
  .step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad-btn); color: #fff; display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem; font-weight: bold; flex-shrink: 0;
  }
  .step-text h3 { font-size: 1.2rem; margin-bottom: 4px; }
  .step-text p { font-size: 0.9rem; color: var(--text-sub); }
  .info-cards { display: flex; flex-direction: column; gap: 24px; }
  .info-card {
    background: var(--glass-heavy); padding: 24px; border-radius: 16px;
    border-left: 6px solid var(--pink); box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }

  /* 原画展 */
  #gallery { background: #0B0F19; color: #fff; }
  #gallery h2 { color: #fff; }
  .gallery-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
  .gallery-text h3 { font-size: 2rem; margin-bottom: 20px; color: #fff; }
  .gallery-text p { color: #A0A5B5; margin-bottom: 30px; }
  .gallery-images {
    display: flex; justify-content: center; gap: 20px; position: relative;
  }
  .gallery-img-wrap {
    width: 140px; height: 240px; border-radius: 12px; overflow: hidden;
    box-shadow: 0 0 25px rgba(46,155,255,0.4); transition: all 0.4s;
  }
  .gallery-img-wrap:nth-child(1) { transform: rotate(-4deg) translateY(15px); }
  .gallery-img-wrap:nth-child(2) { transform: rotate(2deg) translateY(-10px); }
  .gallery-img-wrap:nth-child(3) { transform: rotate(-2deg) translateY(20px); }
  .gallery-img-wrap:nth-child(4) { transform: rotate(4deg) translateY(5px); }
  .gallery-img-wrap:hover { transform: rotate(0) translateY(0) scale(1.1); z-index: 10; box-shadow: 0 0 40px rgba(46,155,255,0.8); }
  .gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

  /* 人气热榜 */
  .board-grid {
    background: var(--glass); padding: 40px; border-radius: 24px; box-shadow: var(--shadow);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  }
  .board-card {
    background: linear-gradient(135deg, #F3F6FF, #E8EBFF); border-radius: 16px; padding: 24px;
    position: relative; overflow: hidden;
  }
  .board-rank {
    position: absolute; top: 10px; left: 10px; font-size: 4rem; font-weight: 900;
    -webkit-text-stroke: 2px #7C3AED; color: transparent; opacity: 0.3;
  }
  .board-title { font-size: 1.1rem; font-weight: bold; margin-top: 30px; margin-bottom: 16px; position: relative; z-index: 1;}
  .progress-bg { height: 6px; background: rgba(0,0,0,0.05); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
  .progress-bar { height: 100%; background: var(--grad-btn); border-radius: 3px; }
  .board-data { font-size: 0.8rem; color: #7C3AED; font-weight: bold; text-align: right; }

  /* 票根评价墙 */
  .tickets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ticket {
    padding: 30px 24px; position: relative;
    clip-path: polygon(0% 0%, 100% 0%, 100% 40%, 95% 50%, 100% 60%, 100% 100%, 0% 100%, 0% 60%, 5% 50%, 0% 40%);
    box-shadow: var(--shadow);
  }
  .ticket:nth-child(1) { background: #FFF0F9; }
  .ticket:nth-child(2) { background: #F3F6FF; }
  .ticket:nth-child(3) { background: #FFFAF0; }
  .ticket:nth-child(4) { background: #F3F6FF; }
  .ticket:nth-child(5) { background: #FFF0F9; }
  .ticket:nth-child(6) { background: #F0FFF9; }
  .ticket-header { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-sub); margin-bottom: 16px; }
  .stars { color: var(--pink); }
  .ticket-quote { font-size: 1.1rem; font-weight: bold; margin-bottom: 20px; }
  .ticket-user { display: flex; align-items: center; gap: 12px; }
  .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-btn); }

  /* FAQ */
  .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  details {
    background: var(--glass); border-radius: 12px; padding: 16px; cursor: pointer;
  }
  summary {
    font-weight: bold; list-style: none; display: flex; justify-content: space-between; align-items: center;
  }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: '+'; font-size: 1.2rem; color: #7C3AED; transition: transform 0.3s; }
  details[open] summary::after { transform: rotate(45deg); }
  details p { margin-top: 12px; color: var(--text-sub); font-size: 0.95rem; }

  /* 下载专区 */
  .download-box {
    background: var(--glass-heavy); border-radius: 24px; padding: 40px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
  }
  .download-box::before, .download-box::after {
    content: ''; position: absolute; width: 30px; height: 30px; border: 4px solid #7C3AED;
  }
  .download-box::before { top: -4px; left: -4px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
  .download-box::after { bottom: -4px; right: -4px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }
  
  .download-content h3 { font-size: 1.8rem; margin-bottom: 24px; }
  .input-group { margin-bottom: 24px; }
  .input-group input {
    width: 100%; padding: 16px; border-radius: 12px; border: none;
    background: #fff; box-shadow: inset 0 2px 8px rgba(0,0,0,0.05); outline: none;
  }
  .huge-btn { display: block; width: 100%; text-align: center; padding: 18px; font-size: 1.2rem; border-radius: 12px; }
  .version-list { margin-top: 24px; font-size: 0.9rem; color: var(--text-sub); }
  .download-poster img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

  /* 页脚 */
  footer { background: rgba(255, 255, 255, 0.5); padding: 60px 0 20px; border-top: 1px solid rgba(124,58,237,0.1); }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
  .footer-brand h4 { font-size: 1.5rem; margin-bottom: 12px; }
  .footer-brand p { color: var(--text-sub); }
  .footer-links h5 { margin-bottom: 16px; font-size: 1.1rem; }
  .footer-links ul li { margin-bottom: 8px; color: var(--text-sub); }
  .footer-cta .btn { width: 100%; text-align: center; margin-bottom: 12px; }
  .footer-cta p { font-size: 0.8rem; color: var(--text-sub); text-align: center; }
  .footer-bottom { text-align: center; font-size: 0.8rem; color: #999; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.05); }

  /* 响应式 */
  @media (max-width: 1024px) {
    .today-grid, .howto-grid, .gallery-layout, .download-box { grid-template-columns: 1fr; }
    .bookmarks-grid { grid-template-columns: repeat(3, 1fr); }
    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .tickets-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    .hero-card h1 { font-size: 2rem; }
    .nav-links { display: none; }
    .bookmarks-grid { grid-template-columns: repeat(2, 1fr); }
    .board-grid, .tickets-grid, .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-images { flex-wrap: wrap; }
  }