/* ============================================================
   OGlink 设计系统 - Neo-Retro（新复古）
   基底：深夜蓝黑 | 主色：复古绿 | 强调：像素橙
   装饰：CRT 扫描线 / 像素颗粒 / 街机徽章
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --og-bg: #0f1729;
  --og-bg-deep: #0a0f1a;
  --og-bg-mid: #16203a;
  --og-card: rgba(36, 48, 66, 0.45);
  --og-card-solid: #1a2332;
  --og-border: rgba(55, 65, 81, 0.45);
  --og-border-hover: rgba(76, 175, 80, 0.45);
  --og-green: #4caf50;
  --og-green-light: #66bb6a;
  --og-green-soft: rgba(76, 175, 80, 0.12);
  --og-orange: #ff6b35;
  --og-orange-light: #ff8c5a;
  --og-yellow: #ffd54f;
  --og-text: #e2e8f0;
  --og-text-dim: #94a3b8;
  --og-text-mute: #64748b;
  --og-radius: 14px;
  --og-radius-sm: 10px;
  --og-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  --og-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--og-bg);
  color: var(--og-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

::selection { background: rgba(76, 175, 80, 0.35); color: #fff; }

/* ---------- Header ---------- */
.header {
  background: rgba(15, 23, 41, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--og-border);
  position: sticky; top: 0; z-index: 50;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #fff; transition: opacity .25s; }
.logo:hover { opacity: .85; }
.logo svg { width: 32px; height: 32px; color: var(--og-green); }
.nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav a { padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #d1d5db; transition: all .25s; }
.nav a:hover, .nav a.active { background: var(--og-green-soft); color: var(--og-green); }
.mobile-menu-btn { display: block; background: none; border: none; color: #d1d5db; font-size: 24px; cursor: pointer; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(15, 23, 41, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--og-border); padding: 16px; flex-direction: column; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 16px; border-radius: 8px; font-size: 14px; color: #d1d5db; }
.mobile-nav a:hover, .mobile-nav a.active { background: var(--og-green-soft); color: var(--og-green); }

/* ---------- Buttons ---------- */
/* 主题绿色按钮，用于首页搜索修复方案 */
.btn-green,
.hero-search .btn-green,
.hero-search button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3ddc84 0%, #28a745 100%);
  color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 15px;
  padding: 0 32px;
  border-radius: 0 10px 10px 0;
  transition: all .3s var(--og-ease);
  box-shadow: 0 4px 14px rgba(40, 167, 69, 0.30);
  letter-spacing: .3px;
  height: 48px;
  white-space: nowrap;
  text-align: center;
}
.btn-green:hover,
.hero-search .btn-green:hover,
.hero-search button[type="submit"]:hover {
  background: linear-gradient(135deg, #4ce896 0%, #34c257 100%);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.45);
  transform: translateY(-1px);
}

/* 首页 Hero 下载按钮（大一号 + 免费修复徽章） */
.hero .hero-sub-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}

@media (max-width: 639px) {
    .hero .hero-sub-actions {
        margin-top: 14px;
    }
}

/* 紧跟 hero 的首个 section（症状区）减少顶部留白，视觉上更靠近 CTA 按钮 */
.hero + .section {
    padding-top: 48px;
}
.hero-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    padding: 15px 38px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--og-orange) 0%, #ff8c5a 100%);
    color: #fff;
    text-decoration: none;
    transition: all .25s var(--og-ease);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.30);
    letter-spacing: .3px;
}
.hero-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255, 107, 53, 0.45);
    background: linear-gradient(135deg, #ff7a45 0%, #ff9d6e 100%);
    color: #fff;
}
.hero-download-btn .hd-arrow {
    display: inline-block;
    width: 9px; height: 9px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 3px;
    flex: 0 0 auto;
    transition: transform .25s var(--og-ease);
}
.hero-download-btn:hover .hd-arrow { transform: translateY(3px); }
.hero-download-badge {
    position: absolute;
    top: -10px;
    right: -14px;
    background: #fff;
    color: var(--og-orange);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: .3px;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.30);
    transform: rotate(6deg);
    line-height: 1.4;
}
@media (max-width: 600px) {
    .hero-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    padding: 15px 38px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--og-orange) 0%, #ff8c5a 100%);
    color: #fff;
    text-decoration: none;
    transition: all .25s var(--og-ease);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.30);
    letter-spacing: .3px;
}
}
/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--og-orange), var(--og-orange-light));
  color: #fff; padding: 13px 32px; border-radius: var(--og-radius-sm);
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  transition: all .3s var(--og-ease);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  position: relative; overflow: hidden;
  text-align: center;
}
/* 检测页按钮额外居中 */
#detect-btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 107, 53, 0.45); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--og-green); padding: 13px 32px;
  border-radius: var(--og-radius-sm); font-size: 16px; font-weight: 600;
  border: 2px solid var(--og-green); cursor: pointer; transition: all .3s var(--og-ease);
}
.btn-outline:hover { background: var(--og-green); color: #fff; box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 8px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);
  color: #fff; padding: 14px 36px; border-radius: 12px; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer; transition: all .28s;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  letter-spacing: 0.4px;
  position: relative; overflow: hidden;
}
.btn-download::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left .5s;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(76, 175, 80, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-download:hover::before { left: 100%; }
.btn-download:active { transform: translateY(0); }

/* 客户端卡片里的下载按钮：更醒目 */
.client-card .btn-download {
  padding: 16px 44px; font-size: 17px; border-radius: 14px;
  background: linear-gradient(135deg, #43A047 0%, #4CAF50 50%, #66BB6A 100%);
}
@media (max-width: 767px) {
  .client-card .btn-download { width: 100%; padding: 14px 24px; }
}

/* 工具卡片下载按钮也略加大 */
.tool-card .btn-download { padding: 10px 22px; font-size: 14px; border-radius: 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--og-card); backdrop-filter: blur(8px);
  border: 1px solid var(--og-border); border-radius: 16px;
  overflow: hidden; transition: all .35s var(--og-ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--og-border-hover); box-shadow: var(--og-shadow); }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-dark { background: var(--og-bg); }
.section-mid { background: var(--og-bg-mid); }
.section-title { font-size: 32px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 12px; letter-spacing: -0.3px; }
.section-subtitle { color: var(--og-text-dim); text-align: center; margin-bottom: 48px; font-size: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }
.section-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  color: var(--og-green); text-transform: uppercase; margin-bottom: 10px;
}

