:root {
    --bg-deep: #0d0f14;
    --bg-panel: rgba(22, 26, 35, 0.85);
    --bg-panel-hover: rgba(30, 35, 48, 0.95);
    --accent: #ff5c00;
    --accent-glow: rgba(255, 92, 0, 0.4);
    --accent-2: #ff2a4b;
    --text-main: #f0f2f5;
    --text-sub: #8b95a5;
    --text-faint: #5a6373;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --font: "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  img { display: block; max-width: 100%; object-fit: cover; }
  button { cursor: pointer; font-family: inherit; border: none; background: none; }

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

  .section-pad { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .section-head h2::before {
    content: "";
    display: block;
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--accent-glow);
  }
  .section-head p { color: var(--text-sub); font-size: 14px; padding-left: 16px; }

  /* ========== header ========== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 15, 20, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
  }
  .brand img { height: 32px; width: auto; }
  .nav-links { display: flex; gap: 4px; flex: 1; }
  .nav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-sub);
    transition: all .2s;
  }
  .nav-links a:hover, .nav-links a:focus {
    color: var(--accent);
    background: rgba(255, 92, 0, 0.1);
  }
  .nav-actions { display: flex; align-items: center; gap: 12px; }

  .search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 16px;
    transition: border-color .25s, box-shadow .25s;
  }
  .search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.18);
  }
  .search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 13px;
    width: 120px;
  }
  .search-box input::placeholder { color: var(--text-faint); }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all .22s;
    white-space: nowrap;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 92, 0, 0.35);
  }
  .btn-primary:hover, .btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 92, 0, 0.5);
  }
  .btn-primary:active { transform: scale(0.97); }
  .btn-ghost {
    border: 1px solid var(--border);
    color: var(--text-sub);
  }
  .btn-ghost:hover { color: var(--text-main); border-color: rgba(255,255,255,0.25); }

  .menu-toggle { display: none; }
  .menu-icon { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; }
  .menu-icon span { display: block; width: 22px; height: 2px; background: var(--text-main); border-radius: 2px; transition: .3s; }

  /* ========== hero ========== */
  .hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 92, 0, 0.13), transparent 55%),
                radial-gradient(ellipse at 80% 70%, rgba(255, 42, 75, 0.08), transparent 50%);
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  }
  .hero-inner { position: relative; z-index: 2; max-width: 720px; }
  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 92, 0, 0.12);
    border: 1px solid rgba(255, 92, 0, 0.3);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
  }
  .hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
  .hero h1 {
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #fff 40%, #ffb08a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-sub {
    font-size: 17px;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 580px;
  }
  .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-cta .btn { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
  .hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 48px;
    flex-wrap: wrap;
  }
  .hero-stats li { display: flex; flex-direction: column; }
  .hero-stats strong { font-size: 26px; font-weight: 800; color: #fff; }
  .hero-stats span { font-size: 13px; color: var(--text-faint); }

  /* ========== 弹幕 ========== */
  .danmaku-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }
  .dm {
    position: absolute;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    animation: dm-move linear infinite;
  }
  .dm.hot { color: var(--accent); }
  @keyframes dm-move {
    from { transform: translateX(100vw); }
    to { transform: translateX(-120%); }
  }

  /* ========== 排行榜 ========== */
  .rank-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
  .rank-tabs input { display: none; }
  .rank-tabs label {
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-sub);
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    transition: all .2s;
    cursor: pointer;
  }
  .rank-tabs label:hover { color: var(--text-main); background: rgba(255,255,255,0.09); }
  .rank-tabs input:checked + label {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 92, 0, 0.3);
  }
  .rank-panel { display: none; }
  #tab-anime:checked ~ .panel-anime,
  #tab-game:checked ~ .panel-game,
  #tab-orig:checked ~ .panel-orig,
  #tab-live:checked ~ .panel-live { display: block; animation: fadeUp .35s ease; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

  .rank-list { display: flex; flex-direction: column; gap: 10px; }
  .rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .22s;
  }
  .rank-item:hover {
    background: var(--bg-panel-hover);
    border-color: rgba(255,92,0,0.3);
    transform: translateX(4px);
  }
  .rank-num {
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    color: var(--text-faint);
    width: 28px;
    flex-shrink: 0;
  }
  .rank-item:nth-child(1) .rank-num { color: #ffd700; }
  .rank-item:nth-child(2) .rank-num { color: #c0c0c0; }
  .rank-item:nth-child(3) .rank-num { color: #cd7f32; }
  .rank-info { flex: 1; min-width: 0; }
  .rank-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rank-info p { font-size: 12px; color: var(--text-faint); }
  .rank-hot { font-size: 13px; color: var(--accent); font-weight: 600; flex-shrink: 0; }

  /* ========== 卡片网格 ========== */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .28s;
    display: flex;
    flex-direction: column;
  }
  .card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,92,0,0.35);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,92,0,0.1);
  }
  .card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1d26;
  }
  .card-cover img { width: 100%; height: 100%; transition: transform .4s; }
  .card:hover .card-cover img { transform: scale(1.06); }
  .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: var(--accent);
    border: 1px solid rgba(255,92,0,0.3);
  }
  .card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
  .card-body h3 { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-faint); margin-top: auto; }
  .card-meta span { display: inline-flex; align-items: center; gap: 3px; }
  .card-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
  .tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: rgba(255,255,255,0.06);
    color: var(--text-sub);
  }
  .tag.hot { background: rgba(255,92,0,0.15); color: var(--accent); }

  .action-row { display: flex; gap: 8px; margin-top: 12px; }
  .act-btn {
    flex: 1;
    padding: 6px 0;
    border-radius: 6px;
    font-size: 12px;
    background: rgba(255,255,255,0.06);
    color: var(--text-sub);
    border: 1px solid transparent;
    transition: all .2s;
    text-align: center;
  }
  .act-btn:hover { background: rgba(255,92,0,0.15); color: var(--accent); border-color: rgba(255,92,0,0.3); }
  .act-btn:active { transform: scale(0.96); }
  .act-btn.fav { color: var(--accent); }

  /* ========== 话题讨论 ========== */
  .topic-list { display: flex; flex-direction: column; gap: 16px; }
  .topic-item {
    display: flex;
    gap: 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all .25s;
  }
  .topic-item:hover { border-color: rgba(255,92,0,0.3); background: var(--bg-panel-hover); }
  .topic-thumb {
    width: 200px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .topic-thumb img { width: 100%; height: 100%; }
  .topic-main { flex: 1; min-width: 0; }
  .topic-main h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
  .topic-main p { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .topic-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-faint); flex-wrap: wrap; align-items: center; }
  .topic-meta .author { color: var(--text-sub); }

  /* ========== 评论 ========== */
  .comment-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
  }
  .comment-input-row { display: flex; gap: 12px; margin-bottom: 24px; }
  .comment-input-row input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
  }
  .comment-input-row input::placeholder { color: var(--text-faint); }
  .comment-input-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,92,0,0.15);
  }
  .emoji-btn {
    padding: 0 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 18px;
    transition: .2s;
  }
  .emoji-btn:hover { color: var(--accent); border-color: rgba(255,92,0,0.3); }
  .comment-list { display: flex; flex-direction: column; gap: 18px; }
  .comment-item { display: flex; gap: 12px; }
  .comment-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: #fff;
    flex-shrink: 0;
  }
  .comment-content { flex: 1; }
  .comment-content .name { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
  .comment-content .name span { font-weight: 400; color: var(--text-faint); margin-left: 8px; font-size: 12px; }
  .comment-content .text { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

  /* ========== 投票 ========== */
  .vote-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .vote-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
  }
  .vote-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
  .vote-option { margin-bottom: 16px; }
  .vote-option-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
  .vote-option-top span:last-child { color: var(--accent); font-weight: 600; }
  .vote-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.07);
    overflow: hidden;
  }
  .vote-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .4s;
  }
  .vote-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--text-sub);
    font-size: 14px;
    margin-top: 8px;
    transition: .2s;
    text-align: center;
  }
  .vote-btn:hover { background: rgba(255,92,0,0.15); color: var(--accent); }

  /* ========== 手机预览 ========== */
  .app-preview {
    background: radial-gradient(ellipse at 50% 30%, rgba(255,92,0,0.12), transparent 60%);
  }
  .phone-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
  }
  .phone-frame {
    background: #15181f;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 8px;
    transition: all .3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .phone-frame:hover {
    transform: translateY(-8px);
    border-color: rgba(255,92,0,0.4);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,92,0,0.2);
  }
  .phone-screen {
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    background: #0a0c10;
  }
  .phone-screen img { width: 100%; height: 100%; object-fit: cover; }
  .phone-caption { text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 10px; }

  .app-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
  }
  .qr-placeholder {
    width: 96px; height: 96px;
    border-radius: 12px;
    background: repeating-linear-gradient(45deg, #2a2e3a, #2a2e3a 4px, #1a1d26 4px, #1a1d26 8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--text-faint);
    flex-shrink: 0;
    border: 1px solid var(--border);
  }
  .app-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
  .app-info p { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
  .app-features { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-sub); }
  .app-features span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

  /* ========== 数据 ========== */
  .data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .data-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all .25s;
  }
  .data-card:hover { border-color: rgba(255,92,0,0.3); transform: translateY(-4px); }
  .data-card strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
  }
  .data-card span { font-size: 13px; color: var(--text-sub); }

  /* ========== footer ========== */
  .site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    background: rgba(10, 12, 16, 0.6);
  }
  .footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
  }
  .footer-brand h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
  .footer-brand p { font-size: 13px; color: var(--text-faint); line-height: 1.8; }
  .footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--text-sub); }
  .footer-col a { display: block; font-size: 13px; color: var(--text-faint); padding: 4px 0; transition: color .2s; }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-faint);
  }
  .footer-bottom a { color: var(--text-faint); }
  .footer-bottom a:hover { color: var(--accent); }
  .back-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 12px;
    transition: .2s;
  }
  .back-top:hover { border-color: var(--accent); color: var(--accent); }

  /* ========== 响应式 1024 ========== */
  @media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .phone-row { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .menu-icon { display: flex; }
    .menu-toggle:checked ~ .nav-links { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(13,15,20,0.98); backdrop-filter: blur(16px); padding: 16px 20px; border-bottom: 1px solid var(--border); }
    .menu-toggle:checked ~ .nav-links a { padding: 12px 0; }
  }

  /* ========== 响应式 768 ========== */
  @media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section-pad { padding: 48px 0; }
    .section-head h2 { font-size: 22px; }
    .section-head p { font-size: 13px; }
    .hero { padding: 64px 0 48px; }
    .hero-sub { font-size: 15px; }
    .hero-stats { gap: 24px; }
    .hero-stats strong { font-size: 22px; }
    .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; }
    .phone-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .vote-wrap { grid-template-columns: 1fr; }
    .topic-item { flex-direction: column; }
    .topic-thumb { width: 100%; }
    .footer-main { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .search-box { display: none; }
    .nav-actions .btn-ghost { display: none; }
    .app-download { flex-direction: column; text-align: center; }
    .app-features { justify-content: center; }
  }