/* ==========================================================================
   极夜赤金 / 赛博熔橙流光主题 (Crimson Gold / Cyber Molten Orange)
   ========================================================================== */

:root {
  --bg-deep: #0c0506;
  --bg-surface: #1c0b0e;
  --card-bg: rgba(28, 11, 14, 0.85);
  --card-border: rgba(239, 68, 68, 0.25);
  --card-border-hover: rgba(249, 115, 22, 0.55);
  --glow-red: rgba(239, 68, 68, 0.18);
  --glow-orange: rgba(249, 115, 22, 0.28);

  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --accent-gold: #fbbf24;
  --gradient-primary: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  --gradient-bg: radial-gradient(circle at 18% 12%, rgba(239, 68, 68, 0.16), transparent 42%),
                 radial-gradient(circle at 82% 88%, rgba(249, 115, 22, 0.12), transparent 45%),
                 linear-gradient(160deg, #0c0506 0%, #1c0b0e 100%);

  --text-primary: #fef2f2;
  --text-secondary: #d6b8bc;
  --text-muted: #9e7b80;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 24px var(--glow-red);
  --shadow-btn: 0 6px 22px rgba(239, 68, 68, 0.35), 0 0 18px rgba(249, 115, 22, 0.25);

  --container-max: 1120px;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: #fb923c;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 5, 6, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.brand-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* 标题与徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fed7aa;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 16px var(--glow-red);
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.text-gradient {
  background: linear-gradient(90deg, #ff6b6b 0%, #f97316 55%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 720px;
}

/* 磨砂赤金卡片 */
.card,
.glass-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.card:hover,
.glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 30px var(--glow-orange);
}

/* 高亮流光按钮 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              filter var(--transition-base);
  overflow: hidden;
}

.btn-primary {
  color: #ffffff;
  background: var(--gradient-primary);
  background-size: 180% 180%;
  box-shadow: var(--shadow-btn);
  animation: moltenFlow 4s ease infinite;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.48), 0 0 26px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover::after {
  left: 140%;
}

.btn-outline {
  color: var(--text-primary);
  background: rgba(28, 11, 14, 0.72);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 16px var(--glow-red);
}

.btn-outline:hover {
  color: #ffffff;
  border-color: var(--accent-orange);
  background: rgba(239, 68, 68, 0.16);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

@keyframes moltenFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 栅格系统 */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* 英雄区 */
.hero {
  padding: 84px 0 64px;
  text-align: center;
}

.hero .lead {
  margin: 18px auto 32px;
}

.hero .btn-group {
  justify-content: center;
}

/* 数据对比表 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

th {
  background: rgba(239, 68, 68, 0.12);
  color: #fed7aa;
  font-weight: 700;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(249, 115, 22, 0.05);
}

/* 文章正文排版 */
.article-content {
  max-width: 820px;
  margin: 0 auto;
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.article-content h2 {
  margin-top: 38px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

.article-content h3 {
  margin-top: 26px;
  color: #fed7aa;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 22px;
  color: var(--text-secondary);
}

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

.article-content code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fdba74;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--accent-orange);
  border-top: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  color: var(--text-primary);
}

/* FAQ 折叠 */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px var(--glow-red);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  list-style: none;
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-secondary);
}

/* 页脚 */
.site-footer {
  margin-top: 64px;
  padding: 36px 0;
  border-top: 1px solid var(--card-border);
  background: rgba(12, 5, 6, 0.78);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--accent-orange);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .section {
    padding: 44px 0;
  }

  .card,
  .glass-card {
    padding: 20px;
  }
}
