/* DartBin — approved warm-paper design system. */
@import url('noto-serif-sc.css');

:root {
  --bg-primary: #F7F5F0;
  --bg-secondary: #EFEEE7;
  --bg-tertiary: #E9E8E0;
  --bg-elevated: #FFFFFF;
  --bg-card: #FCFBF8;
  --surface-glass: #F7F5F0;
  --surface-border: #DCDDD5;
  --text-primary: #252723;
  --text-secondary: #62675D;
  --text-muted: #62675D;
  --text-inverse: #FFFFFF;
  --accent-primary: #5D6F49;
  --accent-secondary: #5D6F49;
  --accent-glow: #E9EDDF;
  --accent-subtle: #E9EDDF;
  --color-success: #46704E;
  --color-info: #416780;
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --font-display: 'Noto Serif SC', 'Songti SC', SimSun, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 6px;
  --shadow-sm: 0 2px 6px rgba(37,39,35,.04);
  --shadow-md: 0 4px 18px rgba(37,39,35,.06);
  --shadow-lg: 0 12px 30px rgba(37,39,35,.08);
  --shadow-glow: none;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --duration-fast: .15s;
  --duration-normal: .2s;
  --duration-slow: .2s;
  --duration-slower: .2s;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; letter-spacing: -.01em; }
.font-mono, .code-accent { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.code-accent { color: var(--accent-primary); }
.section { position: relative; }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: var(--space-md); }
.section-desc { font-size: 1rem; line-height: 1.7; margin-inline: auto; }
.nav { z-index: 1000; }
.nav-logo { display: flex; align-items: center; font-family: var(--font-display); }
.nav-logo-text { font-family: var(--font-display); }
.nav-logo-icon { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--accent-primary); text-decoration: underline; }
.nav-cta { color: var(--accent-primary); padding: var(--space-sm) var(--space-lg); border: 1px solid var(--surface-border); transition: background-color .15s, border-color .15s; }
.btn { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-body); font-weight: 500; border: 0; cursor: pointer; }
.footer { border-top: 1px solid var(--surface-border); padding: var(--space-3xl) 0 var(--space-xl); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--space-xl); }
.footer-brand { max-width: 300px; }
.footer-logo { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: var(--space-sm); }
.footer-tagline { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }
.footer-links { display: flex; gap: var(--space-3xl); }
.footer-col h4 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-md); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-sm); }
.footer-col a { font-size: .85rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text-primary); text-decoration: underline; }
.footer-bottom { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--surface-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); color: var(--text-muted); }
.lang-switcher { position: relative; }
.lang-switcher-btn { display: flex; align-items: center; background: transparent; cursor: pointer; white-space: nowrap; }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-elevated); border: 1px solid var(--surface-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 1001; }
.lang-option { display: flex; align-items: center; width: 100%; padding: 8px 12px; background: transparent; border: 0; border-radius: 6px; color: var(--text-secondary); font-family: var(--font-body); font-size: .85rem; cursor: pointer; text-align: left; transition: background-color .15s, color .15s; }
.lang-option:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.lang-option.active { background: var(--accent-subtle); }
@media (max-width: 768px) { .footer-links { flex-direction: column; gap: var(--space-xl); } }

