/* ===== Chengzhi Craft Gifts —— 现代化双语官网 =====
   设计：CSS 变量 + 组件化 + 圣诞红金配色
*/

:root {
  /* 品牌色 */
  --red-900: #7f1d1d;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --red-50: #fef2f2;

  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-300: #fbbf24;
  --gold-100: #fef3c7;

  --green-700: #15803d;
  --green-600: #16a34a;

  /* 中性色 */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  /* 功能色 */
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow:    0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 25px 60px rgba(15, 23, 42, .14);

  /* 字体 */
  --font-sans: "Inter", "Helvetica Neue", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Playfair Display", "Noto Serif SC", Georgia, "Times New Roman", serif;

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  /* 过渡 */
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { font-family: var(--font-sans); color: var(--ink-800); line-height: 1.65; background: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.zh { font-family: "PingFang SC", "Microsoft YaHei", var(--font-sans); }
img { max-width: 100%; display: block; }
a { color: var(--red-700); text-decoration: none; }
a:hover { color: var(--red-900); }

/* ---------- Language span ---------- */
.zh-only, .en-only { display: none; }
html.lang-zh .zh-only { display: inline; }
html.lang-zh .en-only { display: none; }
html.lang-en .en-only { display: inline; }
html.lang-en .zh-only { display: none; }
/* 用于块级内容 */
.zh-block, .en-block { display: none; }
html.lang-zh .zh-block { display: block; }
html.lang-en .en-block { display: block; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(15,23,42,.06); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 700; font-size: 16px; color: var(--ink-900); display: flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .1px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--red-700), var(--gold-500)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 4px 12px rgba(185,28,28,.3); }
.brand-text small { color: var(--ink-500); font-weight: 500; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; display: block; margin-top: 1px; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--ink-700); font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background .15s var(--ease), color .15s var(--ease); text-decoration: none; }
.nav-links a:hover { background: var(--ink-50); color: var(--red-700); }
.nav-links a.active { color: var(--red-700); background: var(--red-50); }
.lang-toggle { display: flex; background: var(--ink-100); border-radius: 999px; padding: 3px; }
.lang-toggle button { border: none; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-500); cursor: pointer; transition: all .15s var(--ease); }
.lang-toggle button.active { background: var(--white); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.nav-cta { background: var(--ink-900); color: var(--white) !important; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 13.5px; transition: all .15s var(--ease); }
.nav-cta:hover { background: var(--red-700); transform: translateY(-1px); }

/* 移动端汉堡按钮与下拉菜单（默认隐藏，≤900px 显示） */
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid rgba(15,23,42,.12); border-radius: 10px; background: var(--white); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink-700); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(15,23,42,.55) 50%, rgba(185,28,28,.55) 100%); }
.hero-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 2; padding: 100px 28px 90px; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.3); padding: 6px 14px; border-radius: 999px; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-300); font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.08; font-weight: 800; margin-bottom: 18px; color: #fff; letter-spacing: -.8px; max-width: 820px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--gold-300), var(--gold-400)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(15px, 1.4vw, 18.5px); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 38px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 14.5px; cursor: pointer; border: none; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); letter-spacing: .1px; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--gold-300); color: var(--ink-900); box-shadow: 0 4px 16px rgba(251,191,36,.35); }
.btn-primary:hover { background: var(--gold-400); box-shadow: 0 6px 20px rgba(251,191,36,.5); }
.btn-secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255,255,255,.18); }
.btn-outline { background: transparent; color: var(--ink-900); border: 1.5px solid var(--ink-900); }
.btn-outline:hover { background: var(--ink-900); color: #fff; }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--red-700); }

/* ---------- Sections ---------- */
.section { padding: 84px 28px; }
.section-alt { background: var(--ink-50); }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--red-700); margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.5px; color: var(--ink-900); }
.section-sub { color: var(--ink-500); font-size: 16px; max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* ---------- Features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature { padding: 32px 28px; background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.feature-icon.red { background: var(--red-50); color: var(--red-700); }
.feature-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.feature-icon.blue { background: #eff6ff; color: #1d4ed8; }
.feature-icon.green { background: #dcfce7; color: var(--green-600); }
.feature-icon.purple { background: #ede9fe; color: #6d28d9; }
.feature-icon.orange { background: #ffedd5; color: #c2410c; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--ink-900); letter-spacing: -.2px; }
.feature p { color: var(--ink-500); font-size: 14.5px; line-height: 1.65; }

/* ---------- Stats ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; background: linear-gradient(135deg, var(--ink-900), var(--ink-800)); border-radius: var(--radius-lg); padding: 36px; color: #fff; margin-top: 56px; }
.stat { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: none; }
.stat h3 { font-size: 44px; font-weight: 800; background: linear-gradient(135deg, var(--gold-300), var(--gold-400)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -.8px; }
.stat p { color: rgba(255,255,255,.65); font-size: 13px; font-weight: 500; margin-top: 4px; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.product { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--ink-100); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.product:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-img { aspect-ratio: 4/3; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 22px 24px 26px; }
.product-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--ink-900); letter-spacing: -.2px; }
.product-body p { color: var(--ink-500); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tags span { background: var(--ink-50); border: 1px solid var(--ink-100); padding: 3px 10px; border-radius: 999px; font-size: 12px; color: var(--ink-500); font-weight: 500; }

/* ---------- Category blocks (products page) ---------- */
.cat-block { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 36px 38px; margin-bottom: 24px; transition: box-shadow .2s var(--ease); }
.cat-block:hover { box-shadow: var(--shadow-sm); }
.cat-block h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--ink-900); letter-spacing: -.2px; }
.cat-block p { color: var(--ink-500); margin-bottom: 16px; font-size: 14.5px; }

/* ---------- CTA Banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--red-700), var(--red-900)); color: #fff; padding: 72px 28px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(251,191,36,.18), transparent 50%), radial-gradient(circle at 80% 70%, rgba(255,255,255,.08), transparent 50%); }
.cta-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.cta-banner h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 16px; margin-bottom: 28px; }

/* ---------- About ---------- */
.about-hero { background: linear-gradient(135deg, var(--ink-800), var(--ink-900)); color: #fff; padding: 96px 28px 80px; position: relative; overflow: hidden; }
.about-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 50%; background: url("../img/ornaments.jpg") center/cover; opacity: .22; pointer-events: none; }
.about-hero-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }
.about-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-bottom: 16px; letter-spacing: -.5px; max-width: 640px; }
.about-hero p { color: rgba(255,255,255,.8); max-width: 620px; font-size: 16px; line-height: 1.75; }

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold-400), var(--red-700)); }
.timeline-item { margin-bottom: 32px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--red-700); box-shadow: 0 0 0 4px rgba(185,28,28,.1); }
.timeline-item h4 { font-size: 15px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.timeline-item p { color: var(--ink-500); font-size: 14.5px; line-height: 1.65; }

/* Quote card */
.quote-card { background: var(--gold-100); border-radius: var(--radius-lg); padding: 36px; border-left: 4px solid var(--gold-500); font-style: italic; color: var(--ink-800); line-height: 1.75; font-size: 15.5px; margin-top: 32px; }
.quote-card b { font-style: normal; display: block; margin-top: 12px; color: var(--ink-500); font-size: 13px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; max-width: 1100px; margin: 0 auto; }
.contact-info .info-block { margin-bottom: 28px; }
.contact-info h4 { font-size: 13px; font-weight: 700; color: var(--red-700); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.contact-info p, .contact-info a { color: var(--ink-700); font-size: 15px; line-height: 1.65; }
.contact-info a:hover { color: var(--red-700); text-decoration: underline; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 36px 40px; box-shadow: var(--shadow-sm); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--ink-200); border-radius: var(--radius-sm); font-size: 14.5px; font-family: inherit; background: var(--ink-50); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); color: var(--ink-900); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--red-700); box-shadow: 0 0 0 4px rgba(185,28,28,.1); background: #fff; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { background: #dcfce7; color: #166534; padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; margin-bottom: 20px; border: 1px solid #bbf7d0; }
.form-error { background: var(--red-50); color: var(--red-900); padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; margin-bottom: 20px; border: 1px solid var(--red-100); }
.form-privacy { font-size: 11.5px; color: var(--ink-400); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,.7); padding: 64px 28px 32px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer h4 { color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; margin-bottom: 18px; }
.footer p, .footer a { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.8; text-decoration: none; }
.footer a:hover { color: var(--gold-300); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 14px; max-width: 360px; line-height: 1.7; }
.footer-bottom { max-width: 1240px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: rgba(255,255,255,.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Scroll Animations ---------- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--ink-500); }
.center { text-align: center; }

