/* 禀实科技 BESIDE · 品牌网站样式 */
:root {
  --deep: #0A3D73;
  --blue: #0F5CA8;
  --orange: #F58220;
  --orange-dark: #e06f0e;
  --light: #E8F1FA;
  --lighter: #F2F7FC;
  --ink: #232A33;
  --gray: #66707A;
  --line: #E3E9F0;
  --white: #fff;
  --shadow: 0 6px 24px rgba(10, 61, 115, .10);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; display: block; }
.brand-sub { font-size: 12px; color: var(--gray); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 16px; font-size: 15px; color: var(--ink);
  border-radius: 6px; transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--lighter); }
.nav-links a.oa-link { color: var(--orange); font-weight: 600; }
.nav-links a.oa-link:hover { color: var(--orange-dark); }
.lang { font-size: 13px; color: var(--gray); margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--deep); cursor: pointer; }

/* ===== Hero（公司理念滚动） ===== */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(135deg, #071F3D 0%, var(--deep) 45%, var(--blue) 100%);
  padding: 64px 0 60px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../images/hero-bg.svg") center/cover no-repeat;
}
.hero-bg::before {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(245,130,32,.35), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; left: -160px; bottom: -180px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(15,92,168,.55), transparent 70%);
}
.hero-wrap { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; text-align: left; }
.hero-kicker { color: var(--orange); font-weight: 700; letter-spacing: 3px; font-size: 14px; }
.hero-logo { height: 56px; width: auto; display: block; margin-top: 4px; }
.hero-slogan { font-size: 20px; font-weight: 600; color: #fff; }
.hero-carousel { position: relative; }
.hero-slides { position: relative; min-height: 300px; }
.hero-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: translateX(48px); transition: opacity .7s ease, transform .7s ease;
  pointer-events: none; padding: 0 76px;
}
.hero-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.hero-slide-no { font-size: 92px; font-weight: 800; color: rgba(255,255,255,.12); line-height: 1; margin-bottom: -30px; }
.hero-slide-word { font-size: 56px; font-weight: 800; letter-spacing: 2px; color: #fff; }
.hero-slide-cn { font-size: 22px; color: var(--orange); font-weight: 700; margin: 6px 0 12px; }
.hero-slide-desc { font-size: 16px; color: #C4D8EC; max-width: 560px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.08); color: #fff; font-size: 28px;
  line-height: 1; cursor: pointer; transition: .2s; z-index: 2;
}
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow.prev { left: 0; }
.hero-arrow.next { right: 0; }
.hero-dots { display: flex; gap: 10px; justify-content: center; margin: 20px 0 26px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.32); cursor: pointer; transition: .25s; }
.hero-dot.on { background: var(--orange); width: 26px; border-radius: 6px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; }
.hero-tagline { margin-top: 24px; font-size: 14px; color: #9FB8D4; letter-spacing: 1px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: .2s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ===== 区块通用 ===== */
.section { padding: 84px 0; }
.section.alt { background: var(--lighter); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.section-head h2 { font-size: 34px; color: var(--deep); margin: 10px 0 14px; font-weight: 800; }
.section-head p { color: var(--gray); font-size: 16px; }
.section-head .rule { width: 56px; height: 4px; background: var(--orange); margin: 18px auto 0; border-radius: 2px; }

/* ===== 概况 / 图文 ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .txt h3 { font-size: 26px; color: var(--deep); margin-bottom: 16px; }
.split .txt p { color: var(--gray); margin-bottom: 14px; }
.split .txt p strong { color: var(--ink); }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.stat { flex: 1; min-width: 120px; }
.stat .n { font-size: 34px; font-weight: 800; color: var(--blue); }
.stat .l { font-size: 14px; color: var(--gray); }

/* ===== 价值观六词 ===== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s; position: relative; overflow: hidden;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.value-card .en { font-size: 22px; font-weight: 800; color: var(--blue); }
.value-card .cn { color: var(--orange); font-weight: 700; margin: 6px 0 8px; font-size: 16px; }
.value-card .desc { color: var(--gray); font-size: 14px; }
.value-card .idx { position: absolute; right: 16px; top: 8px; font-size: 44px; font-weight: 800; color: var(--light); }

/* ===== 业务板块 ===== */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.biz-card {
  background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}
.biz-card h3 { font-size: 22px; color: var(--deep); margin-bottom: 14px; }
.biz-card .tag { display: inline-block; font-size: 13px; color: var(--orange); font-weight: 700; margin-bottom: 12px; }
.biz-card p { color: var(--gray); }
.biz-card ul { margin-top: 16px; }
.biz-card ul li { padding: 6px 0; color: var(--ink); font-size: 15px; }
.biz-card ul li::before { content: "■ "; color: var(--orange); font-size: 12px; }

/* ===== 产品卡片 ===== */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.cat-nav a {
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 30px; font-size: 14px; color: var(--gray);
  transition: .2s;
}
.cat-nav a:hover, .cat-nav a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.cat-block { margin-bottom: 60px; }
.cat-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.cat-title .no { color: var(--orange); font-weight: 800; font-size: 20px; }
.cat-title h3 { font-size: 24px; color: var(--deep); }
.cat-title .en { color: var(--gray); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .25s; cursor: pointer;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card .thumb { height: 180px; background: var(--lighter); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb svg { width: 100%; height: 100%; }
.product-card .body { padding: 16px 18px; }
.product-card .body h4 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.product-card .body .spec { font-size: 13px; color: var(--gray); }

/* ===== 案例 ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case-card .no { color: var(--orange); font-weight: 800; font-size: 14px; }
.case-card h4 { font-size: 16px; color: var(--deep); margin: 8px 0 8px; }
.case-card p { font-size: 13px; color: var(--gray); }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; box-shadow: var(--shadow); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th { background: var(--blue); color: #fff; font-size: 14px; padding: 14px 16px; text-align: left; }
table.data td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
table.data tr:nth-child(even) td { background: var(--lighter); }

/* ===== 页头（子页） ===== */
.page-hero { background: linear-gradient(135deg, #071F3D, var(--deep) 60%, var(--blue)); color: #fff; padding: 64px 0; text-align: center; }
.page-hero h1 { font-size: 40px; font-weight: 800; }
.page-hero p { color: #C4D8EC; margin-top: 10px; font-size: 16px; }
.breadcrumb { color: #9FB8D4; font-size: 13px; margin-top: 8px; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-item .ic { width: 48px; height: 48px; border-radius: 10px; background: var(--light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.contact-item .l { font-size: 13px; color: var(--gray); }
.contact-item .v { font-size: 17px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }

/* ===== 页脚 ===== */
.site-footer { background: #071F3D; color: #C4D8EC; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: #C4D8EC; display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: var(--orange); }
.footer-logo { height: 50px; width: auto; margin-bottom: 14px; }
.site-footer .slogan { color: var(--orange); margin: 10px 0; font-weight: 700; }
.site-footer .words { font-size: 12px; color: #7f9bc0; letter-spacing: 1px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #7f9bc0; text-align: center; }

/* ===== 产品弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(7, 31, 61, .6); backdrop-filter: blur(2px); }
.modal-dialog {
  position: relative; background: #fff; border-radius: 14px; overflow: hidden; width: 100%; max-width: 900px;
  max-height: 88vh; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.modal-close {
  position: absolute; top: 10px; right: 14px; z-index: 2; width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(7,31,61,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--orange); }
.modal-gallery { background: var(--lighter); display: flex; flex-direction: column; min-height: 320px; }
.modal-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-main img { max-width: 100%; max-height: 52vh; object-fit: contain; }
.modal-thumbs { display: flex; gap: 8px; padding: 0 16px 16px; flex-wrap: wrap; }
.modal-thumbs img { width: 56px; height: 56px; object-fit: cover; border: 2px solid transparent; border-radius: 8px; cursor: pointer; background: #fff; }
.modal-thumbs img.on { border-color: var(--orange); }
.modal-info { padding: 28px 26px; overflow-y: auto; max-height: 88vh; }
.modal-family { display: inline-block; font-size: 12px; color: var(--orange); font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.modal-info h3 { font-size: 22px; color: var(--deep); margin-bottom: 8px; }
.modal-spec { font-size: 14px; color: var(--gray); margin-bottom: 12px; }
.modal-intro { font-size: 14px; color: var(--ink); background: var(--light); border-left: 3px solid var(--blue); padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.modal-intro:empty { display: none; }
.modal-params-title { font-size: 14px; font-weight: 700; color: var(--deep); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.modal-params ul { list-style: none; }
.modal-params ul li { padding: 6px 0 6px 16px; position: relative; font-size: 14px; color: var(--ink); border-bottom: 1px dashed var(--line); }
.modal-params ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .split, .biz-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-logo { height: 44px; }
  .hero-slide-word { font-size: 44px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-logo { height: 36px; }
  .hero-slides { min-height: 250px; }
  .hero-slide { padding: 0 52px; }
  .hero-slide-no { font-size: 60px; }
  .hero-slide-word { font-size: 34px; }
  .hero-slide-cn { font-size: 18px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 22px; }
  .product-grid, .case-grid, .values-grid { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .modal-dialog { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-gallery { min-height: 0; }
  .modal-main img { max-height: 32vh; }
  .modal-info { max-height: 60vh; }
}