/* ---------- Grid ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-6 { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Badge ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 9999px; font-size: 12px; font-weight: 500; }
.badge-blue { background: rgba(74, 144, 226, 0.15); color: #60a5fa; }
.badge-green { background: rgba(76, 175, 80, 0.15); color: #4ade80; }
.badge-gray { background: rgba(75, 85, 99, 0.2); color: #9ca3af; }
.badge-orange { background: rgba(255, 107, 53, 0.15); color: #fb923c; }
.badge-yellow { background: rgba(255, 213, 79, 0.12); color: var(--og-yellow); }

/* ---------- Search ---------- */
.search-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.search-bar input, .search-bar select {
  background: rgba(36, 48, 66, 0.6); border: 1px solid var(--og-border);
  border-radius: 8px; padding: 10px 16px; color: var(--og-text); font-size: 14px;
  outline: none; transition: border-color .25s;
}
.search-bar input:focus, .search-bar select:focus { border-color: var(--og-green); }
.search-bar input { flex: 1; min-width: 200px; }
.search-bar button {
  background: linear-gradient(135deg, var(--og-green), var(--og-green-light));
  color: #fff; border: none; border-radius: 8px; padding: 10px 24px;
  font-size: 14px; cursor: pointer; transition: all .25s;
}
.search-bar button:hover { box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; font-size: 14px;
  background: rgba(36, 48, 66, 0.6); color: #d1d5db; border: 1px solid var(--og-border); transition: all .25s;
}
.pagination a:hover { background: var(--og-green); color: #fff; border-color: var(--og-green); }
.pagination .active, .pagination li.active span { background: var(--og-green); color: #fff; border-color: var(--og-green); }
.pagination .disabled { opacity: .5; cursor: not-allowed; }
.pagination ul { display: flex; gap: 8px; list-style: none; }

/* ---------- FAQ Accordion ---------- */
.faq-item { background: rgba(36, 48, 66, 0.6); border: 1px solid var(--og-border); border-radius: var(--og-radius-sm); margin-bottom: 8px; overflow: hidden; transition: all .25s; }
.faq-item:hover { border-color: rgba(76, 175, 80, 0.3); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; font-weight: 500; color: #fff; transition: all .25s; gap: 12px; }
.faq-question:hover { color: var(--og-green); }
.faq-answer { display: none; padding: 0 20px 16px; color: #d1d5db; font-size: 14px; line-height: 1.8; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.arrow { transition: transform .25s; color: #9ca3af; flex-shrink: 0; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer strong { color: #fff; }
.faq-more-link { display: inline-block; margin-top: 6px; color: var(--og-green); font-size: 13px; font-weight: 500; }
.faq-more-link:hover { text-decoration: underline; }

/* ---------- FAQ Tabs ---------- */
.faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.faq-tab { padding: 8px 16px; border-radius: 8px; font-size: 14px; background: rgba(36, 48, 66, 0.6); color: #d1d5db; border: 1px solid var(--og-border); cursor: pointer; transition: all .25s; }
.faq-tab:hover, .faq-tab.active { background: var(--og-green); color: #fff; border-color: var(--og-green); }

/* ---------- Detail page ---------- */
.detail-header { display: flex; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.detail-cover { flex-shrink: 0; width: 100%; max-width: 300px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; }
.detail-info { flex: 1; min-width: 260px; }
.detail-info h1 { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-tags { margin-top: 16px; }
.detail-tags h3 { font-size: 15px; font-weight: 600; color: #9ca3af; margin-bottom: 8px; }
.detail-tags .tags-list { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-tags .tag { background: rgba(75, 85, 99, 0.2); color: #d1d5db; font-size: 13px; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(75, 85, 99, 0.3); }
.detail-body { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .detail-body { grid-template-columns: 2fr 1fr; } }
.step-content { color: #d1d5db; line-height: 1.9; font-size: 15px; }
.step-content p { margin-bottom: 16px; }
.step-content strong { color: #fff; font-weight: 600; }
.step-content h2 { color: #fff; margin: 28px 0 14px; font-weight: 700; font-size: 21px; padding-left: 12px; border-left: 3px solid var(--og-green); }
.step-content h3, .step-content h4 { color: #fff; margin: 20px 0 10px; font-weight: 600; font-size: 17px; }
.step-content ul, .step-content ol { padding-left: 24px; margin-bottom: 16px; }
.step-content li { margin-bottom: 8px; }
.step-content a { color: var(--og-green); }
.step-content a:hover { text-decoration: underline; }
.step-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.step-content th, .step-content td { border: 1px solid var(--og-border); padding: 8px 12px; text-align: left; }
.step-content th { background: rgba(36, 48, 66, 0.8); color: #fff; }
.sidebar-card { background: rgba(36, 48, 66, 0.6); border: 1px solid var(--og-border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.sidebar-card h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.download-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--og-border); }
.download-item:last-child { border-bottom: none; }
.dl-name { font-size: 14px; color: #e2e8f0; font-weight: 500; }
.dl-size { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* ---------- Retro cover placeholder (无封面时) ---------- */
.retro-cover {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
  background:
    linear-gradient(transparent 95%, rgba(76, 175, 80, 0.08) 95%) 0 0 / 100% 8px,
    radial-gradient(ellipse at 30% 25%, rgba(76, 175, 80, 0.18), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(255, 107, 53, 0.12), transparent 50%),
    linear-gradient(160deg, #1c2942 0%, #141c30 100%);
}
.retro-cover::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 4px);
  opacity: .5;
}
.retro-cover .rc-glyph {
  font-size: 52px; line-height: 1;
  font-family: 'Courier New', monospace; font-weight: 700;
  color: var(--og-green);
  text-shadow: 3px 3px 0 rgba(76, 175, 80, 0.25), -1px -1px 0 rgba(255, 107, 53, 0.3);
  letter-spacing: 2px; z-index: 1;
}
.retro-cover .rc-title {
  font-size: 13px; font-weight: 600; color: var(--og-text-dim);
  font-family: 'Courier New', monospace; letter-spacing: 1px; z-index: 1;
  max-width: 82%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.retro-cover .rc-year {
  font-size: 11px; color: var(--og-orange); font-family: 'Courier New', monospace;
  letter-spacing: 2px; z-index: 1;
}

/* ---------- Feedback ---------- */
.feedback { margin-top: 32px; padding: 24px; background: rgba(36, 48, 66, 0.6); border-radius: 12px; border: 1px solid var(--og-border); text-align: center; }
.feedback h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.feedback-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.feedback-btn { padding: 10px 24px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all .25s; border: none; }
.feedback-success { background: linear-gradient(135deg, var(--og-green), var(--og-green-light)); color: #fff; }
.feedback-success:hover { box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3); }
.feedback-fail { background: rgba(55, 65, 81, 0.5); color: #d1d5db; }
.feedback-fail:hover { background: rgba(75, 85, 99, 0.5); }
.feedback-btn:disabled { opacity: .55; cursor: not-allowed; }
.feedback-stats { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.feedback-rate { font-size: 26px; font-weight: 800; color: var(--og-green); font-family: 'Courier New', monospace; }
.feedback-rate-label { font-size: 13px; color: var(--og-text-dim); }
.feedback-bar { width: 100%; max-width: 320px; height: 8px; background: rgba(55, 65, 81, 0.5); border-radius: 4px; overflow: hidden; margin: 0 auto 16px; }
.feedback-bar .fill { height: 100%; background: linear-gradient(90deg, var(--og-green), var(--og-green-light)); border-radius: 4px; transition: width .6s var(--og-ease); }

/* ---------- Related games ---------- */
.related-game { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--og-border); }
.related-game:last-child { border-bottom: none; }
.related-game .rg-icon { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e293b, #334155); font-size: 18px; color: #4b5563; }
.related-game .rg-icon img { width: 100%; height: 100%; object-fit: cover; }
.related-game .rg-name { color: #e2e8f0; font-size: 14px; font-weight: 500; }
.related-game:hover .rg-name { color: var(--og-green); }

/* ---------- Detect page ---------- */
.detect-card { background: rgba(36, 48, 66, 0.6); backdrop-filter: blur(8px); border: 1px solid var(--og-border); border-radius: 16px; padding: 40px; max-width: 800px; margin: 0 auto; }
.detect-card h2 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; text-align: center; }
.detect-card .desc { color: var(--og-text-dim); font-size: 14px; line-height: 1.8; margin-bottom: 24px; text-align: center; }
.detect-list { text-align: left; color: var(--og-text-dim); font-size: 14px; line-height: 2; margin-bottom: 24px; padding-left: 20px; }
.detect-result { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; align-items: start; }
@media (max-width: 560px) { .detect-result { grid-template-columns: 1fr; } }
.detect-item { display: flex; flex-direction: column; padding: 12px 14px; background: rgba(15, 23, 41, 0.55); border-radius: 8px; min-height: 0; }
.detect-item .di-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.detect-item .di-label { color: #cbd5e1; font-size: 13px; }
.detect-item .di-value { font-size: 13px; font-weight: 600; text-align: right; }
.detect-item .di-note { font-size: 11.5px; color: var(--og-text-mute); line-height: 1.5; }
.progress-bar { height: 8px; background: rgba(55, 65, 81, 0.5); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress-bar .fill { height: 100%; background: linear-gradient(90deg, var(--og-green), var(--og-green-light)); border-radius: 4px; transition: width .3s; }

/* detect top bar — sticky, always visible when results shown */
.detect-output { position: relative; }
.detect-output.is-sticky .detect-headbar { position: sticky; top: 0; z-index: 5; }
.detect-headbar { background: rgba(30, 38, 56, 0.96); backdrop-filter: blur(10px); padding: 14px 16px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--og-border); }

#detect-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  margin: 12px 0 18px;
  background: rgba(30, 38, 56, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(71, 85, 105, 0.35);
  color: #cbd5e1;
  text-align: center;
}
#detect-summary .summ-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}
#detect-summary .summ-text { flex: 0 1 auto; }
#detect-summary strong {
  font-weight: 600;
  color: #e2e8f0;
}
#detect-summary .summ-danger .summ-icon { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
#detect-summary .summ-warn  .summ-icon { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
#detect-summary .summ-ok    .summ-icon { background: rgba(34, 197, 94, 0.15);  color: #86efac; }

/* CTA card reused on detect page — same as homepage CTA */
.detect-cta { margin-top: 0; margin-bottom: 14px; }

/* deep scan tags list */
.detect-deep { margin-top: 16px; padding: 16px 18px; background: rgba(36, 48, 66, 0.55); border: 1px solid var(--og-border); border-radius: 10px; }
.detect-deep .ddl-title { font-size: 13px; color: var(--og-text-dim); margin-bottom: 10px; }
.detect-deep .ddl-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detect-deep .ddl-tag { display: inline-block; padding: 5px 10px; font-size: 11.5px; color: rgba(220, 228, 240, 0.7); background: rgba(15, 23, 41, 0.65); border: 1px solid var(--og-border); border-radius: 999px; }

/* ---------- About page ---------- */
.about-section { margin-bottom: 48px; }
.about-section h2 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.about-section h3 { font-size: 18px; font-weight: 600; color: var(--og-green); margin-bottom: 8px; margin-top: 24px; }
.about-section p { color: #d1d5db; font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.about-features { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
@media (min-width: 768px) { .about-features { grid-template-columns: repeat(3, 1fr); } }
.about-feature { background: rgba(36, 48, 66, 0.6); border: 1px solid var(--og-border); border-radius: 12px; padding: 24px; transition: all .3s; }
.about-feature:hover { border-color: rgba(76, 175, 80, 0.3); transform: translateY(-2px); }
.about-feature h3 { color: #fff; font-size: 16px; margin-top: 0; margin-bottom: 8px; }
.about-feature p { color: var(--og-text-dim); font-size: 14px; margin-bottom: 0; }
.about-contact { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .about-contact { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: rgba(36, 48, 66, 0.6); border: 1px solid var(--og-border); border-radius: 12px; padding: 24px; transition: all .3s; }
.contact-card:hover { border-color: rgba(76, 175, 80, 0.3); }
.contact-card h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.contact-card p { color: var(--og-text-dim); font-size: 14px; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--og-bg-deep); border-top: 1px solid var(--og-border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: #6b7280; font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer h3 { color: #e2e8f0; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #6b7280; font-size: 14px; transition: color .25s; }
.footer-links a:hover { color: var(--og-green); }
.footer-bottom { border-top: 1px solid var(--og-border); padding-top: 24px; text-align: center; color: #6b7280; font-size: 13px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #94a3b8; transition: color .25s; }
.footer-bottom a:hover { color: var(--og-green); }

/* ---------- Back link / Breadcrumb ---------- */
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--og-text-dim); font-size: 14px; margin-bottom: 24px; transition: color .25s; }
.back-link:hover { color: #fff; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--og-text-mute); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--og-text-dim); transition: color .25s; }
.breadcrumb a:hover { color: var(--og-green); }
.breadcrumb .sep { color: #475569; }
.breadcrumb .current { color: var(--og-text); }

/* ---------- Game card ---------- */
.game-card { display: block; background: var(--og-card); border: 1px solid var(--og-border); border-radius: var(--og-radius); overflow: hidden; transition: all .35s var(--og-ease); }
.game-card:hover { transform: translateY(-5px); border-color: var(--og-border-hover); box-shadow: var(--og-shadow); }
.game-cover { aspect-ratio: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #4b5563; background: linear-gradient(135deg, #1e293b, #334155); font-size: 32px; }
@media (min-width: 768px) { .game-cover { font-size: 36px; } }
@media (min-width: 1024px) { .game-cover { font-size: 40px; } }
.game-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 41, 0.6), transparent 50%); pointer-events: none; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-info { padding: 10px 12px; }
.game-info h4 { color: #fff; font-size: 13px; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.game-meta .meta-year { font-size: 12px; color: #6b7280; }
.game-meta .meta-category { font-size: 12px; color: #6b7280; }
.game-meta .meta-fix { font-size: 12px; color: var(--og-green); font-weight: 500; }

/* ---------- Feature card ---------- */
.feature-card { background: var(--og-card); backdrop-filter: blur(8px); border: 1px solid var(--og-border); border-radius: 16px; padding: 28px; transition: all .35s var(--og-ease); display: block; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--og-green), var(--og-green-light)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--og-ease); }
.feature-card:hover { transform: translateY(-6px); border-color: var(--og-border-hover); box-shadow: var(--og-shadow); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 56px; height: 56px; background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05)); border: 1px solid rgba(76, 175, 80, 0.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: all .35s; }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card:hover .feature-icon { background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.1)); transform: scale(1.05); }
.feature-card h3 { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.feature-card p { color: var(--og-text-dim); font-size: 14px; line-height: 1.7; }

/* ---------- Testimonial card ---------- */
.testimonial-card { background: var(--og-card); border: 1px solid var(--og-border); border-radius: 16px; padding: 28px; transition: all .35s; position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: 12px; right: 20px; font-size: 48px; color: rgba(76, 175, 80, 0.15); font-family: Georgia, serif; line-height: 1; }
.testimonial-card:hover { border-color: rgba(76, 175, 80, 0.3); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); flex-shrink: 0; }
.testimonial-name { font-size: 14px; font-weight: 600; color: #fff; }
.testimonial-tag { font-size: 13px; color: #6b7280; }
.testimonial-content { color: #d1d5db; font-size: 14px; line-height: 1.8; font-style: italic; }

/* ---------- Hero ---------- */
.hero { padding: 100px 0 80px; background: linear-gradient(160deg, #0a101d 0%, #111a2b 40%, #141f33 60%, #0a101d 100%); text-align: center; position: relative; overflow: hidden; z-index: 0; }
.hero .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
/* 主要内容区统一提升到 hero 卡片（z-index:1）之上，避免被遮挡 */
main, #app, .main { position: relative; z-index: 2; }
.header, header { z-index: 10; }
/* Hero 内部半透明暗色面板作为文字背书层，把首页文字和卡片彻底隔开 */
.hero .container::before {
    content: '';
    position: absolute;
    inset: -60px -40px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 41, 0.55) 0%, rgba(15, 23, 41, 0.35) 55%, transparent 80%);
    filter: blur(28px);
    z-index: -1;
    pointer-events: none;
}
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 25% 40%, rgba(76, 175, 80, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 75% 60%, rgba(255, 107, 53, 0.07) 0%, transparent 50%); animation: heroGlow 10s ease-in-out infinite alternate; pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, var(--og-bg), transparent); pointer-events: none; z-index: 1; }
@keyframes heroGlow { 0% { transform: scale(1) rotate(0deg); } 100% { transform: scale(1.05) rotate(2deg); } }
.hero .scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 5px); opacity: .4; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(76, 175, 80, 0.35); background: rgba(76, 175, 80, 0.08); color: var(--og-green-light); font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 24px; position: relative; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--og-green); box-shadow: 0 0 8px var(--og-green); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { font-size: 44px; font-weight: 800; color: #fff; margin-bottom: 20px; position: relative; letter-spacing: -0.5px; text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 0 28px rgba(76, 175, 80, 0.18); }
@media (min-width: 768px) { .hero h1 { font-size: 60px; } }
.hero h1 .accent { background: linear-gradient(135deg, var(--og-green), var(--og-green-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.35)); }
.hero .subtitle { font-size: 19px; color: #e0e6ee; margin-bottom: 40px; position: relative; max-width: 620px; margin-left: auto; margin-right: auto; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.hero .cta-group { display: flex; flex-direction: column; gap: 18px; align-items: center; position: relative; }
@media (min-width: 640px) { .hero .cta-group { flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; } }
.hero .cta-group .hero-search { max-width: 520px; flex: 1 1 auto; }
.hero .cta-group .hero-sub-actions { flex: 0 0 auto; }

/* ---------- Stats bar ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 820px; margin: -44px auto 0; position: relative; z-index: 2; padding: 0 16px; }
@media (min-width: 768px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-item { background: rgba(26, 35, 50, 0.85); backdrop-filter: blur(10px); border: 1px solid var(--og-border); border-radius: var(--og-radius); padding: 20px 12px; text-align: center; transition: all .3s var(--og-ease); }
.stat-item:hover { border-color: var(--og-border-hover); transform: translateY(-3px); }
.stat-num { font-size: 28px; font-weight: 800; color: var(--og-green); font-family: 'Courier New', monospace; letter-spacing: 1px; }
.stat-label { font-size: 13px; color: var(--og-text-dim); margin-top: 4px; }

/* ---------- CTA Section ---------- */
.cta-section { padding: 80px 16px; background: var(--og-bg); text-align: center; position: relative; }
.cta-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 36px;
    background: linear-gradient(160deg, rgba(35, 48, 70, 0.95) 0%, rgba(20, 30, 50, 0.98) 100%);
    border: 1px solid rgba(255, 107, 53, 0.28);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 40px rgba(255, 107, 53, 0.10), 0 20px 60px rgba(0, 0, 0, 0.3);
}
.cta-card .cta-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--og-orange), transparent);
    opacity: 0.85;
}
.cta-card h2 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 14px; line-height: 1.3; }
.cta-card p { color: rgba(220, 228, 240, 0.85); font-size: 15px; margin-bottom: 28px; line-height: 1.7; }
/* ---------- 首页 Hero 全屏固定背景随机游戏卡片墙（仿 ddyx.me） ---------- */
/* 整个浏览器视口为边界，固定不随滚动消失，z-index:-1 在所有内容之下 */
.hero-cards-bg {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;        /* 永不拦截任何点击与滚动 */
    overflow: hidden;            /* 卡片不溢出视口 */
    background: transparent;
}
.hero-cards-bg .hero-card {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--size, 120px);
    height: calc(var(--size, 120px) * 1.25);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(145deg, #1e293b, #263348);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg));
    animation:
        heroCardFadeIn 1.2s ease-out forwards,
        heroCardDrift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.hero-cards-bg .hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
}
.hero-cards-bg .hero-card .retro-cover {
    width: 100%;
    height: 100%;
}
.hero-cards-bg .hero-card:hover {
    opacity: 0.95 !important;
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
    z-index: 1;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--og-green);
    transition: opacity .3s, transform .3s, box-shadow .3s;
    animation-play-state: paused;
}
/* 卡片淡入 */
@keyframes heroCardFadeIn {
    to { opacity: var(--op, 0.4); }
}
/* 缓慢漂浮：在一定范围内平滑漂移 + 轻微旋转 */
@keyframes heroCardDrift {
    0%   { transform: translate(-50%,                              -50%)                              rotate(var(--angle, 0deg)); }
    25%  { transform: translate(calc(-50% + var(--drift-x, 14px)), calc(-50% - var(--drift-y, 10px))) rotate(calc(var(--angle, 0deg) + 1.5deg)); }
    50%  { transform: translate(calc(-50% - var(--drift-x, 10px)), calc(-50% + var(--drift-y, 6px)))  rotate(var(--angle, 0deg)); }
    75%  { transform: translate(calc(-50% + var(--drift-x, 6px)),  calc(-50% - var(--drift-y, 14px))) rotate(calc(var(--angle, 0deg) - 1.5deg)); }
    100% { transform: translate(-50%,                              -50%)                              rotate(var(--angle, 0deg)); }
}
@media (max-width: 640px) {
    .hero-cards-bg .hero-card {
        width: calc(var(--size, 120px) * 0.7) !important;
        height: calc(var(--size, 120px) * 0.875) !important;
    }
}
.cta-btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--og-orange) 0%, #ff8c5a 100%); color: #fff; padding: 16px 40px; border-radius: 12px; font-size: 17px; font-weight: 700; border: none; cursor: pointer; transition: all .3s; box-shadow: 0 4px 18px rgba(255, 107, 53, 0.35); text-decoration: none; position: relative; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 107, 53, 0.5); background: linear-gradient(135deg, #ff7a45 0%, #ff9d6e 100%); }
.cta-btn .cta-arrow { display: inline-block; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-bottom: 2px; flex: 0 0 auto; }

/* ---------- 下载中心单页背景图（后台可管理，全页覆盖） ---------- */
.download-page-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    opacity: 1;
}
/* body 作为背景的定位容器，同时透明让背景图显示 + flex 列布局让底栏触底 */
body:has(.download-page-bg) {
    position: relative;
    min-height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
}
/* 主内容区 flex:1 填充剩余空间，把底栏推到底部 */
body:has(.download-page-bg) main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
/* 底栏不要 flex-grow，保持自身高度 */
body:has(.download-page-bg) .footer {
    flex: 0 0 auto;
    margin-top: auto;
}
/* 暗化遮罩——文字可读性优先，背景图仍可辨认但不对文字产生干扰 */
.download-page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,41,0.55) 0%, rgba(15,23,41,0.45) 60%, rgba(15,23,41,0.70) 100%);
}

/* ===== 存在 page-bg 时页面特殊规则 ===== */
/* 2. 主内容 section 透明——背景图在 main 区域完整显示 */
.download-page-bg ~ .section {
    background: transparent;
    position: relative;
    z-index: 1;
}

/* 3. 卡片保持半透明深色，保证文字可读 */
.download-page-bg ~ .section .download-card {
    background: rgba(22, 32, 58, 0.88);
    border-color: rgba(55, 65, 81, 0.65);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* 4. 页脚不透明——遮住页面底部的背景图 */
body:has(.download-page-bg) .footer {
    background: var(--og-bg-deep);
    border-top: 1px solid var(--og-border);
    position: relative;
    z-index: 2;
}

/* ---------- FAQ 详情页 ---------- */
.faq-detail-article { background: rgba(36, 48, 66, 0.5); border: 1px solid var(--og-border); border-radius: 16px; padding: 36px; }
@media (max-width: 640px) { .faq-detail-article { padding: 24px 18px; } }
.faq-detail-article .step-content h2:first-child { margin-top: 0; }
.faq-detail-article .step-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.faq-detail-article .step-content p { line-height: 1.85; margin-bottom: 12px; color: #cbd5e1; }
.faq-detail-article .step-content h2,
.faq-detail-article .step-content h3 { color: #fff; margin: 20px 0 10px; font-weight: 600; }
.faq-detail-article .step-content ul,
.faq-detail-article .step-content ol { padding-left: 22px; margin-bottom: 14px; color: #cbd5e1; }
.faq-detail-article .step-content li { margin-bottom: 6px; line-height: 1.75; }
.faq-detail-article .step-content code { background: rgba(76, 175, 80, 0.12); color: #86efac; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.faq-detail-article .step-content pre { background: rgba(15, 23, 42, 0.7); border: 1px solid var(--og-border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; margin: 14px 0; color: #e2e8f0; font-size: 13px; line-height: 1.6; }
.faq-detail-article .step-content blockquote { border-left: 3px solid var(--og-green); padding-left: 14px; margin: 14px 0; color: #94a3b8; font-style: italic; }
.faq-detail-article .step-content a { color: var(--og-green); text-decoration: underline; }
.faq-detail-article .step-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.faq-detail-article .step-content th,
.faq-detail-article .step-content td { border: 1px solid var(--og-border); padding: 8px 12px; text-align: left; }
.faq-detail-article .step-content th { background: rgba(30, 41, 59, 0.6); color: #fff; }
.faq-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 26px; }

/* ---------- Welcome guide modal ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: rgba(36, 48, 66, 0.95); border: 1px solid var(--og-border); border-radius: 16px; padding: 32px; max-width: 480px; width: 90%; text-align: center; }
.modal h2 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.modal p { color: var(--og-text-dim); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
.text-dim { color: var(--og-text-mute); font-size: 14px; }
.link-green { color: var(--og-green); }
.link-green:hover { text-decoration: underline; }

/* ============================================
   阶段B 新增样式（v3 前台改造）
   ============================================ */

/* ---------- 顶栏搜索框 ---------- */
.header-search { display: none; align-items: center; gap: 0; margin: 0 8px; }
@media (min-width: 1024px) { .header-search { display: flex; } }
.header-search input {
    width: 220px; padding: 7px 12px; border: 1px solid var(--og-border);
    border-radius: 8px 0 0 8px; background: rgba(255, 255, 255, 0.06);
    color: var(--og-text); font-size: 13px; outline: none;
}
.header-search input:focus { border-color: var(--og-green); }
.header-search button {
    padding: 7px 12px; border: 1px solid var(--og-green); border-left: none;
    border-radius: 0 8px 8px 0; background: var(--og-green); color: #fff;
    font-size: 13px; cursor: pointer;
}

/* ---------- 首页 Hero 搜索区 ---------- */
.hero-search {
    display: flex;
    align-items: stretch;
    max-width: 520px;
    width: 100%;
    margin: 0;
}
.hero-search input {
    flex: 1;
    padding: 0 16px;
    height: 48px;
    line-height: 48px;
    border: 1px solid var(--og-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--og-text);
    font-size: 15px;
    outline: none;
}
.hero-search input:focus { border-color: var(--og-green); }
.hero-search .btn-primary,
.hero-search .btn-green {
    border-radius: 0 10px 10px 0;
    white-space: nowrap;
    height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
/* 搜索框右侧次行动：与搜索按钮在同一行且高度一致 */
.hero-sub-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}
.hero-sub-actions .btn-outline {
    height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

/* ---------- 症状标签 chips ---------- */
.tag-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0; }
.tag-chip {
    display: inline-flex; align-items: center; padding: 8px 18px;
    border: 1px solid var(--og-border); border-radius: 999px;
    background: rgba(255, 255, 255, 0.05); color: var(--og-text);
    font-size: 14px; transition: all 0.2s;
}
.tag-chip:hover { border-color: var(--og-green); color: var(--og-green); background: var(--og-green-soft); }
.tag-chip.active { border-color: var(--og-green); color: #fff; background: var(--og-green); }

/* ---------- 方案库筛选栏 ---------- */
.filter-bar { margin-bottom: 28px; }
.filter-chips { justify-content: flex-start; margin-top: 14px; }
.filter-label { color: var(--og-text-mute); font-size: 13px; align-self: center; }

/* ---------- 推荐区块 ---------- */
.recommend-section { margin-top: 44px; }
.recommend-section h2 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.recommend-list { display: flex; flex-direction: column; gap: 10px; }
.recommend-item {
    display: block; padding: 12px 16px; border: 1px solid var(--og-border);
    border-radius: 10px; background: rgba(36, 48, 66, 0.35); color: var(--og-text);
    font-size: 14px; transition: all 0.2s;
}
.recommend-item:hover { border-color: var(--og-green); color: var(--og-green); background: var(--og-green-soft); }

/* ---------- 下载中心卡片 ---------- */
.download-card {
    border: 1px solid rgba(55, 65, 81, 0.6);
    border-radius: var(--og-radius);
    background: rgba(12, 18, 38, 0.96);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.client-card { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { .client-card { flex-direction: row; align-items: center; } }
.dc-main { display: flex; gap: 18px; flex: 1; align-items: center; }
.dc-icon {
    width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--og-green-soft); color: var(--og-green); font-size: 18px;
    overflow: hidden;
}
.dc-icon img { max-width: 36px; max-height: 36px; width: auto; height: auto; object-fit: contain; }
.dc-info h3 { color: #fff; font-size: 18px; margin-bottom: 8px; text-align: center; }
.dc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; justify-content: center; }
@media (min-width: 768px) {
    .dc-info h3 { text-align: left; }
    .dc-meta { justify-content: flex-start; }
}
.dc-desc { color: var(--og-text-dim); font-size: 14px; line-height: 1.7; }
.dc-advantage { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.dc-advantage h4 { color: var(--og-green); font-size: 13px; margin-bottom: 8px; }
.dc-advantage ul { margin: 0; padding-left: 18px; color: var(--og-text-dim); font-size: 13px; line-height: 2; }
.dc-action { display: flex; align-items: center; justify-content: flex-end; }
.client-card .dc-action { justify-content: center; }
@media (min-width: 768px) { .client-card .dc-action { justify-content: flex-end; } }
.tool-card { text-align: center; }
.tool-card .dc-icon { margin: 0 auto 12px; }
.tool-card h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.tool-card .dc-meta { justify-content: center; margin-bottom: 10px; }
.tool-card .dc-desc { font-size: 13px; margin-bottom: 14px; }

/* ---------- 未解决下载引导 ---------- */
.download-guide { animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- CTA 按钮组 ---------- */
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- 检测结果状态色 ---------- */
.di-status-danger  { color: #ff5252 !important; }
.di-status-warning { color: #ff8c5a !important; }
.di-status-normal  { color: #4caf50 !important; }
.di-status-unknown { color: #9ca3af !important; }

/* ---------- CTA 下载引导卡片（检测页） ---------- */
.detect-cta { margin-top: 0; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.detect-cta-card {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(35, 48, 70, 0.92) 0%, rgba(20, 30, 50, 0.96) 100%);
    border: 1px solid rgba(255, 107, 53, 0.30);
    border-radius: 16px; padding: 22px 28px;
    box-shadow: 0 8px 40px rgba(255, 107, 53, 0.10), 0 12px 36px rgba(0, 0, 0, 0.25);
}
.detect-cta-card .detect-cta-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--og-orange), #ffb347, transparent); opacity: 0.85; }
.detect-cta-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.detect-cta-score { flex: 0 0 auto; width: 88px; text-align: center; }
.detect-cta-score .ds-num { display: block; font-size: 40px; font-weight: 800; font-family: 'Courier New', monospace; color: var(--og-green); line-height: 1; }
.detect-cta-score .ds-num.warn   { color: var(--og-orange); }
.detect-cta-score .ds-num.danger { color: #ff5252; }
.detect-cta-score .ds-label { display: block; font-size: 11px; color: var(--og-text-dim); margin-top: 5px; }
.detect-cta-text { flex: 1; min-width: 200px; }
.detect-cta-text h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.detect-cta-text p  { font-size: 13.5px; color: rgba(220, 228, 240, 0.85); line-height: 1.65; margin: 0; }
.detect-cta-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* 检测右侧面板 —— 三种状态：danger / warn-only(居中) / all-ok(隐藏) */
.detect-right-panel { display: block; }
.detect-right-panel[data-state="ok"]   { display: none !important; }
.detect-right-panel[data-state="warn"]  #detect-summary { text-align: center; justify-content: center; }
.detect-right-panel[data-state="warn"]  #detect-summary .summ-text { text-align: center; }
.detect-right-panel[data-state="danger"] #detect-summary { text-align: center; }

/* 始终显示的右下角下载按钮容器 */
.detect-download-box {
  display: none;
  margin-top: 24px;
  background: linear-gradient(145deg, rgba(20, 30, 55, 0.92), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.detect-download-box .ddbx-tip {
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 12px;
}
.detect-download-box .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #43A047 0%, #4CAF50 50%, #66BB6A 100%);
  color: #fff;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .28s;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  text-decoration: none;
}
.detect-download-box .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(76, 175, 80, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.detect-download-box .btn-download svg { flex-shrink: 0; }

/* 隐藏了右侧面板时：下载按钮容器占满整行居中展示更大气 */
.detect-right-panel[data-state="ok"] ~ .detect-download-box {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  padding: 26px 32px;
}
.detect-right-panel[data-state="ok"] ~ .detect-download-box .ddbx-tip { font-size: 14px; margin-bottom: 16px; }
.detect-right-panel[data-state="ok"] ~ .detect-download-box .btn-download { padding: 16px 44px; font-size: 17px; }

/* ---------- 客户端可检测项标签 ---------- */
.detect-deep-list { padding: 16px 18px; background: rgba(36, 48, 66, 0.50); border: 1px solid var(--og-border); border-radius: 10px; }
.detect-deep-list .ddl-title { font-size: 12.5px; color: var(--og-text-dim); margin-bottom: 9px; }
.detect-deep-list .ddl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detect-deep-list .ddl-tag {
    display: inline-block; padding: 4px 10px; font-size: 11.5px;
    color: rgba(220, 228, 240, 0.75);
    background: rgba(15, 23, 41, 0.6); border: 1px solid var(--og-border); border-radius: 999px;
}
@media (max-width: 640px) { .detect-cta-body { flex-direction: column; text-align: center; } .detect-cta-score { width: 100%; } .detect-cta-actions { justify-content: center; } }/* ---------- 游戏卡片难度徽标 ---------- */
.meta-difficulty { color: var(--og-yellow); }

/* ---------- 网盘提取码 ---------- */
.dc-sharecode { color: var(--og-text-dim); font-size: 13px; margin-bottom: 12px; }
.dc-sharecode strong { color: var(--og-yellow); letter-spacing: 1px; }
