:root {
  --paper: #f4f1ea;
  --paper-deep: #e8e1d6;
  --ink: #181816;
  --muted: #6d6962;
  --red: #f0523e;
  --orange: #ff684b;
  --yellow: #f9c854;
  --line: rgba(24, 24, 22, .14);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: 0; color: inherit; font: inherit; cursor: pointer; }
.site-shell { width: min(1400px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,241,234,.92); backdrop-filter: blur(18px); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 35px rgba(24,24,22,.08); }
.header-inner { min-height: 78px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand strong { font-size: 20px; }
.brand em { color: var(--muted); font-family: var(--serif); font-size: 13px; font-style: normal; margin-left: -5px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; }
.desktop-nav [data-sitemanager-module] { display: flex; align-items: center; gap: 30px; }
.desktop-nav [data-sitemanager-loop] { display: inline-flex; }
.desktop-nav a { position: relative; padding: 12px 0; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 6px; left: 0; height: 1px; background: var(--red); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-link { padding: 9px 11px; font-size: 12px; font-weight: 800; }
.app-link { min-height: 42px; padding: 0 17px; border-radius: 100px; background: var(--ink); color: white; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; transition: background .2s, transform .2s; }
.app-link:hover { background: var(--red); transform: translateY(-2px); }
.menu-button { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: white; font-size: 20px; }
.mobile-menu { position: fixed; inset: 78px 0 0; z-index: 45; padding: 26px 24px; background: var(--paper); overflow: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 21px; font-weight: 700; }
.mobile-menu [data-sitemanager-module], .mobile-menu [data-sitemanager-loop] { display: block; }
.hero { min-height: 690px; padding: 76px 0 94px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.eyebrow, .kicker { margin: 0 0 20px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(64px, 7vw, 108px); font-weight: 600; letter-spacing: -.065em; line-height: .98; }
.hero h1 span { display: block; color: var(--red); font-style: italic; padding-left: .18em; }
.hero-copy > p:not(.eyebrow) { max-width: 630px; margin: 0; color: var(--muted); font-size: clamp(17px,1.6vw,21px); line-height: 1.8; }
.hero-buttons { display: flex; align-items: center; gap: 20px; margin-top: 38px; }
.button { min-height: 50px; padding: 0 21px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.button-dark { background: var(--ink); color: white; }
.button-line { border: 1px solid var(--line); }
.hero-art { position: relative; height: 550px; }
.hero-disc { position: absolute; width: 410px; height: 410px; right: 4%; top: 8%; border-radius: 50%; background: var(--orange); }
.hero-phone { position: absolute; z-index: 2; width: 280px; height: 535px; right: 15%; top: 0; padding: 12px; border: 9px solid var(--ink); border-radius: 42px; background: #f8f5ef; box-shadow: 0 32px 75px rgba(45,28,20,.24); transform: rotate(3deg); overflow: hidden; }
.phone-bar { height: 30px; display: flex; justify-content: space-between; font-size: 8px; font-weight: 800; }
.phone-title { margin: 7px 0 14px; font-family: var(--serif); font-size: 20px; font-weight: 900; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-grid img { width: 100%; height: 360px; border-radius: 8px; object-fit: cover; }
.phone-grid img:nth-child(2) { height: 305px; margin-top: 34px; }
.hero-poster { position: absolute; z-index: 1; width: 210px; height: 285px; left: 0; top: 118px; padding: 8px; background: white; box-shadow: 0 25px 60px rgba(45,28,20,.16); transform: rotate(-8deg); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-note { position: absolute; z-index: 4; right: 0; bottom: 55px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 18px 45px rgba(24,24,22,.13); font-size: 12px; font-weight: 800; transform: rotate(-2deg); }
.hero-note small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.dark-section { padding: 120px 0; background: var(--ink); color: white; }
.section-heading { margin-bottom: 55px; display: grid; grid-template-columns: 1fr minmax(280px,420px); gap: 70px; align-items: end; }
.section-heading h2, .page-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(43px,5vw,70px); line-height: 1.12; letter-spacing: -.05em; }
.section-heading p { margin: 0; color: rgba(255,255,255,.58); font-size: 15px; line-height: 1.8; }
.category-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.category-strip [data-sitemanager-loop] { display: inline-flex; }
.category-strip a { padding: 10px 14px; border: 1px solid rgba(255,255,255,.17); border-radius: 100px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; transition: border-color .2s, color .2s; }
.category-strip a:hover { border-color: var(--orange); color: white; }
.skill-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.15); }
.skill-card { min-width: 0; background: var(--ink); transition: background .25s; }
.skill-card:hover { background: #1f1f1c; }
.skill-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #292925; }
.skill-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.skill-card:hover img { transform: scale(1.035); }
.skill-index { position: absolute; left: 14px; top: 14px; padding: 6px 8px; border-radius: 100px; background: rgba(24,24,22,.78); color: white; font-size: 9px; font-weight: 900; }
.skill-content { min-height: 185px; padding: 24px; }
.skill-meta { display: flex; justify-content: space-between; gap: 14px; color: #ff8d77; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.skill-content h3 { margin: 20px 0 10px; font-family: var(--serif); font-size: 23px; line-height: 1.4; }
.skill-content p { margin: 0; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.75; }
.empty-state { grid-column: 1/-1; padding: 45px; background: var(--ink); color: rgba(255,255,255,.6); text-align: center; }
.content-section { padding: 120px 0; }
.content-heading { margin-bottom: 45px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.content-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(40px,4vw,62px); letter-spacing: -.045em; }
.content-heading p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.7; }
.story-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.story-card { min-width: 0; border-top: 1px solid var(--line); padding-top: 20px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.story-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story-card:hover img { transform: scale(1.035); }
.story-card h3 { margin: 10px 0; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.story-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.story-meta { color: var(--red); font-size: 10px; font-weight: 900; }
.page-hero { padding: 80px 0 55px; border-bottom: 1px solid var(--line); }
.breadcrumb { margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumb span:not(:last-child)::after { margin-left: 8px; content: "/"; color: #aaa49a; }
.page-hero p { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.page-stats { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.page-stats span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 11px; font-weight: 800; }
.subcategories { padding: 28px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.subcategories [data-sitemanager-loop] { display: inline-flex; }
.subcategories a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 100px; font-size: 12px; font-weight: 800; }
.listing { padding: 45px 0 100px; display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 60px; }
.article-list { display: flex; flex-direction: column; gap: 22px; }
.list-card { min-width: 0; display: grid; grid-template-columns: minmax(210px,31%) minmax(0,1fr); border-top: 1px solid var(--line); padding-top: 20px; gap: 26px; }
.list-card-image { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); }
.list-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.list-card:hover img { transform: scale(1.035); }
.list-card h2 { margin: 12px 0 10px; font-family: var(--serif); font-size: clamp(23px,2.5vw,32px); line-height: 1.3; }
.list-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.list-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--red); font-size: 10px; font-weight: 900; }
.sidebar { position: sticky; top: 105px; align-self: start; padding: 22px; border: 1px solid var(--line); }
.sidebar h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; }
.sidebar p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.sidebar a { margin-top: 16px; width: 100%; }
.pagination { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a { min-width: 39px; height: 39px; padding: 0 11px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.pagination a.active { background: var(--ink); color: white; }
.article-layout { padding: 70px 0 110px; display: grid; grid-template-columns: minmax(0,860px) 280px; justify-content: space-between; gap: 65px; }
.article-header h1 { margin: 18px 0 18px; font-family: var(--serif); font-size: clamp(40px,5vw,68px); line-height: 1.12; letter-spacing: -.05em; }
.article-headline { color: var(--muted); font-size: 18px; line-height: 1.8; }
.article-meta { margin-top: 25px; padding-bottom: 28px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 22px; color: var(--muted); font-size: 11px; font-weight: 700; }
.article-content { padding-top: 34px; font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.article-content h2, .article-content h3 { margin: 2em 0 .7em; font-family: var(--serif); line-height: 1.35; }
.article-content h2 { font-size: 32px; }
.article-content h3 { font-size: 24px; }
.article-content img { height: auto; margin: 30px auto; }
.article-content a { color: var(--red); text-decoration: underline; }
.article-content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--red); background: rgba(255,255,255,.5); }
.article-content pre { max-width: 100%; padding: 20px; background: var(--ink); color: white; overflow: auto; }
.article-nav { margin-top: 45px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-nav a { padding: 17px; border: 1px solid var(--line); font-size: 13px; }
.article-nav small { display: block; margin-bottom: 7px; color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.article-aside { position: sticky; top: 105px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.aside-card { padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.aside-card strong { display: block; margin-bottom: 10px; font-family: var(--serif); font-size: 20px; }
.aside-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: var(--muted); font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; }
.footer-brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s, transform .75s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-art { max-width: 650px; width: 100%; margin: 0 auto; }
  .skill-grid { grid-template-columns: repeat(2,1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .listing, .article-layout { grid-template-columns: 1fr; }
  .sidebar, .article-aside { position: static; }
  .article-aside { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .site-shell { width: calc(100% - 32px); }
  .header-inner { min-height: 70px; }
  .desktop-nav, .app-link { display: none; }
  .menu-button { display: grid; place-items: center; }
  .mobile-menu { inset: 70px 0 0; }
  .hero { min-height: 0; padding: 68px 0 85px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-content { min-height: 150px; }
  .content-heading { display: block; }
  .content-heading p { margin-top: 18px; }
  .list-card { grid-template-columns: 1fr; }
  .list-card-image { aspect-ratio: 16/9; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 30px 0; }
  .footer-inner > p { grid-column: 1/-1; grid-row: 2; }
}

@media (max-width: 540px) {
  .brand em { display: none; }
  .hero h1 { font-size: clamp(52px,15vw,72px); }
  .hero-buttons { align-items: stretch; flex-direction: column; }
  .hero-art { height: 450px; }
  .hero-disc { width: 300px; height: 300px; right: -8%; }
  .hero-phone { width: 220px; height: 430px; right: 3%; border-width: 7px; border-radius: 34px; }
  .hero-poster { width: 145px; height: 200px; left: -5%; }
  .phone-grid img { height: 275px; }
  .phone-grid img:nth-child(2) { height: 240px; }
  .hero-note { right: 0; bottom: 0; }
  .dark-section, .content-section { padding: 85px 0; }
  .story-card { grid-template-columns: 115px 1fr; gap: 15px; }
  .story-card h3 { font-size: 17px; }
  .article-aside { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .footer-inner { display: flex; align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
