/* 同花顺 cn 子域 · 行情看板版式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1a1a1a;
  background: #f0f2f4;
  line-height: 1.7;
  min-height: 100vh;
}

.board {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* —— 页头：瘦黑底 —— */
.hd {
  background: #111;
  color: #f5f5f5;
  margin: 0 -16px 18px;
  padding: 0 16px;
  border-bottom: 2px solid #e10600;
}

.hd > div {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 12px;
}

.hd strong {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #fff;
}

.hd strong svg {
  vertical-align: -3px;
  margin-right: 6px;
}

.hd nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.hd nav a {
  color: #c8c8c8;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.hd nav a:hover {
  color: #fff;
}

.hd nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #e10600;
  font-weight: 600;
}

/* —— Hero 四格看板 —— */
.tiles {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  margin-bottom: 20px;
}

.tiles > section {
  background: #fff;
  border: 1px solid #d8dce0;
  padding: 14px 16px;
}

.t-main {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: linear-gradient(165deg, #1a1a1a 0%, #2a2a2a 55%, #1e1e1e 100%);
  color: #eee;
  border-color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.t-main h1 {
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.t-main p {
  font-size: 0.92rem;
  color: #cfcfcf;
  margin-bottom: 12px;
}

.t-main p em {
  font-style: normal;
  color: #ffb3ad;
}

.t-main a[href*="THS_"] {
  display: inline-block;
  background: #e10600;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  margin-top: 8px;
}

.t-main a[href*="THS_"]:hover {
  background: #c00500;
}

.t-main a[href="download.html"] {
  color: #ffb3ad;
  font-weight: 600;
  text-decoration: underline;
}

.tape > p {
  font-size: 0.95rem;
  color: #2a2a2a;
  margin: 0 0 12px;
  line-height: 1.7;
}

.tape > p a {
  color: #e10600;
  font-weight: 600;
  text-decoration: none;
}

.tape > p a:hover {
  text-decoration: underline;
}

.t-sh {
  grid-column: 2 / span 2;
  grid-row: 1;
}

.t-hk {
  grid-column: 2;
  grid-row: 2;
}

.t-us {
  grid-column: 3;
  grid-row: 2;
}

.tiles h2,
.sheet h2,
.tape h2,
.qa-grid h2 {
  font-size: 1.12rem;
  color: #111;
  margin: 22px 0 12px;
  padding-left: 10px;
  border-left: 3px solid #e10600;
  line-height: 1.4;
}

.t-sh h3,
.t-hk h3,
.t-us h3 {
  font-size: 0.82rem;
  color: #666;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: none;
}

.tiles dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 0.88rem;
}

.tiles dt {
  color: #888;
}

.tiles dd {
  font-family: Consolas, "Cascadia Mono", monospace;
  text-align: right;
  font-weight: 600;
}

[data-chg="+"] {
  color: #e10600;
}

[data-chg="-"] {
  color: #0a8f4d;
}

[data-chg="0"] {
  color: #555;
}

/* —— 正文区 —— */
.sheet {
  background: #fff;
  border: 1px solid #d8dce0;
  padding: 8px 18px 22px;
  margin-bottom: 16px;
}

.sheet p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #2a2a2a;
}

.sheet ul,
.sheet ol {
  margin: 0 0 14px 1.25em;
  font-size: 0.95rem;
}

.sheet li {
  margin-bottom: 6px;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 0.88rem;
}

.sheet th,
.sheet td {
  border: 1px solid #e2e5e8;
  padding: 7px 10px;
  text-align: left;
}

.sheet th {
  background: #f7f8f9;
  font-weight: 600;
  color: #333;
}

.sheet td:nth-child(n + 2) {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.86rem;
}

.sheet a {
  color: #e10600;
  text-decoration: none;
  font-weight: 600;
}

.sheet a:hover {
  text-decoration: underline;
}

.sheet a[target="_blank"] {
  margin-right: 14px;
  display: inline-block;
  margin-bottom: 8px;
}

/* —— 新闻胶带行 —— */
.tape {
  background: #fff;
  border: 1px solid #d8dce0;
  padding: 8px 18px 18px;
  margin-bottom: 16px;
}

.tape article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eceef0;
}

.tape article:last-child {
  border-bottom: none;
}

.tape time {
  flex-shrink: 0;
  background: #e10600;
  color: #fff;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.75rem;
  padding: 3px 8px;
  line-height: 1.4;
  margin-top: 2px;
}

.tape h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
}

/* —— FAQ 两列：左问右答 —— */
.qa-grid {
  background: #fff;
  border: 1px solid #d8dce0;
  padding: 8px 18px 20px;
  margin-bottom: 16px;
}

.qa-grid > div {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) 1.4fr;
  gap: 10px 20px;
  padding: 12px 0;
  border-bottom: 1px solid #eceef0;
  align-items: start;
}

.qa-grid > div:last-of-type {
  border-bottom: none;
}

.qa-grid dt {
  font-weight: 700;
  color: #111;
  font-size: 0.92rem;
  line-height: 1.5;
}

.qa-grid dt::before {
  content: "Q";
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 0.7rem;
  width: 1.2rem;
  height: 1.2rem;
  text-align: center;
  line-height: 1.2rem;
  margin-right: 6px;
  font-family: Consolas, "Cascadia Mono", monospace;
  vertical-align: middle;
}

.qa-grid dd {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.65;
}

.qa-grid dd::before {
  content: "A";
  display: inline-block;
  background: #e10600;
  color: #fff;
  font-size: 0.7rem;
  width: 1.2rem;
  height: 1.2rem;
  text-align: center;
  line-height: 1.2rem;
  margin-right: 6px;
  font-family: Consolas, "Cascadia Mono", monospace;
  vertical-align: middle;
}

/* —— 页脚 —— */
.foot {
  background: #111;
  color: #aaa;
  margin: 24px -16px 0;
  padding: 18px 16px 28px;
  font-size: 0.82rem;
  line-height: 1.7;
  border-top: 2px solid #e10600;
}

.foot > div {
  max-width: 1080px;
  margin: 0 auto;
}

.foot p {
  margin-bottom: 8px;
}

.foot p:last-child {
  margin-bottom: 0;
  color: #888;
}

/* —— 响应式 —— */
@media (max-width: 860px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .t-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: auto;
  }

  .t-sh {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .t-hk {
    grid-column: 1;
    grid-row: auto;
  }

  .t-us {
    grid-column: 2;
    grid-row: auto;
  }

  .qa-grid > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .hd > div {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    min-height: auto;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .t-hk,
  .t-us {
    grid-column: 1;
  }

  .t-main h1 {
    font-size: 1.15rem;
  }

  .sheet {
    padding: 8px 12px 18px;
    overflow-x: auto;
  }

  .sheet table {
    min-width: 480px;
  }

  .tape article {
    flex-direction: column;
    gap: 6px;
  }
}

/* 数字与行情强调 */
.sheet strong {
  font-weight: 600;
}

.t-main ul {
  list-style: none;
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #ddd;
}

.t-main ul li {
  padding: 2px 0 2px 12px;
  position: relative;
}

.t-main ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: #e10600;
}

.sheet h2:first-child {
  margin-top: 14px;
}
