/* ============================================
   luffycloud.com — Light Tech Theme
   White/Light background + Blue accents
   Clean, airy, tech-forward, NOT dark
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --accent-blue: #2563eb;
  --accent-light: #3b82f6;
  --accent-deep: #1d4ed8;
  --accent-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
  --border-glow: rgba(37, 99, 235, 0.15);
  --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --card-hover-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.06);
  --nav-height: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ---- Reset & Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* ---- Disable dark grid background ---- */
body::before { display: none; }

/* ---- Header / Navbar ---- */
header {
  position: fixed;
  top: 0; width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: var(--nav-height);
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  position: relative;
}

.logo h1::after { display: none; }

.logo span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Nav Links */
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.06);
}
.nav-links a.active {
  font-weight: 600;
}

/* Lang Switch */
.lang-switch { font-size: 13px; color: var(--text-muted); }
.lang-switch a { color: var(--text-muted); transition: color 0.3s; padding: 0 2px; }
.lang-switch a.active { color: var(--accent-blue); font-weight: 600; }
.lang-switch a:hover { color: var(--accent-blue); }
.lang-switch span { margin: 0 6px; opacity: 0.3; }

/* ---- Hero Section ---- */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Light grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

.hero::after { display: none; }

/* Circuit pattern decoration */
.hero-circuit {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M0 200h100l50-50h50l50-50M200 200l50-50M300 150l50 50v100M0 50h100l50 50h50' stroke='%232563eb' stroke-width='0.5' fill='none' opacity='0.08'/%3E%3Ccircle cx='100' cy='200' r='2' fill='%232563eb' opacity='0.12'/%3E%3Ccircle cx='200' cy='150' r='2' fill='%232563eb' opacity='0.12'/%3E%3Ccircle cx='300' cy='150' r='2' fill='%232563eb' opacity='0.12'/%3E%3Ccircle cx='350' cy='300' r='2' fill='%232563eb' opacity='0.12'/%3E%3Ccircle cx='100' cy='100' r='2' fill='%232563eb' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: 0 20px;
  max-width: 800px;
}

.hero-content h2 {
  font-size: 48px;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: 2px;
  font-weight: 700;
}

.hero-content h2 .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn-primary, .btn-secondary {
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

/* ---- Section common ---- */
.section-title {
  text-align: center;
  padding: 60px 20px 20px;
}

.section-title h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Products Section ---- */
.products {
  padding: 20px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 24px 32px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.product-card::before { display: none; }

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
}

.card-icon { font-size: 40px; margin-bottom: 16px; display: block; }

.product-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover { color: var(--accent-deep); }

/* ---- Applications Section ---- */
.applications {
  background: var(--bg-secondary);
  padding: 20px 20px 60px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.app-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 20px 28px;
  text-align: center;
  transition: all 0.4s;
  box-shadow: var(--card-shadow);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
}

.app-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.app-card h4 { font-size: 18px; color: var(--text-primary); margin-bottom: 8px; font-weight: 600; }
.app-card p { font-size: 14px; color: var(--text-muted); }

/* ---- Stats Section ---- */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 60px 20px;
  background: var(--bg-secondary);
  flex-wrap: wrap;
  border-top: 1px solid var(--border-light);
}

.stat-item { text-align: center; position: relative; }

.stat-item::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 50%;
  width: 1px;
  height: 40px;
  background: var(--border-light);
  transform: translateY(-50%);
}

.stat-item:last-child::after { display: none; }

.stat-num {
  display: block;
  font-size: 42px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ---- Footer ---- */
footer {
  background: #1f2937;
  border-top: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 60px 20px;
}

.footer-brand h3 {
  font-size: 20px;
  color: #60a5fa;
  margin-bottom: 8px;
  background: none;
  -webkit-text-fill-color: #60a5fa;
}

.footer-brand p {
  color: #9ca3af;
  font-size: 14px;
}

.footer-links h4, .footer-contact h4 {
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: #9ca3af;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover { color: #60a5fa; }

.footer-contact p {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  padding: 20px;
}

.footer-bottom p {
  color: rgba(156,163,175,0.5);
  font-size: 13px;
}

/* ---- Page Banner (inner pages) ---- */
.page-banner {
  height: 280px;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.page-banner::before { display: none; }
.page-banner::after { display: none; }

.banner-content {
  text-align: center;
  z-index: 1;
  padding: 0 20px;
}

.banner-content h2 {
  font-size: 40px;
  color: #111827;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 700;
}

.banner-content p {
  font-size: 16px;
  color: #4b5563;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Product Cards (products page) ---- */
.prod-card-section { padding: 60px 20px; }

.prod-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.prod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.prod-card::before { display: none; }

.prod-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
}

.prod-card-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  background: #f0f4ff;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: all 0.3s;
}

.prod-card:hover .prod-card-icon {
  background: #dbeafe;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

.prod-card h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.prod-card .card-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.prod-card .card-desc strong { color: var(--accent-blue); }

.prod-card .card-tag {
  display: inline-block;
  background: #f0f4ff;
  color: var(--accent-blue);
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 12px;
  margin-top: 6px;
  border: 1px solid var(--border-light);
}

.prod-card .btn-detail {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 24px;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
}

.prod-card .btn-detail:hover {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* ---- Search Section ---- */
.search-section {
  padding: 30px 0;
  position: relative;
  z-index: 1;
}

.search-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 0 20px;
}

.search-container input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s;
  font-family: inherit;
}

.search-container input::placeholder {
  color: var(--text-muted);
}

.search-container input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-search {
  padding: 14px 30px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  font-family: inherit;
  font-weight: 500;
}

.btn-search:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* ---- Search Results ---- */
.search-results {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.search-results h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 20px;
}

.result-count {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 14px;
}

.search-table-wrap { overflow-x: auto; }

.search-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.search-table th {
  background: #f0f4ff;
  color: var(--accent-blue);
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid var(--accent-blue);
}

.search-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text-secondary);
  font-size: 14px;
}

