/* WSI design system — based on awesome-design-md / IBM.
   Shared rules live here. Product-specific changes belong in product/.../style.css. */

/* 本地开源字体：离线预览也可保持版式。许可证见 fonts/OFL.txt。 */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

/* 1. Design tokens */
:root {
  --primary: #0f62fe;
  --product-accent: var(--primary);
  --ink: #161616;
  --muted: #525252;
  --surface: #f4f4f4;
  --line: #e0e0e0;
  --page-width: 1320px;
}

/* 2. Base typography and accessibility */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 300; line-height: 1.12; }
h1 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 3.2vw, 46px); letter-spacing: -.025em; }
h3 { font-size: 24px; font-weight: 400; }
em { color: var(--primary); font-style: normal; }
.section-shell { width: min(calc(100% - 96px), var(--page-width)); margin-inline: auto; }
.section-spacing { padding-block: 96px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { width: 26px; height: 1px; background: currentColor; }
.lead { max-width: 470px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; padding: 19px 24px; background: var(--product-accent); color: #fff; font-size: 13px; }
.button:hover { color: #fff; background: #0050e6; }
.button span { font-size: 20px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 28px; padding-block: 10px; font-size: 13px; border-bottom: 1px solid var(--ink); }
.skip-link { position: absolute; z-index: 10; top: -100px; background: #fff; padding: 16px; }
.skip-link:focus { top: 0; }

/* 3. Site header and footer */
.utility-bar { display: flex; justify-content: space-between; padding: 9px 48px; background: var(--ink); color: #d4d4d4; font-size: 10px; letter-spacing: .06em; }
.site-header { display: flex; align-items: center; gap: 40px; padding: 24px 48px; border-bottom: 1px solid var(--line); }
.brand { display: block; font-size: 37px; font-weight: 700; letter-spacing: -.07em; line-height: 1; }
.brand span { display: block; margin-top: 7px; font-size: 8px; font-weight: 500; letter-spacing: .15em; }
.site-header nav { display: flex; gap: 36px; margin-left: auto; font-size: 13px; }
.header-cta { margin-left: 20px; padding: 14px 19px; font-size: 12px; }
.site-footer { background: var(--ink); color: #fff; padding: 65px 48px 22px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 48px; max-width: var(--page-width); margin: auto; padding-bottom: 56px; }
.footer-top p { font-size: 32px; line-height: 1.25; font-weight: 300; }
.footer-top > div { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; max-width: var(--page-width); margin: auto; padding-top: 22px; border-top: 1px solid #393939; color: #aaa; font-size: 10px; }

/* 4. Homepage hero: real catalog image with preserved transparency */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; padding-block: 40px; gap: 32px; }
.hero-copy { padding: 40px 0 0; }
.hero h1 { margin-bottom: 27px; }
.hero .button { margin-top: 16px; }
.hero-footnote { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 50px; font-size: 10px; }
.hero-footnote > span { color: var(--muted); letter-spacing: .06em; }
.hero-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 630px; background: #edf0f3; overflow: hidden; }
.stage-word { position: absolute; top: 7px; left: 20px; color: #dfe4e8; font-size: clamp(110px, 14vw, 220px); font-weight: 700; letter-spacing: -.08em; line-height: 1; }
.hero-stage > img { position: relative; width: 90%; padding-bottom: 20px; }
.stage-caption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 25px 28px; background: var(--primary); color: #fff; }
.stage-caption small { display: block; font-size: 9px; letter-spacing: .12em; opacity: .85; }
.stage-caption strong { display: block; margin-top: 3px; font-size: 25px; font-weight: 400; }
.stage-caption a { font-size: 32px; }
.stage-caption a:hover { color: #fff; }
.range-label { position: absolute; right: 18px; top: 20px; padding: 13px 18px; background: white; border-left: 2px solid var(--primary); }
.range-label small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.range-label strong { font-size: 25px; font-weight: 400; }
.range-label strong span { font-size: 12px; }
.process-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 27px max(48px, calc((100% - 1320px) / 2)); border-block: 1px solid var(--line); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.process-strip span::before { content: '+'; color: var(--primary); margin-right: 20px; }

/* 5. Category and product cards */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .text-link { flex-shrink: 0; }
.category-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-feature { border: 1px solid var(--line); background: #fff; }
.category-feature:hover { background: var(--surface); }
.category-feature .category-image { display: flex; justify-content: center; align-items: center; height: 235px; background: var(--surface); padding: 26px; }
.category-image img { max-height: 190px; object-fit: contain; }
.category-feature .category-copy { padding: 25px 22px; }
.category-copy small { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.category-copy h3 { min-height: 60px; margin: 16px 0 25px; font-size: 23px; }
.category-copy > span { color: var(--primary); font-size: 22px; }
.featured-section { background: var(--surface); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: border-color .15s; min-width: 0; }
.product-card:hover { border-color: var(--primary); }
.card-visual { display: flex; align-items: center; justify-content: center; height: 215px; background: #f6f7f8; overflow: hidden; padding: 20px; }
.card-visual img { max-height: 190px; max-width: 90%; object-fit: contain; }
.featured-grid .card-visual { height: 290px; }
.featured-grid .card-visual img { max-height: 245px; }
.model-placeholder { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; padding: 12px; border: 1px solid #dce2e8; }
.model-placeholder::before, .model-placeholder::after { content: '+'; position: absolute; font-size: 18px; color: #a4b0bc; }
.model-placeholder::before { top: -14px; left: -6px; }
.model-placeholder::after { bottom: -14px; right: -6px; }
.model-placeholder small { color: #75808b; font-size: 10px; letter-spacing: .2em; }
.model-placeholder strong { margin-top: 12px; font-size: clamp(18px, 2vw, 29px); font-weight: 300; color: #536a84; overflow-wrap: anywhere; }
.card-content { flex: 1; padding: 24px; }
.card-content > small { display: block; min-height: 28px; color: var(--muted); font-size: 11px; }
.card-content h3 { margin: 10px 0 27px; overflow-wrap: anywhere; }
.card-content > div { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--line); font-size: 11px; }
.card-content > div span:last-child { color: var(--primary); font-size: 19px; }

/* 6. Homepage selection section */
.selection-section { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; }
.selection-section h2 { line-height: 1.2; margin-bottom: 35px; }
.selection-steps article { display: flex; gap: 28px; padding: 25px 0; border-top: 1px solid var(--line); }
.selection-steps article > span { color: var(--primary); font-size: 12px; padding-top: 4px; }
.selection-steps h3 { margin-bottom: 12px; }
.selection-steps p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.closing-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px; background: var(--primary); color: white; }
.closing-band p { margin: 0; font-size: 32px; font-weight: 300; }
.closing-band a { display: flex; gap: 60px; align-items: center; font-size: 18px; }
.closing-band a:hover { color: #fff; }

/* 7. Catalog and category navigation */
.catalog-heading { padding-block: 36px 48px; }
.breadcrumb { display: block; margin-bottom: 48px; color: var(--muted); font-size: 11px; }
.catalog-heading h1 { max-width: 1000px; margin-bottom: 25px; }
.catalog-intro { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.catalog-intro p { margin-bottom: 0; }
.catalog-intro > span { white-space: nowrap; }
.catalog-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.category-navigation { padding-top: 28px; }
.category-navigation summary { display: flex; justify-content: space-between; font-size: 14px; padding-bottom: 24px; cursor: pointer; list-style: none; }
.category-navigation nav a { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; padding: 12px 14px; margin-left: -14px; border-left: 2px solid transparent; }
.category-navigation nav a span { color: #777; font-size: 10px; }
.category-navigation nav a[aria-current=page] { border-color: var(--primary); background: var(--surface); color: var(--primary); }
.search-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding-block: 28px 32px; }
.search-bar label { font-size: 11px; color: var(--muted); grid-column: 1/-1; }
.search-bar input { width: 100%; min-width: 0; padding: 14px; border: 0; border-bottom: 1px solid var(--ink); background: var(--surface); font-size: 14px; border-radius: 0; }
.search-bar > span { align-self: center; font-size: 11px; color: var(--muted); }
.empty-state { padding: 50px 25px; background: var(--surface); }

/* 8. Product page: local style.css loads after this file */
.product-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 28px; font-size: 11px; color: var(--muted); }
.product-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 75px; align-items: center; padding-bottom: 80px; }
.gallery-main { min-height: 470px; background: var(--surface); padding: 32px; display: flex; align-items: center; justify-content: center; }
.gallery-main img { max-height: 440px; object-fit: contain; }
.gallery-main .model-placeholder { min-height: 380px; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 14px; }
.gallery-thumbnails button { width: 70px; height: 70px; padding: 5px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.gallery-thumbnails button[aria-pressed=true] { border: 2px solid var(--primary); }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.product-summary h1 { overflow-wrap: anywhere; }
.product-summary > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.8; }
.product-identification { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; margin-block: 32px; border-block: 1px solid var(--line); font-size: 13px; }
.product-identification > span { color: var(--muted); }
.product-summary .button { display: flex; width: fit-content; }
.product-summary .text-link { margin-top: 20px; }
.specification-band { background: var(--surface); padding-block: 65px; }
.specification-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
.specification-layout table { width: 100%; border-collapse: collapse; background: white; font-size: 15px; }
.specification-layout th, .specification-layout td { padding: 25px; border-bottom: 1px solid var(--line); text-align: left; }
.specification-layout th { font-weight: 400; color: var(--muted); }
.specification-layout td { font-weight: 600; }

/* 9. About and contact pages */
.editorial-heading { padding-block: 70px; }
.editorial-heading h1 { max-width: 850px; }
.about-band { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 70px 48px; background: var(--surface); margin-bottom: 90px; }
.about-monogram { color: var(--primary); font-size: clamp(90px, 18vw, 250px); font-weight: 700; letter-spacing: -.08em; }
.about-band p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 100px; }
.contact-checklist { padding-left: 22px; color: var(--muted); font-size: 15px; }
.contact-checklist li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-panel { padding: 40px; background: var(--surface); border-top: 3px solid var(--primary); }
.contact-panel p:not(.eyebrow) { color: var(--muted); }

/* 10. Tablet and mobile layout */
@media (max-width: 1100px) {
  .section-shell { width: calc(100% - 56px); }
  .site-header { padding-inline: 28px; gap: 25px; }
  .header-cta { display: none; }
  .hero-stage { min-height: 550px; }
  .hero-footnote { flex-direction: column; align-items: start; }
  .category-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-feature .category-image { height: 270px; }
  .category-image img { max-height: 230px; }
  .catalog-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .catalog-results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection-section { gap: 50px; }
  .product-hero { gap: 40px; }
}
@media (max-width: 700px) {
  .section-shell { width: calc(100% - 36px); }
  .utility-bar { padding-inline: 18px; font-size: 8px; }
  .site-header { padding: 22px 18px; gap: 18px; }
  .brand { font-size: 31px; }
  .brand span { font-size: 6px; }
  .site-header nav { gap: 17px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-copy { padding-top: 25px; }
  .hero h1 { font-size: clamp(42px, 9vw, 64px); }
  .hero-footnote { flex-direction: row; margin-top: 35px; }
  .hero-stage { min-height: 470px; }
  .hero-stage > img { max-width: 450px; padding-bottom: 65px; }
  .stage-word { font-size: 160px; }
  .process-strip { padding: 24px 18px; display: grid; grid-template-columns: 1fr 1fr; font-size: 8px; }
  .process-strip span::before { margin-right: 9px; }
  .section-spacing { padding-block: 60px; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .category-features { gap: 12px; }
  .category-feature .category-image { height: 175px; padding: 15px; }
  .category-image img { max-height: 145px; }
  .category-feature .category-copy { padding: 20px 15px; }
  .category-copy h3 { font-size: 21px; min-height: 65px; }
  .category-copy small { font-size: 8px; }
  .featured-grid { grid-template-columns: 1fr; }
  .selection-section, .product-hero, .specification-layout, .contact-layout, .about-band { grid-template-columns: 1fr; gap: 35px; }
  .closing-band { flex-direction: column; align-items: start; padding: 35px 18px; }
  .closing-band p { font-size: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 35px; }
  .footer-top p { margin: 0; }
  .site-footer { padding-inline: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .catalog-heading { padding-top: 25px; }
  .catalog-heading h1 { font-size: 42px; }
  .catalog-intro { gap: 24px; font-size: 12px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 0; }
  .category-navigation { padding-top: 22px; border-bottom: 1px solid var(--line); }
  .category-navigation nav { padding-bottom: 20px; max-height: 320px; overflow-y: auto; }
  .category-navigation summary { padding-bottom: 22px; }
  .product-grid { gap: 12px; }
  .card-visual { height: 155px; padding: 12px; }
  .card-visual img { max-height: 135px; }
  .card-content { padding: 16px; }
  .card-content h3 { font-size: 21px; }
  .card-content > small { min-height: 34px; font-size: 10px; }
  .featured-grid .card-content > small { min-height: 0; }
  .model-placeholder { padding: 8px; }
  .model-placeholder strong { font-size: 20px; }
  .search-bar { gap: 8px; }
  .search-bar input { font-size: 12px; }
  .product-hero { padding-bottom: 50px; }
  .gallery-main { min-height: 340px; padding: 20px; }
  .gallery-main img { max-height: 340px; }
  .gallery-main .model-placeholder { min-height: 280px; }
  .product-summary h1 { font-size: 47px; }
  .product-summary .eyebrow { margin-bottom: 18px; }
  .specification-layout th, .specification-layout td { padding: 20px 15px; }
  .about-band { padding: 35px 22px; }
  .contact-panel { padding: 25px; }
  .editorial-heading { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
