/* 昆山市昌隆模具钢材有限公司 - 企业官网样式 */
:root {
  --primary: #123a5e;
  --primary-dark: #0c2942;
  --accent: #e07b12;
  --accent-soft: #fdf3e7;
  --ink: #1f2a35;
  --muted: #5b6b7a;
  --line: #e3e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --radius: 10px;
  --max: 1160px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.topbar {
  background: var(--primary-dark);
  color: #c8d6e2;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #1d5a8f 100%);
  color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px;
}
.brand-name { font-size: 19px; font-weight: 700; color: var(--primary-dark); line-height: 1.3; }
.brand-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .5px; }
.main-nav { display: flex; gap: 8px; }
.main-nav a {
  padding: 8px 18px; border-radius: 6px; font-size: 15.5px; font-weight: 500; color: var(--ink);
  transition: all .2s;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: #fff; background: var(--primary); }
.nav-cta { background: var(--accent); color: #fff !important; }
.nav-cta:hover { background: #c96c0c; }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(9,26,42,.72), rgba(9,26,42,.82)), url("../images/cnc-workshop.jpg") center/cover no-repeat;
  padding: 110px 0 120px;
}
.hero h1 { font-size: 42px; line-height: 1.35; font-weight: 700; max-width: 780px; }
.hero h1 em { font-style: normal; color: #f5a94b; }
.hero p.lead { margin-top: 20px; font-size: 18px; color: #d9e4ee; max-width: 720px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 32px; border-radius: 6px;
  font-size: 16px; font-weight: 600; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c96c0c; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-tags { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags span {
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  padding: 6px 16px; font-size: 13.5px; color: #e4edf5;
}

/* ===== 数据条 ===== */
.stats-band { background: var(--primary-dark); color: #fff; padding: 34px 0; }
.stats-band .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: center; }
.stat b { display: block; font-size: 30px; color: #f5a94b; font-weight: 700; }
.stat b small { font-size: 15px; font-weight: 500; margin-left: 2px; }
.stat span { font-size: 13.5px; color: #b9c9d8; }

/* ===== 通用 Section ===== */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block; color: var(--accent); font-weight: 600;
  letter-spacing: 3px; font-size: 13.5px; margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; color: var(--primary-dark); line-height: 1.4; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* 卡片网格 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(18,58,94,.12); }
.card-img { height: 210px; overflow: hidden; background: #e8edf2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 10px; }
.card-body p { font-size: 14.5px; color: var(--muted); }
.card-body .more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14.5px; }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all .25s;
}
.feature:hover { border-color: var(--accent); box-shadow: 0 10px 26px rgba(18,58,94,.08); }
.feature .icon {
  width: 50px; height: 50px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); font-size: 22px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* 图文分栏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 44px rgba(18,58,94,.16); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { font-size: 30px; color: var(--primary-dark); line-height: 1.4; margin-bottom: 18px; }
.split-text p { color: var(--muted); margin-bottom: 14px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); font-size: 15.5px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* 材料牌号 */
.grade-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.grade-box h3 { color: var(--primary-dark); font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.grade-box h3::before { content: ""; width: 6px; height: 20px; background: var(--accent); border-radius: 3px; }
.grade-box p { font-size: 14.5px; color: var(--muted); }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; position: relative;
}
.flow-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 24px; font-weight: 700; color: #d8e2ec; margin-bottom: 8px;
}
.flow-step b { display: block; font-size: 15px; color: var(--primary-dark); margin-bottom: 6px; }
.flow-step span { font-size: 12.5px; color: var(--muted); }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px; color: var(--primary-dark);
  list-style: none; position: relative; padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--accent); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }

/* 供应商 */
.partners { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.partners span {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 26px; font-weight: 600; color: var(--primary-dark); font-size: 15px;
}

/* 资质证书 */
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cert-card .card-img { height: 260px; }

/* 团队 */
.team-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; }
.team-avatar {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2a6ca3); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
}
.team-card h3 { font-size: 18px; color: var(--primary-dark); }
.team-card .role { color: var(--accent); font-size: 13.5px; font-weight: 600; margin: 4px 0 10px; }
.team-card p { font-size: 13.5px; color: var(--muted); text-align: left; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; margin-bottom: 22px;
}
.contact-card h3 { color: var(--primary-dark); font-size: 19px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.contact-card h3::before { content: ""; width: 6px; height: 20px; background: var(--accent); border-radius: 3px; }
.contact-card p, .contact-card li { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.contact-card strong { color: var(--primary-dark); }
.contact-card a.phone { color: var(--accent); font-weight: 700; font-size: 18px; }
.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.inquiry-form h3 { color: var(--primary-dark); font-size: 20px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--primary-dark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: var(--bg-soft);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* 页脚 */
.site-footer { background: var(--primary-dark); color: #a9bccb; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: #f5a94b; }
.footer-about p { font-size: 14px; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 13px; text-align: center; }

/* 页头横幅（内页） */
.page-hero {
  background: linear-gradient(rgba(9,26,42,.72), rgba(9,26,42,.78)), url("../images/steel-workshop.jpg") center/cover no-repeat;
  color: #fff; padding: 72px 0; text-align: center;
}
.page-hero h1 { font-size: 34px; }
.page-hero p { margin-top: 12px; color: #cfdce8; }
.breadcrumb { font-size: 13.5px; color: #b9c9d8; margin-top: 16px; }
.breadcrumb a { color: #f5a94b; }

/* 新闻列表 */
.news-list { display: grid; gap: 22px; }
.news-item {
  display: grid; grid-template-columns: 240px 1fr; gap: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s;
}
.news-item:hover { box-shadow: 0 12px 30px rgba(18,58,94,.12); border-color: #cfdae5; }
.news-thumb { overflow: hidden; background: #e8edf2; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 26px 28px 26px 0; }
.news-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.news-tag {
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
  padding: 3px 12px; border-radius: 4px; font-size: 12.5px;
}
.news-body h3 { font-size: 20px; color: var(--primary-dark); line-height: 1.5; margin-bottom: 10px; }
.news-body p { font-size: 14.5px; color: var(--muted); }
.news-body .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 14.5px; }

/* 文章正文 */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-meta { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.article-body h2 {
  font-size: 24px; color: var(--primary-dark); margin: 40px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--accent); line-height: 1.5;
}
.article-body h3 { font-size: 19px; color: var(--primary-dark); margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; color: var(--ink); font-size: 16px; }
.article-body ul { margin: 0 0 18px; }
.article-body li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink); }
.article-body li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.article-body img { border-radius: var(--radius); margin: 24px 0; }
.article-quote {
  background: var(--bg-soft); border-left: 4px solid var(--primary);
  padding: 20px 24px; margin: 26px 0; font-size: 15.5px; color: var(--muted);
}
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: 14.5px; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.data-table th { background: var(--primary); color: #fff; font-weight: 600; }
.data-table tr:nth-child(even) td { background: var(--bg-soft); }

/* 案例 */
.case-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 30px;
}
.case-head { padding: 28px 30px 22px; border-bottom: 1px solid var(--line); }
.case-head h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 8px; }
.case-head .case-industry { font-size: 13.5px; color: var(--accent); font-weight: 600; }
.case-body { padding: 26px 30px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.case-spec li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.case-spec li:last-child { border-bottom: none; }
.case-spec b { color: var(--primary-dark); display: inline-block; min-width: 96px; }
.case-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.case-figures img { border-radius: 8px; width: 100%; height: 130px; object-fit: cover; }
.case-result { background: var(--accent-soft); padding: 18px 24px; font-size: 14.5px; color: var(--ink); border-top: 1px solid var(--line); }

/* 响应式 */
@media (max-width: 960px) {
  .grid-3, .grid-4, .flow { grid-template-columns: repeat(2, 1fr); }
  .stats-band .container { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .split, .contact-grid, .news-item, .case-body { grid-template-columns: 1fr; }
  .news-body { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .flow, .form-row { grid-template-columns: 1fr; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .case-figures { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 70px 0 80px; }
}

/* 图纸上传 */
.file-drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file-drop:hover, .file-drop.dragover { border-color: var(--accent); background: var(--accent-soft); }
.file-drop-icon { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.file-drop strong { display: block; font-size: 14.5px; color: var(--primary-dark); margin-bottom: 4px; }
.file-drop span { font-size: 12.5px; color: var(--muted); }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 13.5px; color: var(--ink);
}
.file-list .file-thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.file-list .file-ext {
  width: 34px; height: 34px; flex: none; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
}
.file-list .file-meta { flex: 1; min-width: 0; }
.file-list .file-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.file-list .file-size { font-size: 12px; color: var(--muted); }
.file-list .file-remove {
  flex: none; border: none; background: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 4px 6px; line-height: 1;
}
.file-list .file-remove:hover { color: #c0392b; }
.file-error { font-size: 12.5px; color: #c0392b; margin-top: 8px; display: none; }

/* 企业文化：相册与视频占位 */
.culture-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.culture-gallery img { width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.ph-box {
  width: 100%; height: 230px; border-radius: var(--radius);
  border: 1px dashed #cdd7e0; background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; gap: 6px; text-align: center; padding: 0 14px;
}
.ph-box b { font-size: 22px; line-height: 1; opacity: .55; }
.video-slot {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.video-slot video, .video-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  border: 1px dashed #cdd7e0; background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; gap: 6px;
}
.album-cap { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.culture-values .feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
@media (max-width: 960px) { .culture-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .culture-gallery { grid-template-columns: 1fr; } }
.brand-logo { width: 44px; height: 43px; display: block; object-fit: contain; }

/* 备案号 */
.footer-bottom a { color: #a9bccb; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: #f5a94b; text-decoration: underline; }
