/*
  Visual Design Updates - 恒瑞信泰品牌优化
  参考金赛途风格，提升专业感和现代感
*/

/* ============================================
   1. 品牌色彩升级
   ============================================ */

:root {
  /* 主色 - 深医药蓝（更专业、更可信） */
  --hrxt-primary: #004a99;
  --hrxt-primary-dark: #003366;
  --hrxt-primary-light: #0066cc;

  /* 强调色 - 科技青（现代、创新） */
  --hrxt-accent: #00b4d8;
  --hrxt-accent-dark: #0096b4;
  --hrxt-accent-light: #48cae4;

  /* 辅助色 - 生物绿（生命、健康） */
  --hrxt-bio-green: #10b981;
  --hrxt-bio-green-dark: #059669;

  /* 中性色 */
  --hrxt-gray-50: #f9fafb;
  --hrxt-gray-100: #f3f4f6;
  --hrxt-gray-200: #e5e7eb;
  --hrxt-gray-300: #d1d5db;
  --hrxt-gray-500: #6b7280;
  --hrxt-gray-700: #374151;
  --hrxt-gray-900: #111827;

  /* 语义色 */
  --hrxt-success: #10b981;
  --hrxt-warning: #f59e0b;
  --hrxt-error: #ef4444;
  --hrxt-info: #3b82f6;
}

/* ============================================
   2. 排版系统升级
   ============================================ */

/* 导入中文字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* 英文字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
  font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hrxt-gray-700);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  color: var(--hrxt-gray-900);
  letter-spacing: -0.02em;
}

/* ============================================
   3. Header 品牌区升级（参考金赛途）
   ============================================ */

/* 顶部联系栏 */
.top-bar {
  background: linear-gradient(135deg, var(--hrxt-primary-dark) 0%, var(--hrxt-primary) 100%);
  color: #ffffff;
  padding: 12px 0;
  font-size: 14px;
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.top-bar-contact {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-contact-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.top-bar-language {
  display: flex;
  gap: 16px;
}

.top-bar-language a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.top-bar-language a:hover,
.top-bar-language a.active {
  color: #ffffff;
}

/* 主导航区 */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Logo 区 */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo-img {
  height: 50px;
  width: auto;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-name-cn {
  font-size: 22px;
  font-weight: 700;
  color: var(--hrxt-primary);
  line-height: 1.2;
}

.site-logo-name-en {
  font-size: 12px;
  font-weight: 500;
  color: var(--hrxt-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 导航菜单 */
.main-navigation {
  flex: 1;
  max-width: 600px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}

.main-navigation a {
  text-decoration: none;
  color: var(--hrxt-gray-700);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hrxt-accent);
  transition: width 0.3s;
}

.main-navigation a:hover {
  color: var(--hrxt-primary);
}

.main-navigation a:hover::after {
  width: 100%;
}

/* 搜索框 */
.header-search {
  position: relative;
  width: 200px;
}

.header-search-input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 1px solid var(--hrxt-gray-300);
  border-radius: 50px;
  font-size: 14px;
  transition: all 0.3s;
}

.header-search-input:focus {
  outline: none;
  border-color: var(--hrxt-accent);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.header-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--hrxt-accent);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.header-search-btn:hover {
  background: var(--hrxt-accent-dark);
}

/* ============================================
   4. Hero 轮播升级
   ============================================ */

.hero-carousel {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.carousel-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 74, 153, 0.75) 100%);
}

.hero-content {
  text-align: center;
  padding: 60px 20px;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  background: linear-gradient(135deg, var(--hrxt-accent) 0%, var(--hrxt-accent-dark) 100%);
  color: #ffffff;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.4);
  transition: all 0.3s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.5);
}

/* ============================================
   5. 产品展示升级
   ============================================ */

.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--hrxt-gray-200);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--hrxt-accent);
}

.product-card-thumb {
  position: relative;
  overflow: hidden;
  background: var(--hrxt-gray-100);
}

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

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

.product-card-content {
  padding: 20px;
}

.product-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--hrxt-gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card-cas {
  font-size: 13px;
  color: var(--hrxt-gray-500);
  margin-bottom: 12px;
  font-family: 'Inter', monospace;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  color: var(--hrxt-primary);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  gap: 4px;
  transition: gap 0.3s;
}

.product-card-link:hover {
  gap: 8px;
}

.product-card-link::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s;
}

.product-card-link:hover::after {
  transform: translateX(4px);
}

/* ============================================
   6. 核心优势区升级
   ============================================ */

.advantages-section {
  background: linear-gradient(135deg, var(--hrxt-gray-50) 0%, #ffffff 100%);
  padding: 80px 20px;
  margin: 60px 0;
}

.advantage-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  border: 1px solid var(--hrxt-gray-200);
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--hrxt-accent);
}

.advantage-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: inline-block;
  padding: 16px;
  background: linear-gradient(135deg, var(--hrxt-gray-50) 0%, var(--hrxt-gray-100) 100%);
  border-radius: 50%;
}

.advantage-card h3 {
  font-size: 20px;
  color: var(--hrxt-primary);
  margin-bottom: 12px;
}

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

/* ============================================
   7. 新闻列表升级
   ============================================ */

.news-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  border: 1px solid var(--hrxt-gray-200);
}

.news-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--hrxt-accent);
}

.news-item-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

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

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

.news-item-content {
  padding: 24px;
}

.news-item-date {
  font-size: 13px;
  color: var(--hrxt-accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.news-item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--hrxt-gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-item-excerpt {
  color: var(--hrxt-gray-500);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-item-link {
  display: inline-flex;
  align-items: center;
  color: var(--hrxt-primary);
  font-weight: 500;
  text-decoration: none;
  gap: 4px;
  transition: gap 0.3s;
}

.news-item-link:hover {
  gap: 8px;
}

/* ============================================
   8. 页脚升级
   ============================================ */

.site-footer {
  background: linear-gradient(135deg, var(--hrxt-gray-900) 0%, #1a202c 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 20px 30px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-section h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--hrxt-accent);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
}

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

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

/* ============================================
   9. 响应式优化
   ============================================ */

@media (max-width: 968px) {
  .top-bar {
    display: none;
  }

  .header-main {
    height: 60px;
  }

  .main-navigation {
    display: none;
  }

  .header-search {
    display: none;
  }

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

  .hero-content p {
    font-size: 15px;
  }

  .advantages-section {
    padding: 40px 20px;
  }

  .advantage-card {
    padding: 30px 20px;
  }

  .advantage-icon {
    font-size: 40px;
    padding: 12px;
  }
}

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ============================================
   10. 动画与交互
   ============================================ */

/* 淡入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 悬停发光效果 */
.glow-hover {
  transition: box-shadow 0.3s;
}

.glow-hover:hover {
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
}
