/* 同花顺下载站 cn - 左侧固定窄栏 */
:root {
  --black: #161616;
  --amber: #e39b12;
  --gray: #f3f3f3;
  --white: #ffffff;
  --text: #222222;
  --muted: #555555;
  --line: #e0e0e0;
  --sidebar: 220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--gray);
}

a {
  color: var(--black);
  text-decoration: none;
}

a:hover {
  color: var(--amber);
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

/* 左栏固定 */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar);
  height: 100vh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  z-index: 100;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 36px;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 14px;
}

.brand a {
  color: var(--amber);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav a {
  color: #d0d0d0;
  padding: 10px 12px;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--amber);
  border-left-color: var(--amber);
  background: rgba(227, 155, 18, 0.08);
}

/* 右侧内容 */
.main-wrap {
  margin-left: var(--sidebar);
  min-height: 100vh;
}

.hero {
  background: var(--white);
  padding: 48px 40px 40px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 880px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 1.75rem;
  line-height: 1.35;
  color: var(--black);
  font-weight: 700;
  text-align: left;
}

.hero-desc {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.02rem;
  text-align: left;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--gray);
  border-left: 3px solid var(--amber);
  font-size: 0.95rem;
}

.feature-chip svg {
  flex-shrink: 0;
}

.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--amber);
  color: var(--black) !important;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: var(--black) !important;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--amber);
  color: var(--black) !important;
}

.content {
  max-width: 880px;
  padding: 0;
}

.section {
  padding: 40px;
}

.section:nth-child(odd) {
  background: var(--white);
}

.section:nth-child(even) {
  background: var(--gray);
}

.section h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  color: var(--black);
  border-left: 4px solid var(--amber);
  padding-left: 12px;
}

.section p {
  margin: 0 0 16px;
  color: var(--text);
}

.section p:last-child {
  margin-bottom: 0;
}

.icon-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.icon-row svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.news-list,
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item,
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child,
.faq-item:last-child {
  border-bottom: none;
}

.news-date {
  display: block;
  font-size: 0.85rem;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 6px;
}

.news-item h3,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--black);
}

.news-item p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  background: var(--black);
  color: #c8c8c8;
  padding: 28px 40px;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

/* 窄屏：左栏改顶部横条 */
@media (max-width: 860px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
  }

  .brand {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    margin-right: 20px;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 12px;
  }

  .nav a:hover,
  .nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--amber);
  }

  .main-wrap {
    margin-left: 0;
  }

  .hero,
  .section,
  .site-footer {
    padding: 28px 20px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }
}
