/* =========================================================
   大连中能恒业电子技术有限公司 · 官网样式表
   设计语言：工业蓝 + 钢铁灰 + 橙红强调
   ========================================================= */

:root {
  --color-primary: #0F3258;
  --color-primary-dark: #0A1F38;
  --color-primary-light: #1E5C8C;
  --color-accent: #E67E22;
  --color-accent-dark: #C26517;
  --color-text: #1F2937;
  --color-text-soft: #4B5563;
  --color-text-mute: #6B7280;
  --color-border: #E5E7EB;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F8FAFC;
  --color-bg-section: #F3F6FA;
  --color-bg-dark: #0F3258;
  --color-success: #16A34A;
  --color-warning: #D97706;

  --font-cn: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-num: "Inter", "Roboto", system-ui, -apple-system, sans-serif;

  --max-width: 1180px;
  --shadow-sm: 0 1px 3px rgba(15,50,88,0.06), 0 1px 2px rgba(15,50,88,0.04);
  --shadow-md: 0 4px 14px rgba(15,50,88,0.08), 0 2px 4px rgba(15,50,88,0.04);
  --shadow-lg: 0 12px 32px rgba(15,50,88,0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: all 0.2s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-accent); }

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

h1, h2, h3, h4 {
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.6em 0;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em 0; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: #fff; }
.topbar .badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: 8px;
}

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

/* ---------- 主导航 ---------- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}
.logo-text { line-height: 1.1; }
.logo-text .name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  display: block;
}
.logo-text .tagline {
  font-size: 0.78rem;
  color: var(--color-text-mute);
  display: block;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  color: var(--color-text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav a:hover {
  color: var(--color-primary);
  background: var(--color-bg-soft);
}
.nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-light:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(230,126,34,0.12) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 30%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.4em;
  line-height: 1.2;
}
.hero-content h1 .highlight {
  color: var(--color-accent);
}
.hero-content .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2em;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 2em;
}
.hero-stat {
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
}
.hero-stat .num {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  display: block;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 72px 0;
}
.section-soft { background: var(--color-bg-soft); }
.section-dark {
  background: var(--color-primary-dark);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.section-header .desc {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- 卡片网格 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(15,50,88,0.08), rgba(30,92,140,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.card p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* 产品卡片 */
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card .pc-image {
  height: 180px;
  background: linear-gradient(135deg, #F3F6FA 0%, #E8EEF5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.product-card .pc-image .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.product-card .pc-body { padding: 20px; }
.product-card .pc-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.product-card .pc-tag {
  display: inline-block;
  background: var(--color-bg-section);
  color: var(--color-primary-light);
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: 500;
}
.product-card .pc-desc {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.product-card .pc-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ---------- 表格 ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.spec-table thead th {
  background: var(--color-bg-section);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
}
.spec-table tbody tr:hover {
  background: var(--color-bg-soft);
}
.spec-table tbody tr:last-child td {
  border-bottom: none;
}
.spec-table .label {
  color: var(--color-text-soft);
  font-weight: 500;
  width: 40%;
}
.spec-table .value {
  color: var(--color-text);
  font-weight: 500;
}

/* ---------- 应用场景 ---------- */
.application-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.application-card .ac-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}
.application-card .ac-image svg {
  width: 80%;
  height: 80%;
}
.application-card .ac-body { padding: 24px; }
.application-card .ac-tag {
  display: inline-block;
  background: rgba(230,126,34,0.1);
  color: var(--color-accent-dark);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.application-card .ac-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.application-card .ac-desc {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ---------- 突出特点条 ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.feature-item {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--color-border);
}
.feature-item:last-child { border-right: none; }
.feature-item .num {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.feature-item .label {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}
.feature-item .desc {
  font-size: 0.82rem;
  color: var(--color-text-mute);
  margin-top: 4px;
}

/* ---------- 标签/徽章 ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--color-bg-section);
  color: var(--color-primary-light);
  margin-right: 6px;
  margin-bottom: 6px;
}
.tag-accent {
  background: rgba(230,126,34,0.12);
  color: var(--color-accent-dark);
}
.tag-success {
  background: rgba(22,163,74,0.1);
  color: var(--color-success);
}

/* ---------- 信息盒子 ---------- */
.info-box {
  background: linear-gradient(135deg, #FFF8EE 0%, #FFEFD4 100%);
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.info-box h4 {
  color: var(--color-accent-dark);
  margin-bottom: 8px;
}
.info-box p { margin: 0; color: var(--color-text); }

.callout-box {
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}

/* ---------- CTA区块 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 24px;
}
.cta-band .btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
  font-size: 0.9rem;
}
.footer a {
  color: rgba(255,255,255,0.7);
}
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li { margin-bottom: 8px; }
.footer .footer-brand .name {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.footer .footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: var(--color-bg-soft);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  color: var(--color-text-mute);
}
.breadcrumb a { color: var(--color-text-mute); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep {
  margin: 0 8px;
  color: var(--color-border);
}

/* ---------- 页面标题 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 60px 0;
}
.page-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 0.4em;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0;
}

/* ---------- 浮动咨询按钮 ---------- */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  background: var(--color-accent);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.float-btn:hover {
  transform: scale(1.05);
  background: var(--color-accent-dark);
  color: #fff;
}
.float-btn svg { width: 24px; height: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-content h1 { font-size: 2.2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
}

@media (max-width: 720px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--color-border); padding-bottom: 16px; }
  .feature-item:last-child { border-bottom: none; padding-bottom: 0; }

  /* 移动端导航 */
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a {
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav a:last-child { border-bottom: none; }
  .nav a.active::after { display: none; }
  .header .container > .btn { display: none; }
}

/* 打印样式 */
@media print {
  .header, .topbar, .float-cta, .footer { display: none; }
}
