/* 同花顺子站：左侧深色导航 + 主区阅读版式 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
  background: #f6f1ea;
  line-height: 1.75;
}

a {
  color: #b42318;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #2a2a2a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 28px 0 24px;
}

.brand {
  display: block;
  padding: 0 24px 28px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.brand:hover {
  text-decoration: none;
  color: #ffffff;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.nav a {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  border-radius: 4px;
}

.nav a:hover {
  background: #3a3a3a;
  text-decoration: none;
}

.nav a.active {
  background: #b42318;
  color: #ffffff;
}

.sidebar-download {
  margin-top: auto;
  padding: 24px 16px 0;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: #b42318;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  border: none;
  line-height: 1.4;
}

.btn:hover {
  background: #931c14;
  color: #ffffff;
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
}

.main {
  flex: 1;
  min-width: 0;
  background: #f6f1ea;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  padding: 36px 48px 48px;
  max-width: 920px;
}

.hero {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e0d6c8;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.hero-links a {
  color: #333333;
  font-weight: 600;
  border-bottom: 2px solid #b42318;
  padding-bottom: 2px;
}

.hero-links a:hover {
  color: #b42318;
  text-decoration: none;
}

h2 {
  margin: 40px 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #222222;
}

p {
  margin: 0 0 14px;
  text-align: justify;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
}

.download-row .btn {
  min-width: 160px;
}

.news-block article {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8dfd2;
}

.news-block article:last-child {
  border-bottom: none;
}

.news-block time {
  display: block;
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 4px;
}

.news-block h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-block h3 {
  margin-top: 28px;
}

.faq-block h3:first-of-type {
  margin-top: 8px;
}

.site-footer {
  margin-top: auto;
  padding: 20px 48px 28px;
  border-top: 1px solid #d9cfc0;
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.7;
  max-width: 920px;
}

.site-footer p {
  margin: 0 0 8px;
  text-align: left;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 16px 0 12px;
  }

  .brand {
    padding: 0 16px 12px;
    font-size: 1.35rem;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 12px;
    gap: 6px;
  }

  .nav a {
    padding: 8px 14px;
  }

  .sidebar-download {
    margin-top: 12px;
    padding: 8px 16px 4px;
  }

  .sidebar-download .btn-block {
    width: auto;
    display: inline-block;
  }

  .content {
    padding: 24px 20px 32px;
  }

  .site-footer {
    padding: 16px 20px 24px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }
}
