/* 童行 Lab — Premium Bilingual Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #F7F6F2;
  --bg-card: #FFFFFF;
  --bg-warm: #FAF8F3;
  --bg-soft: #F0EEF8;
  --text: #1A1A2E;
  --text-muted: #5C5C6B;
  --text-light: #9D9DAB;
  --accent: #4A3FB8;
  --accent-light: #7B6FE8;
  --accent-soft: #ECE9F8;
  --gold: #B8945F;
  --gold-soft: #F5EFE3;
  --border: #E8E6E0;
  --border-light: #F0EEE8;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 780px;
  --serif: 'Cormorant Garamond', 'Songti SC', 'SimSun', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--accent-light); }

/* ============ Nav ============ */
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4A3FB8, #7B6FE8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.nav-logo-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a span.cn { font-weight: 500; }
.nav-links a span.en { font-size: 11px; color: var(--text-light); margin-left: 3px; }

/* ============ Container ============ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ============ Hero ============ */
.hero { text-align: center; padding: 24px 0 64px; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}
.hero h1 .en {
  display: block;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}
.hero-sub .en {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}
.hero-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.hero-tag {
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 24px;
  font-weight: 500;
  border: 1px solid var(--border);
}
.hero-tag .en { font-size: 10px; opacity: 0.6; margin-left: 4px; }
.hero-tag.tech { background: #EEF2FF; color: #4338CA; border-color: #E0E7FF; }
.hero-tag.career { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; }
.hero-tag.life { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }

/* ============ Section ============ */
.section { margin-bottom: 56px; }
.section-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.section-header h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.section-header .en {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}
.section-header .line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ============ Pillars ============ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(74, 63, 184, 0.06); }
.pillar:hover::before { transform: scaleX(1); }
.pillar.tech::before { background: #4338CA; }
.pillar.career::before { background: #C2410C; }
.pillar.life::before { background: #047857; }
.pillar-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}
.pillar h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.pillar h3 .en { font-size: 12px; color: var(--text-light); font-weight: 400; margin-left: 6px; }
.pillar p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
}
.pillar p .en { display: block; font-size: 11px; color: var(--text-light); margin-top: 3px; font-style: italic; }

/* ============ Articles ============ */
.article {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}
.article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  border-color: var(--accent-light);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.article-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 14px;
  letter-spacing: 0.3px;
}
.article-tag.tech { background: #EEF2FF; color: #4338CA; }
.article-tag.career { background: #FFF7ED; color: #C2410C; }
.article-tag.life { background: #ECFDF5; color: #047857; }
.article-date {
  font-size: 12px;
  color: var(--text-light);
  font-family: var(--serif);
  font-style: italic;
}
.article h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.article h3 .en {
  display: block;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
  margin-top: 2px;
}
.article p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.article-readmore {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.article-readmore .en { font-size: 10px; opacity: 0.6; margin-left: 3px; }

/* ============ Filter bar ============ */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.25s;
}
.filter-btn .en { font-size: 11px; opacity: 0.5; margin-left: 4px; }
.filter-btn:hover { border-color: var(--accent-light); color: var(--accent); }
.filter-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ============ About ============ */
.about {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 56px;
  position: relative;
}
.about::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--serif);
  font-size: 64px;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
}
.about-text { position: relative; }
.about-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
}
.about-text p + p { margin-top: 12px; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-text .en { display: block; font-size: 13px; color: var(--text-light); font-style: italic; margin-top: 3px; }
.about-sig {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--gold);
}

/* ============ Connect page ============ */
.page-hero { text-align: center; padding: 16px 0 48px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.page-hero h1 .en {
  display: block;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 4px;
}
.page-hero p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 12px auto 0;
}
.page-hero p .en { display: block; font-size: 12px; color: var(--text-light); font-style: italic; margin-top: 3px; }

.connect-section { margin-bottom: 36px; }
.connect-section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  padding-left: 4px;
}
.connect-section-title .cn {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.connect-section-title .en {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}
.connect-section-title .line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
  margin-left: 8px;
}

