/* ==========================================================================
   Anbang Glass — site layer
   Depends on style.css for :root variables (.wrap, .btn, header/footer/nav).
   ========================================================================== */

body { color: var(--ink); }
a:hover { text-decoration: none; }

/* ---------- generic sections ---------- */
.g-sec { padding: 68px 0; }
.g-sec.alt { background: var(--bg-alt); }
.g-sec.tight { padding: 48px 0; }
.g-head { text-align: center; max-width: 900px; margin: 0 auto 38px; }
.g-head h2 { font-size: 34px; color: var(--blue-dark); margin-bottom: 14px; }
.g-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); border-radius: 2px; margin: 14px auto 0; }
.g-head p { color: var(--muted); font-size: 16px; margin: 0; }
.g-eyebrow { display: inline-block; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 10px; }

/* ---------- hero ---------- */
.g-hero { background: var(--navy); color: #fff; }
.g-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; padding: 62px 24px; }
.g-hero h1 { font-size: 44px; line-height: 1.22; font-weight: 800; color: #fff; margin: 0 0 18px; letter-spacing: .3px; }
.g-hero h1 span { color: var(--gold); }
.g-hero-sub { font-size: 17px; line-height: 1.75; color: #cfdcec; margin: 0 0 28px; max-width: 620px; }
.g-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.g-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--orange); color: #fff; padding: 14px 26px; border-radius: 8px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; }
.g-btn:hover { background: #e0751f; color: #fff; }
.g-btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,.55); color: #fff; }
.g-btn.ghost:hover { background: rgba(255,255,255,.12); }
.g-btn svg { width: 19px; height: 19px; fill: currentColor; }
.g-hero-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g-hero-tiles img { width: 100%; height: 168px; object-fit: cover; border-radius: 10px; border: 2px solid rgba(255,255,255,.16); }
.g-hero-tiles img:first-child { grid-column: span 2; height: 200px; }

/* ---------- stat strip ---------- */
.g-stats { background: var(--blue-dark); color: #fff; }
.g-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 24px; text-align: center; }
.g-stat b { display: block; font-size: 27px; font-weight: 800; color: var(--gold); line-height: 1.25; }
.g-stat span { font-size: 14px; color: #c6d6e8; }

/* ---------- cards ---------- */
.g-grid { display: grid; gap: 22px; }
.g-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.g-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.g-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.g-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.g-card:hover { border-color: var(--blue); box-shadow: 0 8px 26px rgba(12,68,124,.12); }
.g-card-img { width: 100%; height: 210px; object-fit: cover; background: var(--bg-alt); }
.g-card-b { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.g-card-b h3 { font-size: 18px; margin: 0 0 8px; color: var(--blue-dark); font-weight: 700; }
.g-card-b p { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.62; }
.g-card-b .g-card-link { margin-top: auto; color: var(--blue); font-weight: 700; font-size: 15px; }
.g-card-b .g-card-link::after { content: " →"; }

/* ---------- why / advantage ---------- */
.g-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.g-why-item { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.g-why-ic { width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.g-why-ic svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.7; }
.g-why-item b { display: block; font-size: 17px; color: var(--blue-dark); margin-bottom: 5px; }
.g-why-item p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.62; }

/* ---------- spec table ---------- */
.g-spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.g-spec table { width: 100%; border-collapse: collapse; }
.g-spec th, .g-spec td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.g-spec tr:last-child th, .g-spec tr:last-child td { border-bottom: 0; }
.g-spec th { width: 235px; color: var(--blue-dark); font-weight: 700; background: #f7fafc; }
.g-spec td { color: var(--ink); }

/* ---------- applications chips ---------- */
.g-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.g-chip { background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 9px 17px; font-size: 14.5px; }

/* ---------- gallery ---------- */
.g-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-gal img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-alt); }

/* ---------- product layout (classification page) ---------- */
.g-album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.g-album figure { margin: 0; }
.g-album img { width: 100%; height: 190px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.g-album figcaption { font-size: 13px; color: var(--muted); text-align: center; padding-top: 6px; }

.g-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.g-item { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.g-item img { width: 86px; height: 74px; object-fit: cover; border-radius: 8px; flex: none; }
.g-item span { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.g-item:hover { border-color: var(--blue); }

/* ---------- CTA band ---------- */
.g-cta { background: var(--blue); color: #fff; }
.g-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding: 40px 24px; }
.g-cta-in h2 { color: #fff; font-size: 30px; margin: 0; text-align: left; }
.g-cta-in h2::after { display: none; }
.g-cta-in p { margin: 6px 0 0; color: #d3e3f5; font-size: 16px; }

/* ---------- contact blocks ---------- */
.g-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.g-contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.g-contact-card svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.7; flex: none; margin-top: 3px; }
.g-contact-card b { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.g-contact-card span { font-size: 16px; color: var(--ink); font-weight: 600; }

/* ---------- breadcrumb ---------- */
.g-bc { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.g-bc a { color: var(--muted); }
.g-bc a:hover { color: var(--blue); }

/* ---------- misc ---------- */
.g-lead { font-size: 17px; color: var(--muted); line-height: 1.75; max-width: 940px; }
.g-body p { font-size: 16px; line-height: 1.8; color: var(--ink); margin: 0 0 16px; }
.g-body p.g-note { font-size: 14.5px; color: var(--muted); }
.g-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.g-flow-item { position: relative; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.g-flow-item::before { counter-increment: step; content: counter(step); display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px; }
.g-flow-item b { display: block; font-size: 16px; color: var(--blue-dark); margin-bottom: 4px; }
.g-flow-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .g-grid.g4, .g-gal, .g-album { grid-template-columns: repeat(2, 1fr); }
  .g-stats-in { grid-template-columns: repeat(2, 1fr); }
  .g-flow { grid-template-columns: repeat(2, 1fr); }
  .g-hero-in { grid-template-columns: 1fr; padding: 44px 24px; }
  .g-hero h1 { font-size: 34px; }
}
@media (max-width: 760px) {
  .g-sec { padding: 44px 0; }
  .g-grid.g3, .g-grid.g4, .g-grid.g2, .g-items, .g-why, .g-contact-grid { grid-template-columns: 1fr; }
  .g-gal, .g-album { grid-template-columns: repeat(2, 1fr); }
  .g-hero h1 { font-size: 28px; }
  .g-head h2 { font-size: 26px; }
  .g-spec th { width: 130px; }
  .g-flow { grid-template-columns: 1fr; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .g-bc, [dir="rtl"] .g-head { text-align: right; }
[dir="rtl"] .g-card-b .g-card-link::after { content: " ←"; }

/* honeypot：给机器人填的隐藏字段，真人永远看不到 */
.inq-form .hp { display: none !important; }

/* ---- 页脚联系列表链接提亮 ---- */
.footer .fmail a, .footer .ftel a { color: #eaf4fd; }
.footer .fmail a:hover, .footer .ftel a:hover { color: #fff; }
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- 顶栏改白色（对齐博莱格参考样式） ---- */
.topbar { background: #fff; color: #2c2c2a; border-bottom: 1px solid #e7e5de; }
.topbar a { color: #0c447c; font-weight: 600; }
.topbar a:hover { color: #053a68; }
.topbar .lang-btn { background: #fff; border: 1px solid #d3d1c7; color: #2c2c2a; }
.topbar .lang-btn:hover { border-color: #0c447c; color: #0c447c; }
.topbar .lang-btn .caret { border-top-color: #0c447c; }

/* ---- 导航间距加大 ---- */
.header .nav { gap: 6px; }
.header .nav > a, .header .nav .dd-t { padding: 12px 17px; }

/* ---- 购物车按钮 / 加购 ---- */
.js-add-cart { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 16px);
  margin: 0 8px 10px; padding: 7px 6px; font-size: 12px; font-weight: 600; color: #0c447c;
  background: #eaf3fb; border: 1px solid #b5d4f4; border-radius: 8px; cursor: pointer;
  letter-spacing: .5px; transition: background .15s, color .15s; }
.js-add-cart svg { width: 15px; height: 15px; }
.js-add-cart:hover { background: #0c447c; color: #fff; }
.js-add-cart.added { background: #3b6d11; border-color: #3b6d11; color: #fff; }
.pl-item.has-cart b { padding-bottom: 6px; }

/* ---- 购物车页 ---- */
.cart-wrap { min-height: 120px; }
.cart-empty { padding: 40px 0; font-size: 15px; color: #5f5e5a; text-align: center; }
.cart-empty a { color: #0c447c; font-weight: 600; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e7e5de; border-radius: 12px; overflow: hidden; }
.cart-table th { text-align: start; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: #888780; background: #f7f6f2; padding: 10px 14px; border-bottom: 1px solid #e7e5de; }
.cart-table td { padding: 10px 14px; border-bottom: 1px solid #f0eee8; vertical-align: middle; }
.cart-p { display: flex; align-items: center; gap: 12px; }
.cart-p img { width: 64px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid #e7e5de; }
.cart-p b { display: block; font-size: 13.5px; color: #2c2c2a; }
.cart-p span { font-size: 12px; color: #888780; letter-spacing: .5px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d3d1c7; border-radius: 8px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: #f7f6f2; font-size: 15px; cursor: pointer; color: #444441; }
.qty button:hover { background: #ecebe4; }
.qty input { width: 44px; height: 30px; border: 0; text-align: center; font-size: 13.5px; }
.cart-rm { width: 30px; height: 30px; border: 1px solid #f0d5d5; background: #fcebeb; color: #a32d2d; border-radius: 8px; cursor: pointer; font-size: 16px; }
.cart-rm:hover { background: #a32d2d; color: #fff; }
.cart-note { font-size: 13px; color: #5f5e5a; background: #eaf3de; border: 1px solid #c0dd97; border-radius: 10px; padding: 10px 14px; margin: 18px 0 0; }
#cart-form { margin-top: 18px; max-width: 860px; }
[dir="rtl"] .cart-p { flex-direction: row-reverse; }
.about-media video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; background: #0c447c; }

/* ===== About 版面加长（2026-11-02）===== */
#about .about-split { align-items: start; gap: 48px; }
#about .about-text { display: flex; flex-direction: column; }
#about .about-text .body-text { margin: 0 0 14px; line-height: 1.85; }
.about-media video { width: 100%; height: auto; min-height: 0; object-fit: cover; }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 8px; }
.about-facts > div { background: #f4f7fb; border: 1px solid #e3eaf3; border-radius: 10px; padding: 13px 15px; }
.about-facts b { display: block; color: #0c447c; font-size: 19px; line-height: 1.3; }
.about-facts span { display: block; font-size: 12.5px; color: #5b6b7f; margin-top: 3px; }
@media (max-width: 900px) {
  .about-media video { height: auto; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PRODUCTS 三级菜单：悬停二级分类才展开（2026-11-03）===== */
.dd-m.dd-cols { width: 400px; min-width: 0; grid-template-columns: 1fr; gap: 0; padding: 14px 14px 16px; inset-inline-start: 0; }
.dd-g { position: relative; }
.dd .dd-m a.dd-cat { white-space: normal; font-size: 15.5px; letter-spacing: .6px;
                padding: 16px 14px; margin-bottom: 12px; line-height: 1.4;
                display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dd .dd-m a.dd-cat::after { content: "\203A"; flex: 0 0 auto; font-size: 22px; line-height: 1;
                color: var(--blue); opacity: .5; transition: opacity .15s, transform .15s; }
.dd .dd-g:hover > .dd-cat::after, .dd .dd-g:focus-within > .dd-cat::after { opacity: 1; transform: translateX(2px); }
[dir="rtl"] .dd .dd-m a.dd-cat::after { content: "\2039"; }
[dir="rtl"] .dd .dd-g:hover > .dd-cat::after { transform: translateX(-2px); }
.dd-sub {
  display: none; position: absolute; top: 0; inset-inline-start: calc(100% + 14px);
  width: 286px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(12,68,124,.16); padding: 12px 10px; z-index: 96;
}
/* 靠近面板底部的 3 行改为向上展开，避免超出窗口 */
.dd-g:nth-last-child(-n+3) > .dd-sub { top: auto; bottom: -16px; }
.dd-g:hover > .dd-sub, .dd-g:focus-within > .dd-sub { display: block; }
.dd-sub::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: -14px; width: 14px; }
.dd .dd-sub a.dd-i { display: block; font-size: 14.5px; padding: 9px 12px; line-height: 1.45; letter-spacing: .3px; }
.dd-sub .dd-all {
  display: block; margin-top: 10px; padding: 10px 12px 5px; font-size: 13.5px; font-weight: 700;
  color: var(--blue); border-top: 1px solid var(--line); text-transform: none;
}
@media (max-width: 1120px) {
  .dd-m.dd-cols { width: auto; inset-inline-start: 0; grid-template-columns: 1fr; gap: 0; }
  .dd .dd-m a.dd-cat { padding: 13px 16px; font-size: 15px; margin-bottom: 4px; letter-spacing: .4px; }
  .dd .dd-m a.dd-cat::after { display: none; }
  .dd .dd-sub a.dd-i { font-size: 14px; padding: 8px 10px; }
  .dd-sub { display: block; position: static; width: auto; border: 0; box-shadow: none;
            padding: 2px 0 8px 10px; background: transparent; }
  .dd-sub::before { display: none; }
  .dd-sub .dd-all { display: none; }
  .dd-sub .dd-i:nth-child(n+7) { display: none; }
}
/* 矮屏（笔记本常见 768/800）自动收紧，避免下拉超出窗口底部 */
@media (max-height: 820px) {
  .dd .dd-m a.dd-cat { padding: 10px 14px; margin-bottom: 6px; }
}

/* ===== 销售团队电话（页脚 + 联系页，2026-11-03）===== */
.footer .fteam { margin-top: 14px; }
.footer .fteam > b { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
                     color: #8fb4d6; margin-bottom: 5px; }
.footer .fteam a { display: block; color: #eaf4fd; font-size: 13.5px; line-height: 1.75; }
.footer .fteam a b { display: inline-block; min-width: 58px; color: #fff; font-weight: 700; }
.footer .fteam a:hover { color: #fff; text-decoration: underline; }
.g-team { margin: 0 0 26px; }
.g-team h3 { font-size: 17px; color: var(--blue-dark); margin: 0 0 12px; }
.g-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.g-team-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
               border: 1px solid var(--line); border-radius: 10px; background: #f7fafd; text-decoration: none; }
.g-team-card b { color: var(--blue-dark); font-size: 15px; }
.g-team-card span { color: var(--muted); font-size: 13.5px; }
.g-team-card:hover { border-color: var(--blue); background: #eef5fc; }
