/* 帝境杭萧钢构 企业官网 样式
   设计语言：工业硬核 + 钢蓝 + 橙红警示色 */

:root {
  --steel: #16324f;
  --steel-dark: #0e2236;
  --steel-light: #234b6e;
  --accent: #ff6a2b;
  --accent-dark: #e8551c;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #16222e;
  --muted: #5c6b78;
  --line: #e2e7ec;
  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(14, 34, 54, 0.10);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 34, 54, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.logo-img { height: 44px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.logo-mark { display: none; }

.nav-links { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav-links a {
  color: #cdd9e4; padding: 8px 14px; border-radius: 6px;
  font-size: 15px; font-weight: 500; transition: 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a.active { color: #fff; background: rgba(255, 106, 43, 0.18); }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 0; transition: 0.2s; line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 106, 43, 0.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-dark { background: var(--steel); color: #fff; }
.btn-dark:hover { background: var(--steel-light); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(14,34,54,0.88) 0%, rgba(22,50,79,0.72) 55%, rgba(14,34,54,0.55) 100%),
    url(assets/img/hero.jpg) center/cover no-repeat,
    var(--steel-dark);
  color: #fff; padding: 92px 0 110px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px;
  width: 460px; height: 460px; border: 2px solid rgba(255,106,43,0.25);
  border-radius: 50%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700;
  letter-spacing: 3px; font-size: 13px; margin-bottom: 14px;
  border-left: 3px solid var(--accent); padding-left: 12px;
}
.hero h1 { font-size: 46px; line-height: 1.15; font-weight: 900; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero .slogan { font-size: 19px; color: #d4dde6; margin-bottom: 30px; }
.hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Stats bar ===== */
.stats {
  background: var(--steel);
  margin-top: -56px; position: relative; z-index: 5;
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.stat {
  padding: 26px 24px; color: #fff; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: 0; }
.stat .num { font-size: 34px; font-weight: 900; color: var(--accent); line-height: 1.1; }
.stat .num small { font-size: 16px; font-weight: 700; }
.stat .label { font-size: 14px; color: #b9c7d4; margin-top: 6px; }

/* ===== Sections ===== */
.section { padding: 78px 0; }
.section.alt { background: var(--panel); }
.section-head { margin-bottom: 42px; max-width: 760px; }
.section-head .tag {
  color: var(--accent); font-weight: 700; letter-spacing: 2px;
  font-size: 13px; text-transform: uppercase;
}
.section-head h2 { font-size: 32px; font-weight: 900; margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ===== Card grids ===== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: 0.22s;
  box-shadow: 0 2px 10px rgba(14,34,54,0.04);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdae4; }
.card .ico {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(255,106,43,0.12);
  color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* feature / benefit cards */
.benefit { background: var(--steel); color: #fff; border: 0; }
.benefit h3 { color: #fff; }
.benefit p { color: #c2cfdb; }
.benefit .ico { background: rgba(255,255,255,0.1); color: var(--accent); }
.benefit .bnum { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 1px; }

/* ===== Cases ===== */
.case-group-title {
  font-size: 15px; font-weight: 800; letter-spacing: 1px; color: var(--steel);
  margin: 34px 0 16px; display: flex; align-items: center; gap: 10px;
}
.case-group-title::before { content: ""; width: 22px; height: 3px; background: var(--accent); }
.case-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: 0.22s; box-shadow: 0 2px 10px rgba(14,34,54,0.04);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--steel-light);
  position: relative;
  overflow: hidden;
}
.case-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,34,54,0.05) 0%, rgba(14,34,54,0.55) 100%);
  pointer-events: none;
}
.case-thumb .ph { font-size: 13px; color: #cdd9e4; letter-spacing: 1px; }
.case-thumb .ton { position: absolute; bottom: 12px; right: 14px; z-index: 2;
  background: rgba(255,106,43,0.92); color: #fff; font-weight: 800;
  padding: 5px 12px; border-radius: 20px; font-size: 13px; }
.case-body { padding: 20px 22px 24px; }
.case-body .loc { color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }
.case-body h3 { font-size: 18px; margin: 6px 0 10px; }
.case-body p { color: var(--muted); font-size: 14.5px; }

/* ===== Certificates ===== */
.cert-card { text-align: center; padding: 26px 26px 28px; }
.cert-card .cert-visual {
  height: 200px; margin: -26px -26px 18px; border-radius: var(--radius) var(--radius) 0 0;
  background: #f4f6f8;
  display: grid; place-items: center; color: var(--muted);
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.cert-card .cert-visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cert-card h3 { font-size: 17px; margin-bottom: 6px; }
.cert-card p { color: var(--muted); font-size: 14px; }

/* ===== Photo utilities ===== */
.feature-photo {
  aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 28px;
  background: var(--steel-light);
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 36px; }
.photo-grid .ph { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--steel-light); }
.photo-grid .ph-wide { aspect-ratio: 16/9; }
.photo-grid .ph-tall { aspect-ratio: 4/5; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.photo-grid .ph:hover img { transform: scale(1.04); }

.photo-band { position: relative; height: 360px; overflow: hidden; border-radius: var(--radius); margin: 36px 0; box-shadow: var(--shadow); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-band .caption { position: absolute; left: 0; bottom: 0; padding: 14px 20px;
  color: #fff; font-size: 13px; letter-spacing: 1px; background: linear-gradient(0deg, rgba(14,34,54,0.85), transparent);
  border-left: 3px solid var(--accent); }

.product-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--steel-light); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.case-card:hover .product-photo img { transform: scale(1.05); }

/* ===== Contact ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .ic {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: rgba(255,106,43,0.12); color: var(--accent-dark);
  display: grid; place-items: center;
}
.info-list .t { font-weight: 700; font-size: 15px; }
.info-list .d { color: var(--muted); font-size: 15px; }

.map-ph {
  height: 280px; border-radius: var(--radius); margin-top: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
}
.map-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.map-ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(14,34,54,0.35));
  pointer-events: none;
}
/* 腾讯地图加载后注入的 canvas 盖在 fallback 之上 */
#map canvas { position: relative; z-index: 1; }
.map-ph .addr-badge { position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(14,34,54,0.88); color: #fff; padding: 10px 14px;
  border-radius: 6px; font-size: 13px; line-height: 1.6;
  border-left: 3px solid var(--accent);
  backdrop-filter: blur(4px);
}
.map-nav { display: flex; gap: 10px; margin-top: 12px; }
.map-nav a {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 8px;
  background: rgba(22,50,79,0.06); border: 1px solid var(--line);
  color: var(--steel-dark); font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: 0.2s;
}
.map-nav a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.map-nav .en { display: inline; margin-left: 4px; font-size: .85em; font-weight: 500; }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form h3 { font-size: 20px; margin-bottom: 6px; }
.form .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.wenjuan-embed { width: 100%; margin-bottom: 4px; }
.wenjuan-iframe { width: 100%; height: 720px; border: 0; border-radius: 8px; background: #fff; }
.form-alt { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-alt a { color: var(--accent-dark); font-weight: 600; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fbfcfd; transition: 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(255,106,43,0.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.form-ok {
  display: none; background: rgba(34,160,90,0.1); color: #1d7a45;
  border: 1px solid rgba(34,160,90,0.3); padding: 14px; border-radius: 8px;
  font-size: 14px; margin-top: 16px; font-weight: 600;
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--steel-dark), var(--steel));
  color: #fff; text-align: center; padding: 64px 0; border-top: 3px solid var(--accent);
}
.cta-band h2 { font-size: 30px; font-weight: 900; margin-bottom: 12px; }
.cta-band p { color: #c2cfdb; margin-bottom: 26px; font-size: 16px; }

/* ===== Footer ===== */
.site-footer { background: var(--steel-dark); color: #aebccb; padding: 54px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-top h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-top p { font-size: 14px; line-height: 1.9; }
.footer-top a { color: #aebccb; font-size: 14px; display: block; padding: 4px 0; transition: 0.2s; }
.footer-top a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 38px; padding-top: 20px;
  font-size: 13px; color: #7c8b9a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ===== Bilingual (中英对照) ===== */
.en { display: block; font-size: .62em; line-height: 1.55; color: var(--muted); font-weight: 500; margin-top: .4em; }
.eyebrow .en, .tag .en, .loc .en, .btn .en, .nav-links a .en,
.stat .label .en, label .en, option .en, .info-list .t .en { display: inline; font-size: .82em; margin-top: 0; margin-left: 5px; }
.hero h1 .en { display: block; font-size: .44em; font-weight: 700; color: #e6edf3; margin-top: .4em; letter-spacing: .5px; }
h1 .en { font-size: .5em; font-weight: 700; color: #d4dde6; margin-top: .35em; }
h2 .en { display: block; font-size: .56em; font-weight: 700; color: var(--accent); margin-top: .35em; }
h3 .en, h4 .en { display: block; font-size: .72em; color: var(--muted); font-weight: 600; margin-top: .28em; }
.case-body h3 .en, .cert-card h3 .en { color: #8aa0b4; }
.stat .label .en { font-size: .85em; margin-top: 2px; }
.footer-bottom .en { display: inline; font-size: .92em; }
@media (max-width: 680px) { .nav-links a .en { display: none; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-band { height: 240px; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--steel-dark); padding: 12px 22px 18px; gap: 2px;
    border-bottom: 3px solid var(--accent);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .section { padding: 56px 0; }
  .logo-img { height: 36px; }
}
