:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --page: #07111f;
  --panel: #0d1b2e;
  --panel-raised: #122440;
  --line: #1a2a40;
  --text: #e7edf8;
  --muted: #8998ae;
  --blue: #4f91ff;
  --blue-hover: #6ea5ff;
  --gold: #d8ad60;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background-color: var(--page);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 650px 560px at 76% 18%, rgba(27, 61, 105, 0.34), transparent 72%),
    radial-gradient(ellipse 520px 390px at 93% 30%, rgba(12, 75, 77, 0.22), transparent 74%),
    var(--page);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 主体内容宽度规范：优先在窗口内完整展现，最大宽度 1180px 并居中，两侧空白随窗口剩余宽度动态拉伸 */
.site-width {
  width: 100%;
  max-width: 1180px;
  padding-inline: 24px;
  margin-inline: auto;
}

/* 顶部固定导航栏 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.brand span {
  color: var(--blue);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 100%;
  color: #c0c9d7;
}

.main-nav > a {
  font-size: 13px;
  transition: color 0.18s ease;
}

.main-nav > a:hover {
  color: #ffffff;
}

/* 语言切换控件 */
.language-control {
  margin-left: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-control::after {
  content: "⌄";
  color: #9ba8bc;
  font-size: 12px;
  position: absolute;
  right: 12px;
  top: 7px;
  pointer-events: none;
}

.language-control select {
  appearance: none;
  -webkit-appearance: none;
  width: 106px;
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a1626;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.language-control select:hover {
  border-color: #2b4366;
  background: #0f1f35;
}

.language-control select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* 主体页面内容 */
.page-content {
  padding-top: 136px;
}

/* 英雄区 Hero */
.hero {
  min-height: 244px;
  display: grid;
  grid-template-columns: 1fr 332px;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.hero-copy {
  max-width: 630px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

h1, h2, h3, p {
  margin-top: 0;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0;
  color: #ffffff;
}

.hero-description {
  max-width: 615px;
  margin-bottom: 18px;
  color: #9aa9bf;
  font-size: 15px;
  line-height: 1.65;
}

.access-note {
  display: inline-flex;
  min-width: 200px;
  min-height: 35px;
  align-items: center;
  padding: 5px 16px;
  border: 1px solid #28456c;
  border-radius: 20px;
  color: #a8bad3;
  font-size: 13px;
}

.availability {
  margin-top: 28px;
  min-height: 145px;
  padding: 18px 22px;
  border-left: 2px solid var(--blue);
  background: rgba(20, 39, 67, 0.92);
}

.availability h2 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: #ffffff;
}

.availability p {
  margin: 0;
  color: #9ba9bd;
  font-size: 13px;
  line-height: 1.65;
}

/* 产品核心区 */
.product-section {
  margin-top: 36px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0 0 2px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

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

.demo-label {
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 13px;
  white-space: nowrap;
}

.forecast-panel {
  overflow: hidden;
  border: 1px solid #1c2d45;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
}

/* 股票 Tab 栏 */
.stock-tabs {
  display: flex;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #344761 transparent;
}

.stock-tab {
  flex: 0 0 180px;
  min-width: 160px;
  height: 66px;
  overflow: hidden;
  padding: 12px 18px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #0a1728;
  color: #8e9db2;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.stock-tab strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a0afc4;
}

.stock-tab small {
  display: block;
  font-size: 11px;
  color: #5c6e86;
  margin-top: 2px;
}

.stock-tab:hover {
  background: #10213a;
  color: #dce6f5;
}

.stock-tab:hover strong {
  color: #dce6f5;
}

.stock-tab:hover small {
  color: #8294ad;
}

.stock-tab[aria-selected="true"] {
  border-bottom-color: var(--blue);
  background: #182b49;
  color: #e4ecf8;
}

.stock-tab[aria-selected="true"] strong {
  color: #ffffff;
  font-weight: 600;
}

.stock-tab[aria-selected="true"] small {
  color: #8bb3f0;
}

/* 走势卡片内容区 */
.forecast-content {
  padding: 22px 26px 26px;
}

.quote-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 70px;
}

.quote-header h3 {
  margin: 0 0 2px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

.stock-code {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

#stock-price {
  font-size: 26px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.price-block small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 10px;
  color: #8999b0;
  font-size: 13px;
}

.chart-viewport {
  width: 100%;
  height: 250px;
  position: relative;
}

#forecast-chart {
  display: block;
  width: 100%;
  height: 250px;
}

.forecast-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.forecast-metrics div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forecast-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.forecast-metrics strong {
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
}

.chart-disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* 核心特性三栏 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 36px;
}

.feature-item {
  min-height: 168px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.feature-index {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.feature-item h2 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #ffffff;
}

.feature-item > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* 关于我们与联系我们 */
.about-section {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 5vw, 70px);
  margin-top: 44px;
  padding: 48px 0 42px;
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 610px;
}

.about-copy .eyebrow {
  margin-bottom: 8px;
}

.about-copy h2 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 700;
  color: #ffffff;
}

.about-copy p:not(.eyebrow) {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.contact-panel {
  min-height: 210px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 19, 34, 0.38);
}

.contact-panel h2 {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.contact-details {
  margin-top: 52px;
  color: var(--muted);
  font-size: 13px;
}

.contact-details p {
  margin-bottom: 10px;
}

.contact-details strong {
  color: #aab8cb;
  font-weight: 500;
}

/* 风险告知 */
.risk-notice {
  margin: 0;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  color: #8190a5;
  font-size: 12px;
  line-height: 1.6;
}

/* 底部全宽容器与居中版权 */
.site-footer {
  width: 100%;
  min-height: 94px;
  border-top: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.8);
}

.footer-inner {
  padding-top: 22px;
  padding-bottom: 24px;
  color: #8998ae;
  font-size: 12px;
  line-height: 1.6;
}

.footer-inner p {
  margin: 0 0 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