.connect-card {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  margin-bottom: 8px;
  transition: all 0.25s ease;
}
.connect-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  border-color: var(--accent-light);
}
.connect-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.connect-icon svg { width: 20px; height: 20px; fill: currentColor; }
.connect-body { flex: 1; }
.connect-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.connect-label .en {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 6px;
}
.connect-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.connect-arrow {
  color: var(--text-light);
  font-size: 18px;
  transition: transform 0.25s;
}
.connect-card:hover .connect-arrow {
  transform: translateX(4px);
  color: var(--accent);
}
.connect-card.qr-card {
  align-items: center;
}
.connect-qr {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  margin-left: 12px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.connect-card:hover .connect-qr {
  transform: scale(1.03);
}

/* Platform icon colors */
.ic-wechat { background: #07C160; color: #fff; }
.ic-red { background: #FF2442; color: #fff; }
.ic-weibo { background: #E6162D; color: #fff; }
.ic-youtube { background: #FF0000; color: #fff; }
.ic-gmail { background: #EA4335; color: #fff; }
.ic-twitter { background: #000000; color: #fff; }
.ic-facebook { background: #1877F2; color: #fff; }
.ic-instagram { background: #E1306C; color: #fff; }
.ic-maimai { background: #1A73E8; color: #fff; }
.ic-telegram { background: #0088CC; color: #fff; }
.ic-github { background: #24292E; color: #fff; }

.connect-card.highlight {
  background: linear-gradient(135deg, #4A3FB8, #7B6FE8);
  border-color: transparent;
  color: #fff;
}
.connect-card.highlight .connect-label { color: #fff; }
.connect-card.highlight .connect-label .en { color: rgba(255,255,255,0.6); }
.connect-card.highlight .connect-desc { color: rgba(255,255,255,0.5); }
.connect-card.highlight .connect-arrow { color: rgba(255,255,255,0.5); }
.connect-card.highlight:hover .connect-arrow { color: #fff; }
.connect-card.highlight .connect-icon { background: rgba(255,255,255,0.2); color: #fff; }

/* ============ Footer ============ */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border-light);
  margin-top: 48px;
}
.footer-quote {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-quote .en { display: block; font-size: 13px; color: var(--text-light); margin-top: 4px; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 20px; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.85;
}
.footer-social a svg { width: 20px; height: 20px; fill: currentColor; }
.footer-social a:hover { opacity: 1; transform: translateY(-3px); }
.footer-info { font-size: 13px; color: var(--text-light); }
.footer-info .en { display: block; font-size: 11px; margin-top: 2px; }

/* ============ Article Detail ============ */
.article-back {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.25s;
}
.article-back:hover { color: var(--accent); }
.article-back .en { font-size: 11px; color: var(--text-light); margin-left: 4px; }

.article-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 48px 56px;
}
.article-detail .article-meta {
  margin-bottom: 20px;
}
.article-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.article-title .en {
  display: block;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 6px;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: var(--text);
}
.article-body h2 .en {
  display: block;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
  margin-top: 2px;
}
.article-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}
.article-body p .en {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.7;
}
.article-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--bg-warm);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}
.article-body blockquote .en {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}
.article-end-line {
  margin: 40px auto 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.5;
}
.article-nav {
  text-align: center;
  margin-top: 28px;
}
.article-nav-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 10px 28px;
  border: 1px solid var(--accent);
  border-radius: 24px;
  transition: all 0.25s;
}
.article-nav-btn:hover {
  background: var(--accent);
  color: #fff;
}
.article-nav-btn .en { font-size: 11px; opacity: 0.6; margin-left: 4px; }

.article-not-found {
  text-align: center;
  padding: 80px 20px;
}
.article-not-found h1 {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 12px;
}
.article-not-found h1 .en { display: block; font-size: 15px; color: var(--text-light); font-style: italic; }
.article-not-found p { color: var(--text-muted); }

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .nav { padding: 20px 16px 0; }
  .nav-links { gap: 16px; }
  .nav-links a span.en { display: none; }
  .container { padding: 36px 16px 60px; }
  .hero h1 { font-size: 32px; }
  .hero h1 .en { font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .hero-tags { flex-wrap: wrap; }
  .about { padding: 24px 20px; }
  .article { padding: 20px 22px; }
  .section-header h2 { font-size: 18px; }
  .page-hero h1 { font-size: 28px; }
  .footer-social a { width: 38px; height: 38px; font-size: 13px; }
  .connect-qr { width: 72px; height: 72px; }
  .article-detail { padding: 28px 20px; }
  .article-title { font-size: 24px; }
  .article-body h2 { font-size: 18px; }
  .article-body p { font-size: 14px; }
  .article-body blockquote { font-size: 16px; padding: 18px 20px; }
}
