/* ============================================
   安徽通达恒祥科技有限公司 官网样式
   风格：蓝色工业科技风 / 响应式
   ============================================ */

:root {
  --primary: #0F5FA6;
  --primary-deep: #0A3E73;
  --primary-light: #2E86D1;
  --accent: #C8102E;
  --ink: #1F2733;
  --ink-soft: #556270;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(15, 95, 166, .10);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(10,62,115,.08);
  transition: box-shadow .3s;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand-text b { display: block; font-size: 16px; color: var(--primary-deep); letter-spacing: .3px; }
.brand-text span { display: block; font-size: 9px; color: var(--ink-soft); letter-spacing: .3px; text-transform: none; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 16px; font-size: 15px; color: var(--ink); border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--bg-soft); }
.header-tel {
  display: flex; align-items: center; gap: 8px; color: var(--accent);
  font-weight: 700; font-size: 16px; white-space: nowrap;
}
.header-tel svg { width: 18px; height: 18px; fill: currentColor; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--primary-deep); margin: 5px 0; transition: .3s; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-en { font-size: 12px; letter-spacing: 4px; color: var(--primary-light); font-weight: 700; text-transform: uppercase; }
.sec-title { font-size: 32px; color: var(--primary-deep); margin-top: 8px; position: relative; display: inline-block; }
.sec-title::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  width: 48px; height: 3px; background: var(--accent); border-radius: 2px;
}
.sec-desc { max-width: 720px; margin: 26px auto 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- 首屏 Banner ---------- */
.hero {
  position: relative; min-height: 640px; margin-top: 72px; overflow: hidden;
  background: linear-gradient(125deg, #072F5C 0%, #0A4C8C 45%, #0F6FBF 100%);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%);
}
.hero-lines { position: absolute; right: 0; top: 0; bottom: 0; width: 55%; opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; color: #BFE0FF;
  font-size: 13px; letter-spacing: 2px; border: 1px solid rgba(191,224,255,.4);
  padding: 7px 16px; border-radius: 30px; margin-bottom: 26px;
}
.hero-tag i { width: 7px; height: 7px; background: #4FD1C5; border-radius: 50%; box-shadow: 0 0 0 4px rgba(79,209,197,.2); }
.hero h1 { color: #fff; font-size: 52px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.hero h1 .hl { color: #7FE3DA; }
.hero p.lead { color: #D6E8FA; font-size: 18px; margin-top: 22px; max-width: 560px; }
.hero-btns { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 6px; font-size: 15px; font-weight: 700; transition: .25s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #E01134; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200,16,46,.35); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-visual { display: flex; justify-content: center; }
.logo-badge {
  width: 300px; height: 300px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); position: relative;
  box-shadow: 0 0 0 26px rgba(255,255,255,.04), 0 0 0 52px rgba(255,255,255,.03);
}
.logo-badge img { width: 210px; height: 210px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); }
.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(4,34,66,.72); }
.hero-stats .wrap { display: grid; grid-template-columns: repeat(4,1fr); padding: 22px 24px; }
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,.14); }
.stat:last-child { border-right: 0; }
.stat b { display: block; color: #fff; font-size: 30px; font-weight: 800; }
.stat b em { font-style: normal; color: #7FE3DA; font-size: 17px; }
.stat span { color: #A9C9E8; font-size: 13px; letter-spacing: 1px; }

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; text-align: center; transition: .3s; position: relative; overflow: hidden;
}
.adv-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); transform: scaleX(0); transition: .3s; }
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.adv-card:hover::before { transform: scaleX(1); }
.adv-icon { width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 16px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.adv-icon svg { width: 30px; height: 30px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.adv-card h3 { font-size: 18px; color: var(--primary-deep); margin-bottom: 10px; }
.adv-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 产品 ---------- */
.prod-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto 40px; }
.prod-tab {
  display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 18px 22px;
  transition: .25s; font-family: inherit;
}
.prod-tab:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.prod-tab.active { border-color: var(--primary); background: linear-gradient(135deg, #f0f7fe, #fff); box-shadow: var(--shadow); }
.tab-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.prod-tab.active .tab-ico { background: var(--primary); }
.tab-ico svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.prod-tab.active .tab-ico svg { stroke: #fff; }
.tab-txt b { display: block; font-size: 16px; color: var(--primary-deep); }
.tab-txt small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.prod-panel { display: none; }
.prod-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-banner { border-radius: 10px; padding: 16px 0; margin-bottom: 26px; }
.panel-banner .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.panel-banner b { font-size: 16px; color: #fff; padding: 5px 16px; border-radius: 20px; }
.panel-banner span { font-size: 13px; letter-spacing: .3px; }
.panel-banner.elec { background: linear-gradient(100deg, #7C3E06, #B45309); }
.panel-banner.elec span { color: #FDE7CF; }
.panel-banner.petro { background: linear-gradient(100deg, #0A3E73, #0F6FBF); }
.panel-banner.petro span { color: #CFE7FA; }
.prod-card.elec .prod-thumb { background: linear-gradient(135deg, #fdf3e7, #f6dcbb); }
.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .3s;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prod-thumb { height: 168px; background: linear-gradient(135deg, #eaf2fb, #d3e6f7); display: flex; align-items: center; justify-content: center; }
.prod-thumb svg { width: 130px; height: 110px; }
.prod-body { padding: 22px 24px 26px; }
.prod-body h3 { font-size: 18px; color: var(--primary-deep); margin-bottom: 8px; }
.prod-body p { font-size: 13.5px; color: var(--ink-soft); }
.prod-body .prod-use { margin-top: 14px; font-size: 12px; color: var(--primary); }
.prod-body .prod-use b { color: var(--ink-soft); font-weight: 400; }
.more-line { text-align: center; margin-top: 42px; }

/* ---------- 行业 ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ind-item {
  background: #fff; border-radius: var(--radius); padding: 26px 24px; border-left: 4px solid var(--primary);
  box-shadow: 0 3px 14px rgba(10,62,115,.05); transition: .25s;
}
.ind-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.ind-item .num { font-size: 13px; color: var(--primary-light); font-weight: 700; letter-spacing: 1px; }
.ind-item h3 { font-size: 17px; color: var(--primary-deep); margin: 6px 0 6px; }
.ind-item p { font-size: 13px; color: var(--ink-soft); }

/* ---------- 案例 ---------- */
.case-list { display: grid; gap: 26px; }
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr; transition: .3s;
}
.case-card:hover { box-shadow: var(--shadow); }
.case-cover {
  background: linear-gradient(150deg, #0A3E73, #0F6FBF); position: relative; min-height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding: 24px; text-align: center;
}
.case-cover svg { width: 120px; height: 96px; opacity: .9; margin-bottom: 14px; }
.case-cover .ctag { font-size: 12px; letter-spacing: 2px; color: #9FD8F5; border: 1px solid rgba(255,255,255,.3); padding: 5px 12px; border-radius: 20px; }
.case-cover .cyear { position: absolute; top: 18px; right: 18px; font-size: 13px; color: #BFE0FF; }
.case-body { padding: 30px 34px; }
.case-body h3 { font-size: 20px; color: var(--primary-deep); margin-bottom: 16px; }
.case-row { display: grid; grid-template-columns: 82px 1fr; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.case-row .k { color: var(--primary); font-weight: 700; }
.case-row .v { color: var(--ink-soft); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; background: linear-gradient(135deg, #0A3E73, #2E86D1); display: flex; align-items: center; justify-content: center; }
.about-visual svg { width: 80%; height: 80%; opacity: .85; }
.about-text .lead { font-size: 16px; color: var(--ink); margin-bottom: 16px; }
.about-text p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 14px; }
.about-meta { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.about-meta div { font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.about-meta span { color: var(--primary); font-weight: 700; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .3s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card time { font-size: 12px; color: var(--primary-light); }
.news-card h3 { font-size: 16px; margin: 10px 0; color: var(--ink); }
.news-card p { font-size: 13px; color: var(--ink-soft); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info h3 { font-size: 22px; color: var(--primary-deep); margin-bottom: 22px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-line .ci { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.contact-line .ci svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.contact-line b { display: block; color: var(--ink); font-size: 15px; }
.contact-line span { color: var(--ink-soft); font-size: 14px; }
.ci-note { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 3px; line-height: 1.5; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 7px; font-weight: 700; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font-size: 14px; font-family: inherit; transition: .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,95,166,.1); }
.field textarea { resize: vertical; min-height: 110px; }
.form-tip { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 页脚 ---------- */
.footer { background: #072F5C; color: #BFD6EC; padding: 60px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand-main { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.footer-brand-text b { display: block; color: #fff; font-size: 18px; letter-spacing: .3px; white-space: nowrap; }
.footer-brand-text span { display: block; color: #9FBEDA; font-size: 10px; letter-spacing: .3px; text-transform: none; margin-top: 5px; white-space: nowrap; }
.footer-brand p { font-size: 13px; margin-top: 16px; line-height: 1.9; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-links a { display: block; font-size: 13px; padding: 5px 0; transition: .2s; }
.footer-links a:hover { color: #7FE3DA; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; font-size: 12px; color: #8FB4D6; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 30px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 24px; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .menu-btn { display: block; }
  .header-tel { display: none; }
  .hero { flex-direction: column; justify-content: center; min-height: 0; padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-bottom: 44px; }
  .hero h1 { font-size: 38px; }
  .hero p.lead { margin: 20px auto 0; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .hero-stats { position: relative; left: auto; right: auto; bottom: auto; width: 100%; }
  .hero-stats .wrap { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .stat:nth-child(2) { border-right: 0; }
  .adv-grid, .prod-grid, .news-grid { grid-template-columns: repeat(2,1fr); }
  .prod-tabs { max-width: none; gap: 12px; }
  .prod-tab { padding: 14px; gap: 10px; }
  .tab-ico { width: 38px; height: 38px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-card { grid-template-columns: 1fr; }
  .case-cover { min-height: 180px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .brand img { width: 50px; height: 50px; }
  .brand-text b { font-size: 13px; }
  .brand-text span { font-size: 8px; letter-spacing: 0; }
  .sec-title { font-size: 26px; }
  .hero h1 { font-size: 30px; }
  .hero-tag { font-size: 11px; }
  .adv-grid, .prod-grid, .ind-grid, .news-grid { grid-template-columns: 1fr; }
  .prod-tabs { grid-template-columns: 1fr; }
  .panel-banner .wrap { display: block; }
  .panel-banner b { display: inline-block; margin-bottom: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats .wrap { grid-template-columns: repeat(2,1fr); }
  .case-body { padding: 24px 20px; }
  .stat b { font-size: 24px; }
}
