/* ========================================
   方案B - 商务专业风格
   ======================================== */

/* CSS变量定义 */
:root {
  --primary-color: #1E40AF;
  --primary-dark: #1E3A8A;
  --primary-light: #2563EB;
  --secondary-color: #DC2626;
  --secondary-dark: #B91C1C;
  --accent-color: #059669;
  --text-dark: #111827;
  --text-gray: #4B5563;
  --text-light: #9CA3AF;
  --bg-white: #FFFFFF;
  --bg-light: #F3F4F6;
  --bg-dark: #1F2937;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bg-white);
  text-decoration: none;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-icon {
  font-size: 26px;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color var(--transition-normal);
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bg-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* 电话信息 */
.phone-info {
  display: flex;
  align-items: center;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bg-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.phone-number:hover {
  background: var(--secondary-color);
  color: var(--bg-white);
}

.phone-icon {
  font-size: 16px;
}

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--bg-white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   Banner区
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--bg-white);
  padding: 100px 20px 60px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%),
    radial-gradient(circle at 30% 70%, rgba(220, 38, 38, 0.2) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  margin-bottom: 25px;
  opacity: 0.95;
  letter-spacing: 2px;
}

.hero-description {
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--bg-white);
}

.btn-secondary {
  background: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}

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

/* ========================================
   通用区块样式
   ======================================== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

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

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-main h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-main p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 15px;
  text-align: justify;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stat-item {
  background: var(--bg-white);
  padding: 30px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   产品展示
   ======================================== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  align-items: center;
  padding: 40px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.product-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(5px);
}

.product-item.reverse {
  grid-template-columns: 1fr 80px;
  border-left: none;
  border-right: 4px solid var(--primary-color);
}

.product-item.reverse:hover {
  transform: translateX(-5px);
}

.product-icon {
  font-size: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-gray);
}

/* ========================================
   代理品牌
   ======================================== */
.brands {
  background: var(--primary-dark);
  color: var(--bg-white);
}

.brands .section-title {
  color: var(--bg-white);
}

.brands .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

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

.brand-carousel {
  padding: 20px 0;
}

.brand-track {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.brand-item {
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 60px;
}

.brand-logo {
  max-width: 120px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-item:hover {
  background: var(--bg-white);
  color: var(--primary-dark);
}

/* ========================================
   联系我们
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.contact-card {
  background: var(--bg-white);
  padding: 35px 25px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--secondary-color);
  transition: all var(--transition-normal);
}

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

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

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.card-content {
  margin-bottom: 20px;
  min-height: 60px;
}

.card-content .contact-link {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  transition: color var(--transition-normal);
}

.card-content .contact-link:hover {
  color: var(--primary-dark);
}

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

.card-action {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--secondary-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.card-action:hover {
  background: var(--secondary-color);
  color: var(--bg-white);
}

.contact-cta {
  text-align: center;
  padding: 50px;
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  color: var(--bg-white);
}

.contact-cta h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--secondary-color);
  color: var(--bg-white);
  padding: 18px 50px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--bg-white);
}

.btn-icon {
  font-size: 22px;
}

/* 二维码样式 */
.qrcode-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 10px auto;
  display: block;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px;
  background: var(--bg-white);
}

.qrcode-tip {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 8px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: var(--bg-dark);
  color: var(--bg-white);
  padding: 60px 0 30px;
}

.footer-content {
  text-align: center;
  margin-bottom: 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo-image {
  height: 50px;
  width: auto;
  display: block;
}

.footer-slogan {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--bg-white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: opacity var(--transition-normal);
}

.footer-bottom a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板端 (768px - 1023px) */
@media (max-width: 1023px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .product-item {
    grid-template-columns: 60px 1fr;
    padding: 30px;
  }

  .product-item.reverse {
    grid-template-columns: 60px 1fr;
    border-right: none;
    border-left: 4px solid var(--primary-color);
  }
}

/* 手机端 (< 768px) */
@media (max-width: 767px) {
  section {
    padding: 50px 0;
  }

  /* 导航栏 */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-white);
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    color: var(--text-dark);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .phone-info {
    display: none;
  }

  /* Hero区 */
  .hero {
    padding: 80px 20px 40px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  /* 关于我们 */
  .about-stats {
    grid-template-columns: 1fr;
  }

  /* 产品展示 */
  .product-item,
  .product-item.reverse {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px;
  }

  .product-icon {
    font-size: 48px;
  }

  /* 品牌展示 */
  .brand-item {
    font-size: 14px;
    padding: 15px 20px;
  }

  /* 联系我们 */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .contact-cta {
    padding: 35px 25px;
  }

  /* 页脚 */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 32px;
  }

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

/* 大屏幕优化 (≥ 1440px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}
