/* ===== 克罗斯特 Cluster 全站样式 ===== */
:root {
  --red: #d9261c;
  --red-dark: #b01d15;
  --ink: #1a1d21;
  --gray: #6b7280;
  --line: #e8eaee;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(20, 24, 34, .08);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ===== 导航 ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.nav.scrolled, .nav-solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; color: #fff; position: relative; padding: 6px 0; transition: color .2s; }
.nav.scrolled .nav-links a, .nav-solid .nav-links a { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links .nav-admin { background: var(--red); color: #fff !important; padding: 8px 16px; border-radius: 6px; }
.nav-links .nav-admin::after { display: none; }
.nav-links .nav-admin:hover { background: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; color: var(--ink); transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(217,38,28,.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(217,38,28,.25), transparent 60%),
    linear-gradient(135deg, #17191d 0%, #23262c 55%, #17191d 100%);
}
/* 品牌快门叶轮标志纹理（Cluster 红色叶轮） */
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpath id='b' d='M86 84 C108 90 136 108 150 140'/%3E%3C/defs%3E%3Cg fill='none' stroke='%23ff6b61'%3E%3Ccircle cx='100' cy='100' r='68' stroke-width='4'/%3E%3Ccircle cx='100' cy='100' r='22' stroke-width='3'/%3E%3Ccircle cx='100' cy='100' r='8'/%3E%3Cuse href='%23b' stroke-width='4'/%3E%3Cuse href='%23b' transform='rotate(45 100 100)' stroke-width='4'/%3E%3Cuse href='%23b' transform='rotate(90 100 100)' stroke-width='4'/%3E%3Cuse href='%23b' transform='rotate(135 100 100)' stroke-width='4'/%3E%3Cuse href='%23b' transform='rotate(180 100 100)' stroke-width='4'/%3E%3Cuse href='%23b' transform='rotate(225 100 100)' stroke-width='4'/%3E%3Cuse href='%23b' transform='rotate(270 100 100)' stroke-width='4'/%3E%3Cuse href='%23b' transform='rotate(315 100 100)' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E");
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ===== Hero 交互爱心：悬停加速、点击心跳+迸发 ===== */
.hero-heart {
  position: absolute; left: 50%; top: 44%; z-index: 0;
  width: clamp(220px, 26vw, 360px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hero-heart .hh-beat { width: 100%; height: 100%; }
.hero-heart .hh-beat.beating { animation: heartBeat .85s cubic-bezier(.2,.8,.3,1); }
@keyframes heartBeat {
  0% { transform: scale(1); } 15% { transform: scale(1.26); }
  30% { transform: scale(.94); } 45% { transform: scale(1.16); }
  60% { transform: scale(.97); } 78% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.hero-heart svg {
  width: 100%; height: 100%; opacity: .13;
  transform-origin: 50% 50%; will-change: transform;
  transition: opacity .4s ease, filter .4s ease;
  filter: drop-shadow(0 0 0 rgba(255,90,78,0));
}
.hero-heart:hover svg, .hero-heart.active svg {
  opacity: .3;
  filter: drop-shadow(0 0 26px rgba(255,90,78,.55));
}
.hero-heart .hh-pop {
  position: absolute; width: 22px; height: 22px; pointer-events: none;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23ff5a4e' d='M16 29C8 22 2 17 2 10.5 2 5.8 5.6 2.5 10 2.5c2.6 0 4.8 1.2 6 3.2 1.2-2 3.4-3.2 6-3.2 4.4 0 8 3.3 8 8C30 17 24 22 16 29z'/%3E%3C/svg%3E");
  animation: hhFly .9s ease-out forwards; opacity: .95;
}
@keyframes hhFly {
  from { transform: translate(-50%, -50%) scale(var(--s, 1)); opacity: .95; }
  to { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -70px))) scale(.15); opacity: 0; }
}
@media (max-width: 768px) {
  .hero-heart { width: 180px; }
}
.hero-content { position: relative; text-align: center; padding: 120px 0 80px; }
.hero-title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: 1px; animation: fadeUp .8s both; }
.hero-title span { display: inline-block; }
.hero-title span[data-i18n="hero.t1"] { animation: riseIn .7s .1s cubic-bezier(.2,.8,.3,1) both; }
.hero-title .hl {
  color: #ff5a4e;
  animation: riseIn .7s .35s cubic-bezier(.2,.8,.3,1) both, hlShine 3.2s 1.2s ease-in-out infinite;
}
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hlShine {
  0%, 100% { text-shadow: 0 0 0 rgba(255,90,78,0); transform: scale(1); }
  50% { text-shadow: 0 0 22px rgba(255,90,78,.55); transform: scale(1.04); }
}
.hero-sub { margin-top: 14px; font-size: clamp(14px, 2vw, 18px); color: rgba(255,255,255,.75); animation: fadeUp .8s .15s both; }

/* 搜索框 */
.search-box { max-width: 720px; margin: 44px auto 0; position: relative; z-index: 5; animation: fadeUp .8s .3s both; }
.search-input-wrap { display: flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.search-icon { width: 22px; height: 22px; color: var(--gray); flex-shrink: 0; align-self: center; margin-left: 18px; }
.search-input-wrap input {
  flex: 1; border: 0; outline: none; font-size: 16px; padding: 14px 16px; font-family: inherit; color: var(--ink); background: transparent; min-width: 0;
}
.search-btn {
  border: 0; background: var(--red); color: #fff; font-size: 16px; font-weight: 600;
  padding: 14px 32px; border-radius: 999px; transition: background .2s, transform .2s; white-space: nowrap;
}
.search-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.search-suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: none; text-align: left; z-index: 20;
}
.search-suggest.show { display: block; }
.suggest-item { display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.suggest-item:hover { background: var(--bg-soft); }
.suggest-item img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--bg-soft); }
.suggest-item b { display: block; font-size: 14px; }
.suggest-item span {
  font-size: 12.5px; color: var(--gray); line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  max-width: 100%; overflow-wrap: anywhere; word-break: break-word;
}
.suggest-all { display: block; padding: 12px 18px; text-align: center; color: var(--red); font-weight: 600; font-size: 14px; }
.suggest-all:hover { background: #fff5f4; }
.suggest-empty { padding: 18px; text-align: center; color: var(--gray); font-size: 14px; }
.suggest-empty a { color: var(--red); font-weight: 600; }
.search-tags { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.search-tags a { color: rgba(255,255,255,.85); margin-left: 6px; padding: 3px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; cursor: pointer; transition: .2s; display: inline-block; }
.search-tags a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Hero 数据 */
.hero-stats { display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px); margin-top: 56px; animation: fadeUp .8s .45s both; }
.hero-stats > div { transition: transform .3s ease; }
.hero-stats > div:hover { transform: translateY(-5px); }
.hero-stats b { display: block; font-size: clamp(22px, 3vw, 32px); color: #ff5a4e; transition: text-shadow .3s ease; }
.hero-stats > div:hover b { text-shadow: 0 0 18px rgba(255,90,78,.6); }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.65); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ===== 通用 Section ===== */
.section { padding: 90px 0; }
.section-title { text-align: center; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; position: relative; margin-bottom: 14px; }
.section-title.left { text-align: left; }
.section-title::after { content: ""; display: block; width: 46px; height: 4px; background: var(--red); border-radius: 2px; margin: 14px auto 0; }
.section-title.left::after { margin-left: 0; }
.section-desc { text-align: center; color: var(--gray); margin-bottom: 48px; }
.section-more { text-align: center; margin-top: 44px; }

/* 渐入动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== 应用领域 ===== */
.apps { background: var(--bg-soft); }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.app-card {
  background: #fff; border-radius: var(--radius); padding: 30px 18px; text-align: center;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.app-icon { font-size: 34px; margin-bottom: 12px; }
.app-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.app-card p { font-size: 13px; color: var(--gray); }

/* ===== 产品卡片 ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  cursor: pointer; transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 18px; }
.product-body h3 { font-size: 15.5px; line-height: 1.45; margin-bottom: 10px; min-height: 2.8em; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tags span {
  font-size: 12px; color: var(--red); background: #fdf0ef; padding: 3px 10px; border-radius: 4px;
  max-width: 100%; overflow-wrap: anywhere; word-break: break-word; line-height: 1.5;
  /* 长串件号自动换行显示，最多 2 行，避免把卡片撑宽 */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* ===== 品牌故事 ===== */
.about { background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-media { position: relative; text-align: center; perspective: 1000px; }
.brand-tilt { display: inline-block; cursor: pointer; transform-style: preserve-3d; transition: transform .2s ease-out; }
.brand-tilt img { display: block; width: 100%; border-radius: 20px; border: 1px solid var(--line); }
.brand-tilt.boost { animation: brandBoost .55s ease-out; }
@keyframes brandBoost {
  0% { transform: scale(1); }
  35% { transform: scale(1.05) rotate(-1.2deg); }
  70% { transform: scale(.985) rotate(.6deg); }
  100% { transform: scale(1); }
}
.brand-tilt-tip { margin-top: 14px; font-size: 13px; color: var(--gray); letter-spacing: 1px; }
.about-logo-card {
  background: linear-gradient(145deg, #fdf0ef, #fff); border: 1px solid var(--line); border-radius: 20px;
  padding: 48px 32px; box-shadow: var(--shadow);
}
.about-logo-card img { border-radius: 8px; }
.about-badge {
  position: absolute; top: -16px; right: 8px; background: var(--red); color: #fff;
  font-weight: 800; letter-spacing: 2px; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 8px 20px rgba(217,38,28,.35);
}
.about-text p { color: #3c4249; margin-bottom: 16px; font-size: 15.5px; }
.about-quote {
  margin-top: 24px; padding: 18px 22px; border-left: 4px solid var(--red); background: var(--bg-soft);
  border-radius: 0 10px 10px 0; font-size: 16px; font-weight: 600;
}
.about-quote cite { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); font-style: normal; }

/* ===== 核心优势 ===== */
.strength { background: #17191d; color: #fff; }
.strength .section-desc { color: rgba(255,255,255,.6); }
.strength-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.strength-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .25s, border-color .25s, background .25s;
}
.strength-card:hover { transform: translateY(-6px); border-color: rgba(217,38,28,.6); background: rgba(217,38,28,.08); }
.strength-num { font-size: 40px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--red); line-height: 1; margin-bottom: 16px; }
.strength-card h3 { font-size: 19px; margin-bottom: 12px; }
.strength-card p { font-size: 14px; color: rgba(255,255,255,.72); }

/* ===== 联系我们 ===== */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.contact-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  text-align: center; padding: 36px 24px; transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-card.wide { grid-column: span 2; }
.contact-icon { font-size: 30px; margin-bottom: 10px; }
.contact-card h3 { font-size: 15px; color: var(--gray); font-weight: 500; margin-bottom: 6px; }
.contact-card p { font-size: 17px; font-weight: 700; }
.contact-card p a { color: var(--red); }

/* ===== 页脚 ===== */
.footer { background: #101215; color: rgba(255,255,255,.6); padding: 48px 0 28px; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-brand img { height: 52px; border-radius: 6px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin-bottom: 20px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #ff5a4e; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }

/* ===== 产品中心页 ===== */
.page-head {
  background: linear-gradient(135deg, #17191d, #2a2d34); color: #fff; text-align: center;
  padding: 150px 0 60px;
}
.page-head h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.page-head p { color: rgba(255,255,255,.65); }
.products-section { padding-top: 50px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 36px; }
.search-input-wrap.small { flex: 1; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px; box-shadow: none; }
.search-input-wrap.small input { padding: 10px 12px; font-size: 14.5px; }
.filter-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px;
  font-size: 14px; color: var(--gray); transition: .2s;
}
.cat-btn:hover { border-color: var(--red); color: var(--red); }
.cat-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.empty-tip { text-align: center; color: var(--gray); padding: 60px 0; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.show { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(12,14,18,.6); backdrop-filter: blur(3px); }
.modal-body {
  position: relative; width: min(640px, 92%); max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 16px; margin: 7vh auto; display: grid; grid-template-columns: 1fr;
  animation: fadeUp .3s both;
}
/* 防止长件号串把 grid 轨道撑宽导致弹窗横向溢出 */
.modal-body > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.modal-close {
  position: absolute; top: 10px; right: 14px; border: 0; background: rgba(0,0,0,.35); color: #fff;
  width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; z-index: 2;
}
.modal-img { background: var(--bg-soft); position: relative; }
.modal-img img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.modal-info { padding: 36px 30px; }
.modal-info h3 { font-size: 20px; margin-bottom: 16px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.modal-tags span {
  font-size: 12.5px; background: #fdf0ef; color: var(--red); padding: 4px 12px; border-radius: 5px;
  max-width: 100%; flex: 1 1 100%; overflow-wrap: anywhere; word-break: break-word; line-height: 1.6;
}
.modal-info p { color: #3c4249; font-size: 14.5px; margin-bottom: 22px; }
.modal-contact { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; color: var(--gray); }
.modal-contact b, .modal-contact a { color: var(--red); }

/* ===== 后台管理 ===== */
.admin-section { padding-top: 50px; background: var(--bg-soft); min-height: 70vh; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.admin-form-card, .admin-list-card {
  background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 30px; box-shadow: var(--shadow);
}
.admin-form-card h2, .admin-list-card h2 { font-size: 20px; margin-bottom: 22px; }
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-row label i { color: var(--red); font-style: normal; }
.form-row input[type="text"], .form-row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,38,28,.1); }
.img-upload { display: flex; gap: 16px; align-items: center; }
.img-preview {
  width: 130px; height: 96px; border: 1px dashed var(--line); border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: var(--bg-soft); flex-shrink: 0;
}
.img-preview span { font-size: 12px; color: var(--gray); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-actions { display: flex; flex-direction: column; gap: 8px; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }

/* 按钮 */
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 12px 28px; font-size: 15px; font-weight: 600; transition: .2s; text-align: center; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-ghost { background: var(--bg-soft); color: var(--gray); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: #fdecec; color: #c0392b; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }

.admin-list-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.admin-list-head input {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; outline: none; width: 180px; font-family: inherit;
}
.admin-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line);
}
.admin-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); flex-shrink: 0; }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item-info span {
  font-size: 12.5px; color: var(--gray); line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  max-width: 100%; overflow-wrap: anywhere; word-break: break-word;
}
.admin-item-ops { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .admin-grid { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-img img { min-height: 220px; max-height: 260px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 20px; gap: 16px; box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--ink) !important; }
  .hero { min-height: auto; }
  .hero-content { padding: 130px 0 70px; }
  .search-input-wrap { flex-direction: column; border-radius: 18px; padding: 10px; }
  .search-icon { display: none; }
  .search-input-wrap input { padding: 12px 10px; text-align: center; }
  .search-btn { width: 100%; border-radius: 12px; }
  .hero-stats { flex-wrap: wrap; gap: 20px 32px; }
  .contact-card.wide { grid-column: span 1; }
  .section { padding: 64px 0; }
  .form-row.two { grid-template-columns: 1fr; }
  .admin-item-ops { flex-direction: column; }
}

/* ===== 语言切换 ===== */
.lang-holder { display: inline-flex; }
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13.5px; transition: .2s;
}
.nav.scrolled .lang-btn, .nav-solid .lang-btn { border-color: var(--line); color: var(--ink); }
.lang-btn:hover { border-color: var(--red); color: var(--red); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  min-width: 160px; padding: 6px; display: none; z-index: 120; text-align: left;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu button {
  display: block; width: 100%; border: 0; background: none; text-align: left; padding: 8px 14px;
  font-size: 14px; color: var(--ink); border-radius: 6px; transition: .15s;
}
.lang-menu button:hover { background: var(--bg-soft); color: var(--red); }

/* ===== 登录弹窗 ===== */
.auth-body { display: block; width: min(420px, 92%); margin-top: 12vh; }
.auth-wrap { padding: 38px 34px 30px; }
.auth-logo { text-align: center; margin-bottom: 18px; }
.auth-logo img { height: 52px; margin: 0 auto; }
.auth-wrap h3 { text-align: center; font-size: 22px; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--gray); font-size: 13.5px; margin-bottom: 22px; }
.auth-err { color: var(--red); font-size: 13.5px; min-height: 20px; margin-bottom: 6px; }
.auth-submit { width: 100%; }
.auth-switch { margin-top: 18px; text-align: center; font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.auth-switch a { color: var(--red); font-weight: 600; }
.auth-hint { color: var(--gray); }

/* 表单下拉 */
.form-row select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; outline: none; background: #fff; color: var(--ink);
}
.form-row select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,38,28,.1); }

/* ===== 车型筛选 ===== */
.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.type-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px;
  font-size: 13.5px; color: var(--gray); transition: .2s;
}
.type-btn:hover { border-color: var(--red); color: var(--red); }
.type-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== 未登录锁定页 ===== */
.admin-locked { padding-top: 60px; background: var(--bg-soft); min-height: 70vh; }
.locked-card {
  max-width: 460px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 48px 36px; text-align: center; box-shadow: var(--shadow);
}
.locked-icon { font-size: 44px; margin-bottom: 14px; }
.locked-card h2 { font-size: 21px; margin-bottom: 8px; }
.locked-card p { color: var(--gray); font-size: 14.5px; margin-bottom: 22px; }

/* ===== 在线咨询浮窗 ===== */
.chat-fab-wrap {
  position: fixed; right: 26px; bottom: 26px; z-index: 300;
  display: flex; align-items: center; gap: 10px;
}
.chat-label {
  background: var(--red); color: #fff; border-radius: 999px; padding: 9px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(217,38,28,.35); user-select: none; transition: background .2s, transform .2s;
}
.chat-label:hover { background: var(--red-dark); transform: translateY(-1px); }
.chat-fab {
  width: 60px; height: 60px; border-radius: 50%;
  border: 0; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(217,38,28,.4); transition: transform .2s, background .2s;
}
.chat-fab:hover { transform: scale(1.08); background: var(--red-dark); }
.chat-panel {
  position: fixed; right: 26px; bottom: 96px; z-index: 300; width: min(360px, calc(100vw - 40px));
  background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.22); overflow: hidden;
  display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .25s, transform .25s;
}
.chat-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(135deg, var(--red), #a81b13); color: #fff;
}
.chat-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.chat-head b { display: block; font-size: 15px; }
.chat-head span { font-size: 12px; opacity: .85; display: block; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-close { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; flex-shrink: 0; }
.chat-quick { display: flex; gap: 10px; padding: 12px 16px 0; }
.chat-quick-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px;
  border-radius: 9px; font-size: 13.5px; font-weight: 600; transition: .2s;
}
.chat-quick-btn.wa { background: #e8f7ee; color: #1faa53; }
.chat-quick-btn.wa:hover { background: #1faa53; color: #fff; }
.chat-quick-btn.tel { background: #fdecec; color: var(--red); }
.chat-quick-btn.tel:hover { background: var(--red); color: #fff; }
.chat-log { max-height: 200px; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-tip { color: var(--gray); font-size: 13px; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
.chat-msg {
  align-self: flex-end; background: var(--red); color: #fff; font-size: 13.5px; border-radius: 12px 12px 2px 12px;
  padding: 8px 12px; max-width: 85%;
}
.chat-msg span { display: block; font-size: 10.5px; opacity: .75; margin-top: 3px; }
.chat-input { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; outline: none; font-family: inherit; min-width: 0;
}
.chat-input input:focus { border-color: var(--red); }
.chat-input button { border: 0; background: var(--red); color: #fff; border-radius: 999px; padding: 0 20px; font-size: 14px; font-weight: 600; }
.chat-input button:hover { background: var(--red-dark); }

/* ===== 阿语 RTL 微调 ===== */
[dir="rtl"] .chat-fab-wrap { right: auto; left: 26px; flex-direction: row-reverse; }
[dir="rtl"] .chat-panel { right: auto; left: 26px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }

/* ===== 响应式补充 ===== */
@media (max-width: 768px) {
  .lang-holder { width: 100%; display: block; padding: 4px 0; }
  .lang-switch { display: block; }
  .lang-btn { width: 100%; justify-content: center; color: var(--ink) !important; border-color: var(--line) !important; }
  .lang-menu { left: 0; right: 0; }
  .filter-group { width: 100%; }
  .search-input-wrap.small .search-icon { display: none; }
}

/* ===== 产品中心：侧边分类树 ===== */
.catalog-wrap { display: grid; grid-template-columns: 268px 1fr; gap: 30px; align-items: start; }
.catalog-side {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  position: sticky; top: 86px;
}
.catalog-side-head {
  background: linear-gradient(135deg, var(--red), #a81b13); color: #fff;
  padding: 15px 20px; font-size: 16.5px; font-weight: 700; letter-spacing: .5px;
}
.catalog-tree { padding: 10px 8px 14px; max-height: 70vh; overflow-y: auto; }
.tree-node {
  display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 7px;
  font-size: 14.5px; color: var(--ink); cursor: pointer; transition: .15s; user-select: none;
}
.tree-node:hover { background: var(--bg-soft); color: var(--red); }
.tree-node.active { background: #fdecec; color: var(--red); font-weight: 700; }
.tree-node.sub1 { padding-left: 26px; }
.tree-node.sub2 { padding-left: 44px; font-size: 13.8px; color: var(--gray); }
.tree-node.sub2.active { color: var(--red); }
.tree-arrow {
  width: 14px; flex-shrink: 0; text-align: center; font-size: 12px; color: #9aa1ac;
  transition: transform .2s; line-height: 1;
}
.tree-arrow.open { transform: rotate(90deg); }
.tree-arrow.no-leaf { visibility: hidden; }
.tree-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--gray); }
.crumb-item:first-child { color: var(--red); font-weight: 700; }
.crumb-sep { color: #c4c9d1; }
[dir="rtl"] .tree-arrow.open { transform: rotate(-90deg); }

@media (max-width: 900px) {
  .catalog-wrap { grid-template-columns: 1fr; }
  .catalog-side { position: static; }
  .catalog-tree { max-height: none; }
}

/* ===== 后台：三列级联下拉 + 工具条 ===== */
.form-row.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
@media (max-width: 768px) {
  .form-row.three { grid-template-columns: 1fr; }
}

/* ===== 详情弹窗多图画廊 ===== */
.m-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.m-thumbs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; background: var(--bg-soft); flex-shrink: 0; transition: .15s;
}
.m-thumbs img:hover { border-color: #f3b5b0; }
.m-thumbs img.active { border-color: var(--red); }

/* ===== 弹窗画廊左右箭头 ===== */
.gal-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--red); font-size: 17px; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center;
  transition: .2s; z-index: 2; padding: 0 0 2px;
}
.gal-btn:hover { background: var(--red); color: #fff; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }

/* ===== 弹窗图片缩放 ===== */
.modal-img { overflow: hidden; touch-action: none; cursor: zoom-in; }
.modal-img img { transition: transform .18s ease; will-change: transform; user-select: none; -webkit-user-drag: none; }
.modal-img.zoomed { cursor: grab; }
.modal-img.dragging { cursor: grabbing; }
.modal-img.dragging img { transition: none; }
.m-thumbs { position: relative; z-index: 4; }
.zoom-bar {
  position: absolute; right: 12px; bottom: 12px; z-index: 5;
  display: flex; align-items: center; gap: 4px; padding: 4px 6px;
  background: rgba(15,17,22,.55); border-radius: 999px; backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s;
}
.modal-img:hover .zoom-bar, .modal-img.zoomed .zoom-bar { opacity: 1; }
.zoom-bar button {
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.94); color: #1b1f24; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.zoom-bar button:hover { background: var(--red); color: #fff; }
.zoom-level {
  min-width: 46px; text-align: center; color: #fff; font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums; user-select: none;
}
.zoom-tip {
  position: absolute; left: 12px; bottom: 12px; z-index: 5; pointer-events: none;
  background: rgba(15,17,22,.5); color: #fff; font-size: 11.5px; padding: 5px 10px;
  border-radius: 999px; opacity: 0; transition: opacity .2s; max-width: 60%;
}
.modal-img:hover .zoom-tip { opacity: 1; }
@media (max-width: 768px) { .zoom-tip { display: none; } }

/* ===== 回到顶部悬浮栏（产品中心右下角） ===== */
.back-top {
  position: fixed; right: 26px; bottom: 100px; z-index: 290;
  display: flex; align-items: center; gap: 6px; padding: 10px 14px 10px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1;
  box-shadow: 0 8px 22px rgba(20,24,34,.14);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s, border-color .2s;
}
.back-top svg { width: 16px; height: 16px; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.back-top:active { transform: translateY(0); }
.back-top:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
/* 客服面板展开时让位，避免叠在一起 */
.chat-panel.open ~ .back-top,
body.chat-open .back-top { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 768px) {
  .back-top { right: 18px; bottom: 96px; padding: 10px; }
  .back-top .back-top-text { display: none; }
  .back-top svg { width: 18px; height: 18px; }
}

/* ===== 产品中心分页 ===== */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 26px; padding: 14px 4px 4px; border-top: 1px solid var(--line); }
.pg-info { font-size: 13px; color: #5b6470; white-space: nowrap; }
.pg-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-btn { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .15s; }
.pg-btn:hover:not(:disabled):not(.active) { border-color: var(--red); color: var(--red); }
.pg-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.pg-btn:disabled { opacity: .38; cursor: not-allowed; }
.pg-nav { font-size: 16px; line-height: 1; }
.pg-dots { color: #9aa2ad; font-size: 13px; padding: 0 2px; user-select: none; }
.pg-size { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5b6470; white-space: nowrap; }
.pg-size select { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pg-size select:focus { outline: none; border-color: var(--red); }
@media (max-width: 768px) {
  .pager { justify-content: center; }
  .pg-info { width: 100%; text-align: center; }
}

/* ===== 手机竖屏（≤480px）专属优化 ===== */
@media (max-width: 480px) {
  .container { width: 94%; }

  /* --- 导航 --- */
  .nav-inner { height: 56px; }
  .nav-logo img { height: 36px; }
  .nav-links { top: 56px; padding: 14px 16px; gap: 12px; }
  .nav-links a { font-size: 15px; padding: 10px 0; }
  .page-head { padding: 104px 0 40px; }

  /* --- 首页 Hero --- */
  .hero-content { padding: 96px 0 56px; }
  .hero-heart { width: 150px; top: 40%; }
  .search-box { margin-top: 30px; }
  .search-input-wrap input { font-size: 15px; padding: 12px 8px; }
  .search-btn { padding: 12px 24px; font-size: 15px; }
  .search-tags { margin-top: 14px; line-height: 2.2; }
  .search-tags a { margin: 0 4px 6px 0; padding: 4px 12px; }
  .hero-stats { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .hero-stats b { font-size: 22px; }

  /* --- 区块与卡片 --- */
  .section { padding: 48px 0; }
  .section-desc { margin-bottom: 28px; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .app-card { padding: 20px 10px; }
  .app-icon { font-size: 26px; margin-bottom: 8px; }
  .app-card h3 { font-size: 14px; }
  .app-card p { font-size: 11.5px; }
  .strength-grid { gap: 14px; }
  .strength-card { padding: 22px 16px; }
  .strength-num { font-size: 30px; margin-bottom: 10px; }
  .strength-card h3 { font-size: 16.5px; }
  .strength-card p { font-size: 13px; }
  .contact-grid { gap: 12px; }
  .contact-card { padding: 24px 14px; }
  .contact-card p { font-size: 15px; overflow-wrap: anywhere; }
  .about-quote { padding: 14px 16px; font-size: 14.5px; }
  .about-logo-card { padding: 30px 18px; }
  .about-inner { gap: 28px; }

  /* --- 产品列表：双列紧凑卡 --- */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-body { padding: 10px; }
  .product-body h3 { font-size: 12.5px; min-height: 3.4em; }
  .product-tags { gap: 4px; }
  .product-tags span { font-size: 10.5px; padding: 2px 7px; border-radius: 3px; }

  /* --- 产品中心筛选 --- */
  .catalog-wrap { gap: 14px; }
  .filter-bar { gap: 10px; margin-bottom: 22px; }
  .search-input-wrap.small input { padding: 9px 10px; }
  .tree-node { font-size: 14px; padding: 8px 8px; }
  .tree-node.sub2 { padding-left: 36px; font-size: 13px; }
  .catalog-side-head { padding: 12px 16px; font-size: 15px; }
  .crumb { font-size: 12.5px; }
  .empty-tip { padding: 40px 0; }
  .catalog-tree { max-height: 46vh; overflow-y: auto; }

  /* --- 分页 --- */
  .pager { margin-top: 18px; gap: 10px; }
  .pg-btn { min-width: 38px; height: 38px; }
  .pg-size { width: 100%; justify-content: center; }
  .pg-info { font-size: 12.5px; }

  /* --- 详情弹窗：底部抽屉式 --- */
  .modal-body {
    width: 100%; max-height: 92vh; margin: 0 auto;
    border-radius: 18px 18px 0 0; animation: sheetUp .28s both;
  }
  @keyframes sheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .modal { display: none; align-items: flex-end; }
  .modal.show { display: flex; }
  .modal-img img { max-height: 46vh; }
  .m-thumbs img { width: 52px; height: 52px; }
  .modal-info { padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .modal-info h3 { font-size: 16.5px; }
  .modal-info p { font-size: 13.5px; }
  .gal-btn { width: 36px; height: 36px; }

  /* --- 搜索联想 --- */
  .suggest-item { padding: 10px 12px; gap: 10px; }
  .suggest-item img { width: 44px; height: 34px; }
  .suggest-item b { font-size: 13px; }
  .suggest-item span { font-size: 11.5px; }

  /* --- 客服浮窗 / 回顶 --- */
  .chat-fab-wrap { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .chat-fab { width: 48px; height: 48px; }
  .chat-label { padding: 8px 14px; font-size: 12.5px; }
  .chat-panel {
    right: 0; left: 0; bottom: 0; width: 100%;
    border-radius: 18px 18px 0 0; transform: translateY(24px);
  }
  .chat-panel.open { transform: none; }
  .chat-log { max-height: 46vh; }
  .back-top { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* --- 登录 / 锁定页 --- */
  .auth-body { width: 100%; margin-top: 20vh; }
  .auth-wrap { padding: 28px 20px 24px; }
  .locked-card { margin: 20px auto; padding: 34px 22px; width: 92%; }

  /* --- 后台 --- */
  .admin-form-card, .admin-list-card { padding: 18px 14px; }
  .admin-item img { width: 56px; height: 44px; }

  /* --- 页脚 --- */
  .footer { padding: 36px 0 20px; }
  .footer-brand img { height: 40px; }
  .footer-links { gap: 14px; margin-bottom: 14px; }
  .footer-links a { font-size: 13px; }
}
