/* Gatherstar surface, typography and motion. */
:root {
  --type-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --cream: #f5f7fb;
  --white: #fff;
  --ink: #172641;
  --muted: #526078;
  --line: #dce3ee;
  --brand-blue: #264e86;
  --brand-navy: #111f39;
  --brand-navy-light: #233e69;
  --brand-amber: #f5af37;
  --brand-amber-hover: #ffc362;
  --brand-amber-ink: #844900;
  --brand-amber-wash: #fff0d4;
  --brand-gradient: linear-gradient(115deg, var(--brand-navy), var(--brand-navy-light));
  --tint: #e8eef8;
  --surface-wash: linear-gradient(135deg, #fbfcff, #e8eef9);
  --surface-shadow: 0 1px 2px rgb(26 52 65 / .04), 0 12px 32px rgb(26 52 65 / .06);
  --radius-control: 12px;
  --radius-card: 22px;
  --radius-frame: clamp(24px, 3vw, 36px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

body { font-family: var(--type-ui); color: var(--ink); }
h1, h2, h3 { font-family: var(--type-ui); font-weight: 650; }
:where(h1, h2, h3) { overflow-wrap: anywhere; }
:root:lang(zh-CN) h1, :root:lang(zh-CN) h2, :root:lang(zh-CN) h3 { letter-spacing: -.02em; }
.shell { width: min(100% - clamp(32px, 6vw, 96px), 1320px); }
.section { padding-block: clamp(58px, 7vw, 104px); }

.site-header {
  position: sticky;
  top: 0;
  background: #fafcfd;
  border-bottom-color: rgb(32 65 82 / .09);
}
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .site-header {
    background: rgb(250 252 253 / .88);
    -webkit-backdrop-filter: saturate(135%) blur(16px);
    backdrop-filter: saturate(135%) blur(16px);
  }
}
.header-inner { height: 72px; gap: 18px; }
.brand { width: 166px; }
.brand-logo { width: 100%; }
.site-header .main-nav {
  gap: 3px;
  padding: 4px;
  background: #edf1f8;
  border: 0;
  border-radius: 24px;
}
.site-header .main-nav a {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 6px clamp(8px, 1.15vw, 18px);
  border-radius: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.site-header .main-nav a::after { content: none; }
.site-header .main-nav a:hover { color: var(--ink); background: #f5f8fa; }
.site-header .main-nav a[aria-current="page"] {
  color: var(--brand-amber-ink);
  background: var(--brand-amber-wash);
}
.language-picker select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  font: 550 13px var(--type-ui);
}
html { scroll-padding-top: 90px; }
:focus-visible { outline-color: var(--brand-blue); }

a, button, select, input, textarea {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
    box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.button, .brand-link, .admin-toolbar .button {
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--type-ui);
  font-weight: 600;
  letter-spacing: 0;
}
.brand-link { min-width: 0; gap: 20px; }
.brand-link-primary, .button-primary, .brand-link-light { background: var(--brand-amber); color: var(--brand-navy); }
.brand-link-primary:hover, .button-primary:hover, .brand-link-light:hover { background: var(--brand-amber-hover); color: var(--brand-navy); }
.button-dark { background: var(--brand-navy); color: #fff; }
.button-dark:hover { background: var(--brand-navy-light); color: #fff; }
.button-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: var(--tint); color: var(--brand-navy); border-color: #b9c8df; }
.button:not(:disabled):active, .brand-link:active, [role="tab"]:active { transform: scale(.98); }
.hero-text-link, .text-link, .wood-collection-contact {
  min-height: 42px;
  gap: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font-family: var(--type-ui);
  font-weight: 600;
  letter-spacing: 0;
}
.hero-text-link:hover, .text-link:hover, .wood-collection-contact:hover { background: #dce6f7; color: var(--brand-navy); }

.science-hero, .about-hero, .brand-cta {
  width: min(100% - clamp(32px, 6vw, 96px), 1320px);
  margin-inline: auto;
}
.science-hero, .about-hero, .brand-page-intro, .contact-intro, .material-hero {
  border-radius: var(--radius-frame);
  overflow: hidden;
  background: var(--surface-wash);
  box-shadow: var(--surface-shadow);
}
.science-hero, .about-hero { margin-block: clamp(16px, 2.5vw, 36px) 0; }
.science-hero {
  grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
  min-height: 0;
}
.science-hero .brand-hero-copy {
  min-height: 0;
  gap: 34px;
  padding: clamp(38px, 4.5vw, 76px) clamp(24px, 4vw, 62px) 24px;
}
.science-hero .brand-overline { margin-bottom: 22px; font-size: 10px; letter-spacing: .11em; }
.science-hero h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(37px, 4.15vw, 62px);
  font-weight: 690;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.science-hero h1 em, .about-hero-copy h1 em { color: var(--brand-blue); font-weight: inherit; }
.science-hero .brand-hero-lead { margin-bottom: 26px; color: var(--muted); line-height: 1.7; }
.hero-actions { gap: 10px; }
.hero-caption { border-color: #d6e2e7; color: #506671; padding-top: 14px; letter-spacing: .045em; }
.science-hero-visual {
  min-height: 490px;
  grid-template-rows: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 9px;
  padding: 12px 12px 12px 0;
  background: transparent;
}
.hero-material-field, .hero-stone-field, .hero-science-field { border-radius: var(--radius-card); }
.hero-visual-mark {
  top: auto;
  right: 24px;
  bottom: 24px;
  border-radius: 999px;
  background: rgb(250 252 253 / .94);
}
.hero-material-field span, .hero-stone-field span { bottom: 14px; left: 14px; letter-spacing: .1em; }
.hero-science-field.restrained-photo-field small { left: 14px; bottom: 13px; }

.material-intro, .about-profile, .about-value-chain, .series-section { background: transparent; }
.material-explorer, .about-timeline, .about-factories, .material-main,
.listing-main, .product-center, .detail-main, .contact-page { background: var(--cream); }
.editorial-index, .section-kicker, .brand-overline { font-family: var(--type-ui); }
.material-intro-grid { margin-bottom: clamp(30px, 4vw, 58px); }
.material-intro h2 em { color: var(--brand-blue); }
.editorial-heading .section-heading-note { color: var(--muted); }
.direction-card, .material-panel, .chemistry-panel, .series-card, .home-manufacture-media,
.about-factory-layout, .material-process-reference, .about-photo-layout { border-radius: var(--radius-frame); }
.material-panel, .chemistry-panel, .about-factory-layout, .about-photo-layout { overflow: hidden; }
.direction-card, .material-panel, .about-factory-layout { box-shadow: var(--surface-shadow); }
.direction-grid { gap: clamp(12px, 2vw, 22px); }
.direction-copy h3, .home-manufacture-copy h2, .chemistry-copy h3 { font-family: var(--type-ui); font-weight: 650; }
.direction-arrow { border-radius: 50%; }
.direction-chemical .direction-index, .restrained-study-field small,
.page-intro-marks span, .material-hero-media p { border-radius: 999px; }

.material-tabs, .chemistry-tabs, .about-factory-tabs {
  gap: 5px;
  padding: 5px;
  border: 0;
  border-radius: calc(var(--radius-card) + 2px);
  background: var(--tint);
}
.material-tabs { margin-bottom: 14px; }
.material-tabs button, .chemistry-tabs button, .about-factory-tabs button {
  min-width: 0;
  border: 0;
  border-radius: calc(var(--radius-card) - 3px);
}
.material-tabs button strong, .chemistry-tabs button strong, .about-factory-tabs button strong,
.directory-heading span:first-child, .directory-links a strong {
  font-family: var(--type-ui);
  font-weight: 600;
}
.material-tabs button { color: var(--muted); min-height: 62px; padding-block: 11px; }
.material-tabs button:hover { background: #f1f6f8; }
.material-tabs button[aria-selected="true"],
.about-factory-tabs button[aria-selected="true"] {
  color: var(--brand-amber-ink);
  background: #fff;
  box-shadow: 0 2px 6px rgb(29 53 70 / .12);
}
.material-panel { background: var(--white); }
.chemistry-section { background: var(--brand-navy); }
.chemistry-section .editorial-heading .section-heading-note { color: #c5d0e2; }
.chemistry-section .editorial-index, .brand-cta .editorial-index { color: var(--brand-amber); }
.chemistry-stage { gap: 12px; grid-template-columns: minmax(0, 28fr) minmax(0, 72fr); border: 0; }
.chemistry-tabs { background: #213555; }
.chemistry-tabs button { color: #e2e9f6; }
.chemistry-tabs button[aria-selected="true"] { background: var(--brand-amber-wash); color: var(--brand-amber-ink); box-shadow: var(--surface-shadow); }
.chemistry-panel { background: #f9fbfc; }
.category-directory, .category-directory:last-child {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}
.directory-heading { padding-left: 15px; }
.directory-links { gap: 6px; border: 0; }
.directory-links a, .directory-links a:nth-child(odd) {
  border: 0;
  border-radius: var(--radius-control);
  background: #f2f6f8;
  min-height: 68px;
}
.directory-links a:hover { background: var(--tint); }
.brand-cta {
  border-radius: var(--radius-frame);
  margin-bottom: clamp(30px, 6vw, 84px);
  padding: clamp(24px, 4vw, 58px);
  background: var(--brand-gradient);
}
.brand-cta .shell { width: 100%; }

.about-hero-shell {
  width: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
}
.about-hero-copy, .brand-page-intro-copy, .material-hero-copy, .contact-intro-copy { background: transparent; }
.about-hero-copy h1, .brand-page-intro h1, .material-hero h1,
.detail-heading h1, .brand-admin-intro h1, .contact-page .contact-intro h1 {
  font-family: var(--type-ui);
  font-weight: 680;
  color: var(--ink);
}
.about-hero-copy {
  min-height: 0;
  padding: clamp(32px, 4.5vw, 66px) clamp(24px, 3.8vw, 58px);
}
.about-hero-copy .editorial-index { margin-bottom: 24px; }
.about-hero-copy h1 {
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: -.045em;
  overflow-wrap: normal;
}
.about-hero-copy h1 span,
.about-hero-copy h1 em { display: block; }
.about-hero-copy > p:not(.editorial-index) { margin-top: 18px; }
.about-hero-copy .hero-text-link { margin-top: 24px; }
.about-hero-collage { min-height: clamp(350px, 35vw, 455px); }
.about-hero-image-main { inset: 0; transform: none; }
.about-hero-image-overlap {
  inset: auto 18px 18px auto;
  width: 39%;
  height: 44%;
  border: 4px solid rgb(255 255 255 / .9);
  border-radius: var(--radius-card);
  transform: none;
}
.about-hero-grid, .about-hero-vertical, .about-factory-panel::after { display: none; }
.about-timeline-list { gap: 12px; }
.about-timeline-list li {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.about-timeline-list li::before { content: none; }
.about-time-index { color: #dce8ed; font-family: var(--type-ui); }
.about-factory-layout { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); gap: 10px; background: transparent; }
.about-factory-tabs button[aria-selected="true"] strong,
.about-factory-tabs button[aria-selected="true"] span:first-child { color: var(--brand-amber-ink); }
.about-factory-panel { border-radius: var(--radius-frame); }
.about-photo-story { background: transparent; }
.about-photo-copy { background: var(--brand-gradient); }
.about-chain { border-color: var(--line); }

.listing-main > .shell, .product-center > .shell, .contact-page > .shell { padding-top: clamp(16px, 3vw, 36px); }
.brand-page-intro, .contact-intro { border: 0; }
.catalog-intro-media::before { content: none; }
.contact-page .contact-intro h1 { white-space: normal; }
.contact-office { background: #fff; border-color: var(--line); }
.detail-heading, .brand-admin-intro { border: 0; padding-inline-start: 0; }
.material-spec-card strong, .material-feature-grid h3, .material-overview h2,
.material-section-heading h2, .material-cta h2, .material-process-reference p,
.sales-editor-slot legend, .sales-dialog h2, .download-copy h2, .footer-inner > p {
  font-family: var(--type-ui);
  font-weight: 600;
}
.material-process-reference { border: 0; }
.category-sidebar, .product-center .product-card, .download-row, .contact-page .contact-list div,
.admin-card, .admin-toolbar, .product-center .edit-panel, .detail-info, .detail-image,
.product-center .empty-state, .empty-state, .sales-card, .sales-empty,
.material-spec-card, .material-feature-grid > div, .material-cta {
  border-radius: var(--radius-card);
  border-color: var(--line);
  box-shadow: var(--surface-shadow);
}
.category-sidebar, .product-center .product-card, .download-row, .contact-page .contact-list div,
.admin-card, .detail-info, .sales-card, .product-center .empty-state, .empty-state { background: #fff; }
.category-tree .category-row, .category-tree .category-select { border-radius: var(--radius-control); }
.category-tree .category-select:hover, .category-tree .category-toggle:hover { background: #edf3f6; }
.category-tree .category-select.is-selected { color: #1e5068; background: var(--tint); box-shadow: none; }
.category-sidebar-heading { border-color: var(--line); }
.category-heading-accent { border-radius: 3px; }
.wood-collection-note, .admin-toolbar, .create-category-summary, .material-cta { background: var(--surface-wash); }
.wood-collection-note { border: 1px solid var(--line); border-radius: var(--radius-card); }
.product-center .product-card { overflow: hidden; }
.product-center .product-card h3, .product-results-heading h2, .wood-collection-copy h3 {
  font-family: var(--type-ui);
  font-weight: 650;
}
.product-center .product-card-image { background: #eef2f4; }
.product-card-image:focus-visible { outline-offset: -4px; }
.download-icon { color: #2a5d74; background: var(--tint); }
.field input, .field select, .field textarea, .upload-box, .create-category-summary,
.sales-editor-slot, .form-message, .notice, .skip-link { border-radius: var(--radius-control); }
.field input, .field select, .field textarea { background: #f8fafb; border-color: #ccdbe2; }
.field input::placeholder, .field textarea::placeholder { color: #687d88; }
.confirm-dialog, .sales-dialog { border-radius: var(--radius-frame); border-color: var(--line); }
.confirm-dialog::backdrop, .sales-dialog::backdrop { background: rgb(17 39 52 / .46); backdrop-filter: blur(5px); }
.site-footer {
  background: var(--brand-navy);
  color: #c2cde0;
  border: 0;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, .75fr) minmax(0, 1.3fr);
  gap: clamp(24px, 3.5vw, 56px);
  padding-block: clamp(38px, 5vw, 64px);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer-grid h2 {
  margin: 0 0 17px;
  color: var(--brand-amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.site-footer-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer-grid a { color: inherit; overflow-wrap: anywhere; }
.site-footer-grid a:hover { color: var(--brand-amber-hover); }
.site-footer-grid a:focus-visible { outline-color: var(--brand-amber); }

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}

.site-footer-logo img { width: 164px; height: auto; }
.site-footer-brand p { max-width: 32ch; margin: 15px 0 19px; }
.site-footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid #3a4c6a;
  border-radius: 999px;
}
.site-footer-actions a:hover { border-color: var(--brand-amber); background: #233756; }
.site-footer-sales { padding-inline: 13px; }
.site-footer-icon { width: 40px; }

.site-footer-address { margin-bottom: 11px; font-style: normal; }
.site-footer-address a, .site-footer-channels li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
}
.site-footer-address strong { display: block; color: #fff; font-weight: 600; }
.site-footer-grid [aria-hidden="true"] { color: var(--brand-amber); }
.site-footer-bottom { padding-block: 19px; border-top: 1px solid #334460; font-size: 13px; color: #b2bfd6; }
.site-footer-bottom p { margin: 0; }
.site-footer-bottom strong { color: #e6edf9; font-weight: 600; }

@media (max-width: 920px) {
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 31px; }
}

@media (max-width: 520px) {
  .site-footer-grid { gap: 26px 15px; }
  .site-footer-brand, .site-footer-grid > section { grid-column: 1 / -1; }
  .site-footer-grid h2 { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.material-panel, .chemistry-panel, .about-factory-panel):not([hidden]), dialog[open] {
    animation: surface-in 260ms var(--ease-out) both;
  }
  @keyframes surface-in {
    from { opacity: .72; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 950px) {
  .header-inner { gap: 10px; }
  .brand { width: 135px; }
  .site-header .main-nav a { font-size: 12px; }
}
@media (max-width: 800px) {
  .science-hero, .about-hero-shell, .about-factory-layout, .chemistry-stage { grid-template-columns: 1fr; }
  .science-hero .brand-hero-copy { gap: 20px; }
  .science-hero-visual { padding: 0 10px 10px; min-height: clamp(260px, 62vw, 425px); }
  .hero-visual-mark { right: 21px; bottom: 21px; }
  .about-hero-copy h1 { font-size: clamp(27px, 6.5vw, 48px); }
  .about-hero-collage { min-height: clamp(220px, 51vw, 380px); }
  .about-factory-tabs { flex-direction: row; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chemistry-tabs button, .material-tabs button { padding-inline: 10px; min-height: 58px; }
  .directory-heading { padding: 10px 12px; }
}
@media (max-width: 730px) {
  .site-header .header-inner { min-height: 0; height: auto; padding: 9px 0; gap: 7px; flex-wrap: wrap; }
  .site-header .brand { width: 140px; margin-right: auto; }
  .site-header .brand-logo { width: 100%; max-height: 42px; }
  .site-header .main-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
  }
  .site-header .main-nav a {
    min-height: 40px;
    font-size: clamp(10px, 2.8vw, 12px);
    padding: 4px 2px;
    white-space: normal;
    text-align: center;
  }
  .language-picker select { min-height: 36px; font-size: 12px; }
  html { scroll-padding-top: 120px; }
  .brand-cta .brand-link { width: auto; }
}
@media (max-width: 530px) {
  .science-hero h1 { font-size: clamp(30px, 8.8vw, 44px); }
  .hero-actions .brand-link { flex: 0 1 auto; width: auto; }
  .hero-caption { display: none; }
  .science-hero .brand-hero-copy { padding: 30px 20px 24px; }
  .hero-visual-mark { display: none; }
  .material-tabs button > span:last-child { display: none; }
  .download-row { padding: 18px; }
  .about-factory-tabs button { padding: 10px; }
}