/* Approved warm-paper catalogue. Legacy product selectors stay available. */
body { overflow-x: visible; font-size: 16px; caret-color: var(--accent-primary); }
body::before, .hero::before, .page-hero::before, .download-box::before,
.product-card::before, .feature-card::before { display: none; }
::selection { background: #DDE5D0; color: var(--text-primary); }
html { scrollbar-color: #A2AB96 var(--bg-primary); scrollbar-width: thin; }
* { scrollbar-color: #A2AB96 var(--bg-primary); }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: var(--bg-primary); }
*::-webkit-scrollbar-thumb { background: #A2AB96; border: 2px solid var(--bg-primary); border-radius: 6px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: rgba(93,111,73,.12); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p { overflow-wrap: break-word; }
a { text-underline-offset: .24em; }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 4px; }
.container, .nav-inner { max-width: 1440px; width: 90%; padding: 0; margin-inline: auto; }
.section { padding-block: 72px; }
.section-label { display: none; }
.section-title { font-weight: 600; }
.section-desc { color: var(--text-secondary); max-width: 65ch; }
.reveal, .reveal.visible, .hero-badge, .hero-title, .hero-subtitle, .hero-actions, .hero-tools {
  opacity: 1; transform: none; animation: none; transition: none;
}
.hero-badge-dot { animation: none; }
.nav { position: sticky; top: 0; padding: 0; background: var(--bg-primary); border: 0; }
.nav.scrolled { background: var(--bg-primary); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-inner { position: relative; display: flex; flex-wrap: wrap; min-height: 62px; gap: 28px; border-bottom: 1px solid var(--surface-border); }
.nav-logo, .nav-logo-text { font-size: 30px; font-weight: 600; letter-spacing: -.025em; }
.nav-logo { margin-right: auto; gap: 10px; }
.brand-cn { font: 16px var(--font-body); letter-spacing: 0; }
.nav-links { gap: 34px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: 15px; color: var(--text-primary); }
.nav-cta { font-family: var(--font-body); border-color: var(--surface-border); border-radius: 6px; background: var(--accent-subtle); min-height: 44px; display: inline-flex; align-items: center; }
.nav-cta:hover { transform: none; border-color: var(--accent-primary); background: var(--accent-subtle); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text-primary); background: transparent; border: 1px solid var(--surface-border); border-radius: 6px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav-toggle[aria-expanded="true"] .menu-middle { display: none; }
.btn { border-radius: 6px; min-height: 46px; padding: 10px 28px; justify-content: center; font-size: 16px; line-height: 1.4; white-space: normal; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary, .btn-primary:hover, .btn-primary:active { color: var(--text-inverse); background: var(--accent-primary); box-shadow: none; transform: none; }
.btn-primary:hover { background: #4B5D3A; }
.btn-primary:active { background: #405032; }
.btn-secondary, .btn-ghost { background: transparent; border: 1px solid #859276; color: var(--accent-primary); }
.btn-secondary:hover, .btn-ghost:hover { color: #405032; background: var(--accent-subtle); border-color: var(--accent-primary); transform: none; }
.btn[aria-disabled="true"], button:disabled { opacity: .55; cursor: not-allowed; }
.product-card:hover, .feature-card:hover { transform: none; box-shadow: none; border-color: var(--surface-border); }
.product-link { color: var(--accent-primary); }
.page-hero-badge, .hero-badge { border-color: var(--surface-border); font-family: var(--font-body); }
.footer { background: var(--bg-primary); }
.footer-logo { font-weight: 600; }
.footer-bottom { font-family: var(--font-body); font-size: 13px; }
.skip-link { position: fixed; z-index: 2000; left: 20px; top: 12px; padding: 10px 18px; color: white; background: var(--accent-primary); transform: translateY(-200%); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.lang-switcher { margin-left: 4px; }
.lang-switcher-btn { min-height: 44px; border: 0; border-left: 1px solid var(--surface-border); border-radius: 0; padding: 0 0 0 24px; font-family: var(--font-body); color: var(--text-primary); gap: 8px; }
.lang-switcher-btn:hover { background: transparent; }
.lang-switcher-btn .lang-label { font-size: 14px; display: inline; }
.lang-switcher-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang-dropdown { min-width: 180px; padding: 6px; max-height: calc(100svh - 90px); overflow-y: auto; transform: none; transition: none; }
.lang-option { min-height: 44px; }
.lang-option.active { color: #405032; }
.home-intro { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: 64px; padding: 27px 0 35px; }
.home-intro h1 { font-size: clamp(38px, 4.17vw, 64px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; text-wrap: initial; }
.home-intro h1 span { display: block; }
.home-intro-copy { border-left: 1px solid var(--surface-border); padding: 12px 0 12px 42px; font-size: 18px; line-height: 1.7; }
.home-products > h2 { font-size: clamp(25px, 2.35vw, 36px); line-height: 1.35; margin-bottom: 16px; }
.home-products, .home-personal, .home-contact { scroll-margin-top: 90px; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalogue-product { min-width: 0; padding: 0 30px; border-left: 1px solid var(--surface-border); display: flex; flex-direction: column; }
.catalogue-product:first-child { border-left: 0; padding-left: 0; }
.catalogue-product:last-child { padding-right: 0; }
.catalogue-identity { display: flex; gap: 22px; align-items: flex-start; min-height: 98px; }
.catalogue-identity > div { min-width: 0; }
.catalogue-icon { width: 92px; height: 92px; object-fit: contain; flex: 0 0 92px; }
.catalogue-monogram { display: grid; place-items: center; color: var(--accent-primary); border: 1px solid var(--surface-border); border-radius: 20px; font-family: var(--font-display); font-size: 46px; line-height: 1; background: var(--bg-card); }
.catalogue-identity h3 { font-size: clamp(24px, 2.09vw, 32px); line-height: 1.2; margin: 3px 0 7px; text-wrap: initial; }
.catalogue-platform, .catalogue-tagline { font-size: 16px; color: var(--text-secondary); line-height: 1.5; }
.catalogue-shot { height: clamp(270px, 20.84vw, 320px); margin-top: 16px; display: flex; align-items: center; justify-content: center; }
.catalogue-shot img { width: 100%; height: 100%; object-fit: contain; }
.catalogue-shot-mobile img { width: auto; max-width: 100%; }
.catalogue-description { font-size: 17px; line-height: 1.65; min-height: 57px; margin-top: 16px; }
.catalogue-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 16px; }
.catalogue-actions .btn { min-width: 168px; }
.detail-link { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; color: var(--accent-primary); font-size: 15px; }
.detail-link span { text-decoration: underline; text-decoration-color: #ACB69D; text-underline-offset: .26em; }
.detail-link:hover { color: #405032; }
.detail-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.development-note { margin-top: 28px; padding-block: 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; border-block: 1px solid var(--surface-border); color: var(--text-secondary); font-size: 14px; }
.development-label { padding-right: 28px; border-right: 1px solid var(--surface-border); }
.development-status { color: var(--text-primary); font-size: 16px; }
.home-personal { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-block: 20px 62px; }
.home-personal h2, .home-contact h2 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.45; }
.home-personal p { padding-top: 7px; font-size: 17px; line-height: 1.8; max-width: 65ch; }
.home-contact { padding-block: 46px 64px; border-top: 1px solid var(--surface-border); display: flex; gap: 50px; justify-content: space-between; align-items: flex-start; }
.home-contact p { margin: 14px 0 22px; color: var(--text-secondary); font-size: 17px; }
.home-contact-qr { display: grid; justify-items: center; gap: 10px; }
.home-contact-qr img { width: 140px; height: 140px; }
.home-contact-qr figcaption { font-size: 13px; color: var(--text-secondary); }
.home-footer { padding: 20px 0 26px; }
.home-footer-inner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 18px 28px; font-size: 13px; color: var(--text-secondary); }
.home-footer .footer-logo { margin: 0 auto 0 0; font-size: 22px; color: var(--text-primary); }
@media (min-width: 1101px) {
  /* Shared content rows keep product comparisons aligned when translations wrap. */
  @supports (grid-template-rows: subgrid) {
    .catalogue-product { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  }
  html:lang(en) .catalogue-actions { flex-wrap: nowrap; gap: 12px 14px; }
  html:lang(en) .catalogue-actions .btn { min-width: 0; padding-inline: 16px; font-size: 15px; }
  html:lang(en) .catalogue-actions .detail-link { flex-shrink: 0; font-size: 14px; gap: 6px; }
}
@media (min-width: 769px) {
  .nav-links { display: flex; }
}
@media (max-width: 1100px) {
  .home-intro { grid-template-columns: 1.5fr 1fr; gap: 32px; }
  .home-intro-copy { padding-left: 26px; font-size: 16px; }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .catalogue-product { padding: 0 24px; }
  .catalogue-product:nth-child(odd) { border-left: 0; padding-left: 0; }
  .catalogue-product:nth-child(even) { padding-right: 0; }
  .catalogue-product:last-child { padding-right: 24px; }
  .catalogue-identity h3 { font-size: 28px; }
  .catalogue-shot { height: 310px; }
  .catalogue-description { min-height: 58px; }
  .home-personal { gap: 32px; }
  .nav-inner { gap: 20px; }
  .nav-links { gap: 20px; }
}
@media (max-width: 768px) {
  .container, .nav-inner { width: calc(100% - 40px); }
  .nav-inner { min-height: 64px; gap: 12px; }
  .nav-logo, .nav-logo-text { font-size: 25px; }
  .brand-cn { font-size: 13px; }
  .nav-links { display: flex; flex-basis: 100%; flex-wrap: wrap; gap: 0 24px; padding-bottom: 12px; }
  .nav.is-enhanced .nav-links { display: none; }
  .nav.is-enhanced .nav-toggle { display: inline-flex; }
  .nav.is-enhanced.menu-open .nav-links { display: flex; order: 10; }
  .nav-links a { min-height: 44px; }
  .nav-cta { display: none; }
  .lang-switcher { margin-left: 0; }
  .lang-switcher-btn { padding-left: 12px; }
  .lang-switcher-btn .lang-label { display: inline; font-size: 13px; }
  .lang-dropdown { right: 0; }
  .home-intro { grid-template-columns: 1fr; gap: 22px; padding: 30px 0 36px; }
  .home-intro h1 { font-size: clamp(35px, 7.4vw, 49px); line-height: 1.28; }
  .home-intro-copy { border-left: 0; padding: 0; font-size: 16px; max-width: 65ch; }
  .home-products > h2 { font-size: 27px; margin-bottom: 24px; }
  .home-personal { grid-template-columns: 1fr; gap: 14px; padding-block: 28px 40px; }
  .home-contact { padding-block: 34px 40px; gap: 28px; flex-wrap: wrap; }
  .home-personal h2, .home-contact h2 { font-size: 28px; }
  .home-personal p { padding: 0; font-size: 16px; }
  .home-contact p { font-size: 16px; }
  .section { padding-block: 48px; }
}
@media (max-width: 600px) {
  .catalogue-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .catalogue-product, .catalogue-product:first-child, .catalogue-product:last-child {
    padding: 0 0 30px; border: 0; border-bottom: 1px solid var(--surface-border);
  }
  .catalogue-product:last-child { padding-bottom: 0; border-bottom: 0; }
  .catalogue-identity { gap: 18px; min-height: 84px; }
  .catalogue-icon { width: 78px; height: 78px; flex-basis: 78px; }
  .catalogue-monogram { font-size: 39px; border-radius: 16px; }
  .catalogue-identity h3 { font-size: 27px; margin-top: 0; }
  .catalogue-platform, .catalogue-tagline { font-size: 14px; }
  .catalogue-shot { height: 270px; margin-top: 18px; }
  .catalogue-shot-mobile { height: 330px; }
  .catalogue-description { min-height: 0; font-size: 16px; margin-top: 14px; }
  .catalogue-actions { gap: 12px 22px; }
  .catalogue-actions .btn { min-width: 158px; font-size: 15px; padding-inline: 22px; }
  .development-note { margin-top: 30px; column-gap: 18px; }
  .development-label { padding-right: 18px; }
  .development-note p { flex-basis: 100%; }
  .home-footer-inner { gap: 12px 20px; }
  .home-footer .footer-logo { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Footer legal links (关于我们 / 隐私政策 / 用户协议) and ICP 备案号 */
.footer-bottom a,
.home-footer-inner a,
.icp-foot a,
.footer-icp { color: inherit; text-decoration: none; }
.footer-bottom a:hover,
.home-footer-inner a:hover,
.icp-foot a:hover,
.footer-icp:hover { text-decoration: underline; }

.footer-icp { color: inherit; text-decoration: none; }
.footer-icp:hover { text-decoration: underline; }
