/* ============================================================
   Blog styles — Chinese variant
   Same tokens as English blog.css with PingFang font stack
   and slightly tuned sizes (Chinese chars are denser).
   ============================================================ */
:root {
  --bink: #FF828D;
  --bink-shadow: #D95B66;
  --bink-tint: #FFE8E4;
  --burple: #8636CE;
  --burple-shadow: #5E1FA0;
  --burple-tint: #EFE6FC;
  --softYellow: #FDE38A;
  --softMint: #C9E8DD;
  --peach: #FCE4D4;
  --sky: #D9E6F5;
  --lavender: #F4ECFC;

  --ink: #1F1140;
  --ink-soft: #6B5C8A;
  --ink-meta: #9489AE;
  --bg: #FFFFFF;
  --bg-card: #FAF8FD;
  --stroke: #ECE6F4;

  /* Chinese type ladder — smaller than EN, denser chars */
  --t-h1: 44px;
  --t-h2: 28px;
  --t-h3: 19px;
  --t-body: 17px;
  --t-lede: 18px;
  --t-meta: 12px;

  --container: 760px;
  --container-wide: 1100px;

  --w-display: 900;
  --w-bold: 700;
  --w-strong: 600;
  --w-medium: 500;
  --w-regular: 400;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--t-body);
  font-weight: var(--w-regular);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }
h1 { font-size: var(--t-h1); font-weight: var(--w-display); letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: var(--t-h2); font-weight: var(--w-display); }
h3 { font-size: var(--t-h3); font-weight: var(--w-bold); }

/* Nav */
nav {
  padding: 18px 0; position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--stroke);
}
nav .container-wide { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: var(--w-bold); font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.links { display: flex; gap: 26px; align-items: center; }
.links a { color: var(--ink); text-decoration: none; font-weight: var(--w-medium); font-size: 14px; opacity: 0.7; transition: opacity 0.15s; }
.links a:hover { opacity: 1; }
.links a.lang-toggle {
  font-size: 13px; padding: 5px 12px;
  border: 1px solid var(--stroke); border-radius: 999px;
  background: #fff; opacity: 1; font-weight: var(--w-strong);
}
.links a.lang-toggle:hover { background: var(--bg-card); border-color: var(--burple-tint); }
@media (max-width: 760px) {
  .links a:not(.lang-toggle) { display: none; }
}

/* Blog index hero */
.blog-hero {
  padding: 72px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, var(--lavender) 0%, transparent 70%);
}
.blog-hero h1 { margin-bottom: 16px; }
.blog-hero p { font-size: var(--t-lede); color: var(--ink-soft); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* Post list */
.posts { padding: 48px 0 96px; }
.posts .container { display: grid; gap: 20px; }
.post-card {
  display: block; padding: 28px 30px;
  background: var(--bg-card); border: 1px solid var(--stroke);
  border-radius: 20px;
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(91,31,160,0.08); background: #fff; }
.post-card .post-meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: var(--t-meta); font-weight: var(--w-medium);
  color: var(--ink-meta); letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.post-card .tag {
  background: var(--burple-tint); color: var(--burple);
  font-weight: var(--w-bold);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px;
}
.post-card h2 { font-size: 22px; margin-bottom: 10px; line-height: 1.35; }
.post-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; }

/* Article */
.article-hero { padding: 64px 0 28px; }
.article-hero .post-meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: var(--t-meta); font-weight: var(--w-medium);
  color: var(--ink-meta); letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.article-hero .tag {
  background: var(--burple-tint); color: var(--burple);
  font-weight: var(--w-bold);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px;
}
.article-hero h1 { margin-bottom: 20px; }
.article-hero .lede {
  font-size: var(--t-lede); color: var(--ink-soft); line-height: 1.75;
}

.article { padding: 16px 0 64px; }
.article p { margin-bottom: 22px; color: var(--ink); }
.article h2 { margin: 56px 0 18px; }
.article h3 { margin: 36px 0 12px; }
.article a { color: var(--burple); font-weight: var(--w-medium); }
.article ul, .article ol { margin: 0 0 24px 22px; }
.article li { margin-bottom: 10px; }
.article hr { border: 0; height: 1px; background: var(--stroke); margin: 56px 0; }
.article blockquote {
  border-left: 4px solid var(--bink);
  padding: 14px 22px;
  margin: 28px 0;
  background: var(--bink-tint);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  line-height: 1.85;
}

.callout {
  background: linear-gradient(135deg, var(--burple-tint) 0%, var(--bink-tint) 100%);
  border-radius: 22px; padding: 32px 32px;
  margin: 40px 0;
}
.callout h3 { margin: 0 0 10px; }
.callout p { color: var(--ink); margin-bottom: 14px; }
.callout p:last-child { margin-bottom: 0; }

a.app-store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  background: #000; color: #fff !important;
  border-radius: 12px; text-decoration: none;
  transition: transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  margin-top: 6px;
}
a.app-store-badge:hover { transform: translateY(-2px); color: #fff !important; }
a.app-store-badge .apple-logo { width: 28px; height: 28px; flex-shrink: 0; color: #fff; fill: #fff; }
a.app-store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.05; color: #fff; }
a.app-store-badge .badge-text small { font-size: 11px; font-weight: var(--w-regular); opacity: 0.85; color: #fff; }
a.app-store-badge .badge-text strong { font-size: 19px; font-weight: var(--w-medium); margin-top: 2px; color: #fff; }

/* FAQ */
.faq details {
  padding: 18px 22px;
  background: var(--bg-card);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}
.faq summary {
  font-weight: var(--w-bold);
  color: var(--ink);
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-size: 22px; color: var(--burple); font-weight: var(--w-regular);
}
.faq details[open] {
  background: #fff;
  border-color: var(--stroke);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

.disclaimer {
  font-size: 13px; color: var(--ink-meta); margin-top: 40px;
  line-height: 1.7;
}

/* Footer */
footer { padding: 48px 0; border-top: 1px solid var(--stroke); background: var(--bg-card); }
footer .container-wide { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.brand-foot { display: flex; align-items: center; gap: 12px; }
.brand-foot img { width: 40px; height: 40px; border-radius: 10px; }
.brand-foot strong { display: block; color: var(--ink); font-size: 14px; font-weight: var(--w-bold); }
.brand-foot .copyright { display: block; font-size: 12px; color: var(--ink-meta); margin-top: 2px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink); opacity: 0.6; font-size: 13px; text-decoration: none; }
.foot-links a:hover { opacity: 1; }

@media (max-width: 760px) {
  :root { --t-h1: 30px; --t-h2: 22px; --t-h3: 17px; --t-body: 16px; --t-lede: 17px; }
  .article-hero { padding: 40px 0 16px; }
  .article h2 { margin: 40px 0 14px; }
  .callout { padding: 24px; }
}
