/* ===== 钢筋机械外贸站 样式表 ===== */
/* 配色：深蓝主色 + 橙色行动色，工业风、简洁明快 */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2740;
  --accent: #ff6b35;
  --accent-dark: #e55a2b;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #1a1a2e;
  --text: #1a1a2e;
  --text-muted: #5a6c7d;
  --border: #e1e6ed;
  --white: #fff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}
.nav-menu a:hover { opacity: 1; color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-btn.active { background: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 4px 14px rgba(255,107,53,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-dark); }

/* ===== Hero 区 ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 300px;
  height: 300px;
  background: rgba(255,107,53,0.08);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 44px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero .lead { font-size: 18px; opacity: 0.9; margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.hero-visual .ph-icon { font-size: 64px; opacity: 0.7; }
.hero-visual .ph-text { font-size: 14px; opacity: 0.6; }

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ===== 产品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-img {
  height: 200px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-muted);
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.product-body p { font-size: 14px; color: var(--text-muted); flex: 1; margin-bottom: 16px; }
.product-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255,107,53,0.1);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* ===== 特性区 ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature-item { text-align: center; padding: 24px; }
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(255,107,53,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.feature-item h3 { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--text-muted); }

/* ===== 数据统计 ===== */
.stats { background: var(--primary); color: var(--white); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat-num { font-size: 40px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 14px; opacity: 0.85; margin-top: 4px; }

/* ===== CTA 询盘引导 ===== */
.cta-band {
  background: var(--accent);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.cta-band p { font-size: 16px; opacity: 0.95; margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--white); color: var(--accent-dark); }
.cta-band .btn-primary:hover { background: var(--bg-alt); }

/* ===== 表单 ===== */
.form-wrap { max-width: 640px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: none;
}

/* ===== 联系信息卡 ===== */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 40px; }
.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.contact-card .ci-icon { font-size: 28px; margin-bottom: 10px; }
.contact-card h3 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--text-muted); word-break: break-word; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-visual {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--text-muted);
}
.about-text h2 { font-size: 30px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.about-text p { font-size: 15px; color: var(--text-muted); margin-bottom: 14px; }
.about-list { list-style: none; margin-top: 20px; }
.about-list li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; color: var(--text); }
.about-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ===== 页脚 ===== */
.footer { background: var(--bg-dark); color: var(--white); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--white); }
.footer-col p, .footer-col a { font-size: 14px; opacity: 0.75; display: block; margin-bottom: 8px; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; text-align: center; font-size: 13px; opacity: 0.6; }

/* ===== 页面横幅 ===== */
.page-banner {
  background: var(--primary);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-banner h1 { font-size: 34px; font-weight: 700; margin-bottom: 8px; }
.page-banner p { font-size: 16px; opacity: 0.85; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 30px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
