/*
Theme Name: Thomas Chen Investor
Theme URI: https://newcasing.com/
Author: Thomas Chen
Description: 中文投资人个人主页，采用克制的编辑式排版；主页内容可在“外观 → 自定义 → 主页内容”中修改。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thomas-chen-investor
*/

:root {
  --white: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #29025c;
  --accent-soft: #f6f2f9;
  --accent-dark: #1d013f;
  --fs-xs: 13px;
  --fs-body: 17px;
  --fs-subhead: clamp(25px, 2vw, 30px);
  --fs-section: clamp(36px, 3vw, 44px);
  --fs-display: clamp(58px, 6.4vw, 92px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif; font-size: var(--fs-body); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 8px 12px; background: var(--accent); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 clamp(24px, 4.2vw, 76px); border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.wordmark { color: var(--accent); font-size: var(--fs-body); font-weight: 750; letter-spacing: -.015em; }
.site-header nav { display: flex; gap: clamp(22px, 3vw, 48px); }
.site-header nav a { position: relative; padding: 27px 0 24px; color: var(--muted); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.site-header nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-header nav a:hover, .site-header nav a.active { color: var(--accent); }
.site-header nav a.active::after { transform: scaleX(1); }

.page-grid { display: grid; grid-template-columns: minmax(140px,.8fr) minmax(0,5.2fr); column-gap: clamp(44px,5vw,90px); padding-right: clamp(24px,4.2vw,76px); padding-left: clamp(24px,4.2vw,76px); }
.hero { min-height: 700px; padding-top: clamp(92px,11vw,160px); padding-bottom: 82px; border-bottom: 1px solid rgba(255,255,255,.24); color: var(--white); grid-template-rows: auto 1fr; background: linear-gradient(90deg,rgba(18,2,44,.92) 0%,rgba(27,4,58,.76) 43%,rgba(14,5,35,.34) 74%,rgba(7,4,20,.2) 100%),linear-gradient(180deg,rgba(5,3,16,.1),rgba(5,3,16,.34)),url("assets/images/hero-reflection.jpg") center 58%/cover no-repeat; }
.eyebrow { color: rgba(255,255,255,.72); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .04em; }
.hero-copy { grid-column: 2; max-width: 1030px; }
.hero h1 { max-width: 980px; margin: 0; color: var(--white); font-size: var(--fs-display); font-weight: 720; letter-spacing: -.065em; line-height: .98; text-shadow: 0 2px 32px rgba(10,0,28,.22); }
.hero-intro { max-width: 860px; margin: 50px 0 34px; color: rgba(255,255,255,.84); font-size: var(--fs-body); line-height: 1.72; }
.text-link { display: inline-flex; gap: 18px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.72); color: var(--white); font-size: var(--fs-xs); font-weight: 600; }
.hero-note { align-self: end; grid-column: 1; grid-row: 2; color: rgba(255,255,255,.62); }
.hero-note > span, .hero-note small { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; }
.hero-note p { margin: 16px 0 30px; color: var(--white); font-size: var(--fs-body); line-height: 1.85; }

.section { padding-top: 110px; padding-bottom: 124px; border-bottom: 1px solid var(--line); }
.section-label { align-self: start; color: var(--accent); }
.section-label h2 { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; }
.section-content { grid-column: 2; }
.section-lead { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; padding-bottom: 30px; }
.section-lead p { margin: 0; font-size: var(--fs-section); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.section-lead span { max-width: 420px; color: var(--muted); font-size: var(--fs-xs); text-align: right; }

.research-item { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.research-trigger { display: grid; grid-template-columns: 84px minmax(0,1fr) 28px; gap: clamp(24px,3vw,52px); width: 100%; padding: 42px 0 46px; }
.research-number { color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.research-main { display: grid; grid-template-columns: minmax(360px,1.2fr) minmax(260px,.75fr); grid-template-rows: auto 1fr; column-gap: clamp(46px,5.4vw,92px); }
.research-meta { grid-column: 1; margin-bottom: 13px; color: var(--accent); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; }
.research-main strong { grid-column: 1; font-size: var(--fs-subhead); font-weight: 650; letter-spacing: -.035em; line-height: 1.28; }
.research-deck { grid-column: 2; grid-row: 1/span 2; align-self: end; max-width: 34em; color: var(--muted); font-size: var(--fs-body); line-height: 1.8; }
.research-arrow { color: var(--accent); font-size: var(--fs-subhead); line-height: 1; transition: transform .2s ease; }
.research-trigger:hover .research-main strong { color: var(--accent); }
.research-trigger:hover .research-arrow { transform: translate(3px,-3px); }

.timeline { border-top: 1px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 46px; padding: 40px 0 46px; border-bottom: 1px solid var(--line); }
.timeline-item time { color: var(--muted); font-size: var(--fs-xs); }
.timeline-company { margin: 0 0 7px!important; color: var(--accent)!important; font-size: var(--fs-xs)!important; font-weight: 650; }
.timeline-item h3 { margin: 0 0 18px; font-size: var(--fs-subhead); font-weight: 650; letter-spacing: -.025em; }
.timeline-item p { max-width: 820px; margin: 0; color: #424245; font-size: var(--fs-body); line-height: 1.9; }
.timeline-item small { display: block; margin-top: 18px; color: var(--muted); font-size: var(--fs-xs); }

.framework-intro { max-width: 930px; margin: 0 0 64px; font-size: var(--fs-section); font-weight: 650; letter-spacing: -.045em; line-height: 1.35; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--ink); }
.principles article { min-height: 255px; padding: 30px 30px 12px 0; border-right: 1px solid var(--line); }
.principles article:not(:first-child) { padding-left: 30px; }
.principles article:last-child { border-right: 0; }
.principles span { color: var(--accent); font-size: var(--fs-xs); font-weight: 650; }
.principles h3 { margin: 48px 0 16px; font-size: var(--fs-subhead); font-weight: 650; letter-spacing: -.02em; }
.principles p { margin: 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.85; }

.about-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(64px,9vw,150px); }
.about-statement p { margin: 0; font-size: var(--fs-section); font-weight: 650; letter-spacing: -.04em; line-height: 1.45; }
.about-body > p { margin: 0 0 24px; color: #424245; font-size: var(--fs-body); line-height: 1.95; }
.about-body dl { margin: 58px 0 0; border-top: 1px solid var(--ink); }
.about-body dl div { display: grid; grid-template-columns: 72px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.about-body dt { color: var(--muted); font-size: var(--fs-xs); }
.about-body dd { margin: 0; font-size: var(--fs-body); line-height: 1.8; }

.contact { padding-top: 108px; padding-bottom: 116px; background: var(--accent); color: var(--white); }
.section-label.light { color: rgba(255,255,255,.68); }
.contact-content { grid-column: 2; }
.contact-heading { max-width: 980px; margin: 0 0 88px; font-size: var(--fs-section); font-weight: 650; letter-spacing: -.045em; line-height: 1.3; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8vw; }
.contact-links a { display: grid; grid-template-columns: 66px 1fr 20px; gap: 10px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.3); }
.contact-links a:last-child { border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-links span, .wechat-card > div > span { color: rgba(255,255,255,.62); font-size: var(--fs-xs); }
.contact-links strong { font-size: var(--fs-body); font-weight: 500; }
.contact-links i { font-style: normal; transition: transform .2s ease; }
.contact-links a:hover i { transform: translate(3px,-3px); }
.wechat-card { display: grid; grid-template-columns: 118px 1fr; gap: 25px; align-items: end; }
.qr-image { width: 118px; aspect-ratio: 1; padding: 7px; background: var(--white); }
.qr-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wechat-card p { margin: 8px 0 0; font-size: var(--fs-body); line-height: 1.45; }
.wechat-card small { color: rgba(255,255,255,.62); font-size: var(--fs-xs); }

footer { display: grid; grid-template-columns: 1fr 2.5fr auto; gap: 30px; padding: 26px clamp(24px,4.2vw,76px); background: var(--accent-dark); color: rgba(255,255,255,.58); font-size: var(--fs-xs); }
footer p { margin: 0; }
footer a { color: var(--white); }
.basic-page { max-width: 960px; min-height: 70vh; margin: 0 auto; padding: 90px 28px 120px; }
.basic-page h1 { color: var(--accent); font-size: var(--fs-section); }

/* Research article */
.article-page { background: var(--white); }
.article-hero { max-width: 1120px; margin: 0 auto; padding: 92px 36px 96px; }
.article-back { display: inline-block; margin-bottom: 72px; color: var(--accent); font-size: var(--fs-xs); font-weight: 600; }
.article-meta { margin: 0 0 24px; color: var(--accent); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; }
.article-hero h1 { max-width: 1000px; margin: 0; font-size: var(--fs-display); font-weight: 720; letter-spacing: -.06em; line-height: 1.04; }
.article-subtitle { margin: 28px 0 0; color: var(--accent); font-size: var(--fs-subhead); font-weight: 600; }
.article-deck { max-width: 900px; margin: 52px 0 0; color: #424245; font-size: var(--fs-body); line-height: 1.85; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0,930px); gap: clamp(54px,7vw,110px); justify-content: center; padding: 88px 36px 132px; border-top: 1px solid var(--line); }
.article-toc { position: sticky; top: 108px; align-self: start; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 140px); overflow-y: auto; }
.article-toc > span { margin-bottom: 8px; color: var(--accent); font-size: var(--fs-xs); font-weight: 700; }
.article-toc a { color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; }
.report-body { min-width: 0; }
.report-disclaimer { margin-bottom: 68px; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: #4b4252; font-size: var(--fs-body); line-height: 1.8; }
.report-body h2 { margin: 104px 0 34px; padding-top: 28px; border-top: 2px solid var(--accent); font-size: var(--fs-section); font-weight: 700; letter-spacing: -.045em; line-height: 1.25; }
.report-body h2:first-of-type { margin-top: 0; }
.report-body h3, .report-body h4 { margin: 62px 0 22px; font-size: var(--fs-subhead); font-weight: 680; letter-spacing: -.025em; line-height: 1.4; }
.report-body > p { margin: 0 0 24px; color: #353238; font-size: var(--fs-body); line-height: 1.95; text-align: justify; }
.report-bullet { position: relative; padding-left: 24px; }
.report-bullet::before { content: ""; position: absolute; top: .82em; left: 2px; width: 7px; height: 7px; background: var(--accent); }
.report-callout { margin: 32px 0 38px; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.report-callout strong { display: block; margin-bottom: 8px; color: var(--accent); font-size: var(--fs-body); }
.report-callout p { margin: 0; color: #39323f; font-size: var(--fs-body); line-height: 1.8; }
.report-table-wrap { width: 100%; margin: 32px 0 44px; overflow-x: auto; border-top: 2px solid var(--accent); }
.report-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--fs-xs); line-height: 1.55; }
.report-table th { padding: 14px 15px; background: var(--accent); color: #fff; font-weight: 650; text-align: left; }
.report-table td { padding: 14px 15px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.report-table tbody tr:nth-child(even) { background: #faf9fb; }
.report-figure { width: calc(100% + 80px); margin: 48px 0 12px -40px; }
.report-figure img { display: block; width: 100%; height: auto; }
.report-caption { margin: 10px 0 44px!important; color: var(--ink)!important; font-size: var(--fs-xs)!important; font-weight: 650; text-align: center!important; }

@media (max-width:1120px) {
  .research-main { grid-template-columns: minmax(0,1fr); }
  .research-meta, .research-main strong, .research-deck { grid-column: 1; grid-row: auto; }
  .research-deck { max-width: 62ch; margin-top: 18px; }
  .article-layout { grid-template-columns: 180px minmax(0,1fr); }
}
@media (max-width:900px) {
  .page-grid { grid-template-columns: 110px minmax(0,1fr); gap: 36px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 62px; }
  .principles { grid-template-columns: 1fr; }
  .principles article, .principles article:not(:first-child) { min-height: 0; padding: 28px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principles h3 { margin-top: 20px; }
  .article-layout { display: block; padding-top: 44px; }
  .article-toc { position: static; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 24px; max-height: none; margin-bottom: 72px; padding-bottom: 34px; border-bottom: 1px solid var(--line); overflow: visible; }
  .article-toc > span { grid-column: 1/-1; }
}
@media (max-width:700px) {
  :root { --fs-subhead:25px; --fs-section:34px; --fs-display:clamp(46px,13vw,62px); }
  html { scroll-padding-top: 112px; }
  .site-header { display: block; min-height: 104px; padding: 17px 20px 0; }
  .wordmark { display: block; width: max-content; }
  .site-header nav { justify-content: space-between; gap: 15px; margin-top: 7px; overflow-x: auto; }
  .site-header nav a { padding: 12px 0 14px; }
  .page-grid { display: block; padding-right: 20px; padding-left: 20px; }
  .hero { min-height: auto; padding-top: 72px; padding-bottom: 58px; }
  .eyebrow { margin-bottom: 64px; }
  .hero h1 { line-height: 1.02; }
  .hero-intro { margin-top: 38px; }
  .hero-note { margin-top: 84px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.3); }
  .section { padding-top: 76px; padding-bottom: 86px; }
  .section-label { margin-bottom: 46px; }
  .section-lead { display: block; }
  .section-lead p { margin-bottom: 10px; }
  .section-lead span { display: block; text-align: left; }
  .research-trigger { grid-template-columns: minmax(0,1fr) 22px; gap: 10px; padding: 30px 0 34px; }
  .research-number { grid-column: 1; margin-bottom: 14px; }
  .research-main { grid-column: 1; grid-row: 2; }
  .research-deck { margin-top: 16px; }
  .research-arrow { grid-column: 2; grid-row: 1/span 2; }
  .timeline-item { grid-template-columns: 1fr; gap: 14px; }
  .contact { padding-top: 76px; padding-bottom: 82px; }
  .contact-links a { grid-template-columns: 48px 1fr 16px; }
  .wechat-card { grid-template-columns: 105px 1fr; }
  .qr-image { width: 105px; }
  footer { grid-template-columns: 1fr auto; padding: 25px 20px; }
  footer p:nth-child(2) { grid-column: 1/-1; grid-row: 2; }
  .article-hero { padding: 56px 20px 72px; }
  .article-back { margin-bottom: 50px; }
  .article-layout { padding: 42px 20px 92px; }
  .article-toc { grid-template-columns: 1fr; margin-bottom: 58px; }
  .report-body > p { text-align: left; }
  .report-figure { width: 100%; margin: 36px 0 10px; overflow-x: auto; }
  .report-figure img { min-width: 620px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}
