/* 有道理 · 吴大帅个人站 — 基础样式
   深色编辑风：近黑底 + 米白字 + 单一强调色（橙红）+ 状态绿点
   依赖：无外部字体、无外部库，纯静态，利于抓取与加载 */

:root {
  --bg: #0a0a0b;
  --bg-soft: #121214;
  --bg-card: #16161a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --fg: #f4f4f1;
  --muted: #9a9a9f;
  --muted-dim: #6e6e74;
  --accent: #ff4d2e;
  --accent-soft: rgba(255, 77, 46, 0.12);
  --live: #4ade80;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1120px;
  --gutter: 28px;
  --gap: 24px;
  --section-y: 104px;
  --head-y: 48px;
  --radius: 16px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- 布局骨架 ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.section--flush {
  border-top: 0;
}

.section-head {
  margin-bottom: var(--head-y);
}

.section-head h2 {
  max-width: 760px;
}

.section-head .lede {
  margin-top: 18px;
}

/* 标签行铺满整行并接一条细分隔线：建立统一基线，也是「科技感」的主要来源 */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 22px;
  white-space: nowrap;
}

.kicker::before {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.kicker::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(28px, 4.4vw, 44px);
}

h3 {
  font-size: clamp(19px, 2.4vw, 23px);
}

p {
  margin: 0 0 16px;
  color: #d6d6d2;
}

p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.lede {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--muted);
  max-width: 640px;
}

/* ---------- 顶部导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 11, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  font-size: 17px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a.is-active,
.nav-links a:hover {
  color: var(--fg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 7px 10px;
  cursor: pointer;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lang-switch a {
  padding: 6px 13px;
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--fg);
}

.lang-switch a.is-active {
  background: var(--fg);
  color: var(--bg);
}

.lang-switch a.is-active:hover {
  color: var(--bg);
}

/* ---------- 首屏 ---------- */

.hero {
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 560px;
  height: 560px;
  background: radial-gradient(
    circle,
    rgba(255, 77, 46, 0.10),
    rgba(255, 77, 46, 0) 66%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
  flex: none;
}

.hero-title {
  font-size: clamp(38px, 8.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
}

/* 中文首屏三行单独放宽：
   汉字撑满字身框，而拉丁字母自带上下留白，所以同一个行高下英文更透气。
   前两行作为一组收紧，第三行单独留出更大的间距，并把负字距归零。
   英文版不受影响。 */
html[lang^="zh"] .hero-title {
  line-height: 1.2;
  letter-spacing: 0;
}

html[lang^="zh"] .hero-title .hero-title-accent {
  margin-top: 0.2em;
}

.hero-title span {
  display: block;
}

.hero-title .hero-title-accent {
  color: var(--accent);
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 2vw, 20px);
  color: #d6d6d2;
  max-width: 620px;
}

.hero-en {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.hero-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn--solid {
  background: var(--accent);
  color: #fff;
}

.btn--solid:hover {
  background: #ff6347;
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--fg);
  color: var(--fg);
}

/* ---------- Now building 卡 ---------- */

.now-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-soft));
  padding: 26px;
}

.now-card .kicker {
  margin-bottom: 14px;
}

.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.now-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.now-list .now-title {
  font-weight: 650;
  display: block;
}

.now-list .now-desc {
  font-size: 14px;
  color: var(--muted);
  display: block;
}

.status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 3px;
}

.status--live {
  color: var(--live);
  border-color: rgba(74, 222, 128, 0.35);
}

.status--ship {
  color: var(--accent);
  border-color: rgba(255, 77, 46, 0.4);
}

/* ---------- 网格与卡片 ---------- */

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dim);
  letter-spacing: 0.06em;
}

/* ---------- 数据条 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg);
  padding: 32px 28px;
}

.stat-num {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: block;
  font-variant-numeric: tabular-nums;
}

.timeline-date,
.card-meta,
.channel-handle {
  font-variant-numeric: tabular-nums;
}

.stat-num em {
  font-style: normal;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 时间线 ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 40px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.timeline li.is-now::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.timeline-title {
  font-size: 18px;
  font-weight: 650;
  margin: 6px 0 8px;
}

.timeline p {
  font-size: 15px;
  color: var(--muted);
  max-width: 660px;
}

/* ---------- 引文 / 客户好评 ---------- */

.quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
}

.quote p {
  font-size: 17px;
  color: var(--fg);
}

.quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.quote cite a {
  border-bottom: 1px solid var(--line-strong);
}

/* ---------- 视频 ---------- */

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame--vertical {
  aspect-ratio: 9 / 16;
  max-width: 340px;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: repeating-linear-gradient(
    -45deg,
    #101013,
    #101013 12px,
    #131317 12px,
    #131317 24px
  );
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

/* ---------- 联系 ---------- */

.channel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.channel:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  color: inherit;
}

.channel--pending {
  border-style: dashed;
}

.channel-name {
  font-weight: 650;
}

.channel-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.channel--pending .channel-handle {
  color: var(--muted-dim);
}

.channel-note {
  font-size: 13px;
  color: var(--muted);
}

.channel-qr {
  width: 100%;
  max-width: 170px;
  height: auto;
  margin-top: 16px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-sm);
}

/* 卡片内左文右码：读完说明就能顺手扫码 */
.card--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.card-qr {
  width: 140px;
  height: auto;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.contact-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #17120f, var(--bg-soft) 60%);
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.contact-band h2 {
  font-size: clamp(24px, 3.4vw, 34px);
}

.qr-slot {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  max-width: 190px;
  justify-self: end;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dim);
  line-height: 1.8;
}

.qr-box {
  justify-self: end;
  max-width: 200px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
}

.qr-box img {
  width: 100%;
  height: auto;
  display: block;
}

.qr-box .qr-cap {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: #4a4a4a;
}

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  font-size: 13px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 2;
  color: var(--muted-dim);
}

/* ---------- 内页 ---------- */

/* ---------- 自我观察清单 ---------- */

.gc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.gc-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.gc-item:first-child {
  border-top: 1px solid var(--line);
}

.gc-q {
  margin: 0;
  font-size: 16px;
  color: var(--fg);
}

.gc-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gc-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.gc-opt:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.gc-opt input {
  accent-color: var(--accent);
  margin: 0;
}

.gc-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.gc-result {
  margin-top: 28px;
}

.gc-card {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 26px 28px;
}

.gc-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.gc-line {
  font-size: 19px;
  font-weight: 650;
  color: var(--fg);
  margin-bottom: 12px;
}

.gc-card p {
  font-size: 15px;
  color: var(--muted);
}

.gc-action {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.gc-action strong {
  color: var(--fg);
}

.gc-note {
  margin-top: 14px;
  font-size: 13px !important;
  color: var(--muted-dim) !important;
}

.gc-empty {
  color: var(--muted);
  font-size: 15px;
}

.page-head {
  padding: 72px 0 44px;
}

.page-head h1 {
  font-size: clamp(32px, 6vw, 60px);
  letter-spacing: -0.02em;
}

.page-head .lede {
  margin-top: 20px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 40px 0 14px;
}

.prose h3 {
  margin: 28px 0 10px;
}

.prose ul {
  padding-left: 20px;
  color: #d6d6d2;
}

.prose li {
  margin-bottom: 8px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }

  /* 右侧 Now building 卡与左侧大标题的起始边对齐，避免贴着顶部显得游离 */
  .hero-grid .now-card {
    margin-top: 62px;
  }
}

@media (max-width: 899px) {
  .card--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-qr {
    width: 170px;
  }

  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 11px 0;
    font-size: 16px;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-band {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px;
  }

  .qr-slot,
  .qr-box {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 18px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  /* 小屏上字号变小，原来 0.98 / 1.2 的行高会显得挤、甚至字形相接，
     这里按语言分别放宽，并收一点字号避免长句折行 */
  .hero-title {
    font-size: clamp(30px, 9.4vw, 46px);
    line-height: 1.15;
  }

  html[lang^="zh"] .hero-title {
    line-height: 1.22;
  }

  .hero-sub {
    font-size: 16px;
  }

  .stat {
    padding: 20px 18px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline li::before {
    left: -26px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
