/* ============================================================
   BRESJET 外贸官网 - 全局样式
   像素级复刻参考站设计令牌(逆向自参考站点):
   - 深色 #1a1a1a / 表面 #ffffff / 浅灰 #f5f5f5 / 卡片 #2d2d2d
   - 强调色(红) #e63946, hover #c62b38
   - 文字: #f5f5f5(亮) #a0a0a0(弱) #1a1a1a(深) #6b6b6b(深弱)
   - 圆角 4px, Inter 字体栈
   ============================================================ */

:root {
  --dark: #1a1a1a;
  --dark-light: #2d2d2d;
  --surface: #ffffff;
  --surface-light: #f5f5f5;
  --muted: #4a4a4a;
  --text-light: #f5f5f5;
  --text-muted: #a0a0a0;
  --text-dark: #1a1a1a;
  --text-dark-muted: #6b6b6b;
  --accent: #e63946;
  --accent-hover: #c62b38;
  --radius: 4px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

ul, ol, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
}

button {
  cursor: pointer;
  background: transparent;
  border: 0;
}

textarea {
  resize: vertical;
}

::placeholder {
  opacity: 1;
  color: #9ca3af;
}

/* ---------- 布局容器(对应 max-w-7xl) ---------- */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ---------- 颜色工具 ---------- */
.bg-dark       { background-color: var(--dark); }
.bg-dark-light { background-color: var(--dark-light); }
.bg-surface    { background-color: var(--surface); }
.bg-surface-light { background-color: var(--surface-light); }
.bg-accent     { background-color: var(--accent); }

.text-text-light      { color: var(--text-light); }
.text-text-muted      { color: var(--text-muted); }
.text-text-dark       { color: var(--text-dark); }
.text-text-dark-muted { color: var(--text-dark-muted); }
.text-accent          { color: var(--accent); }

.border-accent { border-color: var(--accent); }

/* ---------- 字体工具 ---------- */
.font-extrabold { font-weight: 800; }
.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }
.font-medium    { font-weight: 500; }

.tracking-wider  { letter-spacing: 0.05em; }
.tracking-wide   { letter-spacing: 0.025em; }

.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
.text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs  { font-size: 0.75rem; line-height: 1rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }

.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* ---------- 间距工具 ---------- */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-14 { margin-bottom: 3.5rem; }

