﻿/* ==========================================================
   上线性能与顺滑度增强引擎 (Smoothness & Performance Optimization)
   ========================================================== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 硬件加速与流畅悬停 */
a, button, .media-news-card, .btn-media-primary, .btn-media-secondary, .faq-card, .intro-panel {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 移动端平滑滚动与防抖 */
.table-wrapper, .table-container, .code-box, pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 媒体图片防溢出与自适应 */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 消除点击高亮延迟 */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   黑金科技风，高端 AI 工具推荐页 - Black & Gold Luxury Tech Theme
   ========================================================== */

:root {
  --bg-primary: #0b0b0e;
  --bg-secondary: #121217;
  --bg-card: #181820;
  --bg-card-hover: #20202b;
  --bg-glass: rgba(24, 24, 32, 0.75);
  --gold-primary: #d4af37;
  --gold-light: #f5e298;
  --gold-dark: #aa8222;
  --gold-gradient: linear-gradient(135deg, #f8e59e 0%, #d4af37 50%, #996e19 100%);
  --gold-border: rgba(212, 175, 55, 0.3);
  --gold-border-glow: rgba(212, 175, 55, 0.6);
  --gold-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
  --text-main: #f0f0f5;
  --text-muted: #9e9eb4;
  --text-gold: #e5c158;
  --border-dark: rgba(255, 255, 255, 0.08);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(170, 130, 34, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #0b0b0e 0%, #0d0d12 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部独立声明与商业披露区 */
.top-declaration-bar {
  background: #08080a;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 8px 0;
  font-size: 12px;
}

.dec-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dec-badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.dec-text {
  color: var(--text-muted);
  flex: 1;
  margin: 0;
}

/* 顶部导航 */
.site-header {
  background: rgba(11, 11, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-icon {
  color: var(--gold-primary);
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-primary);
}

.btn-gold-sm {
  background: var(--gold-gradient);
  color: #0d0d10;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-gold-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 首页 Hero 区域 */
.hero-section {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  padding: 6px 16px;
  border-radius: 30px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.hero-h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: #fff;
}

.hero-h1 .highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.3));
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-gold-lg {
  background: var(--gold-gradient);
  color: #0b0b0e;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 34px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(255, 235, 160, 0.5);
}

.btn-gold-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

.btn-black-gold {
  background: rgba(24, 24, 32, 0.9);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: 1px solid var(--gold-border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.btn-black-gold:hover {
  background: #22222d;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* 核心指标金条展示 */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.metric-box {
  background: linear-gradient(145deg, #16161f, #101015);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.metric-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* 六宫格功能模块区 */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-tag {
  color: var(--gold-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.grid-six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  background: linear-gradient(145deg, #16161f, #111116);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-glow);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.3));
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-link {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.card-link:hover {
  color: #fff;
  transform: translateX(3px);
}

/* 正文介绍区：“教程中心”与“我们提供什么” */
.intro-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.intro-panel {
  background: linear-gradient(145deg, #181822, #101015);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.panel-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title .icon {
  color: var(--gold-primary);
}

.intro-list {
  list-style: none;
}

.intro-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.intro-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 12px;
  top: 2px;
}

.intro-list strong {
  color: #fff;
}

/* 热门教程表格 */
.table-wrapper {
  background: linear-gradient(145deg, #15151e, #0e0e13);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.gold-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.gold-table th {
  background: #1a1a24;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  letter-spacing: 0.5px;
}

.gold-table td {
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gold-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
  color: var(--text-main);
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-easy {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-medium {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.badge-hard {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.tbl-link {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}

.tbl-link:hover {
  text-decoration: underline;
}

/* FAQ 模块与折叠面板 */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-item {
  background: linear-gradient(145deg, #16161f, #101014);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 22px;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--gold-border);
}

.faq-q {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-q-icon {
  color: var(--gold-primary);
  font-weight: 900;
}

.faq-a {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* 延伸阅读与免责入口卡片 */
.extended-reading {
  background: linear-gradient(145deg, #1a1a24, #121218);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 28px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.reading-info h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}

.reading-info p {
  color: var(--text-muted);
  font-size: 14px;
}

.reading-actions {
  display: flex;
  gap: 14px;
}

/* 子页面通用内容布局 */
.page-hero {
  padding: 50px 0 35px;
  text-align: center;
  border-bottom: 1px solid var(--border-dark);
}

.page-title {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 750px;
  margin: 0 auto;
}

.content-section {
  padding: 50px 0;
}

.article-content {
  background: linear-gradient(145deg, #15151e, #101015);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  color: #d8d8e6;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 24px;
  color: #fff;
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-content h2::before {
  content: '✦';
  color: var(--gold-primary);
  font-size: 18px;
}

.article-content h3 {
  font-size: 18px;
  color: var(--gold-light);
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
  font-size: 15px;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: #fff;
}

.gold-callout {
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--gold-primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: #e0e0ea;
}

.code-box {
  background: #09090c;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 16px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13.5px;
  color: #f5e298;
  overflow-x: auto;
  margin: 20px 0;
}

/* 页脚区域 */
.site-footer {
  background: #070709;
  border-top: 1px solid var(--border-dark);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 16px 0;
  line-height: 1.6;
  max-width: 400px;
}

.copyright {
  color: #66667a;
  font-size: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.link-col h4 {
  color: var(--gold-light);
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 700;
}

.link-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.link-col a:hover {
  color: var(--gold-primary);
  transform: translateX(2px);
}

/* 响应式断点 */
@media (max-width: 992px) {
  .grid-six {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-container {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero-h1 {
    font-size: 28px;
  }
  .grid-six {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  .gold-table th, .gold-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}