/* 通慧达 · 知识兵器库 */
/* 气质：暖木色工作间，工具挂墙上，每样东西在它该在的位置 */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f0e8;
  --card: #faf7f2;
  --text: #2c2416;
  --text-light: #6b5e4a;
  --accent: #c41e3a;
  --accent-hover: #a0182e;
  --border: #e0d5c1;
  --border-light: #ebe3d4;
  --lock-overlay: rgba(245, 240, 232, 0.92);
  --shadow: 0 1px 3px rgba(44, 36, 22, 0.06);
  --shadow-lg: 0 4px 16px rgba(44, 36, 22, 0.08);
  --radius: 6px;
  --max-width: 720px;
  --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 80px;
  -webkit-font-smoothing: antialiased;
}

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.4; }
h1 { font-size: 1.8rem; margin: 32px 0 16px; letter-spacing: 0.02em; }
h2 { font-size: 1.4rem; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
h3 { font-size: 1.15rem; margin: 28px 0 8px; color: var(--text); }
h4 { font-size: 1.05rem; margin: 20px 0 6px; }

p { margin: 12px 0; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
a:hover { border-bottom-color: var(--accent); }

blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
  font-style: italic;
}

strong { font-weight: 700; color: var(--text); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* === Tables === */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.table-wrap table { margin: 0; box-shadow: none; border-radius: 0; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 480px) {
  table { font-size: 0.82rem; display: block; overflow-x: auto; white-space: nowrap; }
  th, td { padding: 8px 10px; }
}

th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: #ede4d5;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

/* === Lists === */
ul, ol { margin: 12px 0; padding-left: 24px; }
li { margin: 6px 0; }
li strong { display: inline; }

/* === Code / Inline === */
code {
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.88em;
  background: #ede4d5;
  padding: 2px 6px;
  border-radius: 3px;
}

/* === Navigation === */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav .brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: none;
}

.site-nav .brand span { color: var(--accent); }

.site-nav .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav .links a {
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: none;
  padding: 2px 0;
  transition: color 0.2s;
}

.site-nav .links a:hover { color: var(--accent); }

/* === Cards === */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }

/* === Hero (Homepage) === */
.hero {
  text-align: center;
  padding: 40px 0 32px;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.hero .subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === Four Skills Grid === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.skill-card .skill-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.skill-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.skill-card .skill-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.skill-card .skill-count {
  font-size: 0.78rem;
  color: var(--accent);
  margin: 8px 0 0;
}

/* === Industry Tags === */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 40px 0 16px;
  text-align: center;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 28px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fdf2f4;
}

.tag.free { border-color: #8b9e6b; }
.tag.free::after { content: " · 免费"; font-size: 0.72rem; color: #8b9e6b; }
.tag.locked { border-style: dashed; }
.tag.locked::after { content: " 🔒"; font-size: 0.72rem; }

/* === Member Lock Overlay === */
.locked-content {
  position: relative;
}

.locked-content .lock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--lock-overlay) 0%, var(--lock-overlay) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  z-index: 10;
  border-radius: var(--radius);
}

.locked-content .lock-overlay .lock-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.locked-content .lock-overlay h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.locked-content .lock-overlay p {
  color: var(--text-light);
  margin: 0 0 20px;
  font-size: 0.92rem;
}

.locked-content .lock-overlay .unlock-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.locked-content .lock-overlay input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: #fff;
  width: 200px;
}

.locked-content .lock-overlay input:focus {
  outline: none;
  border-color: var(--accent);
}

.locked-content .lock-overlay button {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}

.locked-content .lock-overlay button:hover { background: var(--accent-hover); }

.locked-content .lock-overlay .hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 12px;
}

.locked-content .lock-overlay .hint a {
  color: var(--accent);
  border-bottom: 1px dotted var(--accent);
}

.lock-message {
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 20px;
}

