/* Manus-style editorial blog. Independent of homepage Tailwind. */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/nunitosans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #111111;
  --muted: #888888;
  --line: #ececec;
  --page: #ffffff;
  --article-bg: #f7f7f7;
  --serif: "Songti SC", "Songti TC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Nunito Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background: var(--page);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.blog-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.blog-nav.is-scrolled { border-bottom-color: var(--line); }
.blog-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.blog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.blog-brand img { height: 26px; width: auto; }
.blog-brand-zh {
  font-family: "Outfit", var(--sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: #355875;
}
.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #555;
}
.blog-nav-links a:hover,
.blog-nav-links a.is-current,
.blog-nav-compact a:hover,
.blog-nav-compact a.is-current { color: var(--ink); }
.blog-nav-compact {
  display: none;
  align-items: center;
  gap: 8px 16px;
  font-size: 14px;
  color: #555;
}
.blog-nav-compact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.blog-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.blog-cta:hover { background: #333; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.listing-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.listing-lead {
  margin: 14px 0 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 28px 0 44px;
}
.filter {
  appearance: none;
  border: 0;
  background: none;
  padding: 10px 0;
  min-height: 44px;
  color: #9a9a9a;
  font-size: 15px;
  cursor: pointer;
}
.filter:hover { color: #555; }
.filter.is-active { color: var(--ink); font-weight: 500; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}
.card { display: block; min-width: 0; }
.card[hidden] { display: none; }
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #ececec;
}
.card-media img,
.card-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-title {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.card-meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

body.article-page { background: var(--article-bg); }
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}
.article-meta {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.article-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  margin: 18px 0 40px;
  letter-spacing: 0.01em;
}
.article-hero {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto 48px;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e8e8;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}
.article-hero img,
.article-hero svg {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-hero .shot-caption {
  margin: 10px 0 0;
  text-align: center;
}
.article-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.9;
  color: #222;
}
.article-body .lead {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 28px;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 48px 0 16px;
  line-height: 1.4;
}
.article-body p { margin: 0 0 20px; }
.article-body ol,
.article-body ul { margin: 0 0 24px; padding-left: 1.3em; }
.article-body li { margin: 0 0 10px; }
.article-body strong { font-weight: 650; }
.shot {
  margin: 28px 0 36px;
}
.shot-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.shot-frame img,
.shot-frame svg {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .card-media img,
  .card-media svg { will-change: transform; }
  .card:hover .card-media img,
  .card:hover .card-media svg { transform: scale(1.1); }
  .article-hero:hover img { transform: scale(1.06); }
  .shot:hover .shot-frame img { transform: scale(1.06); }
}
.story-note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 28px;
}
.story-quote {
  margin: 8px 0 28px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #111;
}
.story-quote p {
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 600;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 28px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 14px;
}
.metric h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
}
.metric p {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}
@media (max-width: 640px) {
  .metrics { grid-template-columns: 1fr; }
}
.shot-caption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
}
.faq { margin-top: 56px; }
.faq h2 { margin-top: 0; }
.faq-item { margin: 0 0 22px; }
.faq-q {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 16px;
  margin: 0 0 6px;
}
.faq-a {
  margin: 0;
}

.blog-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: #666;
}
.blog-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}
.blog-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.blog-footer h3 {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink);
}
.blog-footer ul { list-style: none; margin: 0; padding: 0; }
.blog-footer li { margin: 0 0 8px; font-size: 14px; }
.blog-footer a:hover { color: var(--ink); }
.blog-footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
  color: #999;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .listing-title { font-size: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .blog-nav-links { display: none; }
  .blog-nav-compact { display: flex; }
  .article-title { font-size: 28px; }
  .blog-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .blog-brand-zh { display: none; }
  .blog-nav-inner {
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    gap: 12px;
  }
  .wrap { padding: 36px 16px 72px; }
  .listing-title { font-size: 28px; }
  .filters { gap: 4px 20px; margin: 16px 0 28px; }
  .article-wrap { padding: 40px 16px 36px; }
  .article-title { font-size: 24px; margin-bottom: 28px; }
  .article-hero { width: calc(100% - 24px); margin-bottom: 28px; }
  .article-body { font-size: 17px; }
  .blog-footer-inner { padding: 36px 16px 24px; }
  .blog-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
