/* ============ 基础 ============ */
:root {
  --primary: #145a44;
  --primary-dark: #0d4232;
  --primary-light: #e8f2ee;
  --gold: #c8a24b;
  --gold-light: #f3e9d3;
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #23221f;
  --text-soft: #6b6860;
  --line: #e7e2d8;
  --danger: #b3362b;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 40, 34, 0.08);
  --shadow-sm: 0 2px 10px rgba(20, 40, 34, 0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* ============ 启动页 ============ */
.splash {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  background: linear-gradient(150deg, #0d4232, #145a44 60%, #1a6b50);
  z-index: 9999; color: #fff; transition: opacity .4s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash-logo { font-size: 34px; font-weight: 700; letter-spacing: 2px; }
.splash-logo span { color: var(--gold); }
.splash-loading { width: 120px; height: 2px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; position: relative; }
.splash-loading::after { content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 100%; background: var(--gold); animation: slide 1s infinite; }
@keyframes slide { to { left: 120%; } }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 28px; }
.nav-logo { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--primary-dark); white-space: nowrap; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--text-soft);
  transition: all .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-user { display: flex; align-items: center; gap: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.nav-burger { display: none; font-size: 24px; background: none; color: var(--primary-dark); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; transition: all .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b08c3c; }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-outline { background: #fff; color: var(--text-soft); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fbeae8; color: var(--danger); }
.btn-danger:hover { background: #f5d5d1; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============ 布局 ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page { min-height: 60vh; padding: 34px 0 70px; }
.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 30px; font-weight: 800; color: var(--primary-dark); }
.section-sub { color: var(--text-soft); margin-top: 10px; font-size: 16px; }
.section-title .en { display: block; font-size: 13px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }

/* Hero */
.hero { position: relative; background: url('bg/hero.jpg?sharecode=WMLYXJLMEH') center/cover no-repeat; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.42) 100%); }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 90px 20px 110px; }
.hero-tag { display: inline-block; background: rgba(200,162,75,.2); border: 1px solid rgba(200,162,75,.5); color: var(--gold); padding: 6px 16px; border-radius: 20px; font-size: 13px; letter-spacing: 2px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero h1 { font-size: 46px; font-weight: 800; margin: 22px 0 16px; line-height: 1.2; max-width: 720px; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.hero h1 .gold { color: var(--gold); text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.hero p { font-size: 18px; color: rgba(255,255,255,.9); max-width: 640px; margin-bottom: 30px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stat { }
.hero-stat b { font-size: 34px; color: var(--gold); font-weight: 800; display: block; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-stat span { font-size: 14px; color: #fff; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.85); }

/* 分类卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cat-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .25s, box-shadow .25s; border: 1px solid var(--line); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-thumb { height: 170px; background: linear-gradient(135deg, var(--primary-light), var(--gold-light)); display: flex; align-items: center; justify-content: center; font-size: 44px; }
.cat-body { padding: 18px 20px 20px; }
.cat-body h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 6px; }
.cat-body p { font-size: 14px; color: var(--text-soft); }

/* 优势 */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--gold); }
.why-card .num { font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.why-card h3 { font-size: 18px; color: var(--primary-dark); margin: 10px 0 8px; }
.why-card p { font-size: 14px; color: var(--text-soft); }

/* 公司介绍 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 30px; color: var(--primary-dark); font-weight: 800; margin-bottom: 18px; }
.about-text p { color: var(--text-soft); margin-bottom: 14px; font-size: 15.5px; }
.about-text .en-text { font-size: 13.5px; font-style: italic; opacity: .85; margin-top: 6px; }
.en-text { font-size: 14px; color: var(--text-soft); font-style: italic; line-height: 1.8; }
.about-visual { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); border-radius: 20px; padding: 40px; color: #fff; position: relative; overflow: hidden; }
.about-visual::after { content: "面 料"; position: absolute; right: -20px; bottom: -30px; font-size: 120px; color: rgba(255,255,255,.06); font-weight: 900; }
.about-visual h3 { font-size: 22px; margin-bottom: 14px; }
.about-visual ul { list-style: none; display: grid; gap: 10px; }
.about-visual li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.9); }
.about-visual li::before { content: "◆"; color: var(--gold); font-size: 12px; margin-top: 4px; }

/* 产品列表 */
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box input { width: 100%; padding: 11px 16px 11px 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search-box::before { content: "⌕"; position: absolute; left: 14px; top: 9px; font-size: 20px; color: var(--text-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 15px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--text-soft); transition: all .2s; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip:hover { border-color: var(--primary); color: var(--primary); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); cursor: pointer; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-thumb { height: 210px; position: relative; background: var(--primary-light); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 50px; color: var(--primary); }
.badge { display: inline-block; background: var(--gold); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 6px; font-weight: 600; }
.badge-new { background: var(--primary); }
.product-thumb .badge { position: absolute; top: 12px; left: 12px; }
.product-thumb .badge-new { left: auto; right: 12px; }
.badge-off { background: #9a9a92; }

/* 产品中心分区标题（在售 / 下架） */
.region-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; font-size: 19px; font-weight: 700; color: var(--primary-dark); border-left: 4px solid var(--primary); padding-left: 12px; }
.region-title:first-child { margin-top: 4px; }
.region-title.region-off { border-left-color: #b8b8b0; color: #7a7a72; }
.region-count { font-size: 13px; font-weight: 600; color: #fff; background: var(--primary); border-radius: 999px; padding: 1px 9px; }
.region-title.region-off .region-count { background: #b8b8b0; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 16.5px; color: var(--text); line-height: 1.4; }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-head h3 { margin: 0; flex: 1; min-width: 0; }
.product-body .cat { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.product-body .desc { font-size: 13.5px; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.product-foot .price { color: var(--primary); font-weight: 700; font-size: 15px; }
.wish-btn { width: 34px; height: 34px; border-radius: 50%; background: #f3f0ea; display: flex; align-items: center; justify-content: center; font-size: 17px; transition: all .2s; color: var(--text-soft); }
.wish-btn:hover { background: #fbeae8; color: var(--danger); }
.wish-btn.on { background: #fbeae8; color: var(--danger); }

/* 产品详情 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.detail-gallery .main-img { border-radius: var(--radius); overflow: hidden; background: var(--primary-light); height: 420px; position: relative; cursor: zoom-in; }
.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .main-img .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 90px; color: var(--primary); }
.zoom-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; padding: 5px 12px; border-radius: 20px; pointer-events: none; white-space: nowrap; }
#img-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(0,0,0,.94); }
#img-lightbox.open { display: block; }
.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; }
.lb-stage img { width: 100%; max-width: 100%; display: block; cursor: zoom-in; transform-origin: center center; will-change: transform; touch-action: none; -webkit-user-select: none; user-select: none; }
.lb-close { position: absolute; top: 16px; right: 18px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-download { position: absolute; top: 16px; left: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 22px; background: var(--gold, #c8a35a); color: #1a1a1a; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.lb-download:hover { filter: brightness(1.06); }
.lb-tip { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 12.5px; z-index: 2; pointer-events: none; text-align: center; padding: 0 12px; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.detail-thumbs img.active { border-color: var(--gold); }
/* 上一个/下一个 移到主图左右两侧 */
.detail-gallery { display: flex; align-items: center; gap: 12px; }
.gallery-center { flex: 1; min-width: 0; }
.side-nav { flex: 0 0 auto; width: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
.side-nav:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.side-nav .sn-arrow { font-size: 26px; line-height: 1; color: var(--primary); font-weight: 700; }
.side-nav .sn-thumb { width: 50px; height: 50px; }
.side-nav .sn-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.side-nav .sn-label { font-size: 11px; color: var(--text-soft); }
.side-nav.sn-empty { visibility: hidden; }
.detail-info h1 { font-size: 28px; color: var(--primary-dark); margin-bottom: 6px; }
.detail-info .cat { color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.detail-info .price { font-size: 22px; color: var(--primary); font-weight: 700; margin-bottom: 18px; }
.spec-line { font-size: 14px; color: var(--text-soft); margin: 6px 0 18px; padding: 10px 14px; background: var(--primary-light, #f4f1ea); border-radius: 10px; border: 1px solid var(--line); }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table td:first-child { color: var(--text-soft); width: 110px; }

/* 详情页 上一个/下一个 产品导航 */
.detail-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-nav-card { display: inline-flex; flex-direction: column; gap: 8px; max-width: 46%; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
.detail-nav-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.detail-nav-card.dn-right { margin-left: auto; text-align: right; }
.detail-nav-card.dn-empty { visibility: hidden; }
.detail-nav-card .dn-label { font-size: 12.5px; color: var(--text-soft); }
.detail-nav-card .dn-body { display: flex; align-items: center; gap: 10px; }
.detail-nav-card.dn-right .dn-body { flex-direction: row-reverse; }
.detail-nav-card .dn-body img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.detail-nav-card .dn-name { font-weight: 600; color: var(--text); font-size: 15px; }
@media (max-width: 640px) { .detail-nav-card { max-width: 60%; padding: 10px 12px; } .detail-nav-card .dn-body img { width: 42px; height: 42px; } }
.detail-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* 心愿单 */
.empty { text-align: center; padding: 70px 20px; color: var(--text-soft); }
.empty .icon { font-size: 60px; margin-bottom: 16px; }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }

/* ============ 登录 ============ */
.auth-wrap { max-width: 430px; margin: 40px auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 36px 34px; }
.auth-tabs { display: flex; gap: 4px; background: #f3f0ea; border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 10px; text-align: center; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-soft); }
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.social-login { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.social-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; transition: all .2s; }
.social-btn:hover { border-color: var(--primary); }
.social-btn .ico { font-size: 22px; }
.social-btn.wechat { background: #07c160; border-color: #07c160; color: #fff; }
.social-btn.wechat:hover { background: #06a852; }
.social-btn.wb { background: var(--primary); border-color: var(--primary); color: #fff; }
.divider { text-align: center; color: var(--text-soft); font-size: 13px; margin: 18px 0; position: relative; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--line); }
.divider::before { left: 0; } .divider::after { right: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--text-soft); margin-bottom: 6px; }
.field input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,90,68,.1); }
.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; }
.field .err { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-soft); margin-top: 16px; }
.auth-foot a { color: var(--primary); font-weight: 600; }

/* ============ 后台 ============ */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.admin-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; position: sticky; top: 90px; }
.admin-side a { display: block; padding: 11px 14px; border-radius: 9px; font-size: 14.5px; color: var(--text-soft); margin-bottom: 4px; }
.admin-side a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.admin-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; min-height: 500px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg); border-radius: 12px; padding: 20px; border: 1px solid var(--line); }
.stat-card .v { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-card .l { font-size: 13px; color: var(--text-soft); margin-top: 4px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 10px 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 44px; background: var(--primary); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar-col .lb { font-size: 11px; color: var(--text-soft); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 12px 10px; border-bottom: 2px solid var(--line); color: var(--text-soft); font-weight: 600; white-space: nowrap; }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: #faf9f6; }
.admin-table .thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--primary-light); }
.upload-zone { border: 2px dashed var(--line); border-radius: 14px; padding: 40px 20px; text-align: center; color: var(--text-soft); cursor: pointer; transition: all .2s; background: #fcfbf8; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--primary); background: var(--primary-light); }
.upload-zone .big { font-size: 40px; margin-bottom: 8px; }
.upload-zone .hint { font-size: 13px; margin-top: 6px; }
.tab-panel { display: none; }
.tab-panel.show { display: block; }

/* ============ 模态框 ============ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s; }
.modal { background: #fff; border-radius: 18px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 28px; animation: pop .22s; }
.modal h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 18px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.share-item { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 600; transition: all .2s; }
.share-item:hover { border-color: var(--primary); background: var(--primary-light); }
.share-item .ico { font-size: 24px; }
.share-item.wechat { background: #eafaf1; border-color: #b9e8cd; color: #06a852; }
.share-item.whatsapp { background: #e8f8ee; border-color: #bce8cd; color: #25d366; }
.qr-box { text-align: center; margin: 14px 0; }
.qr-box img { width: 200px; height: 200px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; }

/* 表单（产品编辑） */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 13.5px; color: var(--text-soft); margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; }
.form-grid textarea { min-height: 90px; resize: vertical; }
.img-preview-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.img-preview { position: relative; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .rm { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* 页脚 */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.85); padding: 60px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer .brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer .brand span { color: var(--gold); }
.footer p, .footer a { font-size: 14px; color: rgba(255,255,255,.75); line-height: 2; }
.footer a:hover { color: var(--gold); }
.footer .contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); background: #23221f; color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14.5px; z-index: 2000; opacity: 0; pointer-events: none; transition: all .3s; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .about-grid, .detail-grid, .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; flex-wrap: wrap; }
  .admin-side a { margin-bottom: 0; }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-actions .btn span { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-inner { padding: 60px 20px 80px; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .share-row { grid-template-columns: 1fr; }
}

/* ============ 子公司业务独立页 ============ */
.subsidiary-list { display: flex; flex-direction: column; gap: 22px; }
.subsidiary-card {
  position: relative; overflow: hidden;
  display: flex; gap: 26px; align-items: flex-start;
  background-color: var(--surface); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform .25s ease, box-shadow .25s ease;
}
.subsidiary-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.52) 100%); border-radius: inherit; }
.subsidiary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.subsidiary-list .subsidiary-card:first-child { background-position: 50% 80%; }
.subsidiary-index {
  position: relative; z-index: 1;
  font-size: 40px; font-weight: 800; line-height: 1;
  color: var(--gold); opacity: .85; letter-spacing: -1px;
  font-family: Georgia, "Times New Roman", serif;
  padding-top: 4px; user-select: none; text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.subsidiary-body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.subsidiary-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: #fff; background: rgba(200,162,75,.4);
  border-radius: 999px; padding: 4px 14px; margin-bottom: 12px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.subsidiary-body h3 { font-size: 21px; color: #fff; margin-bottom: 4px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.subsidiary-en { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 12px; font-style: italic; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.subsidiary-body > p { font-size: 15px; color: rgba(255,255,255,.9); margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.subsidiary-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.subsidiary-points li {
  font-size: 14px; color: #fff; font-weight: 600;
  padding-left: 20px; position: relative;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.subsidiary-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}
.subsidiary-cta {
  margin-top: 34px; text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius); padding: 34px 24px; color: #fff;
}
.subsidiary-cta p { font-size: 16px; margin-bottom: 18px; opacity: .92; }
.subsidiary-cta .btn { margin: 6px; }
@media (max-width: 640px) {
  .subsidiary-card { flex-direction: column; gap: 14px; padding: 24px 20px; }
  .subsidiary-index { font-size: 30px; }
}

/* ============ 后台列表内 置顶/新品 标签按钮 ============ */
.tag-btn {
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  margin-left: 6px; cursor: pointer; vertical-align: middle;
  border: 1px dashed var(--line); background: #fff; color: var(--text-soft);
  transition: all .15s ease; font-family: inherit;
}
.tag-btn:hover { border-color: var(--gold); color: var(--gold); }
.tag-btn.on-gold { background: var(--gold); border: 1px solid var(--gold); color: #fff; }
.tag-btn.on-gold:hover { background: #b08f3d; color: #fff; }
.tag-btn.on-green { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
.tag-btn.on-green:hover { background: var(--primary-dark); color: #fff; }

/* ===== 中英双语切换 ===== */
/* 默认同时存在于 DOM 中的 .i18n-zh / .i18n-en，按 body 语言类显隐 */
body.lang-zh .i18n-en { display: none !important; }
body.lang-en .i18n-zh { display: none !important; }

/* 醒目语言切换按钮（导航栏右侧） */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--gold); background: #fff;
  color: var(--primary-dark); font-weight: 800; font-size: 14px; line-height: 1;
  cursor: pointer; user-select: none; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(176,140,60,.18); transition: all .2s ease;
}
.lang-switch:hover { background: var(--gold); color: #fff; box-shadow: 0 4px 14px rgba(176,140,60,.34); }
.lang-switch .ls-zh, .lang-switch .ls-en { transition: all .2s; padding: 2px 4px; border-radius: 999px; }
.lang-switch .ls-sep { opacity: .45; font-weight: 400; }
.lang-switch.is-en .ls-zh { opacity: .5; }
.lang-switch.is-en .ls-en { background: var(--gold); color: #fff; padding: 2px 7px; }
.lang-switch:not(.is-en) .ls-zh { background: var(--gold); color: #fff; padding: 2px 7px; }
.lang-switch:not(.is-en) .ls-en { opacity: .5; }
@media (max-width: 760px) {
  .lang-switch { padding: 6px 11px; font-size: 13px; }
}
