/* 同花顺落地站：左侧固定栏 + 右侧内容 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f4f7fb;
  color: #1a2332;
  line-height: 1.75;
  font-size: 16px;
}

a {
  color: #1a73c7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 左侧固定栏 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #0a3d7a;
  color: #fff;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.brand-mark {
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar nav a {
  color: #e8f0fa;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 15px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.sidebar-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-top: 16px;
}

/* 右侧主内容 */
.main {
  margin-left: 240px;
  min-height: 100vh;
  padding: 36px 48px 48px;
  max-width: 960px;
}

h1 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: #0a3d7a;
  margin: 0 0 18px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0a3d7a;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid #1a73c7;
  line-height: 1.45;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a2332;
  margin: 18px 0 8px;
}

p {
  margin: 0 0 14px;
  color: #2c3a4d;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.hero-lead {
  margin-bottom: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.pill-row span {
  display: inline-block;
  padding: 4px 14px;
  background: #e8f1fb;
  color: #0a3d7a;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  border-left: 3px solid #1a73c7;
}

/* 静态行情表 */
.quote-panel {
  background: #fff;
  border: 1px solid #d6e3f0;
  border-radius: 2px;
  overflow: hidden;
}

.quote-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.quote-panel th,
.quote-panel td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e8eef5;
}

.quote-panel th {
  background: #0a3d7a;
  color: #fff;
  font-weight: 600;
}

.quote-panel tr:last-child td {
  border-bottom: none;
}

.quote-up {
  color: #c62828;
}

.quote-down {
  color: #2e7d32;
}

.quote-caption {
  font-size: 12px;
  color: #6b7a8d;
  padding: 8px 12px;
  background: #f8fafc;
  margin: 0;
}

/* 下载按钮组 */
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.dl-actions a,
.btn-primary {
  display: inline-block;
  padding: 10px 18px;
  background: #0a3d7a;
  color: #fff !important;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.dl-actions a:hover,
.btn-primary:hover {
  background: #1a73c7;
}

.cta-block {
  margin: 20px 0 28px;
}

.cta-block .btn-primary {
  margin-top: 8px;
}

/* 新闻列表 */
.news-list article {
  padding: 12px 0 16px;
  border-bottom: 1px solid #e0e8f0;
}

.news-list article:last-child {
  border-bottom: none;
}

.news-list time {
  display: block;
  font-size: 13px;
  color: #6b7a8d;
  margin-bottom: 4px;
}

.news-list h3 {
  margin-top: 0;
}

/* FAQ */
.faq-item {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e0e8f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 16px;
}

/* 页脚 */
.site-footer {
  margin-left: 240px;
  padding: 28px 48px 40px;
  max-width: 960px;
  border-top: 1px solid #d6e3f0;
  font-size: 13px;
  color: #5a6a7d;
  line-height: 1.7;
}

.site-footer a {
  color: #1a73c7;
}

.site-footer p {
  margin: 0 0 8px;
  color: #5a6a7d;
  font-size: 13px;
}

/* 窄屏：侧栏改顶部横向 */
@media (max-width: 860px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 18px;
    gap: 12px;
  }

  .brand {
    margin-bottom: 0;
  }

  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 100%;
    gap: 4px;
  }

  .sidebar nav a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .sidebar-note {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 24px 18px 36px;
  }

  .site-footer {
    margin-left: 0;
    padding: 24px 18px 36px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 22px;
  }
}
