/* ============================================
   安特动力企业官网 - 全局样式
   工业科技理性风 | 深蓝 + 动力橙
   ============================================ */

/* --- CSS变量 --- */
:root {
  --primary: #0A2540;
  --primary-light: #14365A;
  --accent: #F26D21;
  --accent-hover: #E05A10;
  --bg: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-dark: #1A1D20;
  --text: #333333;
  --text-light: #666666;
  --text-white: #FFFFFF;
  --border: #E0E0E0;
  --border-light: #F0F0F0;
  --radius: 2px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --transition: 200ms ease;
}

/* --- 重置与基础 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

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

ul, ol {
  list-style: none;
}

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

/* --- 顶部导航栏 --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar.scrolled .navbar-logo {
  color: var(--primary);
}

.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 18px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-menu a {
  color: rgba(255,255,255,0.85);
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--accent);
}

.navbar.scrolled .navbar-menu a {
  color: var(--text);
}

.navbar.scrolled .navbar-menu a:hover,
.navbar.scrolled .navbar-menu a.active {
  color: var(--accent);
}

.navbar-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--primary);
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  z-index: 999;
  padding: 20px;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: rgba(255,255,255,0.9);
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
}

/* --- Banner区域 --- */
.banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 72px;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
  z-index: 0;
}

.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.banner-content {
  position: relative;
  z-index: 1;
  color: var(--text-white);
  padding: 40px 20px;
  max-width: 800px;
}

.banner-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.banner-content p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* --- 区块标题 --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header .divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- 通用区块 --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-white);
}

/* --- 产品卡片 --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
}

.product-card-body .card-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- 新闻卡片 --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-body .date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
}

/* --- 特性/优势卡片 --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 24px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- 页面内Banner --- */
.page-banner {
  background: var(--primary);
  padding: 120px 0 60px;
  text-align: center;
  color: var(--text-white);
  margin-top: 72px;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.8;
}

/* --- 产品详情页 --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery {
  position: relative;
}

.product-gallery .main-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 16px;
}

.product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery .thumbnails {
  display: flex;
  gap: 12px;
}

.product-gallery .thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}

.product-gallery .thumb.active,
.product-gallery .thumb:hover {
  border-color: var(--accent);
}

.product-gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.product-info .price-tag {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.product-info .desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-info .specs {
  margin-bottom: 24px;
}

.product-info .specs table {
  width: 100%;
  border-collapse: collapse;
}

.product-info .specs th,
.product-info .specs td {
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.product-info .specs th {
  background: var(--bg);
  color: var(--primary);
  font-weight: 600;
  width: 30%;
}

.product-info .specs td {
  color: var(--text);
}

.product-info .actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* --- 新闻详情页 --- */
.news-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.news-detail-content .meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.news-detail-content .meta .date {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.news-detail-content .meta .category {
  font-size: 13px;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: var(--radius);
  color: var(--text-light);
}

.news-detail-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.3;
}

.news-detail-content .article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.news-detail-content .article-body p {
  margin-bottom: 16px;
}

.news-detail-content .article-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin: 32px 0 16px;
}

.news-detail-content .article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin: 24px 0 12px;
}

.news-detail-content .article-body ul {
  margin: 16px 0;
  padding-left: 24px;
}

.news-detail-content .article-body ul li {
  list-style: disc;
  margin-bottom: 8px;
  font-size: 15px;
}

.news-detail-content .article-body img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.news-detail-content .article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: var(--bg);
  margin: 24px 0;
  font-style: italic;
  color: var(--text-light);
}

/* --- 关于我们 --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-intro-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-intro-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius);
}

.stat-item .number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-item .label {
  font-size: 14px;
  color: var(--text-light);
}

/* 团队成员 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-card .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--bg);
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* --- 联系信息 --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 20px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- 底部页脚 --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

/* --- 面包屑 --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* --- 侧边栏 --- */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-title {
  background: var(--primary);
  color: var(--text-white);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
}

.sidebar a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.sidebar a:hover,
.sidebar a.active {
  color: var(--accent);
  background: var(--bg);
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .product-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .sidebar-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .banner-content h1 {
    font-size: 28px;
  }
  
  .banner-content p {
    font-size: 15px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .product-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
  }
  
  .about-intro {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .page-banner h1 {
    font-size: 26px;
  }
  
  .product-info h1 {
    font-size: 22px;
  }
  
  .news-detail-content h1 {
    font-size: 22px;
  }
}

/* --- 动画 --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* --- 滚动条 --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* --- 辅助类 --- */
.text-accent {
  color: var(--accent);
}

.text-primary {
  color: var(--primary);
}

.bg-primary {
  background: var(--primary);
}

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }