:root {
  --navy: #0b2239;
  --navy-2: #13314f;
  --teal: #0e7c86;
  --teal-dark: #0a626b;
  --teal-soft: #e6f2f3;
  --bg: #f6f9fb;
  --surface: #ffffff;
  --text: #102a43;
  --muted: #5b6b7a;
  --border: #d9e2e8;
  --amber: #b54708;
  --amber-soft: #fef3e6;
  --red: #b42318;
  --red-soft: #fdecea;
  --green: #067647;
  --green-soft: #e8f5ee;
  --shadow: 0 10px 30px rgba(11, 34, 57, 0.08);
  --radius: 14px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code, pre { font-family: var(--mono); }
::selection { background: #b7e3e6; color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #9bd3d7; outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--teal);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(14, 124, 134, .25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -.2px; }
.brand-tag { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav a {
  color: var(--text); font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 8px;
}
.nav a:hover { background: var(--teal-soft); color: var(--teal-dark); text-decoration: none; }
.nav a.active { background: var(--teal-soft); color: var(--teal-dark); }
.header-search { margin-left: auto; flex: 1 1 280px; max-width: 360px; }
.header-search input {
  width: 100%; border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 10px 16px; font: inherit; font-size: 13px; color: var(--text);
}
.header-search input:focus { outline: 2px solid #9bd3d7; border-color: var(--teal); }
.lang-switch {
  display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 0 0 auto;
  border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: #fff;
}
.lang-switch a {
  font-size: 10px; font-weight: 750; color: var(--muted); padding: 5px 6px; border-radius: 999px;
  line-height: 1; white-space: nowrap;
}
.lang-switch a:hover { background: var(--teal-soft); color: var(--teal-dark); text-decoration: none; }
.lang-switch a.active { background: var(--navy); color: #fff; }
.lang-tag {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .04em; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 4px; margin-left: 5px; vertical-align: middle;
  background: #fff;
}
.footer-langs {
  display: flex; flex-wrap: wrap; gap: 12px; padding: 0 0 20px; font-size: 12px;
}
.footer-langs a { color: var(--muted); font-weight: 650; }
.footer-langs a:hover { color: var(--teal-dark); }
.menu-toggle {
  display: none; border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 8px 10px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
}

main { display: block; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.5px; color: var(--navy); }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 380px at 85% -10%, rgba(14,124,134,.18), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f6f9fb 100%);
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11,34,57,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,34,57,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; padding: 72px 0 58px; max-width: 880px; }
.hero h1 {
  margin: 14px 0 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1.06;
  letter-spacing: -1.6px; color: var(--navy); font-weight: 850;
}
.hero h1 .h1-main { display: block; }
.hero h1 .h1-sub {
  display: block; margin-top: 10px;
  font-size: clamp(18px, 2.5vw, 28px); line-height: 1.2;
  letter-spacing: -.4px; color: var(--teal); font-weight: 750;
}
.hero h1 .accent { color: var(--teal); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 720px; margin: 0 0 26px; }
.searchbar { display: flex; gap: 10px; max-width: 720px; }
.searchbar input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff;
  padding: 14px 18px; font: inherit; font-size: 16px; color: var(--text); box-shadow: var(--shadow);
}
.searchbar input:focus { outline: 3px solid #b7e3e6; border-color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; background: var(--teal); color: #fff;
  padding: 13px 20px; font: inherit; font-weight: 750; font-size: 15px; cursor: pointer;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border);
  background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 650; color: var(--text);
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; background: var(--teal-soft); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; }
.stat { background: rgba(255,255,255,.8); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 22px; color: var(--navy); letter-spacing: -.5px; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 1px 0 rgba(11,34,57,.02);
}
.card-hover { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #b9d7db; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.3px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.product-card { display: flex; flex-direction: column; min-height: 176px; }
.product-card .pc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.product-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 850; font-size: 15px; flex: 0 0 auto;
}
.product-card h3 { margin: 0; }
.product-card .pc-count { margin-left: auto; font-size: 12px; color: var(--teal-dark); font-weight: 750; background: var(--teal-soft); border-radius: 999px; padding: 4px 9px; }
.product-card .pc-samples { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); display: flex; flex-wrap: wrap; gap: 6px; }
.mini-code { font-family: var(--mono); font-size: 11px; background: #f2f6f8; border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; color: var(--navy); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f8fafc; font-weight: 800; }
tr:last-child td { border-bottom: 0; }
td { font-size: 14px; }
td code, .code { font-size: 13px; font-weight: 750; color: var(--navy); }
tbody tr:hover { background: #fbfdfe; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  padding: 3px 8px; font-size: 11px; font-weight: 750; white-space: nowrap;
}
.badge-error { background: var(--red-soft); color: var(--red); }
.badge-warning { background: var(--amber-soft); color: var(--amber); }
.badge-fatal { background: #fce7e7; color: #8a1c1c; }
.badge-info { background: var(--teal-soft); color: var(--teal-dark); }
.badge-green { background: var(--green-soft); color: var(--green); }

.breadcrumbs { font-size: 12px; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #a9b8c5; }
.breadcrumbs a { color: var(--muted); }

.page-head { padding: 30px 0 26px; }
.page-head h1 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -1px; color: var(--navy); }
.page-head p { margin: 0; color: var(--muted); max-width: 780px; font-size: 16px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 650; }
.page-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: #a9b8c5; display: inline-block; }

.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0; flex-wrap: wrap; }
.toolbar input {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; font: inherit; font-size: 14px;
  min-width: 240px; background: #fff;
}
.toolbar .count { color: var(--muted); font-size: 13px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; padding-bottom: 56px; }
.article { min-width: 0; }
.article h2 { margin: 34px 0 12px; font-size: 24px; letter-spacing: -.4px; color: var(--navy); }
.article h3 { margin: 24px 0 8px; font-size: 18px; color: var(--navy); }
.article p { margin: 0 0 14px; color: #20394f; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; color: #20394f; }
.article li { margin: 6px 0; }
.article .lead { font-size: 17px; color: var(--muted); }
.article pre {
  background: #0e2233; color: #e7eef5; border-radius: 10px; padding: 16px 18px;
  overflow-x: auto; font: 13px/1.55 var(--mono); margin: 0 0 18px;
}
.article pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.article table code { word-break: break-word; }

.quick-answer {
  border: 1px solid #b9d7db; background: linear-gradient(180deg, #f2fbfb, #fff);
  border-radius: 14px; padding: 20px 22px; margin: 20px 0 24px;
}
.quick-answer .qa-label { font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.quick-answer p { margin: 6px 0 0; font-size: 17px; color: var(--navy); font-weight: 600; }

.facts { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 0 0 22px; }
.facts tr td { padding: 10px 14px; font-size: 13px; }
.facts tr td:first-child { width: 34%; color: var(--muted); background: #f8fafc; font-weight: 650; }
.facts tr td:last-child { color: var(--navy); font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 0 16px 44px; margin: 0; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark);
  display: grid; place-items: center; font-size: 13px; font-weight: 850;
}
.steps li strong { display: block; color: var(--navy); margin-bottom: 2px; }
.steps li p { margin: 0; color: #20394f; }

.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.side-card h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side-card p { margin: 0 0 8px; font-size: 13px; color: var(--text); }
.side-card a { font-weight: 650; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.related-list a { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text); }
.related-list code { color: var(--teal-dark); font-weight: 750; }
.related-list a:hover { color: var(--teal-dark); text-decoration: none; }

.feedback { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.feedback button {
  border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 7px 10px;
  font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; color: var(--text);
}
.feedback button:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); }

.notice { border-left: 3px solid var(--amber); background: var(--amber-soft); padding: 14px 16px; border-radius: 0 10px 10px 0; color: #5b3a12; font-size: 14px; }
.notice strong { color: #4a2c08; }

.cta-band { background: var(--navy); color: #fff; border-radius: 18px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 6px; color: #fff; font-size: 26px; letter-spacing: -.5px; }
.cta-band p { margin: 0; color: #b8c7d6; }
.cta-band .btn { background: var(--teal); }

.site-footer { background: var(--navy); color: #b8c7d6; margin-top: 30px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; padding: 48px 0 32px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #9fb1c3; font-size: 13px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; }
.footer-col a { display: block; color: #b8c7d6; font-size: 13px; padding: 3px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0 24px; font-size: 11px; color: #8fa2b5; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.search-results { margin-top: 18px; }
.result-group { margin: 22px 0; }
.result-group h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.result {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 8px;
}
.result:hover { border-color: var(--teal); text-decoration: none; }
.result .r-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result .r-code { font-family: var(--mono); font-weight: 850; color: var(--teal-dark); font-size: 15px; }
.result .r-name { font-weight: 750; color: var(--navy); }
.result p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.empty { padding: 30px; background: #fff; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); }

.article-list { display: grid; gap: 14px; }
.article-card { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.article-card .date { font-size: 12px; color: var(--muted); font-weight: 650; }
.article-card h3 { margin: 0 0 4px; font-size: 20px; }
.article-card p { margin: 0; }

.form { display: grid; gap: 14px; max-width: 680px; }
.form label { font-size: 13px; font-weight: 750; color: var(--navy); display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 14px;
  background: #fff; color: var(--text); width: 100%;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .hint { font-size: 12px; color: var(--muted); font-weight: 500; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.legal { max-width: 820px; }
.legal h2 { margin-top: 28px; }
.legal ul { color: var(--muted); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; min-height: 62px; padding: 8px 0; }
  .nav { display: none; order: 4; width: 100%; flex-wrap: wrap; margin: 0 0 8px; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-block; order: 2; margin-left: 6px; }
  .header-search { order: 3; flex: 1 1 100%; max-width: none; margin: 4px 0 6px; }
  .lang-switch { order: 1; margin-left: auto; }
  .hero-inner { padding: 46px 0 40px; }
  .hero h1 { letter-spacing: -1px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .searchbar { flex-direction: column; }
  .searchbar .btn { width: 100%; }
  .section { padding: 40px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 26px; }
  .footer-main { grid-template-columns: 1fr; padding-top: 34px; }
  .footer-bottom { flex-direction: column; }
  .article-card { grid-template-columns: 1fr; gap: 4px; }
  .form .row { grid-template-columns: 1fr; }
  .breadcrumbs { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .sidebar, .feedback, .searchbar, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .detail-layout { display: block; }
  a { color: #000; }
}
