/* ==========================================================
   烟台天工机械设备有限公司 — 官网样式
   移动优先 / 响应式 / 工业蓝主色
   ========================================================== */

:root {
  --primary: #14417a;
  --primary-dark: #0d2b52;
  --accent: #e08b2d;
  --accent-dark: #c4761f;
  --text: #2b3440;
  --text-light: #5c6875;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 8px;
  --shadow: 0 2px 14px rgba(20, 65, 122, .08);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 {
  font-size: 28px; color: var(--primary); margin: 0 0 10px;
  position: relative; display: inline-block; padding-bottom: 12px;
}
.section-title h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%); width: 56px; height: 3px;
  background: var(--accent); border-radius: 2px;
}
.section-title p { color: var(--text-light); margin: 0; font-size: 15px; }

/* ============ 顶部 ============ */
.topbar {
  background: var(--primary-dark); color: #c9d6e6; font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.topbar a { color: #c9d6e6; }
.topbar a:hover { color: #fff; }

.header {
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 46px; width: auto; object-fit: contain; }
.logo-text { font-size: 19px; font-weight: 700; color: var(--primary); line-height: 1.25; }
.logo-text span { display: block; font-size: 12px; font-weight: 400; color: var(--text-light); letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text); font-size: 15px; padding: 8px 12px; border-radius: 4px;
  transition: all .2s; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--bg-soft); }
