/* ============================================
   黄金定投实战指南网 - 样式表
   主色调：金色 + 深蓝 高级理财风
   ============================================ */

:root {
  --gold: #C9A227;
  --gold-light: #E8C85A;
  --gold-dark: #A8841B;
  --navy: #0A1F3D;
  --navy-light: #142B52;
  --navy-deep: #061327;
  --bg: #F7F5F0;
  --bg-alt: #EDEAE3;
  --text: #1A1A2E;
  --text-light: #5A5A6E;
  --white: #FFFFFF;
  --border: #E0D9C8;
  --danger: #C0392B;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(10, 31, 61, 0.08);
  --shadow-hover: 0 16px 48px rgba(10, 31, 61, 0.14);
  --trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6, 19, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  transition: var(--trans);
}
.nav.scrolled { background: rgba(6, 19, 39, 0.95); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  color: var(--gold); font-size: 22px;
  text-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}
.logo-text { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,0.78); text-decoration: none;
  font-size: 14px; padding: 8px 14px; border-radius: 8px;
  transition: var(--trans);
}
.nav-links a:hover { color: var(--gold-light); background: rgba(201,162,39,0.1); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--trans); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,162,39,0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(201,162,39,0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(20,43,82,0.6) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-block;
  padding: 6px 18px; border-radius: 999px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold-light); font-size: 13px; font-weight: 500;
  margin-bottom: 28px; letter-spacing: 1px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800; line-height: 1.2;
  color: #fff; margin-bottom: 20px; letter-spacing: 2px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: clamp(18px, 3vw, 24px); color: rgba(255,255,255,0.92); font-weight: 600; margin-bottom: 12px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.hero-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tag {
  padding: 7px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--gold-light); font-size: 14px; font-weight: 500;
}
.hero-cta {
  display: inline-block;
  padding: 14px 36px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-deep); text-decoration: none; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 28px rgba(201,162,39,0.35);
  transition: var(--trans);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(201,162,39,0.5); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 12px; letter-spacing: 2px;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============ 通用 Section ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-num {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800; color: var(--navy);
  margin-bottom: 12px; letter-spacing: 1px;
}
.section-sub { color: var(--text-light); font-size: 15px; }

.gold { color: var(--gold-dark); font-weight: 700; }

/* ============ 底层逻辑 ============ */
.intro-box {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 32px; margin-bottom: 36px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  font-size: 16px; color: var(--text);
}
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; text-align: center;
  box-shadow: var(--shadow); transition: var(--trans);
  border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.feature-icon { font-size: 42px; margin-bottom: 16px; }
.feature-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 12px; }
.feature-card p { color: var(--text-light); font-size: 14px; }

/* ============ 行情解读 ============ */
.market-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.market-banner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(201,162,39,0.12); color: var(--gold-dark);
  font-weight: 600; font-size: 14px; margin-bottom: 20px;
}
.market-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.market-text { font-size: 18px; margin-bottom: 28px; }
.market-principle h4 { color: var(--navy); margin-bottom: 18px; font-size: 17px; }
.principle-list { display: grid; gap: 16px; }
.principle-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--bg); border-radius: 12px;
}
.p-icon { font-size: 26px; }
.principle-item strong { color: var(--navy); font-size: 16px; }
.principle-item p { color: var(--text-light); font-size: 14px; margin: 2px 0 0; }