/* ---------- Gallery Page ---------- */
.gallery-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-700), #8a1026 55%, #5c0a18);
  padding: 76px 28px 64px;
  color: #fff;
}
.gallery-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .3;
  transform: scale(1.05);
}
.gallery-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(92,10,24,.94) 0%, rgba(148,20,36,.82) 45%, rgba(20,8,12,.9) 100%);
}
.gallery-hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; }
.gallery-back {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88) !important;
  font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(6px);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.gallery-back:hover { background: rgba(255,255,255,.2); transform: translateX(-3px); }
.gallery-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -.7px;
  line-height: 1.1;
  margin: 20px 0 12px;
  color: #fff;
}
.gallery-meta {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.gallery-meta::before {
  content: ""; width: 34px; height: 2px;
  background: var(--gold-300); border-radius: 2px;
  display: inline-block;
}
.gallery-pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.gallery-pager .btn { font-size: 13px; padding: 8px 16px; }
.pager-gap { color: var(--ink-400); align-self: center; }
.gallery-quote {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--gold-100), var(--red-50));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.gallery-quote p { color: var(--ink-700); font-size: 15px; font-weight: 500; }

/* 分类卡片：数量角标 + 悬停指示 */
.product-img { position: relative; }
.cat-count {
  position: absolute; top: 12px; right: 12px;
  background: rgba(15,23,42,.72);
  color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .3px;
  padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.cat-card .cat-link {
  color: var(--red-700) !important;
  font-size: 13px; font-weight: 600;
  margin-bottom: 0 !important;
  transition: transform .2s var(--ease);
}
.cat-card:hover .cat-link { transform: translateX(4px); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.gallery-item {
  display: block;
  aspect-ratio: 1/1;
  background: #f5f3ef;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gallery-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); z-index: 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.18));
  opacity: 0; transition: opacity .25s var(--ease);
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- Lightbox (CSS only, opened by JS) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(12,8,14,.92);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
  animation: lb-fade .25s ease;
}
.lightbox.open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox .lb-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer;
  transition: background .2s;
}
.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.8);
  font-size: 13px; padding: 0 30px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Responsive（必须放在文件最后，覆盖前面所有基础样式） ---------- */