.nav a.active { font-weight: 600; }
.nav-phone {
  margin-left: 8px; background: var(--accent); color: #fff !important;
  padding: 9px 16px !important; border-radius: 24px; font-weight: 700; font-size: 15px;
}
.nav-phone:hover { background: var(--accent-dark) !important; color: #fff !important; }

.menu-toggle {
  display: none; background: var(--primary); border: none; cursor: pointer;
  padding: 10px; border-radius: 4px; flex-direction: column; gap: 4px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; }

/* ============ 横幅 ============ */
.hero {
  background: linear-gradient(135deg, #14417a 0%, #1e5591 55%, #2a6cb0 100%);
  color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 36px; margin: 0 0 16px; line-height: 1.4; font-weight: 700; }
.hero .lead { font-size: 17px; opacity: .93; margin: 0 0 28px; max-width: 760px; line-height: 1.9; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 32px; border-radius: 30px;
  font-weight: 600; font-size: 15px; transition: all .22s; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); color: #fff; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 30px; font-weight: 800; color: #ffd9a8; line-height: 1.2; }
.hero-stat .lab { font-size: 13px; opacity: .88; margin-top: 4px; }

/* ============ 卡片网格 ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 26px rgba(20,65,122,.13); border-color: #c9d8ea; }
.card-img { height: 200px; overflow: hidden; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 8px; font-size: 17px; color: var(--primary); }
.card-body p { margin: 0 0 14px; color: var(--text-light); font-size: 14px; line-height: 1.75; flex: 1; }
.card-more { color: var(--accent); font-weight: 600; font-size: 14px; }
.card-more:hover { color: var(--accent-dark); }

/* ============ 事实表（GEO 核心）============ */
.fact-table {
  width: 100%; border-collapse: collapse; background: #fff; font-size: 15px;
  box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden;
}
.fact-table th, .fact-table td { border: 1px solid var(--border); padding: 13px 18px; text-align: left; vertical-align: top; line-height: 1.8; }
.fact-table th { background: var(--primary); color: #fff; font-weight: 600; width: 160px; white-space: nowrap; }
.fact-table tr:nth-child(even) td { background: #fafbfd; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-note { font-size: 13px; color: var(--text-light); text-align: center; margin-top: 12px; font-style: normal; }

/* ============ 参数表 ============ */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: center; line-height: 1.6; }
.spec-table thead th { background: var(--primary); color: #fff; font-weight: 600; white-space: nowrap; }
.spec-table tbody th { background: var(--bg-soft); font-weight: 600; color: var(--primary); text-align: left; white-space: nowrap; }
.spec-table tbody tr:hover td { background: #f0f5fb; }

/* ============ 特性列表 ============ */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 28px; }
.feature-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.8; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}

/* ============ 面包屑 ============ */
.breadcrumb { background: var(--bg-soft); padding: 14px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-light); margin: 0 6px; }
.breadcrumb .cur { color: var(--primary); font-weight: 600; }

/* ============ 页面头 ============ */
.page-head { background: var(--primary); color: #fff; padding: 40px 0; }
.page-head h1 { margin: 0 0 6px; font-size: 30px; }
.page-head p { margin: 0; opacity: .9; font-size: 15px; }

/* ============ 内容区 ============ */
.content { padding: 48px 0 60px; }
.content h2 { color: var(--primary); font-size: 24px; margin: 40px 0 16px; padding-left: 12px; border-left: 4px solid var(--accent); }
.content h2:first-child { margin-top: 0; }
.content h3 { color: var(--primary); font-size: 18px; margin: 28px 0 12px; }
.content p { margin: 0 0 14px; line-height: 2; }
.content ul, .content ol { padding-left: 24px; margin: 0 0 16px; }
.content li { margin-bottom: 8px; line-height: 1.9; }
.lead-text { font-size: 17px; color: var(--text-light); line-height: 2; margin-bottom: 28px; }

/* ============ 产品详情布局 ============ */
.product-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.product-gallery .main-img { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.thumb-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 10px; }
.thumb-row img {
  border: 1px solid var(--border); border-radius: 5px; cursor: pointer;
  height: 76px; width: 100%; object-fit: cover; transition: all .2s;
}
.thumb-row img:hover { border-color: var(--accent); }

.side-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.side-box h3 { margin: 0 0 14px; font-size: 17px; color: var(--primary); }
.side-box ul { margin: 0; padding-left: 20px; font-size: 14px; }
.side-box li { margin-bottom: 8px; line-height: 1.8; }
.contact-box { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 26px; text-align: center; }
.contact-box h3 { color: #fff; margin: 0 0 8px; font-size: 18px; }
.contact-box p { opacity: .9; font-size: 14px; margin: 0 0 18px; }
.contact-box .tel { display: block; background: var(--accent); color: #fff; padding: 12px; border-radius: 30px; font-weight: 700; font-size: 17px; }
.contact-box .tel:hover { background: var(--accent-dark); }

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--border); padding: 26px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 17px; color: var(--primary); margin: 0 0 10px; line-height: 1.7; }
.faq-item h3::before { content: "Q "; color: var(--accent); font-weight: 800; }
.faq-answer { color: var(--text); font-size: 15px; line-height: 2; }
.faq-answer::before { content: "A "; color: var(--primary); font-weight: 800; }
.faq-answer p { margin: 0 0 10px; display: inline; }
.faq-answer ul { margin: 10px 0; padding-left: 24px; display: block; }

/* ============ 案例 ============ */
.case-item {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px; align-items: center;
}
.case-item img { width: 100%; height: 170px; object-fit: cover; border-radius: 6px; }
.case-item h3 { margin: 0 0 10px; font-size: 18px; color: var(--primary); }
.case-item p { margin: 0; color: var(--text-light); font-size: 15px; line-height: 1.85; }

/* ============ 联系卡片 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.contact-card .icon { font-size: 30px; margin-bottom: 10px; }
.contact-card h3 { margin: 0 0 10px; font-size: 17px; color: var(--primary); }
.contact-card p { margin: 0; color: var(--text-light); font-size: 15px; line-height: 1.9; }
.contact-card a { font-weight: 600; }

/* ============ CTA ============ */
.cta-band {
  background: linear-gradient(135deg, var(--primary), #2a6cb0);
  color: #fff; padding: 48px 0; text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: 26px; }
.cta-band p { margin: 0 0 22px; opacity: .92; }

/* ============ 页脚 ============ */
.footer { background: #0f2438; color: #a8b8cc; padding: 44px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer p { margin: 0 0 8px; line-height: 1.9; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #a8b8cc; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px;
  text-align: center; font-size: 13px; color: #7d8fa5;
}

/* ============ 移动端固定条 ============ */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff; box-shadow: 0 -2px 14px rgba(0,0,0,.12);
  padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px;
}
.mobile-cta .tel { font-weight: 700; color: var(--primary); font-size: 16px; }
.mobile-cta .btn { padding: 9px 20px; font-size: 14px; }

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

@media (max-width: 768px) {
  body { font-size: 15px; }
  .menu-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 10px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .nav-phone { margin: 8px 0 0; text-align: center; }
  .header-inner { padding: 10px 16px; }
  .logo-text { font-size: 16px; }
  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: 25px; }
  .hero .lead { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 30px; }
  .hero-stat .num { font-size: 24px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
  .section-title h2 { font-size: 22px; }
  .feature-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .case-item { grid-template-columns: 1fr; gap: 14px; }
  .case-item img { height: 200px; }
  .fact-table th { width: 100px; }
  .fact-table th, .fact-table td { padding: 10px 12px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 62px; }
  .page-head h1 { font-size: 23px; }
  .content h2 { font-size: 20px; }
  .thumb-row { grid-template-columns: repeat(4,1fr); }
  .thumb-row img { height: 58px; }
}

@media (max-width: 420px) {
  .hero-btns .btn { width: 100%; text-align: center; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* 打印优化 */
@media print {
  .header, .footer, .mobile-cta, .cta-band { display: none; }
}
