/* ============================================
   宁波司友智能科技有限公司 - 企业官网样式
   主题色：深蓝色系
   ============================================ */
:root {
  --primary: #0a2a5e;        /* 主深蓝 */
  --primary-2: #123f87;      /* 次深蓝 */
  --primary-3: #1b53ad;      /* 亮深蓝 */
  --accent: #2e7cf6;         /* 强调蓝 */
  --accent-light: #5b9bff;
  --dark: #081c3d;           /* 极深蓝（背景） */
  --text: #2c3e5a;           /* 正文 */
  --text-light: #6b7a99;
  --bg-light: #f4f7fc;
  --white: #ffffff;
  --border: #e3eaf5;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(10, 42, 94, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 42, 94, 0.16);
}

* { 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(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息栏 ---------- */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #9fc2ff; }
.topbar a:hover { color: #fff; }
.topbar span { margin-right: 18px; }

/* ---------- 导航栏 ---------- */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 4px 14px rgba(8,28,61,.25);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo-badge {
  width: 46px; height: 46px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.logo h1 { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.logo p { font-size: 12px; color: rgba(255,255,255,.72); letter-spacing: 2px; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,.9); padding: 10px 16px; border-radius: 6px;
  font-size: 15px; transition: all .25s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--accent-light); border-radius: 2px;
}
.nav-phone {
  margin-left: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 8px 16px; border-radius: 30px; color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- 横幅 Hero ---------- */
.hero {
  position: relative; height: 560px; background-size: cover; background-position: center;
  display: flex; align-items: center; color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,28,61,.92) 0%, rgba(10,42,94,.72) 45%, rgba(18,63,135,.30) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h2 { font-size: 46px; line-height: 1.25; font-weight: 800; margin-bottom: 16px; letter-spacing: 2px; }
.hero h2 em { font-style: normal; color: var(--accent-light); }
.hero p { font-size: 17px; color: rgba(255,255,255,.88); max-width: 640px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 30px; font-size: 15px; font-weight: 600;
  transition: all .25s; border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; box-shadow: 0 8px 22px rgba(46,124,246,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46,124,246,.5); }
.btn-outline { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div b { font-size: 30px; color: var(--accent-light); display: block; }
.hero-stats div span { font-size: 13px; color: rgba(255,255,255,.78); }

/* ---------- 页面内页横幅 ---------- */
.page-banner {
  height: 260px; background-size: cover; background-position: center;
  display: flex; align-items: center; color: #fff; position: relative;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,28,61,.9), rgba(18,63,135,.62));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h2 { font-size: 34px; font-weight: 800; letter-spacing: 2px; }
.page-banner p { color: rgba(255,255,255,.85); margin-top: 6px; font-size: 15px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 10px; }
.crumbs a { color: var(--accent-light); }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .tag {
  display: inline-block; color: var(--accent); background: rgba(46,124,246,.10);
  padding: 4px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 12px; letter-spacing: 1px;
}
.section-head h3 { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.section-head .line { width: 56px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); margin: 14px auto 0; border-radius: 3px; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h4 { font-size: 22px; color: var(--primary); margin-bottom: 16px; }
.about-text p { margin-bottom: 12px; color: var(--text-light); text-align: justify; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.about-features li {
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text);
}
.about-features li b { color: var(--accent); font-size: 18px; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-img .exp {
  position: absolute; right: -14px; bottom: -18px; background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; padding: 16px 22px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-lg);
}
.about-img .exp b { font-size: 30px; display: block; }
.about-img .exp span { font-size: 12px; }

/* ---------- 产品服务 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: all .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .img { position: relative; overflow: hidden; }
.product-card .img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s; }
.product-card:hover .img img { transform: scale(1.06); }
.product-card .body { padding: 20px; }
.product-card .body h4 { color: var(--primary); font-size: 17px; margin-bottom: 8px; }
.product-card .body p { font-size: 13.5px; color: var(--text-light); margin-bottom: 12px; min-height: 42px; }
.product-card .more { color: var(--accent); font-size: 13.5px; font-weight: 600; }
.product-card .more:hover { text-decoration: underline; }

/* ---------- 案例展示 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: all .3s; background: #fff;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.case-card .info { padding: 18px 20px; }
.case-card .info h4 { color: var(--primary); font-size: 16px; margin-bottom: 6px; }
.case-card .info p { font-size: 13px; color: var(--text-light); }

/* ---------- 新闻中心 ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: all .3s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card .date {
  font-size: 12.5px; color: var(--accent); background: rgba(46,124,246,.08);
  display: inline-block; padding: 3px 10px; border-radius: 14px; margin-bottom: 12px; align-self: flex-start;
}
.news-card h4 { font-size: 16px; color: var(--primary); margin-bottom: 10px; line-height: 1.5; }
.news-card h4:hover { color: var(--accent); }
.news-card p { font-size: 13.5px; color: var(--text-light); flex: 1; }

/* ---------- 人才招聘 ---------- */
.job-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.job-list { display: grid; gap: 18px; }
.job-item {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); transition: all .3s;
}
.job-item:hover { box-shadow: var(--shadow-lg); transform: translateX(4px); }
.job-item .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.job-item h4 { font-size: 18px; color: var(--primary); }
.job-item .tag { font-size: 12.5px; background: rgba(46,124,246,.10); color: var(--accent); padding: 3px 10px; border-radius: 14px; }
.job-item ul { margin-top: 12px; padding-left: 4px; }
.job-item ul li { font-size: 14px; color: var(--text-light); padding: 3px 0; }
.job-item ul li::before { content: "·"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.job-apply {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg);
}
.job-apply h4 { font-size: 19px; margin-bottom: 12px; color: #fff; }
.job-apply p { font-size: 14px; color: rgba(255,255,255,.82); margin-bottom: 10px; }
.job-apply .contact-line { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 15px; color: #fff; }

/* ---------- 联系信息条 ---------- */
.contact-strip {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-3) 100%);
  color: #fff; padding: 46px 0;
}
.contact-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-strip .item { display: flex; align-items: flex-start; gap: 16px; }
.contact-strip .icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.contact-strip h4 { font-size: 16px; margin-bottom: 4px; }
.contact-strip p { font-size: 14px; color: rgba(255,255,255,.82); }

/* ---------- 页脚 ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 46px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 34px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent); }
.footer .brand p { font-size: 13.5px; margin-top: 12px; line-height: 1.8; }
.footer ul li { padding: 4px 0; font-size: 13.5px; }
.footer ul li a:hover { color: var(--accent-light); }
.footer ul li::before { content: "›"; color: var(--accent); margin-right: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 16px 0; font-size: 13px;
}
.footer-bottom a { color: var(--accent-light); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- 产品页详细 ---------- */
.prod-cat { margin-bottom: 60px; }
.prod-cat-title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.prod-cat-title .num {
  width: 42px; height: 42px; border-radius: 10px; color: #fff; font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.prod-cat-title h3 { font-size: 22px; color: var(--primary); }
.prod-cat-title p { font-size: 13.5px; color: var(--text-light); }
.prod-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-detail-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s;
}
.prod-detail-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prod-detail-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.prod-detail-card .bd { padding: 16px 18px; }
.prod-detail-card .bd h4 { color: var(--primary); font-size: 16px; margin-bottom: 6px; }
.prod-detail-card .bd p { font-size: 13px; color: var(--text-light); }
.prod-detail-card .bd .price { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 8px; }

/* ---------- 联系我们页 ---------- */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-info-card {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg);
}
.contact-info-card h4 { font-size: 20px; margin-bottom: 22px; }
.contact-info-card .li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-info-card .ic {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.14); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-info-card .li b { display: block; font-size: 13px; color: rgba(255,255,255,.75); font-weight: 400; }
.contact-info-card .li span { font-size: 16px; }
.contact-form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.contact-form-card h4 { font-size: 20px; color: var(--primary); margin-bottom: 6px; }
.contact-form-card .sub { font-size: 13.5px; color: var(--text-light); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { font-size: 13.5px; color: var(--text); margin-bottom: 6px; display: block; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; transition: border .2s; background: var(--bg-light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.map-box { margin-top: 60px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-box iframe { width: 100%; height: 380px; border: 0; filter: saturate(.9); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .about-grid, .job-wrap, .contact-page-grid { grid-template-columns: 1fr; }
  .product-grid, .case-grid, .news-list, .prod-detail { grid-template-columns: repeat(2, 1fr); }
  .contact-strip .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { height: 440px; }
  .hero h2 { font-size: 32px; }
  .section { padding: 56px 0; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--primary-2); padding: 12px 20px 20px; display: none; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .topbar .container { justify-content: center; }
  .product-grid, .case-grid, .news-list, .prod-detail { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