.search-table tr:hover td {
  background: #f8faff;
}

.search-table .btn-sm {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s;
}

.search-table .btn-sm:hover {
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.search-table .na { color: var(--text-muted); }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 600;
}

.modal-close {
  width: 36px; height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}

.modal-close:hover {
  background: #e5e7eb;
  color: var(--text-primary);
}

.modal-body { padding: 20px 24px 24px; }

.modal-table-wrap { overflow-x: auto; }

.modal-table { width: 100%; border-collapse: collapse; }

.modal-table th {
  background: #f0f4ff;
  color: var(--accent-blue);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid var(--accent-blue);
}

.modal-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text-secondary);
  font-size: 13px;
}

.modal-table tr:hover td {
  background: #f8faff;
}

.modal-table .btn-sm {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s;
}

.modal-table .btn-sm:hover {
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.modal-table .na { color: var(--text-muted); }

/* ---- CTA Section (products page) ---- */
.prod-cta {
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid var(--border-light);
}

.prod-cta h3 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.prod-cta p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ---- About Page ---- */
.about-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-intro .intro-grid {
  display: flex;
  gap: 48px;
  align-items: center;
}

.about-intro .intro-text { flex: 1; }

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

.about-intro .intro-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 16px;
}

.about-intro .intro-image {
  flex: 0 0 400px;
  height: 280px;
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.about-intro .intro-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.about-intro .intro-image span {
  font-size: 18px;
  color: var(--accent-blue);
  font-weight: 600;
  z-index: 1;
}

/* Timeline */
.timeline-section {
  background: var(--bg-secondary);
  padding: 60px 20px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.timeline {
  max-width: 900px;
  margin: 40px auto 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-blue), rgba(37, 99, 235, 0.3), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--accent-blue);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-blue), 0 0 15px rgba(37, 99, 235, 0.25);
  z-index: 1;
}

.timeline-content {
  width: 42%;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: all 0.4s;
}

.timeline-content:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.timeline-content .year {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Culture */
.culture-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.culture-card {
  text-align: center;
  padding: 40px 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: all 0.4s;
}

.culture-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
}

.culture-card .cult-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.culture-card h4 { font-size: 18px; color: var(--text-primary); margin-bottom: 10px; font-weight: 600; }
.culture-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Honors */
.honors-section {
  background: var(--bg-secondary);
  padding: 60px 20px;
  border-top: 1px solid var(--border-light);
}

.honors-grid {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.honor-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: all 0.4s;
}

.honor-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
}

.honor-card .honor-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.honor-card h4 { font-size: 15px; color: var(--text-primary); margin-bottom: 6px; font-weight: 600; }
.honor-card p { font-size: 13px; color: var(--text-muted); }

/* ---- News Page ---- */
.news-container {
  max-width: 900px;
  margin: -40px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.news-item {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s;
}

.news-item:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-3px);
}

.news-date {
  flex: 0 0 80px;
  text-align: center;
  padding: 12px 8px;
  background: #f0f4ff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.news-date .day {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1.1;
}

.news-date .month {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.news-date .year {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.news-body { flex: 1; min-width: 0; }

.news-body h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s;
}

.news-item:hover .news-body h3 { color: var(--accent-blue); }

.news-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.news-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 12px;
  background: #f0f4ff;
  color: var(--accent-blue);
  border-radius: 12px;
  margin-top: 8px;
  border: 1px solid var(--border-light);
}

.news-sidebar {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.news-sidebar h4 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-blue);
  font-weight: 600;
}

.news-sidebar ul { list-style: none; }
.news-sidebar li { margin-bottom: 12px; }
.news-sidebar a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.news-sidebar a:hover { color: var(--accent-blue); }

/* ---- Support Page ---- */
.support-container {
  max-width: 1000px;
  margin: -40px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.support-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--card-shadow);
}

.support-section h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-blue);
  font-weight: 600;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8faff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  transition: all 0.3s;
  cursor: pointer;
}

.doc-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
  background: #eef2ff;
}

