/*
Theme Name: Jingxianda Enterprise
Theme URI: https://www.jingxianda-lcd.com
Author: Jingxianda Electronics
Description: 晶显达电子企业官网主题（LCD / OLED / AMOLED 显示模组），内置中英双语切换、产品展示与在线留言表单。
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.2
License: Proprietary
Text Domain: jingxianda
*/
/* ==========================================================================
   晶显达电子有限公司 · 官网样式
   Jingxianda Electronics Co., Ltd. — Corporate Website
   Design language: minimal, spacious, restrained corporate blue
   ========================================================================== */

:root {
  --ink: #0a1628;
  --ink-2: #2b3a52;
  --muted: #6d7c93;
  --line: #e4e9f0;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef4fb;
  --primary: #0f4c93;
  --primary-2: #1668c4;
  --primary-ink: #0a3568;
  --accent: #1ca7c4;
  --ok: #12805c;
  --warn: #b45309;
  --danger: #b42318;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 1px 3px rgba(10, 22, 40, 0.05);
  --shadow: 0 14px 34px -16px rgba(10, 22, 40, 0.22);
  --shadow-lg: 0 30px 64px -28px rgba(10, 22, 40, 0.32);

  --container: 1180px;
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--primary); }
button { font-family: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.28; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.text-center { text-align: center; }

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

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 3.4vw, 40px); }
.section-title + .section-lede { margin-top: 16px; }
.section-lede { font-size: 17px; color: var(--muted); max-width: 720px; }
.text-center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-ink); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); background: var(--bg-tint); color: var(--primary-ink); }
.btn-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.36); }
.btn-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: #f0c2bd; }
.btn-danger:hover { background: #fdf2f1; color: var(--danger); border-color: var(--danger); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
}
.header-top a { color: rgba(255, 255, 255, 0.72); }
.header-top a:hover { color: #fff; }
.header-top-list { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.header-top-list span { display: inline-flex; align-items: center; gap: 6px; }

.header-main .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.brand-sub { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-2);
}
.nav a:hover { color: var(--primary); background: var(--bg-tint); }
.nav a.is-active { color: var(--primary); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button.is-active { background: var(--primary); color: #fff; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.user-chip.is-visible { display: inline-flex; }
.user-chip-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip:hover { border-color: var(--primary); color: var(--primary); }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 520px at 78% -8%, rgba(28, 167, 196, 0.28), transparent 62%),
    radial-gradient(900px 480px at 8% 108%, rgba(22, 104, 196, 0.34), transparent 60%),
    linear-gradient(150deg, #071120 0%, #0b2340 52%, #0a3568 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 420px at 68% 26%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(760px 420px at 68% 26%, #000 0%, transparent 76%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding: 104px 0 96px; max-width: 720px; }
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 680;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero .eyebrow { color: #7fdcf0; }
.hero-lede { font-size: 18px; color: rgba(255, 255, 255, 0.78); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 12, 24, 0.34);
}
.hero-stats .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.stat-num { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.stat-label { font-size: 13px; color: rgba(255, 255, 255, 0.62); }

/* ---------- cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--primary);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

/* feature list inside cards */
.tick-list { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.tick-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- product showcase ---------- */
.cat-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.cat-visual {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #0b2340 0%, #123a68 100%);
  overflow: hidden;
}
.cat-visual svg { width: 190px; height: 130px; position: relative; z-index: 1; }
.cat-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cat-body { padding: 26px 28px 30px; }
.cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary-2);
  background: var(--bg-tint);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 12px;
}

/* ---------- product grid ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 34px;
}
.filter-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-count { margin-left: auto; font-size: 14px; color: var(--muted); }

.product-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-media {
  position: relative;
  height: 160px;
  background: linear-gradient(140deg, #0d1f38 0%, #143f70 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-media svg { width: 150px; height: 100px; position: relative; z-index: 1; }
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.product-body h3 { font-size: 17px; margin-bottom: 10px; }
.product-body p { font-size: 14.5px; color: var(--muted); flex: 1; }
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 18px;
}
.spec-chip {
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
}
.product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.product-link:hover { gap: 10px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 14, 26, 0.52);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  width: min(640px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.22s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 0;
}
.modal-head h3 { font-size: 21px; }
.modal-close {
  border: 0; background: transparent; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted); padding: 4px;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 18px 30px 30px; }
.modal-summary { color: var(--muted); font-size: 15px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.spec-table td { color: var(--ink); font-weight: 550; }
.modal-hl-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }

/* ---------- about page ---------- */
.page-hero {
  background: linear-gradient(150deg, #071120 0%, #0b2340 58%, #0d3a6d 100%);
  color: #fff;
  padding: 76px 0 68px;
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.page-hero p { color: rgba(255, 255, 255, 0.74); font-size: 17px; max-width: 660px; margin: 0; }
.page-hero .eyebrow { color: #7fdcf0; }
.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, 0.56); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.56); }
.breadcrumb a:hover { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prose p { font-size: 16px; color: var(--ink-2); }
.prose h2 { font-size: 28px; margin-bottom: 18px; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; }

.value-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.metric-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.metric-num { font-size: 30px; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.metric-label { font-size: 14px; color: var(--muted); }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-2), var(--line));
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary-2);
}
.timeline-year { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.timeline-item h4 { font-size: 17px; margin: 4px 0 6px; }
.timeline-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cert {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 20px 18px;
  text-align: center;
}
.cert strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.cert span { font-size: 13px; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.info-list { display: grid; gap: 22px; }
.info-item { display: flex; gap: 14px; }
.info-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  background: var(--bg-tint);
  color: var(--primary);
  display: grid; place-items: center;
}
.info-icon svg { width: 20px; height: 20px; }
.info-item h4 { font-size: 15px; margin-bottom: 3px; }
.info-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(22, 104, 196, 0.14);
}
.textarea { min-height: 118px; resize: vertical; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
  line-height: 1.55;
}
.alert.is-visible { display: block; }
.alert-error { background: #fdf2f1; color: var(--danger); border: 1px solid #f5cdc8; }
.alert-ok { background: #eefaf4; color: var(--ok); border: 1px solid #bfe8d5; }
.alert-info { background: var(--bg-tint); color: var(--primary-ink); border: 1px solid #cfe0f3; }
.alert-warn { background: #fff9ed; color: var(--warn); border: 1px solid #f3ddb4; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  background: var(--bg-soft);
  position: relative;
}
.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  background-image: linear-gradient(rgba(15, 76, 147, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 147, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--muted);
}

/* ---------- auth ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
}
.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 68px 56px;
  background: radial-gradient(760px 420px at 88% 6%, rgba(28, 167, 196, 0.3), transparent 60%),
    linear-gradient(150deg, #071120 0%, #0b2340 56%, #0a3568 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-aside::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(620px 380px at 30% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(620px 380px at 30% 40%, #000 0%, transparent 78%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: 30px; margin-bottom: 18px; }
.auth-aside p { color: rgba(255, 255, 255, 0.74); font-size: 16px; max-width: 420px; }
.auth-points { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: rgba(255, 255, 255, 0.84); }
.auth-points li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(127, 220, 240, 0.2);
  border: 1px solid #7fdcf0;
}

.auth-panel { display: grid; place-items: center; padding: 56px 24px; }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 25px; margin-bottom: 8px; }
.auth-card .auth-sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.tab {
  border: 0;
  background: transparent;
  padding: 9px 6px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.tab.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-pane { display: none; }
.tab-pane.is-active { display: block; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-row .btn { flex-shrink: 0; }
.auth-foot { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot button {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--primary-2); font: inherit; font-weight: 600;
}
.auth-foot button:hover { text-decoration: underline; }

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 34px; align-items: start; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.profile-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 700;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h3 { font-size: 17px; margin-bottom: 4px; word-break: break-all; }
.profile-card .profile-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.profile-actions { display: grid; gap: 10px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-head h3 { font-size: 18px; }
.panel-head p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

.drop-zone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 26px;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: all 0.16s ease;
}
.drop-zone:hover, .drop-zone.is-drag { border-color: var(--primary-2); background: var(--bg-tint); }
.drop-zone strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.drop-zone span { font-size: 13px; color: var(--muted); }

.file-list, .msg-list { list-style: none; display: grid; gap: 12px; }
.file-item, .msg-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #fff;
}
.file-thumb {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--bg-tint);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { flex: 1; min-width: 0; }
.file-meta strong { display: block; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta span { font-size: 12.5px; color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-tint); }
.icon-btn svg { width: 16px; height: 16px; }

.msg-item { display: block; }
.msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.msg-head strong { font-size: 14.5px; color: var(--ink); }
.msg-head time { font-size: 12.5px; color: var(--muted); flex-shrink: 0; }
.msg-body { font-size: 14px; color: var(--ink-2); white-space: pre-wrap; }
.msg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14.5px; }
.empty-state svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--line-strong); }

.skeleton {
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-soft) 25%, #e9eef5 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(140deg, #071120 0%, #0b2340 55%, #0a3568 100%);
  border-radius: 18px;
  padding: 52px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin: 0; max-width: 560px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.62); padding: 62px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.04em; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, 0.62); font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; display: grid; gap: 11px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.45); }
.footer-brand p { font-size: 14.5px; margin: 18px 0 0; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.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;
}
.spin {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rot 0.7s linear infinite;
  display: inline-block;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .account-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .header-top { display: none; }
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; }
  .nav a.is-active::after { display: none; }
  .header-main .container { position: relative; }
  .header-actions { margin-left: auto; }
  .brand-sub { display: none; }
  .user-chip-label { display: none; }
  .user-chip { padding: 4px; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 68px 0 62px; }
  .hero-stats .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 28px; }
  .metric-row { grid-template-columns: 1fr; }
  .form-card, .auth-card, .panel { padding: 24px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .modal-head, .modal-body { padding-left: 22px; padding-right: 22px; }
}
