/* 同花顺财经落地站 - 浅色仪表盘 */
:root {
  --bg: #ECEFF6;
  --text: #1c2340;
  --accent: #3949AB;
  --card: #ffffff;
  --muted: #5a6480;
  --line: #d8dce8;
  --shadow: 0 2px 10px rgba(28, 35, 64, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* 顶栏 */
.site-header {
  padding: 18px 0 8px;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-seg {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.nav-seg a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-seg a:hover {
  color: var(--accent);
  background: #f3f5fb;
  text-decoration: none;
}

.nav-seg a.active {
  background: var(--accent);
  color: #fff;
}

/* Hero 查询面板 */
.hero {
  margin: 18px 0 28px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 28px 28px 24px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
}

.search-fake {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f7fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.search-fake .placeholder {
  flex: 1;
}

.search-fake svg {
  flex-shrink: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-tags span {
  display: inline-block;
  padding: 4px 12px;
  background: #eef1fa;
  color: var(--accent);
  border-radius: 6px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.92;
  text-decoration: none !important;
}

.btn-ghost {
  background: #fff;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card {
  background: #f7f8fd;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
}

.metric-card .label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.metric-card .num {
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
  color: var(--text);
  font-weight: 600;
}

.metric-card .unit {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 400;
}

/* 下载按钮组 */
.dl-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

/* 主内容 */
main {
  padding-bottom: 40px;
}

.section {
  margin-bottom: 28px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.section p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
}

/* 功能区 4 列 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 8px 0 4px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 18px 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.card .num {
  font-family: Consolas, "Courier New", monospace;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 6px;
}

/* 新闻 / FAQ */
.news-list,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item,
.faq-item {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 16px 18px;
}

.news-item h3,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.news-item p,
.faq-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.example-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.example-list .card p {
  margin-top: 6px;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer p {
  margin: 0 0 8px;
}

/* 内联 SVG 装饰条 */
.deco-bar {
  display: block;
  margin: 0 0 10px;
}

/* 响应式 */
@media (max-width: 900px) {
  .metric-row,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .example-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .metric-row,
  .feature-grid,
  .example-list {
    grid-template-columns: 1fr;
  }

  .nav-seg {
    width: 100%;
    justify-content: space-between;
  }

  .nav-seg a {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 13px;
  }

  .hero {
    padding: 20px 16px;
  }

  body {
    font-size: 14px;
  }
}
