/* ========================================
   Partipure — Main Stylesheet
   v3.0  Logo 1.5x · Mobile responsive · AI Chat
   ======================================== */

:root {
  --primary: #0f7a5c;
  --primary-dark: #0b5f48;
  --primary-light: #e8f5ef;
  --navy: #0d1b3e;
  --blue: #1e4a8a;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f5f7fa;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  /* 手机端 header 高度 */
  --header-h: 82px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, 'Microsoft YaHei', sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(15,122,92,0.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-full { width: 100%; padding: 15px; font-size: 16px; }
.btn-nav { background: var(--primary); color: #fff !important; padding: 9px 20px; border-radius: 5px; margin-left: 8px; white-space: nowrap; }
.btn-nav:hover { background: var(--primary-dark); }

/* ========== HEADER ========== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
/* Logo 放大 1.5 倍：55px → 82px */
.logo-img { height: 82px; width: auto; display: block; max-width: none; object-fit: contain; background: transparent; padding: 2px 0; }
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  padding: 8px 14px;
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  border-radius: 5px;
  transition: color 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a.active { color: var(--primary); }
nav a.active { font-weight: 700; }

/* 汉堡按钮（手机端） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
  margin: 0 auto;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== PAGE BANNER ========== */
.page-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.page-banner p { font-size: 17px; opacity: 0.9; }

/* ========== HERO (Home) ========== */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 90px 0 100px;
  text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 18px; line-height: 1.25; }
.hero-sub { font-size: 18px; opacity: 0.92; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ========== FEATURES ========== */
.features { padding: 70px 0; background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  padding: 30px 22px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: 0 8px 25px rgba(15,122,92,0.1); transform: translateY(-4px); }
.feature-icon { font-size: 42px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ========== STATS ========== */
.stats { background: var(--primary-dark); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; color: #fff; }
.stat-item h3 { font-size: 48px; font-weight: 700; color: #fff; }
.stat-item p { font-size: 15px; opacity: 0.85; margin-top: 4px; }

/* 计数器加号：Clients 显示 200+，Countries 显示 30+ */
.stat-item h3.counter:not([data-target="99.9"]):not(.no-plus)::after {
  content: "+";
  font-size: 0.7em;
  font-weight: 700;
  margin-left: 2px;
}

/* Purity 显示 above 99.9% */
.stat-item h3.counter[data-target="99.9"]::after {
  content: "%";
  font-size: 0.7em;
  font-weight: 700;
  margin-left: 2px;
}

/* ========== SECTION HEADERS ========== */
.section-header { text-align: center; margin-bottom: 45px; }
.section-header h2 { font-size: 32px; color: var(--navy); margin-bottom: 10px; }
.section-header p { font-size: 16px; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* ========== PRODUCTS CAROUSEL ========== */
.carousel-section { padding: 70px 0; background: #fff; border-top: 1px solid var(--gray-200); }
.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}
.carousel-track .carousel-card {
  min-width: calc(33.333% - 14px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  cursor: pointer;
}
.carousel-track .carousel-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.carousel-info { padding: 20px; }
.carousel-info h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.carousel-arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 0 10px;
}
.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-arrow:hover { background: var(--primary); color: #fff; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--primary); }

/* ========== MODAL ENHANCEMENTS ========== */
.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 20px;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.modal-tag {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 500;
}
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; text-align: center; }

@media (max-width: 900px) {
  .carousel-track .carousel-card { min-width: calc(50% - 10px); }
  .modal-specs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .carousel-track .carousel-card { min-width: 100%; }
}
.products-preview { padding: 70px 0; background: var(--gray-50); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  cursor: pointer;
}
.product-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-4px); border-color: var(--primary); }
.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f5f7fa;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.formula-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  background: rgba(13, 27, 62, 0.86);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}
.product-info { padding: 22px; }
.product-info h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.product-cat { font-size: 12px; color: var(--primary); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.spec-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 500;
}
.spec-tag.highlight { background: #d4f5e9; color: var(--primary-dark); font-weight: 700; }
.product-price { margin-top: 14px; font-size: 14px; color: var(--gray-500); }
.product-price strong { color: var(--primary); font-size: 16px; }
.center-btn { text-align: center; margin-top: 40px; }

/* ========== FILTER BAR (Products Page) ========== */
.filter-bar { padding: 25px 0; background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: var(--header-h); z-index: 50; }
.filter-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 25px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-box input {
  padding: 10px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 25px;
  width: 240px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--primary); }

.products-full { padding: 40px 0 70px; background: var(--gray-50); min-height: 400px; }
.no-results { text-align: center; padding: 60px 0; color: var(--gray-500); font-size: 17px; }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  background: #fff;
  border-radius: 14px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--gray-500);
  z-index: 10;
}
.modal-body { padding: 35px; }
.modal-body .product-image { height: 220px; font-size: 56px; border-radius: 10px; }
.modal-body h2 { color: var(--navy); margin-bottom: 6px; }
.modal-body .modal-cat { color: var(--primary); font-size: 13px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.modal-body .modal-desc { color: var(--gray-700); margin-bottom: 20px; line-height: 1.7; }
.modal-spec-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.modal-spec-table th, .modal-spec-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.modal-spec-table th { background: var(--gray-50); color: var(--navy); font-weight: 600; width: 40%; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; text-align: center; }

/* ========== CTA ========== */
.cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 60px 0; text-align: center; }
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { font-size: 16px; opacity: 0.9; margin-bottom: 25px; }

/* ========== FOOTER ========== */
.footer { background: var(--primary-dark); color: #fff; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 35px; margin-bottom: 30px; }
.footer h4 { font-size: 16px; margin-bottom: 14px; }
.footer p, .footer a { font-size: 14px; opacity: 0.85; display: block; margin-bottom: 8px; transition: opacity 0.2s; }
.footer a:hover { opacity: 1; color: #fff; }
.footer-addr { line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; text-align: center; font-size: 13px; opacity: 0.6; }

/* ========== FLOATING CHAT ========== */
.float-chat { position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-size: 14px; }
.float-chat-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(15,122,92,0.4);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-chat-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.float-chat-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  border: 2px solid #fff;
}
.float-chat-btn-wrap { position: relative; }
.float-chat-panel {
  position: fixed;
  bottom: 88px; right: 24px;
  width: 340px;
  min-width: 320px;
  height: 480px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  z-index: 9999;
}
.float-chat-panel.open { display: flex; animation: chatIn 0.25s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-header-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chat-header-text { display: flex; flex-direction: column; }
.chat-header-text strong { font-size: 15px; line-height: 1.2; }
.chat-header-text span { font-size: 11px; opacity: 0.8; line-height: 1.3; }
.chat-close { cursor: pointer; font-size: 22px; opacity: 0.8; line-height: 1; }
.chat-close:hover { opacity: 1; }
.chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--gray-50);
}
.chat-msg { display: flex; gap: 8px; max-width: 85%; animation: msgIn 0.2s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.chat-msg.bot .chat-msg-avatar { background: var(--primary); color: #fff; }
.chat-msg.user .chat-msg-avatar { background: var(--navy); color: #fff; }
.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-msg.bot .chat-msg-bubble { background: #fff; color: var(--gray-700); border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-bubble a { color: var(--primary); text-decoration: underline; }
.chat-msg-bubble ul { margin: 6px 0 0 16px; }
.chat-msg-bubble li { margin-bottom: 3px; }
.chat-msg-bubble strong { color: var(--navy); }
.chat-msg.user .chat-msg-bubble strong { color: #fff; }


/* 聊天错误提示条 */
.chat-error {
  display: none;
  padding: 8px 14px;
  background: #fff4e5;
  color: #b26a00;
  font-size: 12px;
  border-top: 1px solid #ffe0b3;
}
/* 聊天在线状态 */
.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  opacity: 0.9;
}
.chat-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ffb020;
  display: inline-block;
}
.chat-status:not(.offline) .chat-status-dot { background: #2ecc71; }
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.chat-typing span {
  width: 7px; height: 7px;
  background: var(--gray-300);
  border-radius: 50%;
  animation: typing 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }
.chat-quick {
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.chat-quick-btn {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.chat-quick-btn:hover { background: var(--primary); color: #fff; }
.chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--gray-200);
  background: #fff;
  flex-shrink: 0;
  margin-top: auto;
}
#chatInput {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  min-height: 40px;
  transition: border-color 0.2s;
}
#chatInput:focus { border-color: var(--primary); }
#chatSend {
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 22px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
#chatSend:hover { background: var(--primary-dark); }
.chat-send-btn:disabled { background: var(--gray-300); cursor: not-allowed; }
.chat-powered { text-align: center; font-size: 10px; color: var(--gray-300); padding: 2px 0 6px; }
.chat-powered a { color: var(--gray-300); text-decoration: none; }
.chat-footer-links {
  padding: 0 16px 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  flex-shrink: 0;
}
.chat-footer-links a {
  font-size: 12px;
  color: var(--gray-500);
  text-decoration: none;
  padding: 4px 0;
}
.chat-footer-links a:hover { color: var(--primary); }

/* ========== ABOUT PAGE ========== */
.about-story { padding: 70px 0; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 30px; color: var(--navy); margin-bottom: 20px; }
.about-text p { font-size: 16px; color: var(--gray-700); margin-bottom: 16px; line-height: 1.8; }
.about-stats-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  padding: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  color: #fff;
}
.about-stat { text-align: center; }
.about-stat-num { display: block; font-size: 32px; font-weight: 700; }
/* 15 Years 不加号，其余 Clients / Countries 自动加 + */
.about-stat-num:not(.no-plus)::after {
  content: "+";
  font-size: 0.7em;
  font-weight: 700;
  margin-left: 2px;
}
.about-stat-label { font-size: 13px; opacity: 0.85; }

.capabilities { padding: 70px 0; background: var(--gray-50); }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cap-card {
  background: #fff;
  padding: 30px 22px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.cap-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(15,122,92,0.1); }
.cap-icon { font-size: 40px; margin-bottom: 12px; }
.cap-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 10px; }
.cap-card p { font-size: 14px; color: var(--gray-500); }

.quality { padding: 70px 0; }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quality-item {
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: #fff;
  transition: all 0.25s;
}
.quality-item:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(15,122,92,0.08); }
.quality-item h4 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.quality-item p { font-size: 14px; color: var(--gray-500); }

.timeline-section { padding: 70px 0; background: var(--gray-50); }
.timeline { max-width: 700px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; background: var(--primary); }
.timeline-item { position: relative; margin-bottom: 35px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.timeline-content h4 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.timeline-content p { font-size: 14px; color: var(--gray-500); }

/* ========== CONTACT PAGE ========== */
.contact-section { padding: 60px 0 70px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info h2, .contact-form-wrapper h2 { font-size: 26px; color: var(--navy); margin-bottom: 16px; }
.contact-intro { font-size: 15px; color: var(--gray-500); margin-bottom: 28px; }

.info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.info-icon { font-size: 26px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: 10px; flex-shrink: 0; }
.info-item h4 { font-size: 14px; color: var(--gray-500); margin-bottom: 2px; }
.info-item p { font-size: 15px; color: var(--gray-900); font-weight: 500; }

.contact-quick { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.quick-link { padding: 12px 16px; background: var(--gray-50); border-radius: 8px; font-size: 14px; color: var(--gray-700); transition: all 0.2s; border: 1px solid var(--gray-200); }
.quick-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.contact-form-wrapper { background: #fff; padding: 35px; border-radius: 14px; border: 1px solid var(--gray-200); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; }
.form-note { font-size: 12px; color: var(--gray-500); margin-top: 12px; text-align: center; }

.faq-section { padding: 60px 0 80px; background: var(--gray-50); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.faq-item { background: #fff; padding: 22px; border-radius: 10px; border: 1px solid var(--gray-200); }
.faq-item h4 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ========== FAQ PAGE ========== */
.faq-section { padding: 70px 0; background: var(--gray-50); }
.faq-categories { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 45px; }
.faq-cat-btn { display: inline-block; padding: 9px 18px; background: #fff; border: 1.5px solid var(--primary); color: var(--primary); border-radius: 25px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.faq-cat-btn:hover { background: var(--primary); color: #fff; }
.faq-group { background: #fff; border-radius: 12px; padding: 30px 34px; margin-bottom: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.faq-group h2 { font-size: 22px; color: var(--navy); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-200); }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; background: none; border: none; text-align: left; font-size: 16px; font-weight: 600; color: var(--navy); cursor: pointer; font-family: inherit; transition: color 0.2s; }
.faq-q:hover { color: var(--primary); }
.faq-toggle { font-size: 22px; font-weight: 400; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s ease; }
.faq-a p { padding: 0 4px 18px 4px; color: var(--gray-500); line-height: 1.7; margin: 0; }
.faq-item.open .faq-a { max-height: 400px; }

/* ========== RESPONSIVE — TABLET ========== */
@media (max-width: 900px) {
  .feature-grid, .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid, .faq-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item h3 { font-size: 36px; }
  .float-chat-panel { width: 320px; }
}

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 768px) {
  /* Header / Logo */
  .logo-img { height: 60px; }
  :root { --header-h: 68px; }

  /* 汉堡菜单 */
  .hamburger { display: flex; }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 4px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    z-index: 105;
    overflow-y: auto;
  }
  nav.open { right: 0; }
  nav a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
    border-bottom: 1px solid var(--gray-100);
  }
  nav a.btn-nav { margin: 12px 0 0; text-align: center; }
  /* 遮罩层 */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 104;
  }
  .nav-overlay.open { display: block; }

  /* 通用布局 */
  .feature-grid, .cap-grid, .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-specs-grid { grid-template-columns: 1fr; }

  /* 字体 */
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .page-banner h1 { font-size: 26px; }
  .section-header h2 { font-size: 24px; }
  .feature-card h3 { font-size: 16px; }

  /* 产品图 */
  .product-image { height: 180px; }
  .modal-body .product-image { height: 180px; }

  /* 聊天框 — 手机端贴边 */
  .float-chat { bottom: 12px; right: 12px; }
  .float-chat-panel {
    width: calc(100vw - 24px);
    max-width: 380px;
    height: 70vh;
    max-height: 560px;
    bottom: 60px;
  }
  .float-chat-btn { padding: 12px 18px; font-size: 14px; }

  /* 筛选 */
  .filter-controls { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }

  /* FAQ */
  .faq-group { padding: 22px 18px; }
  .faq-q { font-size: 15px; }

  /* 弹窗 */
  .modal-body { padding: 24px; }
}

@media (max-width: 480px) {
  .logo-img { height: 52px; }
  :root { --header-h: 62px; }
  .container { padding: 0 16px; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-item h3 { font-size: 30px; }
  .stat-item p { font-size: 13px; }
  .float-chat-panel { height: 75vh; }
}

/* 安全区适配（iPhone 底部） */
@supports (padding: max(0px)) {
  .float-chat {
    bottom: max(24px, env(safe-area-inset-bottom));
    right: max(24px, env(safe-area-inset-right));
  }
  @media (max-width: 768px) {
    .float-chat {
      bottom: max(12px, env(safe-area-inset-bottom));
      right: max(12px, env(safe-area-inset-right));
    }
  }
}
