/* StockForge 官网共享样式 */

:root {
  --bg: #eef3fa;
  --bg-hero: linear-gradient(165deg, #dce9fb 0%, #eef2ff 38%, #f5f6fa 100%);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --text: #0f1728;
  --muted: #5c6570;
  --accent: #0a84ff;
  --accent-dark: #0066d6;
  --purple: #bf5af2;
  --green: #30d158;
  --border: rgba(255, 255, 255, 0.75);
  --shadow: 0 20px 50px rgba(15, 23, 40, 0.08);
  --radius: 22px;
  --max: 1120px;
  --legal-max: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* 顶部导航 */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(238, 243, 250, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.site-nav .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* 导航始终单行，语言切换不另起一行 */
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover { text-decoration: none; }

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 22px;
  margin-left: auto; /* 链接区靠右，与语言切换同一行 */
  font-size: 14px;
  min-width: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

/* 中英文切换 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 252, 0.92) 100%);
  border: 1px solid rgba(15, 23, 40, 0.1);
  box-shadow:
    0 1px 2px rgba(15, 23, 40, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.lang-switch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 2px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  opacity: 0.82;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  line-height: 1;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lang-switch a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-switch a.is-active {
  background: linear-gradient(135deg, #0a84ff 0%, #0066d6 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #111 0%, #2b2b2f 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

/* Hero */
.hero {
  background: var(--bg-hero);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.65);
  top: -80px;
  left: -100px;
}

.hero::after {
  width: 280px;
  height: 280px;
  background: rgba(10, 132, 255, 0.14);
  top: 40px;
  right: -60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero .lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

.hero-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.15);
  color: #1f9a43;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.phone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(300px, 88%);
  padding: 12px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.phone-frame img {
  border-radius: 28px;
  width: 100%;
  height: auto;
}

.phone-shadow {
  position: absolute;
  bottom: -18px;
  width: 70%;
  height: 28px;
  background: radial-gradient(ellipse, rgba(15, 23, 40, 0.18), transparent 70%);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 40, 0.05);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  background: rgba(10, 132, 255, 0.1);
}

.glass-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.glass-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Screenshots */
.screenshots {
  background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
}

.shot-scroll {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.shot-item {
  scroll-snap-align: start;
  text-align: center;
}

.shot-item .phone-frame {
  width: 100%;
  margin: 0 auto;
}

.shot-item figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  background: var(--card-solid);
  border: 1px solid #e8edf5;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.price-card.pro {
  border-color: rgba(10, 132, 255, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  position: relative;
}

.price-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.price-card .price {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 700;
}

.price-card .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.price-list li {
  font-size: 14px;
  color: #334155;
  padding-left: 22px;
  position: relative;
}

.price-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--accent);
  font-weight: 700;
}

.price-list li.muted {
  color: var(--muted);
}

.price-list li.muted::before {
  color: #c0c7d2;
}

.pricing-note {
  margin: 20px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* CTA */
.cta {
  padding: 72px 0;
}

.cta-box {
  text-align: center;
  padding: 48px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f1728 0%, #1e3a5f 55%, #0a84ff 140%);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 34px);
}

.cta-box p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.cta-box .btn-primary {
  background: #fff;
  color: #0f1728;
}

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid #e4eaf2;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a { color: var(--muted); }

/* Legal pages */
.legal-page {
  background: linear-gradient(180deg, #eaf1fb 0%, var(--bg) 240px, var(--bg) 100%);
  min-height: 100vh;
}

.legal-wrap {
  max-width: var(--legal-max);
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.legal-header {
  text-align: left;
  margin-bottom: 28px;
}

.legal-header .brand {
  justify-content: center;
  margin-bottom: 16px;
}

.legal-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.legal-meta {
  color: var(--muted);
  font-size: 13px;
}

.legal-card {
  background: var(--card-solid);
  border: 1px solid #e4eaf2;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card p,
.legal-card li { color: #2f3a4a; }

.legal-card ul,
.legal-card ol {
  margin: 8px 0 0;
  padding-left: 1.25em;
}

.legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.legal-card th,
.legal-card td {
  border: 1px solid #e4eaf2;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-card th {
  background: #f7f9fc;
}

.legal-highlight {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0faf3;
  border: 1px solid #d4edda;
  font-size: 14px;
}

.legal-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0f6ff;
  border: 1px solid #d8e8ff;
  font-size: 13px;
  color: var(--muted);
}

.legal-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-showcase { order: -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shot-scroll { grid-template-columns: repeat(6, minmax(160px, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links .btn { padding: 10px 16px; font-size: 14px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .lang-switch { margin-left: auto; } /* 小屏仅保留语言切换时仍贴右 */
  .feature-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .section { padding: 56px 0; }
}
