/* ===== KYT Export Template - 国际B2B外贸风格 ===== */
:root {
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --accent: #1a56a8;
  --accent-light: #2563eb;
  --cta: #2563eb;
  --cta-hover: #1d4ed8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0a2540;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 16px; color: var(--text); font-size: 15px; font-weight: 500;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.nav a:hover, .nav a.active { color: var(--accent); background: var(--bg-alt); }

.header-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.lang-switch button {
  padding: 6px 14px; border: none; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text-light); transition: var(--transition);
}
.lang-switch button.active { background: var(--accent); color: #fff; }

.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  margin-top: 72px; position: relative; min-height: 560px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  overflow: hidden;
}
.hero-slides {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
}
.hero-slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(10,37,64,0.45) 0%, rgba(10,37,64,0.2) 50%, rgba(10,37,64,0.05) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5);
  background: transparent; cursor: pointer; transition: var(--transition); padding: 0;
}
.hero-dots button.active { background: var(--cta); border-color: var(--cta); }
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="40" fill="rgba(255,255,255,0.02)"/></svg>');
  background-size: cover;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 80px 0; }
.hero-badge {
  display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 20px;
  color: #fff; font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero h1 {
  font-size: 48px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero h1 span { color: #fff; }
.hero p { font-size: 18px; color: #fff; margin-bottom: 36px; line-height: 1.7; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { background: #f0f4f8; color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-light); color: #fff; }

.hero-stats {
  position: relative; z-index: 2; display: flex; gap: 48px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat h3 { font-size: 36px; font-weight: 800; color: #fff; }
.hero-stat p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label {
  display: inline-block; padding: 6px 16px; background: rgba(26,86,168,0.1);
  color: var(--accent); border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;
}
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ===== Products Grid ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.product-card .img-wrap {
  height: 200px; background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 20px; border-bottom: 1px solid var(--border);
}
.product-card .img-wrap img { max-height: 100%; object-fit: contain; }
.product-card .info { padding: 20px; }
.product-card .info h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }
.product-card .info p { font-size: 13px; color: var(--text-light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.product-card .more { font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.product-card .more:hover { gap: 8px; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff; padding: 32px 24px; border-radius: var(--radius);
  text-align: center; transition: var(--transition); border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature-card .icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.feature-card h4 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== About / Lab ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 400px; object-fit: cover; }
.about-content h2 { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.about-content p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 24px; }
.about-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; color: var(--text); }
.about-list li::before { content: '✓'; color: var(--accent); font-weight: 700; width: 24px; height: 24px; background: rgba(26,86,168,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 60px 0; text-align: center;
}
.cta-banner h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
  border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .img-wrap { height: 200px; overflow: hidden; }
.news-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .img-wrap img { transform: scale(1.05); }
.news-card .info { padding: 24px; }
.news-card .date { font-size: 13px; color: var(--text-lighter); margin-bottom: 10px; }
.news-card h4 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--cta); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-contact-item .icon { flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition);
  text-decoration: none; font-size: 28px;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }

/* ===== Page Banner (内页) ===== */
.page-banner {
  margin-top: 72px; padding: 80px 0; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-align: center;
}
.page-banner h1 { font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.page-banner p { font-size: 17px; color: rgba(255,255,255,0.8); }

.breadcrumb {
  background: var(--bg-alt); padding: 14px 0; border-bottom: 1px solid var(--border);
}
.breadcrumb .container { font-size: 14px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ===== Product Filter ===== */
.product-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; justify-content: center; }
.product-filter button {
  padding: 10px 24px; border: 1px solid var(--border); background: #fff;
  border-radius: 25px; font-size: 14px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: var(--transition);
}
.product-filter button:hover { border-color: var(--accent); color: var(--accent); }
.product-filter button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Product Detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.product-gallery .main-img {
  width: 100%; height: 450px; object-fit: contain; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
}
.product-thumbs { display: flex; gap: 12px; margin-top: 16px; }
.product-thumbs img {
  width: 80px; height: 80px; object-fit: contain; background: #fff;
  border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  padding: 8px; transition: var(--transition);
}
.product-thumbs img:hover, .product-thumbs img.active { border-color: var(--accent); }
.product-info h1 { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.product-info .desc { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 28px; }
.product-features { margin-bottom: 28px; }
.product-features h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.feature-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.feature-item .feat-title { font-weight: 600; color: var(--text); min-width: 120px; }
.feature-item .feat-content { color: var(--text-light); }

.standards-section { margin-top: 40px; }
.standards-section h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.standards-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.standards-table th { background: var(--primary); color: #fff; padding: 14px 20px; text-align: left; font-size: 14px; font-weight: 600; }
.standards-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.standards-table tr:last-child td { border-bottom: none; }
.standards-table tr:hover td { background: var(--bg-alt); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info-card {
  background: var(--primary); border-radius: var(--radius); padding: 40px; color: #fff;
}
.contact-info-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-item h4 { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.contact-item p { font-size: 15px; color: #fff; margin: 0; }

.contact-form { background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-form h3 { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); transition: var(--transition); background: #fff;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,168,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn {
  width: 100%; padding: 14px; background: var(--cta); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.submit-btn:hover { background: var(--cta-hover); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success { text-align: center; padding: 60px 20px; }
.form-success .icon { font-size: 56px; margin-bottom: 16px; }
.form-success h3 { font-size: 24px; color: var(--primary); margin-bottom: 10px; }
.form-success p { color: var(--text-light); }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.timeline-item { position: relative; width: 50%; padding: 20px 40px; margin-bottom: 20px; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::before {
  content: ''; position: absolute; top: 28px; width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }
.timeline-item .year { font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.timeline-item h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== Honors ===== */
.honors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.honor-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: var(--transition);
}
.honor-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.honor-card .icon { font-size: 36px; margin-bottom: 12px; }
.honor-card h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.honor-card p { font-size: 13px; color: var(--text-light); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; width: 100%; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-stat h3 { font-size: 28px; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 28px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image img { height: 280px; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery .main-img { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 50px; padding-right: 0; }
  .timeline-item::before { left: 12px !important; right: auto !important; }
  .honors-grid { grid-template-columns: repeat(2, 1fr); }
  .page-banner h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .product-card .img-wrap { height: 240px; }
  .honors-grid { grid-template-columns: 1fr; }
  .whatsapp-float { width: 48px; height: 48px; font-size: 24px; bottom: 20px; right: 20px; }
}
