/* ===================================================================
   Foshan Hezhi Electric Appliance Co., Ltd. — Corporate website
   Global stylesheet
   =================================================================== */

:root {
  --brand: #0b4a8f;
  --brand-2: #0a3d77;
  --brand-3: #1668c4;
  --brand-soft: #eaf3fd;
  --navy: #071b33;
  --navy-2: #0d2947;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #8b9aad;
  --line: #e6ebf2;
  --line-2: #d5dee9;
  --bg: #ffffff;
  --soft: #f5f8fc;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
  --container: 1180px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::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);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}
h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section--soft {
  background: var(--soft);
}

.section--tight {
  padding: clamp(48px, 6vw, 72px) 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-3);
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.02rem;
  margin-top: 14px;
  margin-bottom: 0;
}

.lead {
  font-size: 1.06rem;
  color: var(--ink-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 74, 143, 0.22);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--line-2);
  color: var(--ink);
  background: #fff;
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.24);
}

.btn-white {
  background: #fff;
  color: var(--brand-2);
}

.btn-white:hover:not(:disabled) {
  background: #eef4fb;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-text {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--brand-3);
  font-weight: 600;
  cursor: pointer;
}

.btn-text:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

/* 图片 logo：上传 assets/img/logo.png 即自动显示；缺失时回落到文字徽标 */
.brand__logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand__logo ~ .brand__mark {
  display: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand-3), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__zh {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand__en {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.16s ease;
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.main-nav a.is-active {
  color: var(--brand);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  gap: 2px;
}

.lang-toggle span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
  transition: all 0.16s ease;
  line-height: 1;
}

.lang-toggle span.is-on {
  background: var(--brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle i,
.nav-toggle i::before,
.nav-toggle i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}

.nav-toggle i {
  position: relative;
}

.nav-toggle i::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle i::after {
  position: absolute;
  top: 6px;
  left: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero__media,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.95;
}

.hero__scrim {
  background: linear-gradient(
    100deg,
    rgba(7, 27, 51, 0.95) 0%,
    rgba(7, 27, 51, 0.86) 38%,
    rgba(7, 27, 51, 0.45) 66%,
    rgba(7, 27, 51, 0.1) 100%
  );
}

.hero__inner {
  position: relative;
  padding: clamp(84px, 12vw, 148px) 0 clamp(72px, 10vw, 124px);
  max-width: 660px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero--page .hero__inner {
  padding: clamp(64px, 9vw, 104px) 0;
  max-width: 780px;
}

.hero--page h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.hero--page .crumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 18px;
}

.hero--page .crumb a:hover {
  color: #fff;
}

/* ---------- Stats strip ---------- */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 38px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat__num {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-top: 6px;
}

/* ---------- Grid + cards ---------- */
.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));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 9px;
}

.card p {
  color: var(--ink-2);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Product grid ---------- */
.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.product-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  background: var(--soft);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-3);
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0 0 16px;
}

.product-card__specs {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #f7fafc 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
  min-height: 320px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split h2 {
  margin-bottom: 18px;
}

.split p {
  color: var(--ink-2);
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.tick-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid rgba(11, 74, 143, 0.25);
}

.tick-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 34px;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), rgba(11, 74, 143, 0.08));
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-sizing: content-box;
}

