/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
body { background: #f9fafb; color: #374151; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Layout */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.min-h-screen { min-height: 100vh; display: flex; flex-direction: column; }
.flex-1 { flex: 1; }

/* Header — 左品牌 + 右栏（导航与语言成组） */
header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
header nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 4rem;
  gap: 1rem;
}
/* 右侧整块贴右：导航 + RedteaGO 式语言 + 移动端按钮 */
.nav-cluster {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #111827;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
}
@media (min-width: 768px) { .logo { font-size: 1.25rem; } }
.logo-wifi { display: flex; flex-shrink: 0; align-items: center; }
.logo-text { min-width: 0; line-height: 1.25; }
@media (max-width: 767px) {
  .logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(14rem, 42vw); }
}
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { color: #374151; font-size: 0.9375rem; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #2563eb; }
/* RedteaGO 风格语言：地球 + 文案 + 箭头，无描边药丸 */
.lang-switch-wrap { position: relative; flex-shrink: 0; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #4b5563;
  font-size: 0.875rem;
  font-family: inherit;
  border-radius: 0.25rem;
}
.lang-trigger:hover { color: #111827; background: rgba(0,0,0,0.04); }
.lang-trigger[aria-expanded="true"] { color: #111827; }
.lang-globe { display: flex; color: #6b7280; }
.lang-trigger:hover .lang-globe { color: #4b5563; }
.lang-chevron { display: flex; color: #6b7280; transition: transform 0.2s; }
.lang-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 100;
}
.lang-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
}
.lang-menu-item:hover { background: #f3f4f6; color: #111827; }
.mobile-menu-btn { display: flex; align-items: center; justify-content: center; padding: 0.5rem; color: #374151; background: transparent; border: none; cursor: pointer; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-nav { display: none; padding: 1rem 0; border-top: 1px solid #e5e7eb; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.5rem 0; color: #6b7280; }
.mobile-nav a.active { color: #2563eb; }

/* Footer */
footer { background: #111827; color: white; padding: 3rem 0; }
footer .grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { footer .grid { grid-template-columns: repeat(4, 1fr); } }
footer h3 { font-weight: 600; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 0.5rem; font-size: 0.875rem; color: #9ca3af; }
footer .border-t { border-top: 1px solid #374151; margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: 0.875rem; color: #9ca3af; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 2rem; border-radius: 0.5rem; font-weight: 500; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { border: 2px solid white; color: white; background: transparent; }
.btn-outline:hover { background: white; color: #2563eb; }

/* Hero Section */
.hero { background: linear-gradient(to bottom right, #2563eb, #1e40af); color: white; padding: 5rem 0; }
@media (min-width: 768px) { .hero { padding: 8rem 0; } }
.hero h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
.hero p { font-size: 1.25rem; color: #dbeafe; margin-bottom: 2rem; max-width: 32rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-grid { display: grid; gap: 3rem; }
/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: #f9fafb; }
.section-white { background: white; }
.section-title { font-size: 1.875rem; text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.section-header h2 { font-size: 1.875rem; }
@media (min-width: 768px) { .section-header h2 { font-size: 2.25rem; } }

/* Features Grid */
.features-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: white; padding: 2rem; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: box-shadow 0.2s; }
.feature-card:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.feature-card svg { width: 3rem; height: 3rem; color: #2563eb; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.feature-card p { color: #6b7280; }

/* Product Cards */
.products-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { background: white; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all 0.2s; }
.product-card:hover { box-shadow: 0 10px 15px rgba(0,0,0,0.1); transform: translateY(-0.25rem); }
.product-card-img { height: 16rem; background: #f3f4f6; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; }
.product-card-body { padding: 1.5rem; }
.product-card-body .type { font-size: 0.875rem; color: #2563eb; margin-bottom: 0.25rem; }
.product-card-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-card-body .speed { color: #6b7280; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.product-card-body .price { font-size: 1.5rem; color: #2563eb; }
.product-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid #e5e7eb; }

/* CTA Section */
.cta { background: #2563eb; color: white; padding: 5rem 0; text-align: center; }
.cta h2 { font-size: 1.875rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .cta h2 { font-size: 2.25rem; } }
.cta p { font-size: 1.25rem; color: #dbeafe; margin-bottom: 2rem; }

/* Stats Section */
.stats { background: #2563eb; color: white; padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-item svg { width: 3rem; height: 3rem; margin-bottom: 1rem; opacity: 0.8; }
.stat-item .number { font-size: 1.875rem; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .stat-item .number { font-size: 2.25rem; } }
.stat-item .label { color: #dbeafe; }

/* Info Grid */
.info-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-item { text-align: center; }
.info-item .icon { width: 4rem; height: 4rem; background: #dbeafe; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.info-item .icon svg { width: 2rem; height: 2rem; color: #2563eb; }

/* Breadcrumb */
.breadcrumb { background: white; border-bottom: 1px solid #e5e7eb; padding: 1rem 0; }
.breadcrumb-inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #6b7280; }
.breadcrumb a:hover { color: #2563eb; }

/* Product Detail */
.product-detail { padding: 3rem 0; background: white; }
.product-detail-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .product-detail-grid { grid-template-columns: 1fr 1fr; } }
.product-info h1 { font-size: 1.875rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .product-info h1 { font-size: 2.25rem; } }
.product-info p { color: #6b7280; margin-bottom: 2rem; line-height: 1.75; }

/* Specs Table */
.specs-section { background: white; border-top: 1px solid #e5e7eb; padding: 3rem 0; }
.spec-row { display: grid; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid #e5e7eb; }
@media (min-width: 768px) { .spec-row { grid-template-columns: 1fr 3fr; } }
.spec-label { color: #111827; font-weight: 500; }
.spec-value { color: #6b7280; }

/* Related Products */
.related-products { padding: 4rem 0; background: #f9fafb; }
.related-products h2 { font-size: 1.5rem; margin-bottom: 2rem; }

/* About Page */
.about-content { display: grid; gap: 3rem; }
@media (min-width: 768px) { .about-content { grid-template-columns: 1fr 1fr; align-items: center; } }
.about-content h2 { font-size: 1.875rem; margin-bottom: 1.5rem; }
.about-content p { color: #6b7280; margin-bottom: 1rem; line-height: 1.75; }
.aspect-video { aspect-ratio: 16/9; background: #e5e7eb; border-radius: 0.75rem; overflow: hidden; }
.aspect-video img { width: 100%; height: 100%; object-fit: cover; }

/* Milestones */
.milestones { max-width: 48rem; margin: 0 auto; }
.milestone { display: flex; gap: 1.5rem; }
.milestone-year { width: 3rem; height: 3rem; background: #2563eb; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 600; }
.milestone-content { padding-bottom: 2rem; }
.milestone-content h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.milestone-content p { color: #6b7280; }
.milestone-line { width: 0.125rem; background: #bfdbfe; margin-left: 1.5rem; margin-top: 0.5rem; }

/* Certifications */
.certs-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .certs-grid { grid-template-columns: repeat(3, 1fr); } }
.cert-item { background: white; padding: 1.5rem; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 1rem; }
.cert-item svg { width: 1.5rem; height: 1.5rem; color: #16a34a; flex-shrink: 0; }

/* Contact Page */
.contact-cards { display: grid; gap: 1.5rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-cards { grid-template-columns: repeat(4, 1fr); } }
.contact-card { background: white; padding: 1.5rem; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.contact-card svg { width: 2.5rem; height: 2.5rem; color: #2563eb; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.contact-card .main { color: #111827; margin-bottom: 0.25rem; }
.contact-card .sub { font-size: 0.875rem; color: #6b7280; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-form { background: white; padding: 2rem; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.contact-form h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; margin-bottom: 0.5rem; color: #374151; }
.form-group label span { color: #ef4444; }
.form-input { width: 100%; padding: 0.5rem 1rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 1rem; transition: all 0.2s; }
.form-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
textarea.form-input { resize: none; min-height: 8rem; }
.map-placeholder { background: linear-gradient(to bottom right, #dbeafe, #bfdbfe); border-radius: 0.75rem; height: 25rem; display: flex; align-items: center; justify-content: center; }
.map-placeholder .inner { text-align: center; }
.map-placeholder svg { width: 4rem; height: 4rem; color: #2563eb; margin-bottom: 1rem; }
.map-placeholder h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.map-placeholder p { color: #6b7280; }
.offices { background: white; padding: 2rem; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-top: 1.5rem; }
.offices h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.office-item { padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1rem; }
.office-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.office-item h4 { margin-bottom: 0.5rem; }
.office-item p { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.25rem; }
.office-item a { color: #2563eb; font-size: 0.875rem; }

/* FAQ */
.faq-section { padding: 4rem 0; background: white; }
.faq-section h2 { font-size: 1.875rem; text-align: center; margin-bottom: 3rem; }
.faq-item { border-left: 4px solid #2563eb; padding-left: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.faq-item h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.faq-item p { color: #6b7280; }

/* Product List Header */
.page-header { background: linear-gradient(to right, #2563eb, #1e40af); color: white; padding: 4rem 0; }
.page-header h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .page-header h1 { font-size: 3rem; } }
.page-header p { font-size: 1.25rem; color: #dbeafe; }
.product-count { margin-bottom: 1.5rem; color: #6b7280; }

/* Product List Items */
.product-list-item { display: grid; gap: 1rem; padding: 1.5rem; background: white; border-radius: 0.75rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
@media (min-width: 768px) { .product-list-item { grid-template-columns: 1fr 2fr; } }
@media (min-width: 1024px) { .product-list-item { grid-template-columns: 1fr 3fr; } }
.product-list-img { height: 12rem; background: #f3f4f6; border-radius: 0.5rem; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-list-img img { width: 100%; height: 100%; object-fit: cover; }
.product-list-info .type { font-size: 0.875rem; color: #2563eb; margin-bottom: 0.25rem; }
.product-list-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-list-info .speed { color: #6b7280; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.product-features { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.product-feature { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #6b7280; }
.product-feature::before { content: ''; width: 0.375rem; height: 0.375rem; background: #2563eb; border-radius: 50%; }
.product-list-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid #e5e7eb; }

/* Utility */
.text-blue { color: #2563eb; }
.text-red { color: #ef4444; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-link { color: #2563eb; display: flex; align-items: center; gap: 0.25rem; }
.text-link:hover { color: #1d4ed8; }
.gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }

/* Page visibility */
.page { display: none; }
.page.active { display: block; }

/* Loading state */
.loading { display: flex; justify-content: center; align-items: center; min-height: 200px; color: #6b7280; }

/* Gallery */
.product-gallery { position: relative; }
.product-gallery-main { position: relative; background: white; border-radius: 0.75rem; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); padding: 0.75rem; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.15); cursor: pointer; transition: all 0.2s; border: none; display: flex; align-items: center; justify-content: center; }
.gallery-btn:hover { background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.gallery-btn.prev { left: 1rem; }
.gallery-btn.next { right: 1rem; }
.gallery-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.gallery-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #d1d5db; transition: all 0.2s; cursor: pointer; border: none; padding: 0; }
.gallery-dot:hover { background: #9ca3af; }
.gallery-dot.active { width: 2rem; border-radius: 0.25rem; background: #2563eb; }

@media (max-width: 768px) {
  .gallery-btn { padding: 0.5rem; }
  .gallery-btn svg { width: 20px; height: 20px; }
}