.lock-message.error { color: var(--accent); }
.lock-message.success { color: #5a8a3c; }

/* === Case Cards === */
.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.case-card .case-label {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.case-card h3 { margin-top: 0; }

.case-card .case-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* === Access Page === */
.access-page {
  text-align: center;
  padding: 48px 0;
}

.access-page .qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.access-page .wechat-id {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0;
  padding: 8px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: inline-block;
}

/* === Catalog Page === */
.catalog-tree {
  margin: 20px 0;
}

.catalog-tree .tree-section {
  margin: 24px 0;
}

.catalog-tree .tree-section h3 {
  font-family: var(--font-heading);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.catalog-tree .tree-item {
  display: flex;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dotted var(--border-light);
}

.catalog-tree .tree-item .item-title {
  flex: 1;
  font-size: 0.95rem;
}

.catalog-tree .tree-item .item-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  margin-left: 8px;
}

.catalog-tree .tree-item .badge-free {
  background: #e8f0de;
  color: #5a7a3a;
}

.catalog-tree .tree-item .badge-locked {
  background: #fde8e8;
  color: var(--accent);
}

/* === Footer === */
.site-footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.85rem;
}

/* === Utilities === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 40px; }

/* === CTA Button === */
.btn-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff !important;
  font-size: 1rem;
  font-family: var(--font-heading);
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cta:hover { background: var(--accent-hover); }

/* === Category header on industry pages === */
.category-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: -8px 0 20px;
}

/* === Update date badge === */
.update-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 12px;
  margin-left: 8px;
}
/* === Trust Hero & Progressive Disclosure === */
.trust-hero {
  text-align: center;
  padding: 48px 0 24px;
}
.trust-hero h1 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin: 0 0 4px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.trust-big-word {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: 0.08em;
}
.trust-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.trust-stack {
  max-width: 560px;
  margin: 28px auto;
}
.trust-stack details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 8px 0;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.trust-stack details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.trust-stack summary {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  color: var(--text);
}
.trust-stack summary::-webkit-details-marker { display: none; }
.trust-stack summary::marker { display: none; content: none; }
.trust-stack .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.trust-stack summary::after {
  content: 'v';
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: transform 0.2s;
}
.trust-stack details[open] summary::after {
  content: '^';
}
.trust-content {
  padding: 0 20px 20px 24px;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--text);
}
.trust-content p { margin: 8px 0; }
.trust-source {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.trust-cta {
  text-align: center;
  margin: 24px 0 0;
}
.btn-trust {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  border-bottom: none;
  font-size: 0.95rem;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-trust:hover {
  background: var(--accent-hover);
  border-bottom: none;
  color: #fff;
}

.trust-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 36px auto 8px;
  max-width: 560px;
}

/* Trust Economics page */
.trust-econ-page { max-width: 680px; margin: 0 auto; }
.trust-econ-page h1 { text-align: center; font-size: 2rem; margin: 32px 0 8px; }
.trust-econ-page .econ-subtitle { text-align: center; color: var(--text-light); font-size: 0.95rem; margin-bottom: 32px; }
.trust-econ-page h2 { font-size: 1.25rem; margin-top: 36px; }
.trust-econ-page h3 { font-size: 1.1rem; margin-top: 24px; }
.trust-econ-page .highlight-box {
  background: var(--card);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
/* Why Me teaser card */
.why-me-teaser { margin: 24px 0; }
/* Policy signal banner */
.policy-signal {
  text-align: center;
  margin: 12px 0;
}
.policy-signal span {
  display: inline-block;
  background: rgba(13, 27, 42, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.policy-signal a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.policy-signal a:hover { text-decoration: underline; }
.why-me-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.why-me-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  border-bottom-color: var(--border);
}
.why-me-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.why-me-card h2 {
  font-size: 1.3rem;
  margin: 0 0 10px 0;
  padding: 0;
  border: none;
  color: var(--text);
}
.why-me-formula {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px 0;
}
.why-me-hook {
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 0 0 12px 0;
  line-height: 1.6;
}
.why-me-arrow {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* Why Me expandable section */
.why-me-expand { margin: 32px 0; }
.why-me-expand details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-me-expand summary {
  padding: 16px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.why-me-expand summary::-webkit-details-marker { display: none; }
.why-me-expand summary:hover { background: rgba(196, 30, 58, 0.04); }
.why-me-expand .expand-icon {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 0.85rem;
}
.why-me-expand details[open] .expand-icon { transform: rotate(180deg); }
.why-me-expand .expanded-content {
  padding: 8px 24px 24px;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 480px) {
  .trust-big-word { font-size: 3rem; }
  .trust-content { padding: 0 16px 16px 16px; }
  .trust-stack summary { padding: 14px 16px; font-size: 0.95rem; }
}
