/* 沈阳志德风机有限公司 官网样式 */
:root {
  --navy: #0d2438;
  --steel: #14456b;
  --accent: #1f7ac2;
  --accent-dark: #16629f;
  --ink: #1c2b36;
  --muted: #5c6b77;
  --line: #e3e9ee;
  --bg: #f5f7f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 36, 56, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--steel), var(--accent));
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px;
}
.brand-text { line-height: 1.2; }
.brand-text b { font-size: 17px; letter-spacing: 2px; color: var(--navy); display: block; }
.brand-text span { font-size: 10px; color: var(--muted); letter-spacing: .4px; }

.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  padding: 8px 16px; border-radius: 6px; font-size: 15px; color: var(--ink);
  transition: all .2s;
}
.main-nav a:hover { color: var(--accent); background: #eef5fb; }
.main-nav a.active { color: var(--accent); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.auth-area { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1px solid var(--line); background: #fff; color: var(--steel);
  border-radius: 6px; padding: 7px 13px; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; cursor: pointer; transition: all .2s; font-family: inherit;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); background: #eef5fb; }
.btn {
  display: inline-block; padding: 9px 22px; border-radius: 6px;
  font-size: 15px; cursor: pointer; border: none; transition: all .2s;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); padding: 9px 10px; }
.btn-ghost:hover { color: var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: 13px 34px; font-size: 16px; }

.user-chip {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink);
}
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--steel), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(9, 26, 41, .72), rgba(9, 26, 41, .55)),
    url("../img/hero.jpg") center/cover no-repeat;
  padding: 150px 0 160px;
}
.hero h1 { font-size: 46px; letter-spacing: 3px; line-height: 1.3; }
.hero p.sub {
  margin-top: 18px; font-size: 19px; color: rgba(255,255,255,.85);
  letter-spacing: 1px; max-width: 640px;
}
.hero .hero-tags { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .hero-tags span {
  border: 1px solid rgba(255,255,255,.35); padding: 7px 18px;
  border-radius: 999px; font-size: 14px; letter-spacing: 1px;
  background: rgba(255,255,255,.08);
}
.hero .hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-light { background: #fff; color: var(--navy); }
.hero .btn-light:hover { background: #e8eef4; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .kicker {
  color: var(--accent); font-size: 14px; letter-spacing: 4px; font-weight: 600;
}
.section-head h2 {
  font-size: 32px; color: var(--navy); margin-top: 10px; letter-spacing: 2px;
}
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- 数据条 ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 46px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.stats-grid .num { font-size: 38px; font-weight: 700; color: #fff; }
.stats-grid .num em { font-style: normal; font-size: 18px; margin-left: 2px; color: #8fc4ec; }
.stats-grid .label { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.65); letter-spacing: 1px; }

/* ---------- 卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .card-img { height: 210px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 22px 24px 26px; flex: 1; }
.card h3 { font-size: 19px; color: var(--navy); letter-spacing: 1px; }
.card .en { font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing: .5px; }
.card p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.card .specs {
  margin-top: 14px; font-size: 13px; color: var(--steel);
  background: #eef5fb; border-radius: 6px; padding: 10px 14px; line-height: 1.8;
}

.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: all .25s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 20px;
  background: #eef5fb; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.feature-card h3 { font-size: 18px; color: var(--navy); }
.feature-card p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- 关于页 ---------- */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about-intro h2 { font-size: 30px; color: var(--navy); letter-spacing: 2px; margin-bottom: 20px; }
.about-intro p { color: var(--muted); margin-bottom: 14px; font-size: 15px; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.value-list li {
  display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink);
}
.value-list li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: #e3f1fc; color: var(--accent); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 3px;
}

/* ---------- 产品页 ---------- */
.product-cat { margin-bottom: 64px; }
.product-cat:last-child { margin-bottom: 0; }
.cat-title {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px;
  border-left: 4px solid var(--accent); padding-left: 14px;
}
.cat-title h2 { font-size: 24px; color: var(--navy); letter-spacing: 2px; }
.cat-title span { color: var(--muted); font-size: 13px; letter-spacing: 1px; }

.loading, .empty-tip {
  text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px;
}
.error-tip {
  text-align: center; color: #b4442c; background: #fdf1ee; border-radius: 8px;
  padding: 24px; font-size: 14px;
}

/* ---------- 联系页 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 46px; align-items: start; }
.contact-info-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px 36px;
}
.contact-info-card h3 { font-size: 22px; letter-spacing: 2px; margin-bottom: 8px; }
.contact-info-card .en { color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: 1px; }
.contact-info-card ul { margin-top: 28px; display: grid; gap: 22px; }
.contact-info-card li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-card .ci {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
}
.contact-info-card b { display: block; font-size: 13px; color: rgba(255,255,255,.55); font-weight: 400; letter-spacing: 1px; }
.contact-info-card span { font-size: 15px; word-break: break-all; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.form-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.form-card .tip { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; color: var(--ink); font-weight: 600; }
.form-field label i { color: #c0392b; font-style: normal; }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px;
  font-size: 14px; font-family: inherit; background: #fbfcfd; transition: border .2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; }
.form-msg { font-size: 14px; }
.form-msg.ok { color: #1d7d46; }
.form-msg.err { color: #b4442c; }

.login-hint {
  background: #eef5fb; border: 1px solid #cfe4f5; color: var(--steel);
  border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.login-hint a { color: var(--accent); font-weight: 600; white-space: nowrap; }

.my-msgs { margin-top: 28px; }
.my-msgs h4 { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.my-msgs .msg-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
  font-size: 13px; color: var(--muted); margin-bottom: 10px;
}
.my-msgs .msg-item b { color: var(--ink); }
.my-msgs .msg-item .time { float: right; }

/* ---------- 登录页 ---------- */
.auth-wrap {
  min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(9,26,41,.85), rgba(9,26,41,.85)),
    url("../img/workshop.jpg") center/cover no-repeat;
  padding: 60px 20px;
}
.auth-card {
  width: 420px; max-width: 100%; background: #fff; border-radius: 14px;
  padding: 44px 40px; box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.auth-card h1 { font-size: 24px; color: var(--navy); letter-spacing: 2px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 30px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.auth-row { display: flex; gap: 10px; }
.auth-row input { flex: 1; }
.auth-field input {
  width: 100%; border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 13px; font-size: 15px; transition: border .2s;
}
.auth-field input:focus { outline: none; border-color: var(--accent); }
.auth-err { color: #b4442c; font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.auth-ok { color: #1d7d46; font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.auth-card .btn { width: 100%; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-signed-in { text-align: center; display: none; }
.auth-signed-in .big-icon { font-size: 52px; margin-bottom: 14px; }
.auth-signed-in h2 { font-size: 20px; color: var(--navy); }
.auth-signed-in p { color: var(--muted); font-size: 14px; margin: 10px 0 26px; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--steel), var(--accent));
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-band h2 { font-size: 28px; letter-spacing: 2px; }
.cta-band p { margin: 12px 0 30px; color: rgba(255,255,255,.8); }
.cta-band .btn { background: #fff; color: var(--steel); font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer-grid p, .footer-grid li { font-size: 13px; line-height: 2; }
.footer-grid a:hover { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  text-align: center; font-size: 12px; color: rgba(255,255,255,.4);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
  .main-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .grid-3, .grid-2, .about-intro, .contact-wrap, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hero { padding: 90px 0 100px; }
  .hero h1 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
}
