:root {
  --ink: #101820;
  --navy: #102b3a;
  --navy-soft: #183a4a;
  --teal: #237a78;
  --teal-soft: #dcebea;
  --gold: #c99b42;
  --red: #b8514b;
  --paper: #f3f6f6;
  --surface: #ffffff;
  --muted: #68767d;
  --line: #d7e0e2;
  --line-dark: #bfcacd;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; line-height: 1.68; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 max(28px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(16,43,58,.12); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 168px; }
.brand img { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16,43,58,.14); }
.brand span { display: grid; line-height: 1.16; }
.brand strong { color: var(--navy); font-size: 17px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; }
nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
nav a { position: relative; color: #344951; font-weight: 650; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--teal); transition: right .22s ease; }
nav a:hover { color: var(--navy); }
nav a:hover::after { right: 0; }
.nav-buy { min-height: 42px; padding: 9px 17px; border: 1px solid var(--navy); border-radius: 6px; background: var(--navy); color: white; font-weight: 700; transition: background .22s ease, border-color .22s ease, transform .22s ease; }
.nav-buy:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-1px); }

.hero { position: relative; min-height: min(650px, calc(100vh - 150px)); overflow: hidden; display: flex; align-items: center; background: var(--navy); color: white; isolation: isolate; }
.hero-image { position: absolute; z-index: -2; top: 0; right: 0; width: 50%; height: 100%; object-fit: contain; object-position: center; background: #1d1f22; filter: saturate(.78) contrast(1.02); }
.hero-shade { position: absolute; z-index: -1; inset: 0 auto 0 0; width: 50%; background: var(--navy); border-right: 1px solid rgba(255,255,255,.14); }
.hero-content { width: var(--max); max-width: calc(100% - 56px); margin: 0 auto; padding: 52px 0 38px; }
.hero-kicker, .eyebrow { margin: 0 0 15px; color: #87c4c0; font-size: 12px; font-weight: 750; }
.hero h1 { max-width: 600px; margin: 0; font-size: 55px; line-height: 1.14; letter-spacing: 0; }
.hero-copy { max-width: 530px; margin: 20px 0 0; color: #c8d5da; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.button { min-height: 48px; padding: 11px 21px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; font-weight: 700; transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: #172029; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.button.primary:hover { background: #ddb764; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.button.ghost { background: rgba(255,255,255,.06); color: white; border-color: rgba(255,255,255,.42); }
.button.ghost:hover { background: white; color: var(--navy); border-color: white; }
.button.dark { background: var(--navy); color: white; }
.button.dark:hover { background: var(--teal); }
.button.full { width: 100%; margin-top: 4px; }
.hero-points { max-width: 610px; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 36px 0 0; padding: 19px 0 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; color: #b8c9cf; font-size: 13px; }
.hero-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--gold); }

.catalog { max-width: var(--max); margin: 0 auto; padding: 66px 24px 108px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 46px; margin-bottom: 36px; }
.section-heading h2, .service h2, .notice h2 { margin: 0; color: var(--navy); font-size: 37px; line-height: 1.28; letter-spacing: 0; }
.section-heading .eyebrow, .service .eyebrow { color: var(--teal); }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 26px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.76); box-shadow: 0 8px 28px rgba(16,43,58,.04); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 40px; padding: 8px 15px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 650; }
.filters button:hover { border-color: var(--line-dark); color: var(--navy); background: white; }
.filters button.active { border-color: var(--navy); background: var(--navy); color: white; box-shadow: 0 5px 14px rgba(16,43,58,.14); }
.search-box { width: 280px; height: 42px; display: flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 6px; background: white; }
.search-box input { min-width: 0; width: 100%; height: 100%; padding: 0 13px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35,122,120,.12); }
.search-box button { display: none; flex: 0 0 auto; padding: 0 11px; border: 0; background: transparent; color: var(--teal); font-size: 13px; font-weight: 700; }
.search-box.has-value button { display: block; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.product-card { --accent: var(--teal); min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 7px 24px rgba(16,43,58,.055); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.product-card.tone-yellow { --accent: var(--gold); }
.product-card.tone-teal { --accent: var(--teal); }
.product-card.tone-red { --accent: var(--red); }
.product-card.tone-gold { --accent: #9a7441; }
.product-card:hover { transform: translateY(-5px); border-color: #bdcbce; box-shadow: 0 18px 42px rgba(16,43,58,.12); }
.product-card[hidden] { display: none; }
.product-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr); height: 500px; }
.product-image { position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; background: #e9eeee; }
.featured .product-image { height: 100%; aspect-ratio: auto; border-right: 1px solid var(--line); }
.product-image::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .42s ease; }
.product-image:hover img { transform: scale(1.02); }
.product-image span { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 10px; border-radius: 5px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 750; box-shadow: 0 4px 12px rgba(16,24,32,.14); }
.product-body { display: flex; flex-direction: column; padding: 23px 22px 21px; }
.featured .product-body { padding: 42px 36px 34px; }
.product-code { display: flex; justify-content: space-between; gap: 12px; color: var(--accent); font-size: 12px; font-weight: 750; }
.product-code span:last-child { color: #819096; font-weight: 500; text-align: right; }
.product-body h3 { margin: 9px 0 7px; color: var(--navy); font-size: 21px; line-height: 1.36; letter-spacing: 0; }
.featured .product-body h3 { margin-top: 14px; font-size: 31px; }
.product-body > p { margin: 0; color: var(--muted); font-size: 14px; }
.featured .product-body > p { font-size: 15px; }
.product-foot { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 21px; border-top: 1px solid #e6ecee; }
.price { display: grid; line-height: 1.12; }
.price small { color: var(--muted); }
.price strong { margin-top: 5px; color: var(--navy); font-size: 27px; }
.featured .price strong { font-size: 35px; }
.price b { margin-right: 2px; color: var(--teal); font-size: 15px; }
.details-button, .empty-results button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--navy); border-radius: 6px; background: white; color: var(--navy); font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.details-button:hover, .empty-results button:hover { background: var(--navy); color: white; transform: translateY(-1px); }
.empty-results { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-dark); border-radius: 8px; background: white; }
.empty-results strong { color: var(--navy); font-size: 22px; }
.empty-results p { color: var(--muted); }

.service { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(430px, 1.1fr); background: var(--teal-soft); }
.service-intro { padding: 76px max(52px, calc((100vw - var(--max)) / 2)); padding-right: 68px; }
.service-intro > p:not(.eyebrow) { max-width: 470px; margin: 18px 0 29px; color: #506268; }
.steps { margin: 0; padding: 49px max(52px, calc((100vw - var(--max)) / 2)) 49px 66px; background: var(--navy); color: white; list-style: none; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 19px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); transition: transform .2s ease, border-color .2s ease; }
.steps li:hover { transform: translateX(4px); border-color: rgba(255,255,255,.28); }
.steps li:last-child { border-bottom: 0; }
.steps span { color: #dfb55e; font-weight: 750; }
.steps strong { font-size: 18px; }
.steps p { margin: 3px 0 0; color: #b7c7cd; font-size: 14px; }

.notice { max-width: var(--max); margin: 0 auto; padding: 92px 24px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 86px; }
.notice > div span { display: block; margin-bottom: 9px; color: var(--red); font-size: 13px; font-weight: 750; }
.notice ul { margin: 0; padding: 0; border-top: 2px solid var(--navy); list-style: none; }
.notice li { padding: 17px 8px; border-bottom: 1px solid var(--line); color: #45565c; transition: padding-left .2s ease, color .2s ease; }
.notice li:hover { padding-left: 14px; color: var(--navy); }
.notice li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 13px 2px 0; border-radius: 50%; background: var(--teal); }

footer { padding: 48px max(28px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; background: #0c222e; color: white; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.footer-brand strong { font-size: 18px; }
.footer-brand p { margin: 3px 0 0; color: #9fb3bc; font-size: 13px; }
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links button { min-height: 40px; padding: 8px 14px; border: 1px solid #58707a; border-radius: 6px; background: transparent; color: white; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.footer-links button:hover { border-color: #8ec2bf; background: rgba(255,255,255,.06); color: #a9d2cf; }
.footer-links a { color: #8fa4ad; font-size: 13px; }
.footer-links a:hover { color: white; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid #28414c; color: #81959e; font-size: 12px; }

.product-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 8px; background: white; color: var(--ink); box-shadow: 0 30px 90px rgba(7,26,36,.34); }
.product-dialog::backdrop { background: rgba(7,24,33,.78); backdrop-filter: blur(4px); }
.dialog-close { position: fixed; z-index: 2; right: max(calc((100vw - 1040px) / 2 + 14px), 30px); top: 30px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(16,43,58,.94); color: white; font-size: 25px; line-height: 1; transition: background .2s ease, transform .2s ease; }
.dialog-close:hover { background: var(--red); transform: rotate(6deg); }
.dialog-layout { display: grid; grid-template-columns: 45% 55%; min-height: 630px; }
.dialog-media { padding: 32px; background: #eaf0f1; }
.dialog-media img { position: sticky; top: 32px; width: 100%; border: 1px solid #cbd7da; border-radius: 6px; box-shadow: 0 14px 34px rgba(16,43,58,.1); }
.dialog-content { padding: 43px; overflow-wrap: anywhere; }
.dialog-code { color: var(--teal); font-size: 13px; font-weight: 750; }
.dialog-content h2 { margin: 6px 0 11px; color: var(--navy); font-size: 31px; line-height: 1.28; letter-spacing: 0; }
.dialog-summary { margin: 0; color: var(--muted); }
.dialog-price { display: flex; align-items: end; justify-content: space-between; margin: 22px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-price span { color: var(--muted); font-size: 14px; }
.dialog-price strong { color: var(--red); font-size: 29px; }
.dialog-section { margin-top: 20px; }
.dialog-section h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.dialog-section ul { margin: 0; padding-left: 20px; color: #46575d; font-size: 14px; }
.dialog-section li { margin: 4px 0; }
.versions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.version { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfc; }
.version strong, .version span { display: block; }
.version strong { color: var(--navy); font-size: 13px; }
.version span { margin-top: 3px; color: var(--red); font-weight: 750; }
.dialog-note { margin: 18px 0; padding: 12px 13px; border-left: 3px solid var(--gold); background: #f1f5f5; color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 12px 18px; border: 1px solid #36515d; border-radius: 6px; background: var(--navy); color: white; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .hero-image { width: 50%; }
  .hero-shade { width: 50%; }
  .hero h1 { font-size: 48px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card.featured { grid-column: 1 / -1; grid-template-columns: 1.1fr .9fr; }
  .product-card:not(.featured):last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 16px; }
  .brand { min-width: 0; }
  .brand img { width: 39px; height: 39px; }
  .brand small, nav a { display: none; }
  nav { gap: 0; }
  .nav-buy { min-height: 40px; padding: 8px 12px; }
  .hero { min-height: calc(100svh - 176px); align-items: end; }
  .hero-image { top: 0; width: 100%; height: 47%; opacity: .72; object-position: center top; }
  .hero-shade { inset: auto 0 0; width: 100%; height: 53%; border: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .hero-content { max-width: calc(100% - 32px); padding: 225px 0 29px; }
  .hero-kicker { margin-bottom: 10px; font-size: 11px; }
  .hero h1 { font-size: 39px; line-height: 1.12; }
  .hero-copy { margin-top: 14px; font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
  .button { min-height: 45px; padding: 10px 12px; font-size: 14px; }
  .hero-points { gap: 8px 15px; margin-top: 22px; padding-top: 14px; font-size: 11px; }
  .hero-points li::before { width: 6px; height: 6px; margin-right: 6px; }
  .catalog { padding: 66px 16px 76px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2, .service h2, .notice h2 { font-size: 29px; }
  .section-heading > p { margin-top: 13px; text-align: left; }
  .catalog-tools { align-items: stretch; flex-direction: column; padding: 11px; }
  .filters { display: grid; grid-template-columns: repeat(2, 1fr); }
  .filters button { background: #e8eeee; }
  .search-box { width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card.featured, .product-card:not(.featured):last-child { grid-column: auto; display: block; height: auto; }
  .featured .product-image { height: auto; aspect-ratio: 4 / 3; border-right: 0; }
  .featured .product-body { padding: 26px 22px 22px; }
  .featured .product-body h3 { margin-top: 9px; font-size: 24px; }
  .featured .product-body > p { font-size: 14px; }
  .featured .price strong { font-size: 30px; }
  .service { grid-template-columns: 1fr; }
  .service-intro { padding: 58px 20px; }
  .steps { padding: 32px 20px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 14px; }
  .notice { padding: 68px 20px; grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 42px 20px; grid-template-columns: 1fr; }
  .footer-links { justify-content: space-between; }
  .dialog-layout { display: block; }
  .dialog-media { padding: 16px; }
  .dialog-media img { position: static; max-height: 300px; object-fit: contain; box-shadow: none; }
  .dialog-content { padding: 25px 20px 28px; }
  .dialog-content h2 { font-size: 26px; }
  .dialog-close { right: 24px; top: 24px; }
  .versions { grid-template-columns: 1fr; }
  .version { display: flex; align-items: center; justify-content: space-between; }
}

@media (max-width: 380px) {
  .hero-content { padding-top: 205px; }
  .hero h1 { font-size: 35px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-points { margin-top: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
