/* ============================================================
   博弈诚外贸站 - 全站样式
   风格参考 hzjiakong.com：科技蓝 + 白底导航 + 深色科技 banner
   ============================================================ */
:root {
  --primary: #0b5da8;        /* 科技蓝主色 */
  --primary-dark: #094a87;
  --primary-darker: #0a4f8f;
  --primary-light: #1178d1;
  --sky: #e8f1fa;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #333333;
  --text-light: #757575;
  --line: #e5e5e5;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(11, 93, 168, .08);
  --max: 1200px;
  --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(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
/* 产品中心页：内容区铺满全宽（仅留少量呼吸边距） */
.container-full { max-width: none; padding: 0 40px; }

/* ---------- 顶部工具条（深蓝细条） ---------- */
.topbar { background: var(--primary-darker); color: rgba(255,255,255,.85); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar b { color: #fff; font-weight: 600; }

/* ---------- 白底导航 ---------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 74px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-badge-img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; border-radius: 8px; background: #fff; padding: 2px; box-sizing: border-box; }
.footer .logo-badge-img { background: #fff; }
.logo-badge { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; flex-shrink: 0; }
.logo-text { color: var(--primary); font-weight: 800; font-size: 21px; letter-spacing: .5px; line-height: 1.2; }
.logo-text small { display: block; font-size: 10.5px; font-weight: 400; color: var(--text-light); letter-spacing: 2.2px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); padding: 8px 18px; font-size: 15.5px; position: relative; transition: .2s; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--primary); border-radius: 2px; }

/* 导航下拉菜单（产品中心） */
.nav-drop { position: relative; }
.drop-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 230px; max-height: 72vh; overflow-y: auto; background: #0b2545; border-top: 3px solid var(--primary); padding: 6px 0; display: none; z-index: 90; box-shadow: 0 16px 34px rgba(4,24,46,.28); }
.drop-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #fff; padding: 11px 24px; font-size: 14.5px; letter-spacing: 1px; cursor: pointer; transition: .18s; white-space: nowrap; }
.drop-menu button:hover { background: rgba(255,255,255,.12); }
.drop-menu button.active { color: #7fb8ea; }
.nav-drop:hover .drop-menu, .nav-drop.open .drop-menu { display: block; }

/* 品牌标识 */
.brand-tag { display: inline-block; margin-left: 8px; padding: 1px 10px 2px; border: 1px solid var(--primary); color: var(--primary); border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .5px; vertical-align: 2px; }
.brand-tag.big { display: inline-block; margin: 0 0 12px; padding: 4px 18px; font-size: 13px; }
.detail-series { display: inline-block; margin: 0 0 12px 8px; padding: 4px 16px; background: rgba(11,93,168,.08); color: var(--primary); border-radius: 999px; font-size: 13px; }
.detail-series + h1 { margin-top: 2px; }
.lang-switch { display: flex; border: 1px solid var(--primary); border-radius: 4px; overflow: hidden; margin-left: 14px; }
.lang-switch button { background: transparent; color: var(--primary); border: 0; padding: 4px 13px; font-size: 13px; }
.lang-switch button.active { background: var(--primary); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--primary); font-size: 24px; }

/* ---------- Hero 大 banner（深色科技感） ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; background: linear-gradient(120deg, #04182e 0%, #06294d 55%, #0a3d6e 100%); overflow: hidden; color: #fff; text-align: center; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 78% 26%, rgba(17,120,209,.4), transparent 46%),
  radial-gradient(circle at 16% 82%, rgba(0,170,255,.2), transparent 48%); }
.hero-grid { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(120,180,255,.16) 1.5px, transparent 1.5px);
  background-size: 34px 34px; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 100px 24px; width: 100%; }
.hero-tag { display: inline-block; color: #9cc9f5; font-size: 15px; letter-spacing: 6px; margin-bottom: 18px; }
.hero-tag::before, .hero-tag::after { content: ''; display: inline-block; width: 42px; height: 1px; background: rgba(156,201,245,.55); vertical-align: middle; margin: 0 14px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.3; font-weight: 800; letter-spacing: 2px; }
.hero h1 em { font-style: normal; color: #57a8f0; }
.hero p { margin-top: 20px; font-size: clamp(14px, 1.5vw, 17px); color: rgba(255,255,255,.72); letter-spacing: 1px; }
.hero-btns { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 36px; border-radius: 4px; font-size: 15px; font-weight: 600; border: 0; transition: .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- 分类卡片行（白底图片卡片） ---------- */
.cat-cards-wrap { background: #fff; padding: 34px 0; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.cat-card { text-align: center; padding: 18px 10px; border-right: 1px solid var(--line); cursor: pointer; transition: .2s; }
.cat-card:last-child { border-right: 0; }
.cat-card:hover { background: var(--sky); }
.cat-card .ic { font-size: 44px; line-height: 1; filter: hue-rotate(0deg); }
.cat-card .name { margin-top: 12px; font-size: 15.5px; color: var(--text); }
.cat-card:hover .name { color: var(--primary); }

/* ---------- 通用 Section ---------- */
.section { padding: 74px 0; }
/* 产品中心页：Banner 与产品区间距加大（原 74px × 1.5） */
#products { padding-top: 111px; }
.section.alt { background: #fff; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--text); font-weight: 700; }
.sec-head .en { color: #b2b2b2; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }
.sec-head .bar { width: 46px; height: 3px; background: var(--primary); margin: 16px auto 0; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: center; }
.about-visual { background: linear-gradient(135deg, #06294d, #0b5da8); border-radius: var(--radius); min-height: 340px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 30px; }
.about-visual .big { font-size: clamp(40px, 5vw, 64px); font-weight: 800; color: rgba(255,255,255,.15); letter-spacing: 6px; text-align: center; line-height: 1.2; }
.about-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-text .en-name { color: var(--primary); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.about-text p { margin-bottom: 16px; color: var(--text-light); text-align: justify; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 28px 14px; text-align: center; box-shadow: var(--shadow); border-bottom: 3px solid var(--primary); }
.stat-card .num { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-card .lab { margin-top: 4px; color: var(--text-light); font-size: 14px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.why-card { background: var(--card); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); transition: .25s; }
.why-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(11,93,168,.14); }
.why-card .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--sky); color: var(--primary); font-size: 24px; display: flex; align-items: center; justify-content: center; }
.why-card h3 { margin: 14px 0 8px; font-size: 16.5px; color: var(--text); }
.why-card p { font-size: 13.5px; color: var(--text-light); }

/* ---------- 产品服务 ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* 产品卡片系列标签 */
.series-tag { display: inline-block; margin-left: 6px; padding: 1px 9px 2px; background: rgba(11,93,168,.08); color: var(--primary); border-radius: 4px; font-size: 11.5px; vertical-align: 2px; }
/* 下拉菜单系列子项 */
.drop-menu button.drop-sub { padding: 7px 24px 7px 38px; font-size: 13px; color: rgba(255,255,255,.75); }
.drop-menu button.drop-sub:hover { background: rgba(255,255,255,.1); color: #fff; }
.drop-menu button.drop-sub.active { color: #7fb8ea; }
/* 产品中心：左分类栏 + 右产品网格（仿参考版式） */
.pc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.pc-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 20px; }
.pc-search { display: flex; align-items: center; background: #f3f6fa; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px 0 12px; }
.pc-search input { flex: 1; border: 0; background: none; padding: 11px 6px; font-size: 13.5px; color: var(--text); outline: none; min-width: 0; }
.pc-search button { border: 0; background: none; cursor: pointer; font-size: 15px; padding: 6px 8px; opacity: .65; }
.pc-search button:hover { opacity: 1; }
.pc-side-title { margin: 22px 0 12px; font-size: 17px; color: var(--text); padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.pc-cats { display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow-y: auto; }
.pc-brand.pc-all { width: 100%; border: 0; cursor: pointer; margin-bottom: 6px; }
.pc-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s; letter-spacing: .5px; }
.pc-brand:hover { background: rgba(11,93,168,.08); color: var(--primary); border-color: var(--primary); }
.pc-brand.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: none; }
.pc-brand .pc-arrow { font-size: 11px; opacity: .85; transition: transform .2s; }
.pc-group.open .pc-brand .pc-arrow { transform: rotate(180deg); }
.pc-subs { display: none; flex-direction: column; gap: 2px; padding: 6px 0 2px; }
.pc-group.open .pc-subs { display: flex; }
.pc-sub { text-align: left; border: 0; background: #f3f6fa; color: var(--text-light); font-size: 13px; padding: 8px 12px 8px 24px; border-radius: 3px; cursor: pointer; transition: .15s; position: relative; }
.pc-sub::before { content: '▪'; position: absolute; left: 12px; font-size: 9px; color: var(--primary); top: 50%; transform: translateY(-50%); }
.pc-sub:hover { background: #e6eef7; color: var(--primary); }
.pc-sub.active { background: rgba(11,93,168,.12); color: var(--primary); font-weight: 600; }
.pc-main { min-width: 0; }
.pc-main .products-grid { grid-template-columns: repeat(3, 1fr); }
/* 产品中心卡片（参考图版式：大图 + 居中名称） */
.pg-card { text-decoration: none; background: #fff; }
.pc-main .pg-card .product-img { height: auto; aspect-ratio: 4 / 3; background: #fff; padding: 22px; }
.pc-main .pg-card .product-img img { position: static; width: 100%; height: 100%; object-fit: contain; }
.pg-card .pg-name { padding: 14px 12px 16px; text-align: center; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-card:hover .pg-name { color: var(--primary); }
/* 分页条 */
.pg-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; font-size: 13.5px; color: var(--text-light); }
.pg-total { margin-right: 6px; }
.pg-btn { padding: 6px 13px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 13.5px; cursor: pointer; border-radius: 3px; transition: .2s; }
.pg-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pg-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-btn:disabled { opacity: .45; cursor: default; }
.pg-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.pg-jump input { width: 56px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 13.5px; text-align: center; }
.pg-jump input:focus { outline: none; border-color: var(--primary); }
.pg-go { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-go:hover { background: #0a4c86; color: #fff; }
.pc-more { text-align: center; margin-top: 28px; }
.pc-more .btn { padding: 10px 44px; }
/* 首页热门产品系列（横向滚动） */
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.showcase-intro h2 { font-size: 26px; color: var(--text); letter-spacing: 1px; }
.showcase-desc { margin-top: 12px; max-width: 640px; font-size: 14px; line-height: 1.8; color: var(--text-light); }
.showcase-nav { display: flex; gap: 10px; flex-shrink: 0; }
.showcase-nav button { width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--text-light); font-size: 22px; line-height: 1; cursor: pointer; transition: .2s; }
.showcase-nav button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.showcase-row { display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: #b9cde2 transparent; }
.showcase-row::-webkit-scrollbar { height: 8px; }
.showcase-row::-webkit-scrollbar-thumb { background: #b9cde2; border-radius: 4px; }
.showcase-row::-webkit-scrollbar-track { background: transparent; }
.showcase-row .sc-card { min-width: 280px; width: 280px; flex-shrink: 0; background: #fff; box-shadow: 0 8px 24px rgba(4,24,46,.07); }
.showcase-row .sc-card .product-img { height: 200px; }
.showcase-row .sc-card:hover { transform: translateY(-4px); }
@media (max-width: 900px) { .showcase-head { flex-direction: column; align-items: flex-start; } .showcase-row .sc-card { min-width: 250px; width: 250px; } }
/* 产品中心独立页页头横幅 */
.page-hero { position: relative; background: #dfe5ec center/cover no-repeat; color: var(--text); padding: 24px 0 0; text-align: center; aspect-ratio: 2.85 / 1; min-height: 200px; }
.pc-page .page-hero { background-image: url('../images/products-banner.jpg'); }
.about-page .page-hero { background-image: url('../images/about-banner.jpg'); }
.contact-page .page-hero { background-image: url('../images/contact-banner.jpg'); }
.page-hero h1 { font-size: 28px; letter-spacing: 3px; color: #12365e; text-shadow: 0 1px 8px rgba(255,255,255,.95), 0 0 3px rgba(255,255,255,.9); }
.page-hero p { margin-top: 8px; font-size: 12.5px; letter-spacing: 5px; color: #2f4d6e; font-weight: 600; text-shadow: 0 1px 6px rgba(255,255,255,.95), 0 0 3px rgba(255,255,255,.9); }
/* 当前筛选提示 */
.pc-filter-info { margin-bottom: 16px; padding: 10px 14px; background: rgba(11,93,168,.06); border-left: 3px solid var(--primary); font-size: 13.5px; color: var(--text-light); border-radius: 3px; }
.pc-filter-info b { color: var(--primary); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(11,93,168,.16); border-color: transparent; }
.product-img { height: 185px; background: linear-gradient(135deg, #eaf1f8, #d4e3f2); display: flex; align-items: center; justify-content: center; color: #93b3d0; font-size: 42px; position: relative; overflow: hidden; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat { color: var(--primary); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; }
.product-body h3 { margin: 8px 0; font-size: 17.5px; color: var(--text); }
.product-body p { font-size: 13.5px; color: var(--text-light); flex: 1; }
.product-specs { font-size: 13px; color: var(--text-light); margin-top: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-specs .specs-lab { display: inline-block; margin-right: 6px; padding: 1px 8px; background: rgba(11,93,168,.08); color: var(--primary); border-radius: 3px; font-size: 11.5px; font-weight: 600; }
.product-actions { margin-top: 14px; display: flex; gap: 10px; }
.product-actions .btn { flex: 1; padding: 8px 10px; font-size: 13.5px; border-radius: 4px; text-align: center; white-space: nowrap; }
.btn-line { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-line:hover { background: var(--primary); color: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.service-card { background: #06294d; border-radius: var(--radius); padding: 28px 22px; color: #fff; transition: .25s; }
.service-card:hover { background: var(--primary-dark); transform: translateY(-4px); }
.service-card .ic { font-size: 28px; }
.service-card h3 { margin: 12px 0 8px; font-size: 16.5px; }
.service-card p { font-size: 13px; color: rgba(255,255,255,.68); }

/* ---------- 联系我们 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.contact-card { text-align: center; padding: 34px 18px; border-right: 1px solid var(--line); }
.contact-card:last-child { border-right: 0; }
.contact-card .ic { width: 62px; height: 62px; margin: 0 auto; border: 2px solid var(--primary); border-radius: 50%; color: var(--primary); font-size: 24px; display: flex; align-items: center; justify-content: center; }
.contact-card .lab { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--text); }
.contact-card .val { margin-top: 6px; font-size: 13.5px; color: var(--text-light); word-break: break-all; }
.contact-form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; max-width: 780px; margin: 0 auto; }
.contact-form-card h3 { text-align: center; font-size: 19px; color: var(--text); margin-bottom: 6px; }
.contact-form-card .sub { text-align: center; color: #b2b2b2; font-size: 12.5px; letter-spacing: 2px; margin-bottom: 26px; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group label i { color: #e5484d; font-style: normal; margin-left: 2px; }
.form-group input, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; font-family: inherit; background: #fafbfc; transition: .2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-tip { font-size: 13px; margin-top: 12px; }
.form-tip.ok { color: #1d9e63; } .form-tip.err { color: #e5484d; }

/* ---------- 页脚 ---------- */
.footer { background: #062142; color: rgba(255,255,255,.72); padding: 50px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.1fr; gap: 36px; padding-bottom: 38px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { display: block; padding: 3px 0; font-size: 13.5px; }
.footer a:hover { color: #fff; }
.footer .hotline { font-size: 22px; font-weight: 700; color: #fff; }
.footer .hotline-note { font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer .logo { margin-bottom: 14px; }
.footer .logo-text { color: #fff; }
.footer .logo-text small { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.4); }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(6,33,66,.6); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); max-width: 520px; width: 100%; padding: 34px; position: relative; max-height: 86vh; overflow: auto; }
.modal-close { position: absolute; top: 14px; right: 18px; border: 0; background: none; font-size: 22px; color: #999; }

/* ---------- 产品详情页 ---------- */
.crumb { padding: 16px 0; font-size: 13.5px; color: var(--text-light); }
.crumb a { color: var(--text-light); }
.crumb a:hover { color: var(--primary); }
.detail-wrap { padding-bottom: 60px; }
.detail-top { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; background: #fff; border: 1px solid var(--line); padding: 36px; }
.detail-img { border: 1px solid var(--line); background: linear-gradient(135deg, #eaf1f8, #d4e3f2); display: flex; align-items: center; justify-content: center; font-size: 64px; color: #93b3d0; min-height: 320px; overflow: hidden; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { color: var(--primary); font-size: 26px; margin-bottom: 14px; }
.detail-info .desc { color: var(--text-light); text-align: justify; }
.detail-contact { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 26px; text-align: center; }
.detail-contact .phone-label { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.detail-contact .phone { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.detail-contact .btn { margin-top: 18px; padding: 11px 46px; }
.intro-card { background: #fff; border: 1px solid var(--line); padding: 32px 36px; margin-top: 28px; }
.intro-card .intro-head h2 { color: var(--primary); font-size: 24px; display: inline-block; }
.intro-card .intro-head .en { color: #b2b2b2; font-size: 12.5px; letter-spacing: 2px; margin-left: 12px; }
.intro-block { margin-top: 26px; }
.intro-block h3 { font-size: 17px; color: var(--text); margin-bottom: 10px; padding-left: 10px; border-left: 4px solid var(--primary); }
.intro-block p { color: var(--text-light); }
.intro-block ul { list-style: none; }
.intro-block li { padding: 5px 0; color: var(--text-light); border-bottom: 1px dashed var(--line); }
.not-found { text-align: center; padding: 80px 0; color: var(--text-light); }
.not-found .btn { margin-top: 20px; }
@media (max-width: 900px) { .detail-top { grid-template-columns: 1fr; padding: 22px; } .detail-img { min-height: 240px; } }

/* ---------- 后台管理 ---------- */
body.admin { background: #eef2f7; }
body.admin .topbar, body.admin .header { display: none; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side { width: 230px; background: #062142; color: #fff; padding: 24px 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh; }
.admin-side .logo { padding: 0 22px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; font-size: 17px; }
.admin-side .logo-text { color: #fff; font-size: 17px; }
.admin-side .logo-text small { color: rgba(255,255,255,.5); }
.admin-menu button { display: block; width: 100%; text-align: left; padding: 13px 24px; background: none; border: 0; color: rgba(255,255,255,.75); font-size: 14.5px; transition: .15s; }
.admin-menu button:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-menu button.active { background: var(--primary); color: #fff; }
.admin-main { flex: 1; padding: 30px 34px; max-width: 960px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel h2 { color: #062142; font-size: 21px; margin-bottom: 22px; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
.admin-card h3 { font-size: 15.5px; color: #062142; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-card .form-group label { color: var(--text); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--text-light); font-weight: 600; font-size: 13px; }
.admin-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-danger:hover { background: #c73a3f; }
.btn-save { background: var(--primary); color: #fff; }
.btn-save:hover { background: var(--primary-light); }
.msg-item { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; background: #fafbfc; }
.msg-item.unread { border-left: 4px solid var(--primary); background: #f2f8ff; }
.msg-item .meta { font-size: 12.5px; color: var(--text-light); margin-bottom: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.badge-new { background: var(--primary); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 999px; }
.thumb-upload { display: flex; gap: 14px; align-items: center; }
.thumb-preview { width: 110px; height: 76px; border-radius: 6px; background: #eaf1f8; border: 1px dashed #b9c5d1; display: flex; align-items: center; justify-content: center; color: #93b3d0; font-size: 22px; overflow: hidden; flex-shrink: 0; }
.thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.p-admin-row td { vertical-align: middle; }
.p-admin-thumb { width: 64px; height: 44px; border-radius: 4px; background: #eaf1f8; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #93b3d0; }

/* 登录页 */
.login-box { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #062142, #0b5da8); }
.login-card { background: #fff; border-radius: var(--radius); padding: 40px; width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-card h1 { font-size: 22px; color: #062142; margin-bottom: 6px; }
.login-card .hint { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .topbar-inner { justify-content: center; }
  .topbar .topbar-right { display: none; }
  .nav { position: fixed; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 18px 18px; gap: 4px; display: none; align-items: stretch; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.active::after { display: none; }
  .drop-menu { position: static; transform: none; min-width: 0; border-top: 0; box-shadow: none; background: #f2f6fb; padding: 4px 0 8px; }
  .drop-menu button { color: var(--text); padding: 10px 30px; }
  .drop-menu button:hover { background: #e6edf6; }
  .drop-menu button.active { color: var(--primary); }
  .nav-toggle { display: block; margin-left: auto; }
  .lang-switch { margin-left: 0; justify-content: center; }
  .about-grid, .form-row { grid-template-columns: 1fr; }
  .stats-grid, .why-grid, .services-grid, .cat-cards, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .cat-card:nth-child(2), .contact-card:nth-child(2) { border-right: 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-layout { grid-template-columns: 1fr; }
  .pc-cats { max-height: none; }
  .pc-main .products-grid { grid-template-columns: repeat(2, 1fr); }
  /* 移动端：Banner 高度改固定比例防溢出，缩小与产品区间距 */
  .page-hero { aspect-ratio: 5 / 2; min-height: 0; padding-top: 30px; }
  #products { padding-top: 40px; }
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; }
  .admin-menu { display: flex; overflow-x: auto; }
  .admin-menu button { white-space: nowrap; }
}
@media (max-width: 560px) {
  .products-grid, .stats-grid, .why-grid, .services-grid, .cat-cards, .contact-cards { grid-template-columns: 1fr; }
  .pc-main .products-grid { grid-template-columns: 1fr; }
  .cat-card, .contact-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 54px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp 悬浮入口 ---------- */
.wa-float { position: fixed; right: 22px; bottom: 26px; z-index: 120; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; background: #25d366; color: #fff; border-radius: 999px; box-shadow: 0 10px 24px rgba(37,211,102,.38); font-size: 14px; font-weight: 600; text-decoration: none; transition: .2s; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,211,102,.5); color: #fff; }
.wa-float svg { flex-shrink: 0; }
.wa-foot { color: #25d366 !important; }

/* ---------- 询盘提交回执卡 ---------- */
.receipt { margin-top: 18px; padding: 18px 18px 16px; border: 1px solid rgba(11,93,168,.18); background: #f4f9ff; border-radius: 6px; }
.receipt-head { display: flex; gap: 12px; align-items: flex-start; }
.receipt-ic { width: 30px; height: 30px; border-radius: 50%; background: #11a35a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.receipt-head h4 { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.receipt-head p { font-size: 13.5px; color: var(--text-light); line-height: 1.7; }
.receipt-list { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 8px; }
.receipt-list > div { display: flex; gap: 12px; font-size: 13px; }
.receipt-list dt { min-width: 76px; color: var(--text-light); }
.receipt-list dd { color: var(--text); font-weight: 600; word-break: break-all; }

@media (max-width: 560px) {
  .wa-float { right: 14px; bottom: 16px; padding: 12px; }
  .wa-float-txt { display: none; }
}

/* ---------- 后台：数据概览 ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.dash-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; cursor: pointer; transition: .2s; display: flex; flex-direction: column; gap: 4px; }
.dash-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,93,168,.14); border-color: transparent; }
.dash-ic { font-size: 22px; }
.dash-num { font-size: 30px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.dash-lab { font-size: 13px; color: var(--text-light); }
.dash-msg { border-bottom: 1px dashed var(--line); padding: 10px 0; font-size: 13.5px; color: var(--text); }
.dash-msg:last-child { border-bottom: 0; }
.dash-msg.unread { border-left: 3px solid var(--primary); padding-left: 10px; }
.dash-time { color: var(--text-light); font-size: 12.5px; margin-left: 8px; }
.dash-txt { color: var(--text-light); margin-top: 4px; }
.admin-note { font-size: 13px; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }

/* ---------- 后台：页面内容编辑 ---------- */
.content-row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.content-row:last-child { border-bottom: 0; }
.content-row-service { grid-template-columns: 86px 1fr 1fr; }
.content-row-service .content-desc { grid-column: span 3; }
.content-row .form-group { margin-bottom: 0; }

/* ---------- 后台：留言操作 ---------- */
.msg-actions { margin-left: auto; display: flex; gap: 8px; }
.btn-sm { padding: 3px 12px; font-size: 12.5px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 3px; cursor: pointer; transition: .15s; }
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm.danger:hover { border-color: #d9534f; color: #d9534f; }
.menu-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; background: #e74c3c; color: #fff; font-size: 11px; line-height: 18px; border-radius: 999px; text-align: center; }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .content-row, .content-row-service { grid-template-columns: 1fr; }
  .content-row-service .content-desc { grid-column: auto; }
  .msg-actions { margin-left: 0; }
}

/* ---------- 后台：站点档案 ---------- */
.current-site { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.current-site-name { font-size: 20px; font-weight: 700; color: var(--primary); }
.current-site-id { font-size: 13px; color: var(--text-light); }
.current-site-id code, .admin-table code { background: #f1f5fa; padding: 1px 7px; border-radius: 3px; font-size: 12.5px; color: #4a5f75; }
.admin-table tr.row-active td { background: rgba(11,93,168,.045); }
.tag-current { display: inline-block; padding: 1px 9px; background: rgba(11,93,168,.1); color: var(--primary); border-radius: 999px; font-size: 12px; font-weight: 600; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 本地存储占用条 */
.storage-box { margin-top: 18px; padding: 14px 16px; background: #f7fafd; border: 1px solid var(--line); border-radius: var(--radius); }
.storage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.storage-head b { color: var(--text); font-size: 13.5px; }
.storage-track { height: 8px; background: #e6edf5; border-radius: 999px; overflow: hidden; }
.storage-track i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .35s ease, background .35s ease; }
.storage-track i.warn { background: #e6a23c; }
.storage-track i.danger { background: #d9363e; }
.storage-note { margin-top: 9px; font-size: 12px; line-height: 1.75; color: var(--text-light); }
@media (max-width: 640px) {
  .storage-head { flex-direction: column; gap: 4px; }
}

/* 站名过长时省略，避免挤压导航 */
.logo-text { max-width: 300px; overflow: hidden; }
.logo-text > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text small { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
