/* ============================================================
   牛仔帝国 品牌官网 — 全局样式
   品牌色：牛仔蓝 #1A365D / 深炭灰 #222222
   字体：思源黑体（正文）+ Montserrat（英文/数字）
   ============================================================ */

:root {
  --denim: #1A365D;        /* 牛仔蓝主色 */
  --denim-light: #2A4A7A;
  --denim-dark: #122340;
  --charcoal: #222222;     /* 深炭灰 */
  --charcoal-light: #3A3A3A;
  --bg: #F5F6F8;
  --bg-white: #FFFFFF;
  --text: #222222;
  --text-muted: #666666;
  --accent: #C8A45C;       /* 铜金点缀 */
  --line: #E4E4E4;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --font-cn: "Source Han Sans SC", "Noto Sans CJK SC", "思源黑体", "Microsoft YaHei", sans-serif;
  --font-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cn);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.header {
  background: var(--denim-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
}
.logo .logo-mark {
  width: 38px; height: 38px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo .logo-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.logo span.en { font-family: var(--font-en); font-size: 11px; letter-spacing: 2px; color: #b8c4d8; display: block; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 16px;
  border-radius: 6px;
  color: #d7dde8;
  font-size: 15px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; background: var(--denim-light); }
.nav-toggle { display: none; }

/* ---------- 页面头部（内页标题区） ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--denim) 0%, var(--denim-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { font-size: 34px; letter-spacing: 2px; margin-bottom: 12px; }
.page-hero p { color: #c3cee0; max-width: 720px; margin: 0 auto; }

/* ---------- 首页 Banner ---------- */
.banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #16294a 0%, #1A365D 45%, #243a60 100%);
  color: #fff;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(200,164,92,.18), transparent 65%);
  border-radius: 50%;
}
.banner-inner { position: relative; z-index: 2; padding: 80px 0; }
.banner h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.25;
  margin-bottom: 18px;
}
.banner h1 em { font-style: normal; color: var(--accent); }
.banner .sub { font-size: 19px; color: #c3cee0; margin-bottom: 32px; }
.banner-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.banner-tags span {
  padding: 6px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  font-size: 13px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #b8934e; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--denim); }
.btn-denim { background: var(--denim); color: #fff; }
.btn-denim:hover { background: var(--denim-light); }

/* ---------- 区块标题 ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .en { font-family: var(--font-en); color: var(--accent); letter-spacing: 3px; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.section-head h2 { font-size: 32px; letter-spacing: 1px; margin: 8px 0 12px; }
.section-head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ---------- 优势卡片 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--denim);
  transition: transform .2s, box-shadow .2s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.adv-card .icon { font-size: 34px; margin-bottom: 16px; display: block; }
.adv-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: 1px; }
.adv-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.product-card .thumb {
  aspect-ratio: 3 / 4;
  background: #e8eaee;
  display: flex; align-items: center; justify-content: center;
  color: #9aa3ad;
  font-size: 40px;
  position: relative;
}
.product-card .thumb .holder {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.product-card .thumb .prod-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-card .thumb .no-img {
  font-size: 40px;
  color: #9aa3ad;
}
.product-card .code-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--denim); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 4px;
  font-family: var(--font-en);
}
.product-card .info { padding: 16px 18px 20px; }
.product-card .info h3 { font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card .tags span { font-size: 12px; padding: 2px 9px; border-radius: 4px; background: #f0f2f5; color: #555; }
.product-card .tags span.hot { background: #fbe9e7; color: #c0392b; }

/* ---------- 产品库布局 ---------- */
.products-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.filter-panel { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 92px; }
.filter-panel h3 { font-size: 16px; margin-bottom: 8px; }
.filter-group { margin-bottom: 22px; }
.filter-group h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.filter-group label { display: block; padding: 5px 0; font-size: 14px; cursor: pointer; }
.filter-group input { margin-right: 8px; }
.filter-clear { color: var(--denim); font-size: 13px; cursor: pointer; }
.search-box { margin-bottom: 20px; }
.search-box input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border, #e4e4e4);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.search-box input:focus { outline: none; border-color: var(--denim); }

/* ---------- 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.detail-gallery .main-img {
  aspect-ratio: 3 / 4; background: #eef0f3; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 60px; color: #aab2bc;
  position: relative; overflow: hidden;
}
.detail-gallery .main-img .detail-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: absolute; inset: 0;
}
.detail-gallery .main-img .no-img { font-size: 60px; color: #aab2bc; }
.detail-gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-gallery .thumbs .t { width: 72px; height: 72px; background: #eef0f3; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #aab2bc; overflow: hidden; cursor: pointer; }
.detail-gallery .thumbs .t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { color: var(--text-muted); width: 130px; background: #fafafa; }
.spec-table td:last-child { font-weight: 500; }

/* ---------- 流程 ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; }
.flow .step {
  flex: 1 1 140px; text-align: center; padding: 28px 12px; position: relative;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 8px;
}
.flow .step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--denim); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-family: var(--font-en); font-weight: 700; }
.flow .step .arrow { color: var(--accent); font-size: 22px; }

/* ---------- 资质卡片 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cert-card .img { aspect-ratio: 4/3; background: #eef0f3; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #aab2bc; }
.cert-card .cap { padding: 16px; text-align: center; font-weight: 600; }

/* ---------- 联系页 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 24px; background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-info .item .ic { font-size: 26px; }
.contact-info .item h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info .item p { color: var(--text-muted); font-size: 14px; }
.contact-form { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; margin-bottom: 18px; font-family: var(--font-cn);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--denim); }
.map-holder { background: #e8eaee; border-radius: var(--radius); height: 220px; display: flex; align-items: center; justify-content: center; color: #9aa3ad; font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--denim) 0%, var(--denim-dark) 100%);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta h2 { font-size: 30px; letter-spacing: 1px; margin-bottom: 14px; }
.cta p { color: #c3cee0; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: #b8b8b8; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer .brand { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer a { color: #b8b8b8; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: 22px; text-align: center; font-size: 13px; color: #888; }
.footer-bottom .icp { margin-top: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .adv-grid, .product-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout, .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner h1 { font-size: 34px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--denim-dark); flex-direction: column; padding: 12px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }
}
@media (max-width: 560px) {
  .adv-grid, .product-grid, .cert-grid, .footer-grid { grid-template-columns: 1fr; }
  .banner h1 { font-size: 28px; }
  .section { padding: 48px 0; }
}
