/* ============================================================
   Foshan Baisha Trading Co., Ltd. — 商业风格全站样式
   主色: 深海军蓝 #0f2a4a  强调金: #c9a227  背景: #f5f6f8
   ============================================================ */

:root {
  --navy: #0f2a4a;
  --navy-2: #16375f;
  --navy-3: #0b1f36;
  --gold: #c9a227;
  --gold-2: #e0b93c;
  --ink: #1c2733;
  --muted: #5a6b7c;
  --bg: #f5f6f8;
  --white: #ffffff;
  --line: #e3e8ee;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(15, 42, 74, .08);
  --shadow-lg: 0 14px 40px rgba(15, 42, 74, .14);
  --font: "Poppins", "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--navy-3);
  color: #cdd8e5;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cdd8e5; }
.topbar a:hover { color: var(--gold-2); }
.topbar .tb-left span { margin-right: 18px; }
.topbar .tb-right a { margin-left: 16px; }

/* ---------- 导航 ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--line);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, .35);
  overflow: hidden; padding: 3px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 700; color: var(--navy); font-size: 16px; line-height: 1.25; }
.brand-name small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 14.5px; padding: 6px 0; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width .22s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.btn {
  display: inline-block; padding: 11px 26px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 14px; cursor: pointer;
  border: none; transition: all .2s ease; text-align: center;
  font-family: inherit;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(201,162,39,.35); }
.btn-outline { border: 2px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gold-2); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(11,31,54,.88) 0%, rgba(15,42,74,.72) 45%, rgba(15,42,74,.28) 100%),
    url("../images/covers/hero-office.png") center/cover no-repeat;
  color: #fff;
  padding: 120px 0 110px;
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-2);
  border: 1px solid rgba(224,185,60,.45); padding: 6px 14px;
  border-radius: 30px; margin-bottom: 22px; background: rgba(11,31,54,.35);
}
.hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.15; font-weight: 700; max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p { margin: 22px 0 34px; font-size: 17px; color: #dbe4ee; max-width: 640px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: 64px;
}
.hero-stat { border-left: 3px solid var(--gold); padding-left: 16px; }
.hero-stat b { display: block; font-size: 30px; font-weight: 700; }
.hero-stat span { font-size: 13px; color: #b9c6d6; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--gold); font-size: 12.5px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--navy); line-height: 1.25; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* ---------- 关于/特色 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-media::after {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.split h2 { color: var(--navy); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.feature-list { margin-top: 22px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .fi {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(201,162,39,.14); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.feature-list b { color: var(--navy); }
.feature-list span { color: var(--muted); font-size: 14px; display: block; }

/* ---------- 服务卡片 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .22s ease, box-shadow .22s ease; position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .sc-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card .sc-icon svg { width: 28px; height: 28px; stroke: #fff; }
.service-card h3 { color: var(--navy); font-size: 17px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; }
.service-card .sc-link { display: inline-block; margin-top: 16px; color: var(--gold); font-weight: 600; font-size: 13.5px; }
.service-card .sc-link:hover { color: var(--navy); }

/* ---------- 产品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .pc-img { aspect-ratio: 1/1; overflow: hidden; background: #eef1f4; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .pc-img img { transform: scale(1.06); }
.product-card .pc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-tag {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.product-card h3 { color: var(--navy); font-size: 16.5px; line-height: 1.35; margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.product-card .pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.product-card .pc-price { font-weight: 700; color: var(--navy); font-size: 15px; }
.product-card .pc-cta { color: var(--gold); font-weight: 600; font-size: 13.5px; }
.product-card .pc-cta:hover { color: var(--navy); }

/* 产品页分类区块 */
.cat-block { margin-bottom: 64px; }
.cat-title { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.cat-title h2 { color: var(--navy); font-size: 24px; }
.cat-title .cat-line { flex: 1; height: 1px; background: var(--line); }
.cat-title .cat-num {
  background: var(--navy); color: #fff; font-size: 12px;
  padding: 4px 10px; border-radius: 20px; font-weight: 600;
}

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info h2 { color: var(--navy); font-size: 26px; margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin-bottom: 26px; }
.info-card {
  display: flex; gap: 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px; align-items: flex-start;
}
.info-card .ic-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(201,162,39,.13); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.info-card .ic-icon svg { width: 22px; height: 22px; }
.info-card b { color: var(--navy); display: block; margin-bottom: 3px; }
.info-card span { color: var(--muted); font-size: 14px; }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.contact-form > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.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; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font); background: #fafbfc; color: var(--ink);
  transition: border .2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- 内页横幅 ---------- */
.page-hero {
  background:
    linear-gradient(100deg, rgba(11,31,54,.9), rgba(15,42,74,.7)),
    url("../images/covers/made-in-china.jpg") center/cover no-repeat;
  color: #fff; padding: 74px 0;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.page-hero p { color: #c9d6e4; max-width: 620px; }
.breadcrumb { font-size: 13px; color: #9fb0c3; margin-top: 14px; }
.breadcrumb a { color: var(--gold-2); }
.breadcrumb a:hover { color: #fff; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-3), var(--navy));
  color: #fff; padding: 72px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.cta-band p { color: #b9c6d6; max-width: 560px; margin: 0 auto 30px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-3); color: #aebccb; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-grid h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); }
.footer-grid p { font-size: 13.5px; line-height: 1.8; }
.footer-grid ul li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid ul a { color: #aebccb; }
.footer-grid ul a:hover { color: var(--gold-2); }
.footer-brand { margin-bottom: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 4px; stroke: var(--gold-2); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 18px 0; font-size: 13px; color: #8b9bab;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom .beian { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .beian a { color: #8b9bab; }
.footer-bottom .beian a:hover { color: var(--gold-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    box-shadow: 0 14px 30px rgba(15,42,74,.12); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 22px; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin: 10px 22px; }
  .hero { padding: 80px 0 70px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-grid.grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .topbar .tb-right { display: none; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-grid.grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