.p-2  { padding: 0.5rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pb-1 { padding-bottom: 0.25rem; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* ---------- 布局工具 ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-0 { top: 0; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.hidden { display: none; }
.block { display: block; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.resize-none { resize: none; }

/* 高 / 尺寸 */
.h-16 { height: 4rem; }
.w-14 { height: 3.5rem; width: 3.5rem; }
.w-14 { width: 3.5rem; }
.h-0\.5 { height: 0.125rem; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

/* ---------- 按钮(对应 btn-primary / btn-outline) ---------- */
.btn-primary {
  display: inline-block;
  border-radius: var(--radius);
  background-color: var(--accent);
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  transition: all 200ms cubic-bezier(0, 0, 0.2, 1);
  text-align: center;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: scale(1.03);
  background-color: var(--accent-hover);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-block;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  padding: calc(0.75rem - 2px) 2rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  background: transparent;
  transition: all 200ms cubic-bezier(0, 0, 0.2, 1);
  text-align: center;
  cursor: pointer;
}
.btn-outline:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* ---------- 表单控件(对应 input-dark) ---------- */
.input-dark,
.input {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--muted);
  background-color: var(--dark-light);
  padding: 0.75rem 1rem;
  color: var(--text-light);
  transition: color 200ms, background-color 200ms, border-color 200ms;
}
.input-dark::placeholder,
.input::placeholder {
  color: var(--text-muted);
}
.input-dark:focus,
.input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(230, 57, 70, 0.4);
  outline-offset: 1px;
}

/* 浅色表单(用于后台/联系页浅底) */
.input-light {
  background-color: #ffffff;
  border-color: #d4d4d4;
  color: var(--text-dark);
}
.input-light::placeholder { color: #9ca3af; }

/* ---------- 卡片(对应 card-dark) ---------- */
.card-dark {
  border-radius: var(--radius);
  background-color: var(--dark-light);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.card {
  border-radius: var(--radius);
  background-color: var(--surface);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.rounded-card { border-radius: var(--radius); }

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(26, 26, 26, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: all 300ms;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 1024px) {
  .header-inner { height: 5rem; }
}
.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-light);
  transition: color 200ms;
  display: inline-flex;
  align-items: center;
}
.brand:hover { color: var(--accent); }
.brand-logo {
  height: 2rem;
  width: auto;
  display: block;
}
.brand-logo-footer {
  height: 3rem;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-link {
  position: relative;
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--text-muted);
  transition: color 200ms;
}
.nav-link:hover { color: var(--text-light); }
.nav-link.active { color: var(--accent); }
.nav-link .underline-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.125rem;
  background-color: var(--accent);
  transition: width 200ms;
  width: 0;
}
.nav-link.active .underline-bar { width: 100%; }
.nav-link:hover .underline-bar { width: 100%; }

.nav-toggle {
  display: block;
  color: var(--text-light);
  font-size: 1.25rem;
  padding: 0.5rem;
  background: none;
  border: none;
  line-height: 1;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.nav-toggle svg { display: block; }

/* 移动端菜单 */
.mobile-menu {
  display: none;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); }

/* ---------- 语言切换 ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.lang-switch a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: color 200ms, background-color 200ms;
  text-transform: uppercase;
}
.lang-switch a:hover { color: var(--text-light); }
.lang-switch a.active {
  color: var(--accent);
  background: rgba(230, 57, 70, 0.12);
}

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--dark) 0%, rgba(26,26,26,0.8) 55%, rgba(26,26,26,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 8rem 0 4rem;
}
@media (min-width: 1024px) {
  .hero-content { padding: 8rem 0; }
}
.hero-inner { max-width: 42rem; }
.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero h1 .accent-text { color: var(--accent); }
.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2rem;
  max-width: 32rem;
}
@media (min-width: 640px) { .hero p { font-size: 1.25rem; } }
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12rem;
  z-index: 5;
  pointer-events: none;
  /* 景深雾化:图片底部先被模糊虚化,再压暗,与下方过渡带深色无缝衔接 */
  background: linear-gradient(to top,
    rgba(26,26,26,0.55) 0%,
    rgba(26,26,26,0.18) 40%,
    transparent 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ---------- 英雄区→产品区 过渡带 ----------
   单一渐变从深色平滑过渡到白色:0% 深色(承接 hero)→ 65% 仍深色带文字 →
   90% 起快速变白 → 100% 纯白(与下方 bg-surface 无缝) */
.hero-to-products {
  background: linear-gradient(to bottom,
    var(--dark) 0%,
    var(--dark) 60%,
    #fbfbfb 90%,
    var(--surface) 100%);
  padding: 2.25rem 1rem 2.75rem;
  text-align: center;
}
.hero-to-products-inner {
  max-width: 60rem;
  margin: 0 auto;
}
.htp-line1 {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
}
.htp-line2 {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .htp-line2 { font-size: 1.625rem; }
}
.htp-line3 {
  color: #d4d4d4;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ---------- 区块 ---------- */
.section { padding: 5rem 0; }
@media (min-width: 1024px) {
  .section-lg { padding: 7rem 0; }
}
.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-head h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
@media (min-width: 1024px) { .section-head h2 { font-size: 2.25rem; } }
.section-head p {
  color: var(--text-dark-muted);
  max-width: 42rem;
  margin: 0 auto;
}
.section-head-light h2 { color: var(--text-light); }
.section-head-light p { color: var(--text-muted); }

/* ---------- 产品线卡片 ---------- */
.cat-card {
  display: block;
  border-radius: var(--radius);
  background-color: var(--dark-light);
  overflow: hidden;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.cat-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-card:hover .cat-card-image img { transform: scale(1.05); }
.cat-card-body {
  padding: 1.5rem;
  border-bottom: 2px solid transparent;
  transition: border-color 300ms;
}
.cat-card:hover .cat-card-body { border-bottom-color: var(--accent); }
.cat-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.cat-card-body p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--text-muted);
}

/* ---------- 优势卡片 ---------- */
.adv-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 300ms, transform 300ms;
}
.adv-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.adv-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 300ms;
}
.adv-card:hover .adv-icon { background: rgba(230, 57, 70, 0.1); }
.adv-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}
.adv-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.adv-card p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--text-dark-muted);
}

/* ---------- 统计 ---------- */
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
@media (min-width: 1024px) { .stat-number { font-size: 3rem; } }
.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

/* ---------- 工厂介绍 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.about-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
@media (min-width: 1024px) { .about-text h2 { font-size: 2.25rem; } }
.about-text h2 .accent-text { color: var(--accent); }
.about-text p {
  color: var(--text-dark-muted);
  line-height: 1.625;
  margin-bottom: 1rem;
}
.about-text .btn-primary { margin-top: 1rem; }

/* ---------- 询盘表单区 ---------- */
.quote-form-wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .quote-form-wrap { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .quote-form-wrap { padding: 0 2rem; }
}
.quote-form {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 2rem;
}
@media (min-width: 1024px) {
  .quote-form { padding: 2.5rem; }
}
.quote-form .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .quote-form .row.two-col { grid-template-columns: 1fr 1fr; }
}
.quote-form .input-dark { margin-bottom: 1.25rem; }
.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
}
.form-msg {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}
.form-msg.ok { display: block; background: rgba(46, 160, 67, 0.15); color: #4ade80; }
.form-msg.err { display: block; background: rgba(230, 57, 70, 0.15); color: #fca5a5; }
.form-msg.ok.light { color: #166534; background: rgba(46,160,67,0.12); }
.form-msg.err.light { color: #b91c1c; background: rgba(230,57,70,0.1); }

/* ---------- 产品页 ---------- */
.page-hero {
  background: var(--dark);
  padding: 9rem 0 4rem;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
}
@media (min-width: 1024px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.cat-filter a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #e5e5e5;
  color: var(--text-dark-muted);
  transition: all 200ms;
}
.cat-filter a:hover { border-color: var(--accent); color: var(--accent); }
.cat-filter a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 300ms, transform 300ms;
}
.product-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.product-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-light);
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}
.product-card .cat-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-card p {
  font-size: 0.875rem;
  color: var(--text-dark-muted);
  line-height: 1.625;
  flex: 1;
}
.product-card .actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ---------- 产品详情页 ---------- */
.product-detail {
  padding: 7rem 0 5rem;
  background: var(--surface);
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .product-detail-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.detail-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-light);
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.detail-info .cat-link {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.detail-info .lead {
  color: var(--text-dark-muted);
  font-size: 1.05rem;
  line-height: 1.625;
  margin: 1rem 0;
}
.detail-info h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.75rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ececec;
}
.detail-info .spec-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed #e5e5e5;
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  display: flex;
  gap: 0.75rem;
}
.detail-info .spec-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: var(--accent);
  margin-top: 0.55rem;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- 关于页 ---------- */
