/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --secondary: #26a69a;
  --text-dark: #333;
  --text-light: #666;
  --text-gray: #999;
  --bg-light: #f8f9fa;
  --bg-white: #fff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --border: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-menu a {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.mobile-menu a {
  display: block;
  padding: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--primary);
  background: var(--bg-light);
}

/* 首页 Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('img/封面1.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.15;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 35px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-features {
  display: flex;
  gap: 60px;
  margin-top: 60px;
}

.feature-item {
  text-align: center;
}

.feature-num {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
}

.feature-label {
  font-size: 14px;
  color: var(--text-gray);
}

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

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 60px;
  font-size: 16px;
}

/* 关于我们 */
.about {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-content h3 {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-list {
  margin-top: 30px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.about-list .icon {
  width: 24px;
  height: 24px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* 产品展示 */
.products {
  background: var(--bg-light);
}

.product-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.category-btn {
  padding: 10px 25px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card.hidden {
  display: none;
}

.product-img {
  height: 200px;
  overflow: hidden;
}

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

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

.product-info {
  padding: 20px;
}

.product-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.product-category {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  font-size: 12px;
}

.product-notice {
  margin-top: 50px;
  padding: 20px;
  background: #fff3e0;
  border-radius: 8px;
  text-align: center;
}

.product-notice p {
  color: #e65100;
  font-size: 14px;
}

/* 新闻资讯 */
.news {
  background: var(--bg-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  transition: all 0.3s;
}

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

.news-date {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 15px;
}

.news-card h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-dark);
  line-height: 1.4;
}

.news-card p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* 联系我们 */
.contact {
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.contact-text p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 5px;
}

.contact-form-wrap {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* 页脚 */
.footer {
  background: #1a1a2e;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-section p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.footer-bottom a {
  color: var(--primary);
}

.footer-notice {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 998;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* 响应式 */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 300px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .product-categories {
    flex-wrap: wrap;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-features {
    flex-direction: column;
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }
}

/* 页面头部 */
.page-header {
  padding: 150px 0 80px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-light);
}

/* 企业资质 */
.credentials {
  background: var(--bg-white);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.credential-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-light);
  border-radius: 10px;
  transition: all 0.3s;
}

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

.credential-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.credential-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.credential-card p {
  font-size: 14px;
  color: var(--text-gray);
}

/* 发展历程 */
.timeline {
  background: var(--bg-light);
}

.timeline-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  padding: 20px 0;
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-content {
  background: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 350px;
}

.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-content h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-gray);
}

/* 新闻图片 */
.news-img {
  height: 200px;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

/* 联系地图 */
.contact-map {
  margin-top: 60px;
}

.contact-map h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.map-placeholder {
  height: 400px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
}

.map-placeholder p {
  color: var(--text-gray);
  font-size: 16px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 16px;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .timeline-wrap::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    max-width: 100%;
  }

  .contact-map .map-placeholder {
    height: 300px;
  }
}

/* 首页新增样式 */

/* 核心优势 */
.advantages {
  background: var(--bg-white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-light);
  border-radius: 10px;
  transition: all 0.3s;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background: #fff;
}

.advantage-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.advantage-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* 资质认证 */
.certificates {
  background: var(--bg-light);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.certificate-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.certificate-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.certificate-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.certificate-item p {
  font-size: 13px;
  color: var(--text-gray);
}

/* 产品预览 */
.product-preview {
  background: var(--bg-white);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.preview-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.preview-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.preview-info {
  padding: 15px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-info h4 {
  font-size: 14px;
  color: var(--text-dark);
}

.preview-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 15px;
  font-size: 11px;
}

.preview-more {
  text-align: center;
  margin-top: 40px;
}

/* 法律声明 */
.notice {
  background: #fff3e0;
  padding: 30px 0;
}

.notice p {
  text-align: center;
  color: #e65100;
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .advantages-grid,
  .certificates-grid,
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .advantages-grid,
  .certificates-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

/* 服务网格 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-icon-large {
  font-size: 64px;
  text-align: center;
  margin-bottom: 20px;
}

.service-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.preview-card .service-icon {
  font-size: 36px;
}

/* 药品展示 */
.medicine-display {
  background: var(--bg-light);
}

.medicine-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.medicine-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.medicine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.medicine-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

/* 团队统计 */
.team-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

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

.team-desc {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
}

/* 门店列表 */
.store-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.store-item {
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.store-item h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--primary);
}

.store-item p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
}

/* 响应式 */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-list {
    grid-template-columns: 1fr;
  }

  .medicine-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .team-stats {
    grid-template-columns: 1fr 1fr;
  }

  .store-list {
    grid-template-columns: 1fr;
  }

  .medicine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-stats {
    grid-template-columns: 1fr;
  }

  .medicine-grid {
    grid-template-columns: 1fr;
  }
}
