/* ============================================================
   Duoneng / 稳妥科技 — 企业网站样式
   ============================================================ */
:root {
  --primary: #0b3d91;
  --primary-dark: #082c6b;
  --primary-light: #1e5aa8;
  --accent: #ffb400;
  --accent-dark: #e09e00;
  --dark: #101828;
  --gray-600: #475467;
  --gray-500: #667085;
  --gray-300: #d0d5dd;
  --gray-100: #f2f4f7;
  --bg: #f6f8fb;
  --white: #ffffff;
  --danger: #d92d20;
  --success: #079455;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* 语言切换：只显示当前语言内容 */
.only-en { display: none; }
.lang-en .only-zh { display: none; }
.lang-en .only-en { display: block; }
.lang-en .only-en.inline { display: inline; }
.lang-en .only-en.flex { display: flex; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--dark);
  color: #cfd8ea;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cfd8ea; }
.topbar a:hover { color: var(--accent); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.lang-toggle {
  background: rgba(255, 255, 255, .12);
  color: #fff; border: none;
  padding: 4px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.lang-toggle:hover { background: var(--accent); color: var(--dark); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 46px; height: 46px; border-radius: 10px; }
.logo-text .zh { font-size: 19px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.logo-text .en { font-size: 11.5px; color: var(--gray-500); letter-spacing: .4px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--gray-600);
  transition: all .18s;
}
.nav-links a:hover { color: var(--primary); background: var(--gray-100); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .lang-toggle { background: var(--primary); }
.nav-actions .lang-toggle:hover { background: var(--primary-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 15px; font-weight: 600;
  transition: all .18s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--gray-100); }
.btn-danger { background: #fee4e2; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }

/* cart button */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--danger); color: #fff;
  min-width: 20px; height: 20px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #082c6b 0%, var(--primary) 45%, #1e5aa8 100%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 180, 0, .22), transparent 32%),
    radial-gradient(circle at 12% 82%, rgba(30, 90, 168, .55), transparent 40%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center;
  padding: 84px 0 90px; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px 16px; border-radius: 999px;
  font-size: 13.5px; margin-bottom: 20px;
}
.hero h1 { font-size: 46px; line-height: 1.22; font-weight: 800; letter-spacing: .5px; }
.hero h1 .accent { color: var(--accent); }
.hero .slogan { margin-top: 16px; font-size: 18px; color: #d7e1f5; font-weight: 500; letter-spacing: 2px; }
.hero p.lead { margin-top: 18px; font-size: 16px; color: #c3d2ee; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 30px; font-weight: 800; color: var(--accent); }
.hero-stats .stat .lbl { font-size: 13.5px; color: #b9c8e8; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px; padding: 28px; width: 100%; max-width: 420px;
  backdrop-filter: blur(8px);
}
.hero-card h3 { font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.hero-card ul { display: flex; flex-direction: column; gap: 12px; }
.hero-card li { display: flex; gap: 10px; font-size: 14.5px; color: #dbe5f8; align-items: flex-start; }
.hero-card li b { color: #fff; }
.hero-card .mark { color: var(--accent); font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-head .tag {
  display: inline-block; background: #e8effc; color: var(--primary);
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: 34px; font-weight: 800; color: var(--dark); }
.section-head h2 .accent { color: var(--accent); }
.section-head p { margin-top: 12px; color: var(--gray-500); font-size: 16px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
}
.about-card .big { font-size: 64px; font-weight: 800; color: var(--primary); line-height: 1; }
.about-card .big span { color: var(--accent); }
.about-card .muted { color: var(--gray-500); font-size: 14px; }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.about-feat {
  background: var(--gray-100); border-radius: 12px; padding: 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.about-feat .ico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.about-feat b { font-size: 14.5px; display: block; }
.about-feat span { font-size: 13px; color: var(--gray-500); }
.about-text p { margin-bottom: 16px; color: var(--gray-600); font-size: 15.5px; text-align: justify; }
.about-text p strong { color: var(--primary); }

/* ---------- Core business ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.biz-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
  transition: transform .2s, box-shadow .2s; border-top: 4px solid var(--primary);
}
.biz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.biz-card .num {
  font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 1px;
}
.biz-card h3 { font-size: 19px; margin: 6px 0 10px; }
.biz-card p { font-size: 14px; color: var(--gray-500); }
.biz-card .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.biz-card .tag-row span {
  background: var(--gray-100); color: var(--gray-600);
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
}

/* ---------- Products ---------- */
.products-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tabs button {
  border: 1.5px solid var(--gray-300); background: #fff; color: var(--gray-600);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: all .18s;
}
.filter-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.filter-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--gray-300); border-radius: 999px;
  padding: 8px 16px; min-width: 260px;
}
.search-box input { border: none; outline: none; font-size: 14.5px; width: 100%; background: transparent; }
.search-box .ico { color: var(--gray-500); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; aspect-ratio: 4/3; background: var(--gray-100); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .flag {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--dark);
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.product-img .no-img {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 14px;
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-cat { font-size: 12px; color: var(--primary); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.product-name { font-size: 16.5px; font-weight: 700; line-height: 1.35; min-height: 44px; }
.product-desc {
  font-size: 13px; color: var(--gray-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { font-size: 20px; font-weight: 800; color: var(--primary); }
.price .cur { font-size: 13px; font-weight: 700; }
.price.poa { color: var(--accent-dark); font-size: 16px; }
.price small { font-size: 12.5px; color: var(--gray-500); font-weight: 500; }
.qty-box {
  display: flex; align-items: center; gap: 2px;
  border: 1.5px solid var(--gray-300); border-radius: 8px; overflow: hidden;
}
.qty-box button {
  width: 28px; height: 32px; border: none; background: var(--gray-100);
  font-size: 16px; font-weight: 700; color: var(--gray-600);
}
.qty-box button:hover { background: var(--primary); color: #fff; }
.qty-box input {
  width: 40px; height: 32px; border: none; text-align: center;
  font-size: 14px; font-weight: 600; outline: none;
}
.product-card .btn { width: 100%; margin-top: 10px; }
.empty-tip {
  grid-column: 1 / -1; text-align: center; padding: 60px 0;
  color: var(--gray-500); font-size: 16px;
}

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.adv-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 20px; text-align: center; transition: transform .2s;
}
.adv-card:hover { transform: translateY(-5px); }
.adv-card .ico {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.adv-card h3 { font-size: 17px; margin-bottom: 8px; }
.adv-card p { font-size: 13.5px; color: var(--gray-500); }

/* ---------- Partners ---------- */
.partner-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.partner-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partner-chip {
  background: var(--gray-100); border: 1px solid var(--gray-300);
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  color: var(--gray-600); transition: all .18s;
}
.partner-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.partner-note { text-align: center; color: var(--gray-500); font-size: 14px; margin-top: 20px; }

/* ---------- Development ---------- */
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dev-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; border-left: 5px solid var(--accent);
}
.dev-card .when {
  display: inline-block; background: #fff4d6; color: #92600a;
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.dev-card h3 { font-size: 21px; margin-bottom: 14px; }
.dev-card ul { display: flex; flex-direction: column; gap: 10px; }
.dev-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--gray-600); }
.dev-card li::before { content: "◆"; color: var(--accent); font-size: 12px; margin-top: 3px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-info-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px;
}
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--gray-300); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ico {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px;
  background: #e8effc; color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-item b { display: block; font-size: 14px; color: var(--gray-500); font-weight: 600; }
.contact-item a, .contact-item span { font-size: 15.5px; font-weight: 600; }
.contact-item a:hover { color: var(--primary); }
.contact-form {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--gray-600); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-300); border-radius: 10px;
  font-size: 14.5px; outline: none; transition: border .18s;
  background: #fff; color: var(--dark);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: #b9c6dd; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-grid p { font-size: 14px; line-height: 1.8; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0; text-align: center; font-size: 13px;
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .55);
  opacity: 0; visibility: hidden; transition: all .25s; z-index: 1000;
}
.overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 430px; max-width: 94vw;
  background: #fff; z-index: 1001;
  transform: translateX(105%); transition: transform .3s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.show { transform: translateX(0); }
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
}
.cart-head h3 { font-size: 20px; }
.cart-close {
  width: 36px; height: 36px; border-radius: 10px; border: none;
  background: var(--gray-100); font-size: 18px; color: var(--gray-600);
}
.cart-close:hover { background: #fee4e2; color: var(--danger); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cart-item img { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; background: var(--gray-100); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .nm { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.cart-item-info .pr { font-size: 15px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.cart-item-info .pr.poa { color: var(--accent-dark); font-size: 13px; }
.cart-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-remove { border: none; background: none; color: var(--gray-500); font-size: 13px; }
.cart-remove:hover { color: var(--danger); }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--gray-500); }
.cart-empty .big { font-size: 44px; margin-bottom: 12px; }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--gray-100); background: #fafbfc; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.cart-total .val { color: var(--primary); font-size: 22px; }
.cart-total .val.poa { color: var(--accent-dark); font-size: 16px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1100;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(16, 24, 40, .55);
}
.modal.show { display: flex; }
.modal .modal-box {
  background: #fff; border-radius: 18px; width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto; padding: 30px; box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal .sub { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }
.order-summary { background: var(--gray-100); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.order-summary .row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; color: var(--gray-600); }
.order-summary .row.total { font-weight: 800; color: var(--dark); font-size: 15px; border-top: 1px dashed var(--gray-300); margin-top: 6px; padding-top: 8px; }

/* 付款方式选择 */
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-opt {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--gray-300); border-radius: 12px;
  padding: 13px 16px; cursor: pointer; transition: all .18s; background: #fff;
}
.pay-opt:hover { border-color: var(--primary); }
.pay-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: 0 0 18px; }
.pay-opt b { display: block; font-size: 14.5px; }
.pay-opt small { color: var(--gray-500); font-size: 12.5px; line-height: 1.5; display: block; margin-top: 2px; }
.pay-opt.disabled { opacity: .5; cursor: not-allowed; background: var(--gray-100); }
.pay-note { font-size: 12.5px; color: var(--accent-dark); margin-top: 8px; display: none; }
.pay-note.show { display: block; }
.pay-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pay-badge.paid { background: #d1fadf; color: #067647; }
.pay-badge.unpaid { background: #fef3c7; color: #92400e; }
.pay-badge.pending { background: #e0f2fe; color: #0369a1; }
.pay-badge.failed { background: #fee4e2; color: #b42318; }
.success-ico {
  width: 72px; height: 72px; border-radius: 50%;
  background: #d1fadf; color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 18px;
}
.success-ico.pending { background: #e0f2fe; color: #0369a1; }
.success-ico.warn { background: #fef3c7; color: #92400e; }
.success-box { text-align: center; }
.success-box h3 { font-size: 24px; }
.success-box p { color: var(--gray-500); margin: 10px 0 8px; }
.success-box .order-no { font-size: 18px; font-weight: 800; color: var(--primary); }

/* ============================================================
   商品详情页 / Product detail
   ============================================================ */
.breadcrumb { font-size: 13.5px; color: var(--gray-500); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gray-600); }

.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pd-media {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; aspect-ratio: 4/3;
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }

.pd-info { min-width: 0; }
.pd-cat { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .5px; margin-bottom: 8px; }
.flag-inline {
  display: inline-block; background: var(--accent); color: var(--dark);
  font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; margin-left: 8px;
}
.pd-name { font-size: 30px; font-weight: 800; line-height: 1.28; color: var(--dark); }
.pd-sub { color: var(--gray-500); font-size: 15px; margin-top: 4px; margin-bottom: 16px; }
.pd-price {
  font-size: 32px; font-weight: 800; color: var(--primary);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.pd-price .cur { font-size: 18px; font-weight: 700; }
.pd-price small { font-size: 14px; color: var(--gray-500); font-weight: 500; }
.pd-price .poa { font-size: 22px; color: var(--accent-dark); }
.pd-stock { font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.pd-stock.ok { color: var(--success); }
.pd-stock.no { color: var(--danger); }
.pd-desc { color: var(--gray-600); font-size: 15.5px; line-height: 1.75; margin-bottom: 22px; }

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.pd-actions .btn-lg { flex: 1 1 200px; }
.pd-usp {
  background: var(--gray-100); border-radius: 12px; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.pd-usp li { font-size: 14px; color: var(--gray-600); }

.pd-related { margin-top: 64px; }
.pd-related h2 { font-size: 22px; margin-bottom: 20px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rel-card {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  overflow: hidden; transition: transform .2s, box-shadow .2s; display: block;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rel-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--gray-100); }
.rel-card div { padding: 12px 14px; }
.rel-card b { font-size: 14px; display: block; line-height: 1.4; }
.rel-card small { font-size: 13px; color: var(--primary); font-weight: 700; }

/* 商品卡片可点击进入详情页 */
.product-img a { display: block; height: 100%; }
.product-name a { color: inherit; }
.product-name a:hover { color: var(--primary); }
.view-detail { display: inline-block; font-size: 12.5px; color: var(--primary); font-weight: 600; }
.view-detail:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; gap: 26px; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-name { font-size: 24px; }
}

/* ============================================================
   FAQ / 常见问题
   ============================================================ */
.faq-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 0; overflow: hidden; border-left: 4px solid var(--primary);
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-size: 16px; font-weight: 700; color: var(--dark);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: background .18s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--gray-100); }
.faq-item summary::after {
  content: "＋"; color: var(--primary); font-size: 18px; font-weight: 700; flex: 0 0 auto;
}
.faq-item[open] summary { background: #f8fafd; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 18px; color: var(--gray-600); font-size: 15px; line-height: 1.75; }
.faq-item strong { color: var(--dark); }

/* ---------- Back to top ---------- */.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 800;
  width: 46px; height: 46px; border-radius: 12px; border: none;
  background: var(--primary); color: #fff; font-size: 20px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .25s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--primary-dark); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 84px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--dark); color: #fff; padding: 12px 20px;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: slideIn .3s ease;
  display: flex; align-items: center; gap: 8px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(3, 1fr); }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-grid, .about-grid, .contact-grid, .dev-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .navbar .nav-links { display: none; }
  .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

/* ============================================================
   Admin panel styles
   ============================================================ */
.admin-body { background: #eef1f6; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 240px; flex: 0 0 240px; background: var(--dark);
  color: #b9c6dd; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-side .brand { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; gap: 10px; align-items: center; }
.admin-side .brand img { width: 38px; height: 38px; border-radius: 8px; }
.admin-side .brand b { color: #fff; font-size: 15px; display: block; }
.admin-side .brand small { font-size: 11px; }
.admin-menu { flex: 1; padding: 14px 10px; }
.admin-menu button {
  width: 100%; text-align: left; background: none; border: none;
  color: #b9c6dd; padding: 11px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; margin-bottom: 4px;
  display: flex; align-items: center; gap: 10px; transition: all .15s;
}
.admin-menu button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu button.active { background: var(--primary); color: #fff; }
.admin-side .side-foot { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 8px; }
.admin-main { flex: 1; padding: 28px 32px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-top h2 { font-size: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-card .lbl { color: var(--gray-500); font-size: 14px; margin-top: 4px; }

.admin-panel { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.admin-panel .panel-head {
  padding: 18px 22px; border-bottom: 1px solid var(--gray-100);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.admin-panel .panel-head h3 { font-size: 18px; }
.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; padding: 12px 18px; background: var(--gray-100);
  color: var(--gray-600); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.admin-table td { padding: 12px 18px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.admin-table tr:hover td { background: #fafbfc; }
.admin-table .thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--gray-100); }
.admin-table .name-cell b { font-size: 14px; display: block; }
.admin-table .name-cell small { color: var(--gray-500); font-size: 12.5px; }
.admin-table .actions { display: flex; gap: 6px; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.new { background: #e0f2fe; color: #0369a1; }
.badge.processing { background: #fef3c7; color: #92400e; }
.badge.done { background: #d1fadf; color: #067647; }
.badge.cancelled { background: #fee4e2; color: #b42318; }
.badge.on { background: #d1fadf; color: #067647; }
.badge.off { background: #fee4e2; color: #b42318; }

.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #082c6b, var(--primary));
  padding: 20px;
}
.login-box {
  background: #fff; border-radius: 18px; padding: 40px;
  width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); text-align: center;
}
.login-box img { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 14px; }
.login-box h2 { margin-bottom: 6px; }
.login-box .sub { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }
.login-box .form-group { text-align: left; }
.login-box .btn { width: 100%; margin-top: 6px; }

.image-upload {
  display: flex; gap: 16px; align-items: center; margin-bottom: 14px;
}
.image-upload .preview {
  width: 120px; height: 90px; border-radius: 10px; object-fit: cover;
  background: var(--gray-100); border: 1.5px dashed var(--gray-300);
}
.image-upload .ctrl { flex: 1; }
.hidden-file { display: none; }
.modal-lg { max-width: 760px !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mt-16 { margin-top: 16px; }
.mt-8 { margin-top: 8px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-item-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; color: var(--gray-600); }
.order-detail-box { background: var(--gray-100); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.order-detail-box .row { display: flex; gap: 10px; padding: 3px 0; font-size: 14px; }
.order-detail-box .row b { min-width: 90px; color: var(--gray-500); font-weight: 600; }
.admin-tip { background: #fff4d6; color: #92600a; border-radius: 10px; padding: 10px 16px; font-size: 13.5px; margin-bottom: 18px; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .admin-side { position: fixed; left: 0; top: 0; z-index: 1500; transform: translateX(-100%); transition: transform .25s; }
  .admin-side.open { transform: translateX(0); }
  .menu-toggle { display: inline-flex; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .admin-main { padding: 18px; }
}