.about-page-content { max-width: 48rem; }
.about-page-content p {
  color: var(--text-dark-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark-muted);
  font-size: 0.95rem;
}
.contact-info li svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.contact-info a { color: inherit; }
.contact-info a:hover { color: var(--accent); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dark-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-dark-muted); transition: color 200ms; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #c4c4c4; }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }
.breadcrumb-light a, .breadcrumb-light .sep { color: var(--text-muted); }
.breadcrumb-light .current { color: var(--text-light); }

/* ---------- 无障碍:跳过导航链接 ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 200ms;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--dark);
  color: var(--text-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 4rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.625;
}
.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 200ms;
}
.footer-col a:hover { color: var(--accent); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.footer-contact svg {
  width: 1em;
  height: 1em;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.footer-bottom {
  border-top: 1px solid rgba(74, 74, 74, 0.3);
}
.footer-bottom p {
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ---------- WhatsApp 浮动按钮 ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 200ms;
}
.whatsapp-fab:hover { transform: scale(1.1); }
.whatsapp-fab svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  position: relative;
  z-index: 10;
}
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25D366;
  opacity: 0.4;
  animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- 滚动渐入动画(对应参考站 style="opacity:0; translateY(30px)") ---------- */
/* 只在 JS 可用时隐藏,无 JS / 减少动效时内容始终可见(SEO 与降级安全) */
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 后台 ---------- */
.admin-body {
  background: #f5f5f5;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--dark);
  color: var(--text-light);
}
.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}
.admin-topbar .brand { font-size: 1.15rem; }
.admin-nav {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.admin-nav-inner {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
}
.admin-nav a {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.admin-nav a:hover { color: var(--accent); }
.admin-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.admin-main { padding: 1.5rem 0 4rem; }
.admin-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #ececec;
  padding: 1.5rem;
}
.admin-card + .admin-card { margin-top: 1.25rem; }
.admin-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.stat-tile {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-tile .num { font-size: 1.75rem; font-weight: 800; color: var(--accent); }
.stat-tile .lbl { font-size: 0.8rem; color: var(--text-dark-muted); margin-top: 0.25rem; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 2px solid #ececec;
  color: var(--text-dark-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.admin-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fafafa; }
.admin-table img.thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}
.badge-new { background: rgba(230,57,70,0.1); color: #c62b38; }
.badge-done { background: rgba(46,160,67,0.12); color: #1a7a33; }

.btn { display: inline-block; padding: 0.5rem 1.1rem; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 200ms; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline-gray { border: 1px solid #d4d4d4; color: var(--text-dark-muted); background: #fff; }
.btn-outline-gray:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.78rem; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.admin-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin: 1rem 0 0.35rem; }
.admin-form .input-light { border-color: #d4d4d4; }
.admin-form .field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 900px) { .admin-form .field-row { grid-template-columns: 1fr 1fr; } }
.admin-form .field-row-3 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 900px) { .admin-form .field-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.admin-form .field-row-3 label { margin-top: 0.85rem; }
.admin-form .hint { font-size: 0.75rem; color: #999; margin-top: 0.3rem; }
.admin-form input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--accent); }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.checkbox-row label { margin: 0; }
.admin-form .form-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.lang-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  background: #f0f0f0;
  color: var(--text-dark-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: 1px;
}
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  padding: 1rem;
}
.admin-login-box {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.25rem;
}
.admin-login-box h1 {
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.35rem;
}
.admin-login-box .sub { text-align: center; color: var(--text-dark-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.admin-login-box label { display: block; font-size: 0.8rem; font-weight: 600; margin: 0.9rem 0 0.3rem; }
.admin-login-box input { background: #fff; border-color: #d4d4d4; color: var(--text-dark); }
.admin-login-box .login-error {
  background: rgba(230,57,70,0.1);
  color: #b91c1c;
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  text-align: center;
}
.admin-login-box .btn { width: 100%; padding: 0.7rem; font-size: 0.95rem; margin-top: 1.25rem; }

/* ---------- 响应式辅助 ---------- */
@media (max-width: 1023px) {
  .nav-links { display: none; }
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:inline { display: inline-block; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
