/* ============================================
   淄博奇恒医药销售有限公司 - 企业官网
   风格：稳重专业 · 医药行业
   主色：深蓝 #1e3a5f + 白 #ffffff + 蓝灰点缀
   ============================================ */

/* --- 变量定义 --- */
:root {
  --primary: #2a5a8a;       /* 主蓝色（浅一版） */
  --primary-light: #3a7aad;
  --primary-dark: #1e3a5f;
  --accent: #c8a45e;        /* 金色点缀 */
  --accent-light: #dfc07a;
  --text-dark: #1a1a1a;
  --text-light: #5a5a5a;
  --text-muted: #8a8a8a;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --border: #e8ecf0;
  --shadow: 0 4px 20px rgba(42, 90, 138, 0.08);
  --shadow-hover: 0 8px 30px rgba(42, 90, 138, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* --- 全局重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  background: var(--bg-white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- 顶部栏 --- */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: white; }
.top-bar-left { display: flex; gap: 24px; }
.top-bar-right { display: flex; gap: 16px; align-items: center; }

/* --- 导航栏 --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-text .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.nav-logo-text .slogan {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(42, 90, 138, 0.06);
}
.nav-query {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  color: var(--primary) !important;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
  transition: var(--transition);
}
.nav-query:hover {
  color: var(--accent) !important;
  background: rgba(200, 164, 94, 0.08);
}

/* --- Hero Banner --- */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--primary);
}
.hero-slider {
  height: 100%;
  position: relative;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}
.hero-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.hero-text {
  color: white;
  max-width: 600px;
}
.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero-text h1 span { color: var(--accent); }
.hero-text p {
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-btns {
  display: flex;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(200, 164, 94, 0.3);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  background: white;
  width: 28px;
  border-radius: 5px;
}

/* --- 区块通用 --- */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(42, 90, 138, 0.06);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.section-desc {
  font-size: 15px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}
.bg-light { background: var(--bg-light); }

/* --- 核心数据 --- */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
  color: white;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-item {
  text-align: center;
  padding: 20px;
}
.stat-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 8px;
}
.stat-num span { font-size: 28px; }
.stat-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 13px;
  opacity: 0.7;
}

/* --- 企业简介（两栏） --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.about-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(42,90,138,0.6));
}
.about-img-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  color: white;
}
.about-img-label h4 {
  font-size: 18px;
  font-weight: 700;
}
.about-img-label p {
  font-size: 13px;
  opacity: 0.85;
}
.about-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.4;
}
.about-text h2 span { color: var(--accent); }
.about-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 16px;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}
.highlight-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(200, 164, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- 卡片区块 --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- 产品展示 --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.product-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.08);
}
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}
.product-info {
  padding: 20px;
}
.product-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.product-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}
.product-more {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-more:hover { color: var(--accent); }

/* --- 资质展示 --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  cursor: pointer;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.cert-img {
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.cert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cert-info {
  padding: 16px;
  text-align: center;
}
.cert-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.cert-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- 合作伙伴 --- */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.partner-item {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.partner-item:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* --- 联系方式 --- */
.contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 80px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 14px;
  opacity: 0.8;
}
.contact-item a { color: rgba(255,255,255,0.85); }
.contact-item a:hover { color: var(--accent); }
.contact-map {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}

/* --- 页脚 --- */
.footer {
  background: #111827;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}
.footer-brand .footer-logo span {
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}
.footer-links h4 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 18px;
}
.footer-links a {
  display: block;
  font-size: 13px;
  padding: 5px 0;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .about-intro { grid-template-columns: 1fr; }
  .card-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-btns { flex-direction: column; }
  .card-grid, .product-grid, .cert-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- 动画 --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