/* ============ 仓位铁律 ============ */
.rule-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius); padding: 48px 32px;
  text-align: center; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.rule-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,162,39,0.2), transparent 60%);
}
.rule-hero-inner { position: relative; }
.rule-label { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.rule-range { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.rule-num {
  font-size: clamp(48px, 10vw, 80px); font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.rule-dash { font-size: 48px; color: var(--gold); font-weight: 300; }
.rule-cap { color: rgba(255,255,255,0.6); font-size: 14px; }
.example-box {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 32px; box-shadow: var(--shadow);
  border: 1px solid var(--border); margin-bottom: 24px;
}
.example-title { font-weight: 700; color: var(--navy); margin-bottom: 18px; font-size: 16px; }
.example-formula {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; font-size: 17px; margin-bottom: 16px;
}
.ef-in { color: var(--navy); font-weight: 800; font-size: 22px; }
.ef-op { color: var(--text-light); font-size: 13px; }
.ef-arrow { color: var(--gold); font-weight: 700; font-size: 22px; }
.ef-out { color: var(--gold-dark); font-weight: 800; font-size: 22px; }
.example-warn {
  text-align: center; padding: 14px; background: rgba(192,57,43,0.08);
  border-radius: 10px; color: var(--danger); font-size: 15px;
}
.silver-note {
  background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
  border-radius: var(--radius); padding: 24px 28px;
  border: 1px solid #D0D0D0;
}
.silver-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.silver-badge { background: #9E9E9E; color: #fff; padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.silver-warn { color: #555; font-size: 14px; }
.silver-note p { color: #666; font-size: 14px; margin: 0; }

/* ============ 双系统 ============ */
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.system-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow);
  border: 1px solid var(--border); position: relative;
  transition: var(--trans);
}
.system-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.system-card-accent { border-top: 4px solid var(--gold); }
.system-tag {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--bg-alt); color: var(--navy); font-size: 13px;
  font-weight: 700; margin-bottom: 14px;
}
.system-card h3 { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.system-sub { color: var(--gold-dark); font-weight: 600; margin-bottom: 24px; font-size: 14px; }
.system-list { list-style: none; display: grid; gap: 18px; }
.system-list li { display: flex; gap: 14px; align-items: flex-start; }
.li-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; margin-top: 2px;
}
.system-list li strong { color: var(--navy); font-size: 15px; display: block; }
.system-list li p { color: var(--text-light); font-size: 13px; margin: 2px 0 0; }

/* ============ 止盈规则 ============ */
.profit-card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.profit-method { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.pm-icon { font-size: 48px; }
.profit-method h3 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.profit-method p { color: var(--text-light); font-size: 15px; }
.profit-flow {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 32px;
}
.flow-item { text-align: center; }
.flow-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-deep); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.flow-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.flow-arrow { color: var(--gold); font-size: 28px; font-weight: 700; }
.profit-result {
  text-align: center; padding: 18px; background: var(--bg);
  border-radius: 12px; font-size: 15px; color: var(--navy);
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.profit-result .dot { color: var(--gold); }

/* ============ 渠道 ============ */
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.channel-good, .channel-bad {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.channel-bad { border-left: 4px solid var(--danger); }
.channel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.channel-head h3 { font-size: 20px; color: var(--navy); }
.channel-icon { font-size: 26px; }
.channel-list { list-style: none; display: grid; gap: 12px; }
.channel-list li {
  padding: 12px 16px; background: var(--bg); border-radius: 10px;
  font-size: 15px; color: var(--text);
}
.bad-list li { background: rgba(192,57,43,0.06); color: var(--danger); }

/* ============ 指标 ============ */
.indicator-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: var(--trans);
}
.indicator-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.ind-num {
  font-size: 36px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px; line-height: 1;
}
.indicator-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.indicator-card p { color: var(--text-light); font-size: 14px; }

/* ============ 误区 ============ */
.mistake-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mistake-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.mistake-wrong { color: var(--danger); font-weight: 600; font-size: 15px; }
.mistake-arrow { color: var(--gold); font-weight: 700; font-size: 18px; }
.mistake-right { color: var(--navy); font-weight: 600; font-size: 15px; }

/* ============ 策略 ============ */
.strategy-card {
  background: var(--white); border-radius: var(--radius);
  padding: 12px 32px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.strategy-row {
  display: flex; gap: 24px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.strategy-row:last-child { border-bottom: none; }
.strategy-label {
  min-width: 90px; font-weight: 700; color: var(--gold-dark);
  font-size: 15px; padding-top: 2px;
}
.strategy-value { color: var(--text); font-size: 15px; flex: 1; }
.strategy-mindset { background: var(--bg); margin: 0 -32px; padding: 20px 32px; border-radius: 0 0 var(--radius) var(--radius); }

/* ============ 底部 ============ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 28px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-disclaimer {
  background: rgba(255,255,255,0.04); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 28px;
  border: 1px solid rgba(201,162,39,0.2);
}
.footer-disclaimer h4 { color: var(--gold-light); margin-bottom: 12px; font-size: 16px; }
.footer-disclaimer p { font-size: 14px; line-height: 1.8; }
.footer-disclaimer strong { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; flex-wrap: wrap; gap: 10px;
}

/* ============ 返回顶部 ============ */
.back-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-deep); border: none; cursor: pointer;
  font-size: 22px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(201,162,39,0.4);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--trans); z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .system-grid, .channel-grid, .mistake-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column;
    padding: 20px; gap: 4px;
    transform: translateY(-120%); transition: var(--trans);
    border-bottom: 1px solid rgba(201,162,39,0.2);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .profit-method { flex-direction: column; text-align: center; }
  .strategy-row { flex-direction: column; gap: 6px; padding: 16px 0; }
  .strategy-mindset { margin: 0 -24px; padding: 16px 24px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero { padding: 90px 20px 50px; }
  .hero-tags { gap: 8px; }
  .tag { padding: 6px 14px; font-size: 13px; }
  .market-card, .profit-card { padding: 24px 20px; }
  .system-card { padding: 28px 22px; }
  .rule-hero { padding: 36px 20px; }
  .back-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}
