/* ============ 顽德机械 · 基础样式 ============ */
:root {
  --primary: #0f3b57;
  --primary-2: #155e75;
  --accent: #f28c28;
  --accent-dark: #d97706;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --bg-deep: #0b2a3d;
  --text: #1f2937;
  --muted: #64748b;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(15, 59, 87, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 59, 87, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.icon { display: inline-block; vertical-align: -0.15em; flex: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: all 0.2s ease; cursor: pointer; border: 1px solid transparent;
}
.btn .icon { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-line { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-line:hover { background: var(--primary); color: #fff; }

/* ============ 头部 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; color: var(--primary); letter-spacing: 1px; }
.brand-text small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--text);
  border-radius: 6px; transition: color 0.2s;
}
.nav-link .icon { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-link:hover { color: var(--accent); }
.has-dropdown:hover .nav-link .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all 0.2s ease; z-index: 60;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 6px; font-size: 14px; color: var(--text);
}
.dropdown li a .icon { width: 18px; height: 18px; color: var(--accent); }
.dropdown li a:hover { background: var(--bg-soft); color: var(--primary); }

.header-tel {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  color: var(--accent); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.header-tel .icon { width: 18px; height: 18px; }

.nav-toggle { display: none; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--primary) 55%, var(--primary-2) 100%);
  color: #fff; padding: 72px 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border-radius: 50%; background: rgba(242, 140, 40, 0.12); pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-copy h1 { font-size: 40px; line-height: 1.25; font-weight: 800; margin-bottom: 18px; letter-spacing: 1px; }
.hero-sub { font-size: 17px; color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-card {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 20px; backdrop-filter: blur(4px);
}
.hero-card strong { display: block; font-size: 16px; margin-bottom: 6px; color: var(--accent); }
.hero-card p { font-size: 14px; color: rgba(255, 255, 255, 0.82); }

/* ============ 区块通用 ============ */
.section { padding: 72px 0; }
.section:nth-child(even) { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 30px; font-weight: 800; color: var(--primary); margin-bottom: 14px; letter-spacing: 1px; }
.section-sub { color: var(--muted); font-size: 16px; }

/* ============ 产品系列 ============ */
.series-list { display: flex; flex-direction: column; gap: 28px; }
.series { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.series-head { display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-bottom: 1px solid var(--border); }
.series-icon {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.series-icon .icon { width: 28px; height: 28px; }
.series-title { flex: 1; }
.series-title h3 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.series-title p { color: var(--muted); font-size: 14px; }
.series-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 28px; }
.entry-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  border: 1px solid var(--border); border-radius: 12px; transition: all 0.2s ease;
}
.entry-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.entry-card strong { font-size: 17px; color: var(--primary); }
.entry-card span { font-size: 13px; color: var(--muted); flex: 1; }
.entry-card em { font-style: normal; font-size: 13px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ============ 关于 ============ */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.point { padding: 24px; border-left: 3px solid var(--accent); background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.point strong { display: block; font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.point p { font-size: 14px; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { text-align: center; padding: 28px 20px; }
.value-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--bg-soft); color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.value-icon .icon { width: 26px; height: 26px; }
.value strong { display: block; font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.value p { font-size: 13px; color: var(--muted); }

/* ============ FAQ ============ */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.faq-item h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--muted); }

/* ============ 新闻 ============ */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); transition: all 0.2s; display: flex; flex-direction: column; gap: 10px; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card time { font-size: 13px; color: var(--accent); }
.news-card h3 { font-size: 16px; color: var(--primary); }
.news-card p { font-size: 14px; color: var(--muted); }

/* ============ 联系 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px 20px; text-align: center; box-shadow: var(--shadow); transition: all 0.2s; }
a.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--bg-soft); color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.contact-icon .icon { width: 24px; height: 24px; }
.contact-card strong { display: block; font-size: 15px; color: var(--primary); margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--muted); word-break: break-all; }

/* ============ 页脚 ============ */
.site-footer { background: var(--bg-deep); color: rgba(255, 255, 255, 0.8); }
.foot-main { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: rgba(255, 255, 255, 0.5); }
.foot-slogan { margin: 16px 0; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.foot-tel { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--accent); }
.foot-tel .icon { width: 20px; height: 20px; }
.foot-col-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; display: block; }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col li a { font-size: 14px; color: rgba(255, 255, 255, 0.68); transition: color 0.2s; }
.foot-col li a:hover { color: var(--accent); }
.foot-meta { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 32px 0; }
.foot-meta-inner { display: flex; gap: 48px; }
.foot-address { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.6); flex: 1; }
.foot-quick { min-width: 200px; }
.foot-quick ul { display: flex; flex-wrap: wrap; gap: 6px 18px; flex-direction: row; }
.foot-quick li a { font-size: 13px; color: rgba(255, 255, 255, 0.68); }
.foot-quick li a:hover { color: var(--accent); }
.foot-copy { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; }
.foot-copy-inner { display: flex; align-items: center; gap: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.5); flex-wrap: wrap; }
.foot-copy-inner a { margin-left: auto; color: rgba(255, 255, 255, 0.6); }
.foot-copy-inner a:hover { color: var(--accent); }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 32px; }
  .points, .values { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .news-list { grid-template-columns: 1fr 1fr; }
  .series-entries { grid-template-columns: 1fr 1fr; }
  .foot-main { grid-template-columns: 1fr 1fr; }
  .header-tel { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .points, .values, .contact-grid, .news-list, .series-entries, .faq-list { grid-template-columns: 1fr; }
  .series-head { flex-wrap: wrap; }
  .foot-main { grid-template-columns: 1fr; gap: 28px; }
  .foot-meta-inner { flex-direction: column; gap: 24px; }
  .hero { padding: 48px 0; }
}

/* 移动端导航 */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav-toggle .bar { display: block; height: 2px; width: 100%; background: var(--primary); border-radius: 2px; transition: all 0.25s; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    display: none; padding: 8px 20px 20px;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { display: flex; justify-content: space-between; width: 100%; padding: 12px 8px; border-bottom: 1px solid var(--bg-soft); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .has-dropdown .nav-link .icon { display: none; }
}
