/* ================================================================
   新稼能科技 —— 企业官网 Style
   设计风格参考：dkpower.cn
   蓝色系专业科技风，卡片式布局，大留白
   ================================================================ */

/* ----- Font & Reset ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0052cc;
  --primary-dark: #003d99;
  --primary-light: #e6f0ff;
  --accent: #00b4d8;
  --accent-dark: #0096c7;
  --dark: #0a1929;
  --dark2: #132f4c;
  --text: #1a2027;
  --text-light: #5a6876;
  --bg: #ffffff;
  --bg-gray: #f4f7fb;
  --bg-dark: #0a1929;
  --border: #dde3ea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --font: 'Inter','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

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

html { scroll-behavior:smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ----- Container ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Header / Navigation ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  transition: background 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 16px;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav a:hover { color:#fff; background:rgba(255,255,255,0.08); }
.nav a.active { color:#fff; background:var(--primary); }

/* ----- Hamburger (mobile) ----- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===================== Hero Section ===================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, #0d2847 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 70%);
}
.hero-content { position:relative; z-index:1; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.3);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  max-width: 720px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 680px;
  line-height: 1.8;
}
.hero-actions { margin-top: 32px; display:flex; gap:16px; flex-wrap:wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat h3 span { color: rgba(255,255,255,0.4); font-weight:400; }
.hero-stat p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ===================== Product Hero Carousel ===================== */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.product-hero-card {
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  transition: all 0.3s;
  cursor: pointer;
}
.product-hero-card:hover {
  background: linear-gradient(135deg, rgba(0,180,216,0.12) 0%, rgba(0,82,204,0.08) 100%);
  border-color: rgba(0,180,216,0.3);
  transform: translateY(-2px);
}
.product-hero-card h3 { font-size:1.2rem; color:#fff; margin-bottom:10px; }
.product-hero-card p { font-size:0.9rem; color:rgba(255,255,255,0.6); line-height:1.6; }

/* ===================== Section Common ===================== */
.section {
  padding: 80px 0;
}
.section-alt { background: var(--bg-gray); }
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.section-dark .section-title { color: #fff; }
.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 48px;
}

/* ===================== Product Category Section (业务布局) ===================== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.business-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}
.business-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.business-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--primary-light);
  font-size: 1.6rem;
}
.business-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.business-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}
.business-card .learn-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s;
}
.business-card:hover .learn-more { gap:6px; }

/* ===================== About Section ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size:1.8rem; font-weight:700; margin-bottom:20px; color:var(--dark); }
.about-text p { font-size:0.95rem; color:var(--text-light); margin-bottom:16px; line-height:1.8; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.about-feature .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.about-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: #fff;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ===================== Stats ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-item .num span { font-size:1.2rem; }
.stat-item .label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* ===================== Product Cards (标准产品卡片) ===================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.3s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.product-card .icon { font-size:2.2rem; margin-bottom:16px; }
.product-card h3 {
  font-size:1.1rem;
  font-weight:600;
  color:var(--dark);
  margin-bottom:10px;
}
.product-card p {
  font-size:0.88rem;
  color:var(--text-light);
  line-height:1.7;
}
.product-card .tag {
  display:inline-block;
  padding:3px 10px;
  border-radius:4px;
  background:var(--primary-light);
  color:var(--primary);
  font-size:0.78rem;
  font-weight:500;
  margin-top:10px;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 14px;
  transition: gap 0.2s;
}
.product-link:hover { gap: 8px; }

/* ===================== Tech Grid ===================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tech-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}
.tech-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.tech-item .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.tech-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.tech-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===================== News ===================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.news-card .news-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}
.news-card .news-body {
  padding: 20px;
}
.news-card .news-date {
  font-size:0.78rem;
  color:var(--accent);
  font-weight:500;
  margin-bottom:8px;
}
.news-card h3 {
  font-size:0.95rem;
  font-weight:600;
  color:var(--dark);
  margin-bottom:10px;
  line-height:1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  font-size:0.83rem;
  color:var(--text-light);
  line-height:1.6;
}
.news-more {
  text-align: center;
  margin-top: 40px;
}
.news-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s;
}
.news-more a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===================== CTA ===================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,82,204,0.35);
}
.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ===================== Footer ===================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}
.footer h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.footer a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer a:hover { color: var(--accent); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===================== Page Hero (inner pages) ===================== */
.page-hero {
  padding: 150px 0 70px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================== Product Detail Card (产品页内详情) ===================== */
.product-detail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  transition: all 0.3s;
}
.product-detail-card:hover { box-shadow: var(--shadow-lg); }
.product-detail-card .header { margin-bottom: 16px; position: static; top: auto; left: auto; z-index: auto; box-shadow: none; background: none; }
.product-detail-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.product-detail-card .desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}
.product-detail-card .tag {
  display:inline-block;
  padding:3px 10px;
  border-radius:4px;
  background:var(--primary-light);
  color:var(--primary);
  font-size:0.78rem;
  font-weight:500;
  margin-top:10px;
}

/* ===================== Tables (规格参数表) ===================== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.spec-table th, .spec-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.spec-table th {
  background: var(--bg-gray);
  font-weight: 600;
  color: var(--dark);
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 600; color: var(--dark); white-space: nowrap; }
.spec-table td:last-child { color: var(--text-light); }
.spec-table tr:hover td { background: var(--bg-gray); }

/* ===================== Page Nav Tabs ===================== */
.page-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.page-tabs a {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
}
.page-tabs a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.page-tabs a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===================== TOC Sidebar ===================== */
.toc-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.toc-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}
.toc-sidebar::-webkit-scrollbar { width: 4px; }
.toc-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.toc-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.toc-group {
  margin-bottom: 6px;
}

.toc-group-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a98a8;
  padding: 6px 12px 2px;
  letter-spacing: 0.03em;
}

.toc-nav a {
  display: block;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  line-height: 1.5;
}

.toc-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.toc-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
  font-weight: 600;
}

.toc-sub-link {
  padding-left: 28px !important;
  font-size: 0.78rem !important;
}

.toc-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1024px) {
  .toc-sidebar { display: none; }
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 16px; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-features { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
}
