/* ============================================================
   上海奥立杰机械科技有限公司 官网样式
   风格：简约大气 / 工业专业 / 响应式
   ============================================================ */

:root {
  --navy: #15324f;
  --navy-deep: #0e2238;
  --blue: #1f5a8a;
  --accent: #e2a33b;        /* 琥珀金，象征动力/能量 */
  --accent-dark: #c8881f;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-mute: #eef2f6;
  --text: #2b3a47;
  --text-soft: #5e6f7d;
  --line: #e2e8ee;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(21, 50, 79, 0.08);
  --shadow-lg: 0 18px 50px rgba(21, 50, 79, 0.14);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans CN", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 顶部导航 ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 34, 56, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand .logo-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--navy-deep); font-size: 18px;
  box-shadow: 0 4px 12px rgba(226, 163, 59, 0.4);
}
.brand .brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand .brand-sub { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  transition: all .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--navy-deep); background: var(--accent); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 34px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 1px;
}
.section-head p { color: var(--text-soft); margin-top: 14px; font-size: 16px; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 70% -10%, #1f5a8a 0%, transparent 60%),
              linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #18456e 100%);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 96px;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 60px solid rgba(226,163,59,.08);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  position: relative; z-index: 2;
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 16px; border-radius: 30px; font-size: 13px;
  color: #d9e6f1; margin-bottom: 24px;
}
.hero h1 {
  font-size: 48px; line-height: 1.25; font-weight: 800; letter-spacing: 1px;
}
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-top: 22px; font-size: 18px; color: rgba(255,255,255,.82); max-width: 520px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .2s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--navy-deep); }
.btn-primary:hover { background: #f0b351; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226,163,59,.35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(4px);
}
.hero-card h3 { font-size: 18px; margin-bottom: 18px; color: #fff; }
.hero-card .stat-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-card .stat-row:last-child { border-bottom: none; }
.hero-card .stat-row .k { color: rgba(255,255,255,.7); font-size: 14px; }
.hero-card .stat-row .v { color: var(--accent); font-weight: 700; font-size: 18px; }

/* ---------------- 优势卡片 ---------------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: all .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-mute); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 14.5px; }

/* ---------------- 品牌双栏 ---------------- */
.brand-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.brand-box {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
}
.brand-box .top {
  padding: 30px 32px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-box .top .bname { font-size: 22px; font-weight: 800; }
.brand-box .top .ben { font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: 1px; }
.brand-box .top .badge { background: var(--accent); color: var(--navy-deep); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
.brand-box .body { padding: 28px 32px; }
.brand-box .body p { color: var(--text-soft); margin-bottom: 18px; }
.brand-box .body ul li { padding: 9px 0 9px 26px; position: relative; color: var(--text); font-size: 15px; border-bottom: 1px dashed var(--line); }
.brand-box .body ul li:last-child { border-bottom: none; }
.brand-box .body ul li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent); }

/* ---------------- 应用领域 ---------------- */
.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag-pill {
  background: #fff; border: 1px solid var(--line); border-radius: 30px;
  padding: 11px 24px; font-size: 15px; color: var(--text);
  transition: all .2s ease;
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }

/* ---------------- 关于我们 ---------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid .text h2 { font-size: 32px; color: var(--navy); margin-bottom: 20px; font-weight: 800; }
.about-grid .text p { color: var(--text-soft); margin-bottom: 16px; }
.about-grid .text .hl-list li { padding: 10px 0 10px 30px; position: relative; color: var(--text); }
.about-grid .text .hl-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 800; }
.about-visual {
  background: linear-gradient(135deg, var(--navy), #1f5a8a);
  border-radius: 16px; padding: 44px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.about-visual .num { font-size: 46px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.about-visual .label { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 28px; }
.about-visual .divider { height: 1px; background: rgba(255,255,255,.15); margin: 26px 0; }

/* ---------------- 产品服务 ---------------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px; transition: all .25s ease; position: relative; overflow: hidden;
}
.prod-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 0;
  background: var(--accent); transition: height .3s ease;
}
.prod-card:hover::before { height: 100%; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod-card .ptag { font-size: 12px; color: var(--accent-dark); font-weight: 700; letter-spacing: 1px; }
.prod-card h3 { font-size: 19px; color: var(--navy); margin: 8px 0 12px; }
.prod-card p { color: var(--text-soft); font-size: 14.5px; margin-bottom: 16px; }
.prod-card ul li { font-size: 14px; color: var(--text); padding: 5px 0 5px 20px; position: relative; }
.prod-card ul li::before { content: "·"; position: absolute; left: 6px; color: var(--accent); font-weight: 800; }

/* 服务流程 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 12px; }
.flow .step { text-align: center; position: relative; }
.flow .step .circle {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(21,50,79,.25);
}
.flow .step h4 { color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.flow .step p { color: var(--text-soft); font-size: 13.5px; }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info .item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .item .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-mute); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-info .item .meta .t { font-size: 13px; color: var(--text-soft); }
.contact-info .item .meta .v { font-size: 16px; color: var(--navy); font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-size: 14px; color: var(--text); margin-bottom: 7px; font-weight: 600; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; color: var(--text); background: #fff;
  transition: border-color .2s ease;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); }
.form textarea { resize: vertical; min-height: 110px; }
.form .note { font-size: 12.5px; color: var(--text-soft); margin-top: 4px; }

.map-placeholder {
  margin-top: 40px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
  height: 280px; display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 15px; text-align: center;
}
.map-placeholder .pin { font-size: 34px; margin-bottom: 10px; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer .fbrand .brand-name { color: #fff; font-size: 18px; font-weight: 700; }
.footer .fbrand p { font-size: 14px; margin-top: 12px; color: rgba(255,255,255,.55); max-width: 280px; }
.footer ul li { padding: 6px 0; font-size: 14px; }
.footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.45);
}

/* ---------------- 回到顶部 / 提示 ---------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 30px;
  font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: all .3s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .brand-row, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 26px; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; align-items: stretch;
    padding: 12px 16px; gap: 4px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .cards-grid, .prod-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