.doc-card .doc-icon { font-size: 28px; flex-shrink: 0; }
.doc-card .doc-info { flex: 1; }
.doc-card .doc-info h4 { font-size: 15px; color: var(--text-primary); margin-bottom: 4px; font-weight: 500; }
.doc-card .doc-info p { font-size: 13px; color: var(--text-muted); }
.doc-card .doc-dl {
  font-size: 13px;
  color: var(--accent-blue);
  font-weight: 500;
  white-space: nowrap;
}

/* FAQ */
.faq-list { }
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h4 {
  font-size: 15px;
  color: var(--text-primary);
  transition: color 0.3s;
  font-weight: 500;
}

.faq-question:hover h4 { color: var(--accent-blue); }

.faq-toggle {
  font-size: 20px;
  color: var(--accent-blue);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px 0 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 12px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.support-cta {
  text-align: center;
  padding: 40px 20px;
  background: #f8faff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-top: 28px;
}

.support-cta h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 10px;
  border: none;
  font-weight: 600;
}

.support-cta p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---- Contact Page ---- */
.contact-wrap {
  max-width: 1100px;
  margin: -40px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 700;
}

.info-cards { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}

.info-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--card-hover-shadow);
}

.info-card .info-icon {
  width: 44px; height: 44px;
  background: #f0f4ff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.info-card .info-text { flex: 1; }
.info-card .info-text h4 { font-size: 14px; color: var(--text-primary); margin-bottom: 4px; font-weight: 600; }
.info-card .info-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* Map placeholder */
.map-placeholder {
  margin-top: 24px;
  height: 200px;
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 14px;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--card-shadow);
}

.contact-form-wrap h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 600;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option {
  background: #fff;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  padding: 14px 40px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  width: 100%;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37, 99, 235, 0.4); }

/* ---- Selection ---- */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text-primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-content h2 { font-size: 32px; }
  .hero-content p { font-size: 15px; }
  .footer-content { grid-template-columns: 1fr; }
  .stats { gap: 30px; }
  .stat-num { font-size: 32px; }
  .stat-item::after { display: none; }

  .page-banner { height: 200px; }
  .banner-content h2 { font-size: 28px; }

  .about-intro .intro-grid {
    flex-direction: column;
    gap: 24px;
  }
  .about-intro .intro-image {
    flex: none;
    width: 100%;
    height: 200px;
  }

  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 48px;
  }
  .timeline-dot { left: 20px; }
  .timeline-content { width: 100%; }

  .news-item { flex-direction: column; gap: 12px; }
  .news-date {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
  }
  .news-date .day { font-size: 20px; }
  .news-date .month, .news-date .year { display: inline; font-size: 13px; }

  .support-section { padding: 24px 20px; }
  .doc-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .search-container { flex-direction: column; }
  .prod-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .prod-card-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: 1fr 1fr; }
}

.news-list {
  flex: 1;
  min-width: 0;
}

.news-sidebar {
  flex: 0 0 220px;
  margin-top: 0;
  position: sticky;
  top: 100px;
}

@media (max-width: 768px) {
  .news-container {
    flex-direction: column;
  }
  .news-sidebar {
    flex: none;
    width: 100%;
    position: static;
    margin-top: 20px;
  }
}

.news-sidebar a.active {
  color: var(--accent-blue);
  font-weight: 600;
  border-left: 3px solid var(--accent-blue);
  padding-left: 8px;
}

/* ---- Map Styles ---- */
.map-wrapper {
  margin-top: 20px;
}
.map-wrapper iframe {
  display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ---- Map Card Styles ---- */
.map-card {
  margin-top: 24px;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.map-card .map-icon-wrap {
  width: 56px;
  height: 56px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.map-card .map-icon {
  font-size: 26px;
  line-height: 1;
}
.map-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
}
.map-card .map-addr {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 20px;
}
.map-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.map-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.map-btn.gaode {
  background: #2563eb;
  color: #fff;
}
.map-btn.gaode:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.map-btn.baidu {
  background: #f0f0f0;
  color: #374151;
  border: 1px solid #d1d5db;
}
.map-btn.baidu:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .map-btns { flex-direction: column; }
  .map-btn { width: 100%; text-align: center; }
}

/* ---- Mobile Navigation ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  gap: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  header nav {
    position: relative;
  }
  
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex !important;
  }

  .nav-links li {
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .nav-links.show li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.show li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.show li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.show li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.show li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.show li:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.show li:nth-child(6) { transition-delay: 0.3s; }

  .nav-links a {
    font-size: 20px;
    color: #1e293b;
    padding: 8px 0;
  }

  .nav-links a.active {
    color: #2563eb;
  }
  
  .lang-switch {
    display: none;
  }
}

/* ---- ICP Beian ---- */
.beian {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
}
.beian a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.beian a:hover {
  color: #64748b;
}

/* ---- Mobile Nav Language Toggle ---- */
.nav-lang {
  display: none;
}

@media (max-width: 768px) {
  .nav-lang {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    text-align: center;
  }
  .nav-lang a {
    font-size: 16px !important;
    color: #64748b !important;
  }
}
