/* ============================================================
   iBelieve Technology — 新站样式
   风格延续老站：金黄色强调 #f4bf1e / 浅色背景 / 深灰文字
   ============================================================ */
:root {
  --gold: #f4bf1e;
  --gold-dark: #e0af1d;
  --gold-deep: #c69714;
  --ink: #333333;
  --ink-soft: #555;
  --muted: #8a8a8a;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-gold: #fdf8e9;
  --green: #2e8b57;
  --red: #d64541;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .07);
  --shadow-lg: 0 6px 24px rgba(0, 0, 0, .12);
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.section { padding: 2.2rem 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.2rem; }
.mono { font-family: Consolas, Menlo, monospace; font-size: .9em; }

/* ---------- 顶部栏 ---------- */
.topbar { background: #2b2b2b; color: #ddd; font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #ddd; margin-left: 14px; }
.topbar a:hover { color: var(--gold); text-decoration: none; }
.lang-wrap { display: inline-flex; align-items: center; gap: 4px; }
.lang-globe { font-size: .95rem; line-height: 1; }
.lang-select { background: #3a3a3a; color: #eee; border: 1px solid #555; border-radius: 4px; padding: 3px 6px; font-size: .78rem; cursor: pointer; outline: none; max-width: 120px; }
.lang-select:hover { border-color: var(--gold); }
.lang-select option { background: #2b2b2b; color: #eee; }
.header-main { display: flex; align-items: center; gap: 24px; padding: 14px 16px; flex-wrap: wrap; }
.logo img { height: 52px; width: auto; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { padding: 8px 14px; font-weight: 600; color: var(--ink); border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-deep); border-bottom-color: var(--gold); text-decoration: none; }
.header-search { margin-left: auto; display: flex; }
.header-search input { border: 1px solid var(--line); border-right: 0; padding: 8px 12px; width: 230px; max-width: 44vw; border-radius: var(--radius) 0 0 var(--radius); outline: none; }
.header-search input:focus { border-color: var(--gold); }
.header-search button { background: var(--gold); border: 0; padding: 8px 16px; font-weight: 700; cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; }
.header-search button:hover { background: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.4rem; padding: 2px 10px; cursor: pointer; }
.cat-nav { background: var(--gold); }
.cat-nav-inner { display: flex; gap: 2px; overflow-x: auto; }
.cat-nav a { padding: 9px 13px; font-size: .86rem; font-weight: 600; color: #4a3a05; white-space: nowrap; }
.cat-nav a:hover { background: var(--gold-dark); text-decoration: none; }
.cat-nav .more { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #fdf8e9 0%, #fff 55%, #fdf8e9 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 3.2rem 16px 3.4rem; max-width: 760px; }
.hero h1 { font-size: 2rem; margin-bottom: .5rem; }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 12px; margin: 1.4rem 0; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; padding: 0; margin: 0; color: var(--ink-soft); font-size: .92rem; }
.hero-points li::before { content: "✓ "; color: var(--gold-deep); font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; background: var(--gold); color: #3d2f03; font-weight: 700; padding: 10px 22px; border-radius: var(--radius); border: 2px solid var(--gold); cursor: pointer; font-size: .95rem; text-align: center; }
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #3d2f03; text-decoration: none; }
.btn-lg { padding: 12px 30px; font-size: 1rem; }
.btn-sm { padding: 5px 12px; font-size: .84rem; }
.btn-ghost { background: transparent; border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-ghost:hover { background: var(--gold); color: #3d2f03; }
.btn-block { display: block; width: 100%; }
.link-btn { background: none; border: 0; color: var(--red); cursor: pointer; text-decoration: underline; padding: 0; font-size: .9rem; }

/* ---------- 服务板块 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding-bottom: 1rem; color: var(--ink); display: flex; flex-direction: column; }
.service-card:hover { box-shadow: var(--shadow-lg); text-decoration: none; transform: translateY(-2px); transition: .18s; }
.service-card img { width: 100%; height: 160px; object-fit: cover; }
.service-card h3 { margin: .8rem 1rem .3rem; color: var(--ink); }
.service-card p { margin: 0 1rem .6rem; color: var(--ink-soft); font-size: .9rem; flex: 1; }
.service-card .more-link { margin: 0 1rem; font-weight: 700; font-size: .88rem; }

/* ---------- 产品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product-grid-small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.product-card img { width: 100%; height: 170px; object-fit: contain; background: #fff; padding: 8px; }
.product-grid-small .product-card img { height: 130px; }
.product-card .ph { height: 170px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: #b5b5b5; font-weight: 700; }
.product-grid-small .product-card .ph { height: 130px; }
.pc-body { padding: 10px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.pc-body h3 { font-size: .92rem; margin: 0 0 .4rem; color: var(--ink); min-height: 2.4em; }
.pc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: .5rem; }
.pc-meta .sku { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 3px; font-size: .72rem; padding: 1px 6px; font-family: Consolas, monospace; color: var(--ink-soft); }
.pc-meta .brand { background: #f4efe6; border: 1px solid var(--line); border-radius: 3px; font-size: .72rem; padding: 1px 6px; font-weight: 700; color: var(--gold-deep); }
.pc-meta .cat { font-size: .72rem; color: var(--muted); align-self: center; }
.pc-price { color: var(--gold-deep); font-weight: 800; font-size: 1.05rem; margin: 0; }
.pc-price small { color: var(--muted); font-weight: 400; }
.pc-inquiry { color: var(--ink-soft); font-size: .86rem; font-style: italic; margin: 0; }

/* ---------- 列表页 ---------- */
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb a { margin-right: 4px; }
.breadcrumb span { margin-right: 4px; }
.listing-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; }
.listing-side h3 { border-bottom: 2px solid var(--gold); padding-bottom: .4rem; }
.side-cats { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.side-cats a { display: block; padding: 6px 10px; border-left: 3px solid transparent; color: var(--ink-soft); }
.side-cats a:hover, .side-cats a.active { border-left-color: var(--gold); background: var(--bg-gold); color: var(--ink); text-decoration: none; }
.side-cats-sub { list-style: none; margin: 0; padding: 0 0 0 14px; }
.side-cats-sub a { font-size: .88rem; padding: 4px 10px; color: var(--ink-soft); }
.subcat-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 1.1rem; }
.subcat-label { font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
.subcat-chip { display: inline-block; padding: 5px 14px; border: 1px solid var(--gold-dark); border-radius: 999px;
               background: var(--bg-gold); font-size: .86rem; font-weight: 600; color: var(--ink); }
.subcat-chip:hover { background: var(--gold); text-decoration: none; }
.subcat-chip small { color: var(--ink-soft); font-weight: 400; }
.side-note { background: var(--bg-gold); border: 1px dashed var(--gold-dark); border-radius: var(--radius); padding: 14px; }
.side-note h4 { margin: 0 0 .4rem; }
.side-note p { font-size: .88rem; color: var(--ink-soft); }
.listing-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.listing-toolbar { display: flex; gap: 10px; align-items: center; margin: 1rem 0 1.4rem; flex-wrap: wrap; }
.filter-form { display: flex; gap: 8px; flex: 1; }
.filter-form input[type="search"] { flex: 1; max-width: 320px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.toggle-buy { font-size: .84rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.toggle-buy:hover { text-decoration: none; }
.toggle-buy.active { background: var(--gold); border-color: var(--gold-dark); color: #3d2f03; }
.pagination { display: flex; gap: 6px; margin-top: 1.8rem; flex-wrap: wrap; }
.pagination a, .pagination .cur, .pagination .dots { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; }
.pagination .cur { background: var(--gold); border-color: var(--gold-dark); font-weight: 700; }
.pagination a:hover { background: var(--bg-soft); text-decoration: none; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }

/* 列表视图切换 + 每页数量 */
.toolbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-switch .vbtn { padding: 6px 11px; font-size: .92rem; line-height: 1; color: var(--ink-soft); background: #fff; }
.view-switch .vbtn:hover { text-decoration: none; background: var(--bg-soft); }
.view-switch .vbtn.active { background: var(--gold); border-color: var(--gold-dark); color: #3d2f03; }
.per-page { font-size: .84rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.per-page select { padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
/* 列表视图：无图片，一行一条 */
.product-list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.product-list .pl-head, .product-list .pl-row {
  display: grid; grid-template-columns: 3fr 1.2fr 1fr 1.2fr 1fr; gap: 10px;
  padding: 9px 14px; align-items: center;
}
.product-list .pl-head { background: var(--bg-soft); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.product-list .pl-row { border-top: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.product-list .pl-row:hover { background: var(--bg-soft); text-decoration: none; }
.product-list .pl-c-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-list .pl-c-sku, .product-list .pl-c-brand, .product-list .pl-c-cat { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-list .pl-c-price { text-align: right; color: #b34700; font-weight: 700; white-space: nowrap; }
.product-list .pl-c-price .pc-inquiry { font-style: normal; color: var(--ink-soft); font-weight: 400; }
@media (max-width: 720px) {
  .product-list .pl-head { display: none; }
  .product-list .pl-row { grid-template-columns: 1fr 1fr; }
  .product-list .pl-c-title { grid-column: 1 / -1; }
  .product-list .pl-c-price { text-align: left; }
}

/* ---------- 产品详情 ---------- */
.pd-layout { display: grid; grid-template-columns: 460px 1fr; gap: 34px; margin-bottom: 2rem; }
.pd-main-img { width: 100%; height: 400px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ph-lg { height: 400px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd-thumbs img { width: 90px; height: 68px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.pd-thumbs img:hover { border-color: var(--gold); }
.pd-info h1 { font-size: 1.4rem; }
.pd-specs { border-top: 2px solid var(--gold); margin: 0 0 1.2rem; }
.pd-specs > div { display: flex; border-bottom: 1px solid var(--line); padding: 7px 0; }
.pd-specs dt { width: 130px; color: var(--muted); font-size: .9rem; flex-shrink: 0; }
.pd-specs dd { margin: 0; font-weight: 600; }
.pd-price { color: var(--gold-deep); font-size: 1.2rem; }
.pd-buy { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.pd-buy label { font-weight: 600; }
.pd-buy input[type="number"] { width: 5rem; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.pd-buy-note { color: var(--ink-soft); background: var(--bg-gold); border-radius: var(--radius); padding: 10px 14px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1rem; }
.pd-trust { color: var(--muted); font-size: .86rem; }
.pd-desc h2 { border-bottom: 2px solid var(--gold); padding-bottom: .35rem; margin-top: 2.5rem; }
.rich table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .92rem; }
.rich td, .rich th { border: 1px solid var(--line); padding: 6px 10px; }
.rich th { background: var(--bg-gold); }
.rich img { border-radius: 4px; margin: .8rem 0; max-width: 100%; }
.rich ul { padding-left: 1.2rem; }
.inquiry-box { background: var(--bg-soft); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-top: 2.5rem; }

/* ---------- 表单 ---------- */
label { display: block; font-weight: 600; margin-bottom: .9rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="password"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; margin-top: 4px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(244, 191, 30, .18); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label.full { grid-column: 1 / -1; }
textarea { resize: vertical; }

/* 账户页资料只读展示（点击"编辑资料"后再进入表单） */
.profile-dl { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 8px 24px; margin: 0 0 18px; }
.profile-dl dt { color: var(--muted); font-weight: 600; }
.profile-dl dd { margin: 0; word-break: break-word; }

/* ---------- 评价 / 关于条 ---------- */
.testimonials { background: var(--bg-soft); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial-grid blockquote { background: #fff; margin: 0; padding: 1.2rem 1.4rem; border-radius: var(--radius); border-left: 4px solid var(--gold); box-shadow: var(--shadow); font-style: italic; color: var(--ink-soft); }
.testimonial-grid footer { margin-top: .6rem; font-style: normal; font-weight: 700; color: var(--ink); }
.about-strip { background: var(--gold); }
.about-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 2.4rem 16px; flex-wrap: wrap; }
.about-strip h2 { color: #4a3a05; }
.about-strip p { color: #5c4a08; margin: 0; max-width: 640px; }
.about-strip .btn { background: #3d2f03; color: #fff; border-color: #3d2f03; }
.about-strip .btn:hover { background: #241c01; }

/* ---------- Why grid / contact ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.why-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.contact-card { background: var(--bg-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 14px; }
.contact-card h3 { margin-bottom: .3rem; }
.page-narrow { max-width: 1000px; }

/* ---------- 购物车 / 结算 ---------- */
.cart-table, .sum-table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table th, .cart-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: middle; }
.cart-table thead th { background: var(--bg-gold); }
.cart-prod { display: flex; gap: 12px; align-items: center; }
.cart-prod img { border-radius: 4px; border: 1px solid var(--line); }
.cart-actions { display: flex; gap: 12px; margin: 1.2rem 0; flex-wrap: wrap; justify-content: flex-end; }
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.checkout-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.checkout-summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; position: sticky; top: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.sum-total { font-size: 1.05rem; font-weight: 800; border-bottom: 0; color: var(--gold-deep); }
.pay-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.pay-option { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 400; }
.order-success { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.os-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* ---------- 页脚 ---------- */
.site-footer { background: #2b2b2b; color: #bbb; margin-top: 3rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; padding: 2.2rem 16px 1.2rem; }
.site-footer h4 { color: var(--gold); margin-bottom: .5rem; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid #444; padding-top: 1rem; padding-bottom: 1.4rem; }

/* ---------- flash ---------- */
.flash { padding: 11px 16px; border-radius: var(--radius); margin: 12px 0; font-weight: 600; }
.flash-success { background: #e9f7ef; border: 1px solid #b7e1c7; color: #1e5631; }
.flash-error { background: #fdeceb; border: 1px solid #f5b7b1; color: #922b21; }
.flash-message { background: var(--bg-gold); border: 1px solid var(--gold-dark); color: #6b5405; }
.flash-info { background: #e8f2fc; border: 1px solid #b6d4f0; color: #1a4b7a; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .listing-layout { grid-template-columns: 1fr; }
  .listing-side .side-cats { display: flex; flex-wrap: wrap; gap: 4px; }
  .side-cats li { display: inline-block; }
  .side-cats a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
  .side-cats a.active, .side-cats a:hover { border-color: var(--gold-dark); }
  .pd-layout { grid-template-columns: 1fr; }
  .contact-layout, .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}
@media (max-width: 760px) {
  .header-search { order: 3; width: 100%; margin: 0; }
  .header-search input { width: 100%; flex: 1; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; width: 100%; flex-direction: column; }
  body.nav-open .main-nav { display: flex; }
  body.nav-open .main-nav a { border-bottom: 1px solid var(--line); }
  .topbar-text { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   产品详情选项卡 / Q&A / 图片放大（新增）
   ============================================================ */
.pd-tabs { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 2rem; overflow: hidden; background: var(--bg); }
.pd-tabs-nav { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--gold); background: var(--bg-soft); }
.pd-tab-btn { flex: 0 0 auto; border: 0; background: transparent; padding: 12px 22px; font-size: .95rem;
  font-weight: 700; color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.pd-tab-btn:hover { color: var(--ink); background: var(--bg-gold); }
.pd-tab-btn.active { color: var(--ink); border-bottom-color: var(--gold-dark); background: var(--bg); }
.pd-tab-pane { display: none; padding: 22px 26px; animation: fadein .25s ease; }
.pd-tab-pane.active { display: block; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.pd-tab-pane .rich { line-height: 1.75; }
.pd-tab-pane .rich img { border: 1px solid var(--line); border-radius: 4px; margin: 8px 0; }

/* Q&A */
.qa-list { display: grid; gap: 14px; margin-bottom: 26px; }
.qa-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qa-q, .qa-a { display: flex; gap: 12px; padding: 14px 16px; }
.qa-q { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.qa-a { background: var(--bg-gold); }
.qa-badge { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-deep);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.qa-badge-a { background: var(--green); }
.qa-text { margin: 0 0 4px; }
.qa-meta { margin: 0; color: var(--muted); font-size: .82rem; }
.qa-file { margin: 6px 0 0; font-size: .9rem; }
.qa-ask { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 18px 20px; background: var(--bg-gold); }
.qa-ask h3 { margin-top: 0; }
.qa-ask .btn { margin-top: 8px; }

/* 规格书下载链接 */
.pd-datasheet { background: var(--bg-gold); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 8px 14px; display: inline-block; font-size: .95rem; font-weight: 600; margin: 0 0 1rem; }

/* 图片双击放大悬浮层 */
.zoom-layer { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 24px; }
.zoom-layer[hidden] { display: none; }
.zoom-layer-inner { max-width: 92vw; max-height: 88vh; text-align: center; }
.zoom-layer-inner img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.zoom-hint { color: #ddd; font-size: .85rem; margin-top: 10px; }

.zoomable { cursor: zoom-in; }

/* ===== Round 4: 客户账户 / 订单跟踪 / 登录注册 / PayPal ===== */
.auth-wrap { max-width: 560px; margin: 0 auto; }
.auth-wrap .checkout-form label { display: block; margin-bottom: 14px; }
.auth-wrap .checkout-form input { width: 100%; }

.account-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.account-nav a { padding: 9px 12px; border-radius: 6px; color: #333; font-weight: 600; }
.account-nav a:hover { background: #f7f3e8; text-decoration: none; }
.account-nav a.active { background: var(--gold); color: #3d2f03; }
.account-main { min-width: 0; }
.account-main .dash-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.account-main h2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 1.15rem; margin: 0 0 14px; }
.account-main hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.order-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.st-confirm { background: #e2d9f3; color: #4a2f8f; }
.st-reconfirm { background: #ffe0cc; color: #a13c00; }
.st-new { background: #fff3cd; color: #856404; }
.st-paid { background: #d1ecf1; color: #0c5460; }
.st-shipped { background: #d1ecf1; color: #0c5460; }
.st-delivered, .st-completed { background: #d4edda; color: #155724; }
.st-cancelled { background: #f8d7da; color: #721c24; }

.order-status-big { display: inline-block; font-size: 1.05rem; font-weight: 800; padding: 8px 18px; border-radius: 24px; margin-bottom: 18px; }

.order-timeline { display: flex; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; overflow-x: auto; }
.tl-step { flex: 1; min-width: 90px; text-align: center; position: relative; }
.tl-step + .tl-step::before { content: ""; position: absolute; left: -50%; top: 14px; width: 100%; height: 3px; background: #e5e5e5; }
.tl-step.done + .tl-step::before { background: #2e9e44; }
.tl-dot { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #e5e5e5; color: #fff; font-size: .85rem; font-weight: 800; margin-bottom: 6px; }
.tl-step.done .tl-dot { background: #2e9e44; }
.tl-label { display: block; font-size: .85rem; color: #888; }
.tl-step.done .tl-label { color: #2e9e44; font-weight: 700; }
.tl-cancelled { justify-content: center; }
.tl-cancel-tag { color: #721c24; font-weight: 800; }

.pay-panel { border: 2px solid var(--gold); }
.order-filter { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
}

/* ===== Round 7: 银行转账信息框 / 订单详情布局 / 移动端适配 ===== */
/* 多语言产品标题（结算页内联片段，不要斜体） */
.loc-inline { font-style: normal; }

.bank-box { background: var(--bg-gold); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 14px 18px; margin-top: 18px; }
.bank-box h3, .bank-box h4 { margin: 0 0 10px; font-size: 1rem; }

.kv { display: grid; gap: 8px; margin: 0 0 10px; }
.kv > div { display: flex; gap: 10px; align-items: baseline; }
.kv dt { min-width: 110px; color: var(--muted); font-size: .9rem; flex-shrink: 0; margin: 0; }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }

.order-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.order-grid .dash-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 0 0 18px; }
.order-grid .dash-panel h3 { margin: 0 0 12px; font-size: 1rem; }

@media (max-width: 980px) {
  .order-grid { grid-template-columns: 1fr; }
}

/* ---------- 移动端（≤760px）---------- */
@media (max-width: 760px) {
  /* 表格横向滚动，避免撑破屏幕 */
  .cart-table, .sum-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cart-table { min-width: 520px; }
  /* 首页/详情主视觉缩小 */
  .hero h1 { font-size: 1.5rem; }
  .pd-main-img, .ph-lg { height: 300px; }
  /* 面板与卡片收窄内边距 */
  .order-success, .checkout-form, .contact-form-wrap { padding: 1.1rem 1rem; }
  .account-main .dash-panel { padding: 14px; }
  .order-grid .dash-panel { padding: 13px 14px; }
  /* 操作按钮在窄屏铺开更易点按 */
  .cart-actions { justify-content: stretch; }
  .cart-actions .btn { flex: 1; min-width: 130px; }
  /* 订单时间线步宽收窄并允许横向滑动 */
  .order-timeline { padding: 14px 12px; }
  .tl-step { min-width: 72px; }
  .tl-dot { width: 26px; height: 26px; font-size: .78rem; }
  /* key-value 纵排，避免值过长挤压标签 */
  .kv > div { flex-direction: column; gap: 0; }
  .kv dt { min-width: 0; }
  .order-filter a { padding: 5px 10px; font-size: .8rem; }
  .logo img { height: 42px; }
  body { font-size: .95rem; }
}

/* 超窄屏（≤400px）：购物车表格进一步紧凑 */
@media (max-width: 400px) {
  .cart-table { min-width: 460px; }
  .cart-table th, .cart-table td { padding: 7px 8px; font-size: .85rem; }
}

/* ---- 人机验证码（登录 / 注册） ---- */
.captcha-label { display: block; margin: 14px 0 4px; }
.captcha-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.captcha-img { border: 1px solid var(--line); border-radius: 8px; background: #faf7ef;
  display: block; flex: 0 0 auto; user-select: none; }
.captcha-row input[type="text"] { flex: 1 1 140px; min-width: 120px; max-width: 240px;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.captcha-turnstile { margin: 14px 0 4px; }

/* ---- 结算页：已保存资料的只读展示 ---- */
.chk-saved { background: #faf7ef; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 12px 0; }
.chk-saved dd { font-weight: 600; }

/* ---- Contact Us 附件上传 ---- */
.attach-label { display: block; margin: 14px 0 2px; }
.attach-input { display: block; width: 100%; padding: 8px 10px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font-size: 14px; color: inherit; }
.attach-input::file-selector-button { margin-right: 12px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #f4efe6;
  color: inherit; font: inherit; cursor: pointer; }


/* ---- Round 10: Buy Online 页面 ---- */
.buy-hero { text-align: center; padding: 18px 0 6px; }
.buy-hero h1 { margin-bottom: 6px; }
.buy-hero p { color: var(--muted, #666); max-width: 640px; margin: 0 auto; }
.buy-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 30px; }
.buy-step { background: #faf8f4; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.buy-step h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--gold-deep); }
.buy-step p { margin: 0; font-size: .9rem; color: var(--muted, #666); }
.buy-grid { align-items: stretch; }
.buy-card { display: flex; flex-direction: column; }
.buy-card-link { display: block; color: inherit; flex: 1; }
.buy-quick-form { display: flex; gap: 8px; align-items: center; padding: 10px 14px 14px; }
.buy-quick-form input[type="number"] { width: 5.2rem; padding: 8px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; }
.buy-more { text-align: center; margin-top: 26px; }
.qty-error { color: #b3261e; font-size: .85rem; margin: 6px 0 0; }
@media (max-width: 720px) {
  .buy-steps { grid-template-columns: 1fr; }
  .buy-quick-form { flex-wrap: wrap; }
}

/* ---- Round 11: News 页面 ---- */
.news-list { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.news-card { display: flex; gap: 16px; background: #faf8f4; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; align-items: flex-start; }
.news-thumb { flex: 0 0 168px; display: block; }
.news-thumb img { width: 168px; height: 112px; object-fit: cover; border-radius: var(--radius); display: block; }
.news-body { flex: 1; min-width: 0; }
.news-meta { font-size: .82rem; color: var(--muted, #888); letter-spacing: .03em; }
.news-card h2 { margin: 4px 0 6px; font-size: 1.12rem; }
.news-card h2 a { color: inherit; }
.news-card h2 a:hover { color: var(--gold-deep, #b8860b); }
.news-excerpt { margin: 0 0 8px; color: #555; font-size: .92rem; }
.news-more { font-weight: 600; color: var(--gold-deep, #b8860b); }
.news-article h1 { margin: 6px 0 10px; }
.news-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 10px 0; }
.news-content p { margin: 12px 0; }
@media (max-width: 720px) {
  .news-card { flex-direction: column; }
  .news-thumb, .news-thumb img { width: 100%; height: auto; }
}

/* ---------- news list toolbar & rows view ---------- */
.news-toolbar { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px;
                padding: 8px 0; border-bottom: 1px solid var(--line); }
.news-list-rows { gap: 0; }
.news-list-rows .news-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
                             background: transparent; padding: 10px 4px; }
.news-list-rows .news-card:last-child { border-bottom: 0; }
.news-list-rows .news-thumb { flex: 0 0 72px; }
.news-list-rows .news-thumb img { width: 72px; height: 48px; }
.news-list-rows .news-card h2 { font-size: 1rem; margin: 2px 0; }
.news-list-rows .news-meta { font-size: .8rem; }
.news-list-rows .news-more { display: none; }