@media (max-width: 900px) {
  .section { padding: 56px 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    padding: 6px 20px 18px;
    flex-direction: column;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a {
    padding: 14px 4px;
    font-size: 15px; font-weight: 500;
    color: var(--ink-700); text-decoration: none;
    border-bottom: 1px solid var(--ink-50);
  }
  .nav-mobile a.active { color: var(--red-700); font-weight: 600; }
  .nav-mobile .btn { margin-top: 14px; justify-content: center; border-bottom: none; }
  .nav-inner { height: 60px; gap: 12px; }
  .nav-right { gap: 10px; }
  .brand { min-width: 0; }
  .brand-text { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-text small { display: none; }
  .hero { min-height: 480px; }
  .hero-inner { padding: 72px 20px 64px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .stats-bar { padding: 28px 16px; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 16px 0; }
  .stat:last-child { border-bottom: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-hero { padding: 48px 20px 44px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .gallery-quote { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 44px 16px; }
  .nav-inner { padding: 0 16px; }
  .brand-mark { width: 32px; height: 32px; font-size: 14px; }
  .brand-text { font-size: 12.5px; }
  .lang-toggle button { padding: 5px 9px; font-size: 11.5px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 56px 18px 52px; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); letter-spacing: -.4px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 28px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stat h3 { font-size: 34px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .gallery-item { border-radius: 8px; }
  .gallery-hero { padding: 36px 16px 32px; }
  .gallery-quote { padding: 22px 18px; }
  .lightbox { padding: 10px; }
  .lightbox .lb-img { max-width: 96vw; max-height: 78vh; }
  .lightbox .lb-close { top: 10px; right: 10px; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
  .lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { width: 38px; height: 38px; font-size: 18px; }
}