.timeline__year {
  font-weight: 800;
  color: var(--brand);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.timeline__item h3 {
  margin: 4px 0 6px;
}

.timeline__item p {
  color: var(--ink-2);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
}

.step__num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brand-3);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.86rem;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- Badges ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-2);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid rgba(11, 74, 143, 0.14);
}

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--brand-2) 60%, var(--brand) 100%);
  color: #fff;
  border-radius: 22px;
  padding: clamp(38px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.info-list {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.info-item {
  display: flex;
  gap: 15px;
}

.info-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.info-item__label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.info-item__value {
  font-size: 0.98rem;
  color: var(--ink);
  word-break: break-word;
}

/* ---------- Forms ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-xs);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field .req {
  color: var(--err);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.95rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 74, 143, 0.12);
}

.textarea {
  min-height: 130px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field__hint {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.field__error {
  font-size: 0.8rem;
  color: var(--err);
  min-height: 0;
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-top: 6px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin: 0;
  max-width: 420px;
}

/* ---------- Human verification (anti-spam) ---------- */
.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha__img {
  flex: none;
  display: block;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.captcha__refresh {
  flex: none;
  width: 40px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.captcha__refresh:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.captcha__input {
  flex: 1 1 120px;
  min-width: 0;
  max-width: 170px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Honeypot — invisible and inert for people, still filled in by naive bots.
   Uses clip instead of a negative offset so it never creates a scrollbar. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 560px) {
  .captcha {
    flex-wrap: wrap;
  }

  .captcha__input {
    flex: 1 1 auto;
    max-width: none;
  }
}

/* ---------- Alerts / toast ---------- */
.alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.alert.is-on {
  display: flex;
}

.alert--ok {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert--info {
  background: var(--brand-soft);
  border: 1px solid rgba(11, 74, 143, 0.18);
  color: var(--brand-2);
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 56px 24px 80px;
  background: var(--soft);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 40px);
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.auth-card > p.sub {
  color: var(--ink-2);
  font-size: 0.92rem;
  margin-bottom: 26px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 26px;
}

.tabs button {
  flex: 1;
  padding: 10px 8px;
  border: 0;
  background: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.16s ease;
}

.tabs button.is-on {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-xs);
}

.auth-form {
  display: none;
  gap: 16px;
  flex-direction: column;
}

.auth-form.is-on {
  display: flex;
}

.code-row {
  display: flex;
  gap: 10px;
}

.code-row .input {
  flex: 1;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-3);
  font-size: 0.78rem;
  margin: 22px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-alt {
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-top: 22px;
}

/* ---------- Account ---------- */
.page-head {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.page-head h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.page-head p {
  color: var(--ink-2);
  margin: 8px 0 0;
}

.inquiry-list {
  display: grid;
  gap: 16px;
}

.inquiry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.inquiry__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.inquiry__title {
  font-weight: 700;
}

.inquiry__meta {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-left: auto;
}

.inquiry__msg {
  color: var(--ink-2);
  font-size: 0.92rem;
  white-space: pre-wrap;
  margin: 0;
}

.pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 18px;
  font-size: 0.92rem;
}

.kv dt {
  color: var(--ink-3);
}

.kv dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(52px, 6vw, 76px) 0 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.footer-brand .brand__mark {
  background: linear-gradient(140deg, #3d8ee0, var(--brand));
}

.footer-brand .brand__zh {
  color: #fff;
}

.footer-brand .brand__en {
  color: rgba(255, 255, 255, 0.45);
}

.footer-about {
  max-width: 340px;
  line-height: 1.75;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ICP 备案号链接（页脚底部） */
.footer-icp {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  white-space: nowrap;
}
.footer-icp:hover {
  color: #fff;
  text-decoration: underline;
  opacity: 1;
}

/* ---------- Utilities ---------- */
.mt-0 {
  margin-top: 0;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mb-0 {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--ink-3);
}
.nowrap {
  white-space: nowrap;
}

.hz-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
  max-width: min(90vw, 520px);
  text-align: center;
}

.hz-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hz-toast.is-err {
  background: #b91c1c;
}

.hz-toast.is-ok {
  background: #15803d;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 13px 15px;
  }
  .nav-toggle {
    display: grid;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .steps {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  /* 小屏页脚底部纵向居中，备案号不挤在一行 */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .kv {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .kv dd {
    margin-bottom: 10px;
  }
  .brand__en {
    display: none;
  }
  .hero__inner {
    padding: 72px 0 64px;
  }
  .cta {
    text-align: left;
  }
}

/* ---------- Product categories + detail lightbox ---------- */
.chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 600;
}

.chip.is-on .chip__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cat-desc {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin: -18px 0 30px;
}

.product-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  background: var(--soft);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.product-card__zoom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(7, 27, 51, 0.55));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-card__media:hover .product-card__zoom,
.product-card__media:focus-visible .product-card__zoom {
  opacity: 1;
}

.product-card__actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.product-card__actions .btn {
  flex: 1;
  white-space: nowrap;
}

/* ---------- Product detail lightbox ---------- */
.pd {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}

.pd.is-open {
  display: block;
}

.pd__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 51, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pd__dialog {
  position: relative;
  z-index: 1;
  width: min(1020px, calc(100vw - 32px));
  max-height: min(88vh, 780px);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  /* 关键：锁定行高为弹窗实际高度，内容超高时由内部滚动消化，不再撑爆被裁 */
  grid-template-rows: minmax(0, 1fr);
  box-shadow: var(--shadow);
  animation: pd-in 0.22s ease;
}

@keyframes pd-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pd__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.pd__close:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pd__gallery {
  background: var(--soft);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pd__stage {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
}

.pd__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd__angle {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(7, 27, 51, 0.72);
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.pd__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.pd__nav:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pd__nav--prev {
  left: 10px;
}

.pd__nav--next {
  right: 10px;
}

.pd__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pd__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #fff;
  cursor: pointer;
  opacity: 0.72;
  transition: all 0.15s ease;
}

.pd__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd__thumb.is-on {
  border-color: var(--brand);
  opacity: 1;
}

.pd__info {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.pd__scroll {
  padding: 28px 28px 24px;
  overflow-y: auto;
  /* 关键：让信息栏在弹窗限高内自行滚动，内容超高不再被裁掉 */
  flex: 1 1 auto;
  min-height: 0;
  /* 顶部渐隐提示下方还有内容 */
  -webkit-mask-image: none;
}

.pd__name {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.pd__summary {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.pd__block {
  margin-top: 22px;
}

.pd__block h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.pd__hl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.pd__hl li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.pd__hl li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.68rem;
  display: grid;
  place-items: center;
}

.pd__params {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.pd__params dt {
  padding: 9px 0;
  color: var(--ink-3);
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
}

.pd__params dd {
  padding: 9px 0;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.pd__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd__tag {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 500;
}

.pd__foot {
  display: flex;
  gap: 10px;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
}

.pd__foot .btn {
  flex: 1;
}

@media (max-width: 860px) {
  .pd__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: none; /* 移动端恢复自动行高，整窗滚动 */
    width: calc(100vw - 24px);
    max-height: 92vh;
    overflow-y: auto;
    margin: 4vh auto 0;
  }
  .pd__gallery {
    padding: 16px;
  }
  .pd__scroll {
    padding: 20px 20px 8px;
    overflow: visible;
  }
  .pd__foot {
    padding: 14px 20px;
  }
  .pd__thumb {
    width: 58px;
    height: 58px;
  }
}

/* ===================================================================
   Admin console (admin.html)
   =================================================================== */
.ad-body {
  background: var(--soft);
  min-height: 100vh;
}

.ad-top {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.ad-top__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ad-top__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.ad-top__brand .brand__mark {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ad-top__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ad-top__txt strong {
  font-size: 0.98rem;
}

.ad-top__txt em {
  font-style: normal;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.62);
}

.ad-top__side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ad-user {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-link {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 1px;
}

.ad-link:hover {
  color: #fff;
  border-color: #fff;
}

.ad-top .btn-outline {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.ad-top .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.ad-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 22px 80px;
}

/* ---------- gate ---------- */
.ad-gate {
  max-width: 460px;
  margin: 6vh auto 0;
}

.ad-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.ad-card + .ad-card {
  margin-top: 16px;
}

.ad-card h1 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.ad-card .field {
  margin-bottom: 16px;
}

.ad-hint {
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.ad-hint a {
  color: var(--brand);
  border-bottom: 1px solid currentColor;
}

.ad-muted {
  color: var(--ink-2);
  font-size: 0.88rem;
}

.ad-danger {
  color: var(--err) !important;
}

/* ---------- tabs ---------- */
.ad-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
  width: fit-content;
  max-width: 100%;
}

.ad-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ad-tab:hover {
  color: var(--brand);
}

.ad-tab.is-on {
  background: var(--brand);
  color: #fff;
}

.ad-pane {
  display: none;
}

.ad-pane.is-on {
  display: block;
}

.ad-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ad-bar h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.ad-list {
  display: grid;
  gap: 10px;
}

.ad-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ad-row:hover {
  border-color: var(--line-2);
}

.ad-row__thumb {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  flex: none;
}

.ad-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-row__main {
  flex: 1;
  min-width: 0;
}

.ad-row__name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ad-row__sub {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 3px;
  word-break: break-all;
}

.ad-row__acts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.ad-row__acts .btn-text {
  font-size: 0.84rem;
  color: var(--brand);
}

.ad-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.ad-tag--off {
  background: #fef3c7;
  color: #92400e;
}

.ad-empty {
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  padding: 34px 20px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.ad-empty--sm {
  padding: 20px;
  font-size: 0.86rem;
}

/* ---------- sheets ---------- */
.ad-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
}

.ad-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 51, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ad-sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(880px, 100vw);
  background: var(--soft);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(15, 23, 42, 0.18);
  animation: ad-slide 0.22s ease;
}

.ad-sheet__panel--sm {
  width: min(620px, 100vw);
}

@keyframes ad-slide {
  from {
    transform: translateX(24px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.ad-sheet__head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
}

.ad-sheet__head h2 {
  font-size: 1.05rem;
}

.ad-sheet__tools {
  display: flex;
  gap: 10px;
}

.ad-sheet__body {
  padding: 20px 22px 60px;
  overflow-y: auto;
  flex: 1;
}

.ad-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px 20px;
  margin-bottom: 14px;
}

.ad-block h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

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

.ad-field {
  display: block;
}

.ad-field--full {
  grid-column: 1 / -1;
}

.ad-field > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.ad-field .input {
  width: 100%;
}

.ad-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-top: 14px;
}

/* ---------- image editor ---------- */
.ad-cover {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.ad-cover__img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  flex: none;
}

.ad-cover__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-cover p {
  margin: 4px 0 0;
}

.ad-upload {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}

.ad-file {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}

.ad-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.ad-upload__url {
  flex: 1;
  min-width: 220px;
}

.ad-gallery {
  display: grid;
  gap: 10px;
}

.ad-gal {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: #fff;
}

.ad-gal.is-cover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.ad-gal__img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  flex: none;
}

.ad-gal__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-gal__fields {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ad-gal__meta {
  font-size: 0.76rem;
  color: var(--ink-3);
}

.ad-gal__acts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
  text-align: right;
}

.ad-gal__acts .btn-text {
  font-size: 0.8rem;
  color: var(--brand);
}

.ad-gal__acts .btn-text[disabled] {
  color: var(--ink-3);
  cursor: default;
}

/* ---------- params ---------- */
.ad-params {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.ad-params__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1.2fr auto;
  gap: 8px;
  align-items: center;
}

.ad-params__row .btn-text {
  font-size: 0.8rem;
}

/* ---------- inquiries ---------- */
.ad-inq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.ad-inq__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ad-inq__date {
  font-size: 0.78rem;
}

.ad-inq__status {
  margin-left: auto;
  width: auto;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.ad-inq__meta {
  font-size: 0.84rem;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.ad-inq__meta a {
  color: var(--brand);
}

.ad-inq__msg {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: pre-wrap;
}

.ad-inq__foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ad-inq__foot .btn-text {
  font-size: 0.84rem;
  color: var(--brand);
}

.ad-form .ad-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .ad-main {
    padding: 18px 14px 70px;
  }
  .ad-top__in {
    padding: 0 14px;
  }
  .ad-user {
    display: none;
  }
  .ad-grid,
  .ad-form .ad-grid {
    grid-template-columns: 1fr;
  }
  .ad-params__row {
    grid-template-columns: 1fr 1fr;
  }
  .ad-row {
    flex-wrap: wrap;
  }
  .ad-row__acts {
    width: 100%;
    justify-content: flex-end;
  }
  .ad-gal {
    flex-wrap: wrap;
  }
  .ad-gal__acts {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .ad-sheet__body {
    padding: 16px 14px 60px;
  }
  .ad-sheet__head {
    padding: 12px 14px;
  }
}

/* ---------- page copy editor (admin · 页面文案) ---------- */
.ad-bar__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ad-cms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-cms__page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ad-cms__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}

.ad-cms__head:hover {
  background: var(--soft);
}

.ad-cms__head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.ad-cms__head .ad-cms__meta {
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 8px;
}

.ad-cms__caret {
  font-size: 0.8rem;
  color: var(--ink-3);
  flex: none;
}

.ad-cms__body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--line);
}

.ad-cms__page.is-off .ad-cms__body {
  display: none;
}

.ad-cms__group {
  margin-top: 18px;
}

.ad-cms__group > h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.ad-cms__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
}

.ad-cms__row:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.ad-cms__label {
  font-size: 0.8rem;
  color: var(--ink-2);
  padding-top: 4px;
  line-height: 1.5;
}

.ad-cms__label code {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-3);
  margin-top: 2px;
  word-break: break-all;
}

.ad-cms__cell {
  position: relative;
}

.ad-cms__cell textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.55;
  resize: vertical;
}

.ad-cms__cell.is-set textarea {
  border-color: var(--brand);
  background: #fbfdff;
}

.ad-cms__flag {
  position: absolute;
  top: -6px;
  right: 8px;
  font-size: 0.66rem;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  pointer-events: none;
}

.ad-cms__rowtools {
  grid-column: 2 / -1;
  text-align: right;
  margin-top: -4px;
}

.ad-cms__rowtools .btn-text {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.ad-cms__rowtools .btn-text:hover {
  color: var(--brand);
}

.ad-cms__slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.ad-cms__slot + .ad-cms__slot {
  margin-top: 10px;
}

.ad-cms__slot__thumb {
  width: 108px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  flex: none;
  background-size: cover;
  background-position: center;
}

.ad-cms__slot__main {
  flex: 1;
  min-width: 0;
}

.ad-cms__slot__main strong {
  display: block;
  font-size: 0.86rem;
}

.ad-cms__slot__main span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-3);
  margin-top: 2px;
}

.ad-cms__slot__acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ad-cms__search {
  margin-bottom: 14px;
  max-width: 340px;
}

@media (max-width: 860px) {
  .ad-cms__row {
    grid-template-columns: 1fr;
  }
  .ad-cms__label {
    padding-top: 0;
  }
  .ad-cms__rowtools {
    grid-column: 1 / -1;
    text-align: left;
  }
  .ad-cms__slot {
    flex-wrap: wrap;
  }
}
