/* ============================================================
   CSS Reset & Variables
   ============================================================ */
:root {
  --primary: #0a1628;
  --primary-light: #0d1f3c;
  --primary-mid: #132744;
  --accent: #0099ff;
  --accent-light: #33b0ff;
  --accent-glow: #00ccff;
  --gradient-1: linear-gradient(135deg, #0099ff 0%, #00ccff 100%);
  --gradient-2: linear-gradient(135deg, #0a1628 0%, #0d1f3c 40%, #132744 100%);
  --gradient-card: linear-gradient(145deg, #0d1f3c 0%, #132744 100%);
  --text-primary: #e8ecf1;
  --text-secondary: #a0b0c0;
  --text-muted: #6a7a8a;
  --white: #ffffff;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(0,153,255,0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled { background: rgba(10, 22, 40, 0.95); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700;
  color: var(--white); letter-spacing: 1px;
}
.nav-logo-icon {
  width: 40px; height: 40px; background: var(--gradient-1);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--white); font-weight: 900;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gradient-1); transition: var(--transition);
}
.nav-links a:hover, .nav-links a:focus { color: var(--white); }
.nav-links a:hover::after, .nav-links a:focus::after { width: 100%; }
.nav-cta {
  padding: 8px 20px; background: var(--gradient-1); border-radius: 50px;
  color: var(--white) !important; font-weight: 600; font-size: 0.85rem;
  transition: var(--transition); box-shadow: var(--shadow-glow);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 25px rgba(0,153,255,0.4); }
.nav-cta::after { display: none !important; }
.nav-links a.nav-active {
  color: var(--white);
}
.nav-links a.nav-active::after {
  width: 100%;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}
.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); }
.lang-toggle {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 50px;
  font-size: 0.8rem; color: var(--text-secondary); background: transparent;
  cursor: pointer; transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--white); }
.lang-toggle.active { background: var(--gradient-1); border-color: transparent; color: var(--white); }

/* ============================================================
   Hero Section (Homepage)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,153,255,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(0,204,255,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(0,153,255,0.06) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.3;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
  background: rgba(0,153,255,0.1); border: 1px solid rgba(0,153,255,0.2);
  border-radius: 50px; font-size: 0.85rem; color: var(--accent-light);
  margin-bottom: 32px; animation: fadeInUp 0.8s ease-out;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,204,255,0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(0,204,255,0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.2;
  margin-bottom: 24px; color: var(--white); animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero h1 .gradient-text {
  background: var(--gradient-1); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-secondary);
  max-width: 640px; margin-bottom: 40px; animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.8s ease-out 0.3s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-1); color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 35px rgba(0,153,255,0.4); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(0,153,255,0.08); }
.hero-stats {
  display: flex; gap: 48px; margin-top: 72px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-stat h3 {
  font-size: 2rem; font-weight: 800; color: var(--white);
  background: var(--gradient-1); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.hero-visual {
  display: none;
}
@media (min-width: 1024px) {
  .hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  .hero-visual { display: flex; align-items: center; justify-content: center; }
}
.hero-visual-inner {
  position: relative; width: 320px; height: 320px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.hero-visual-core {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,153,255,0.3), rgba(0,153,255,0.05));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 80px rgba(0,153,255,0.15);
}
.hero-visual-icon { font-size: 5rem; filter: drop-shadow(0 0 20px rgba(0,153,255,0.5)); }
.hero-visual-orbit {
  position: absolute; inset: -40px; border: 2px solid rgba(0,153,255,0.15);
  border-radius: 50%; animation: spin 20s linear infinite;
}
.hero-visual-orbit:nth-child(2) { inset: -80px; animation-duration: 30s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-visual-dot {
  position: absolute; width: 10px; height: 10px; background: var(--accent-glow);
  border-radius: 50%; top: 0; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 15px var(--accent-glow);
}

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

/* ============================================================
   Page Hero (Sub-pages Banner)
   ============================================================ */
.page-hero {
  position: relative; padding: 140px 24px 80px; overflow: hidden;
  background: var(--primary-light);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,153,255,0.1) 0%, transparent 60%);
}
.page-hero .hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.2;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.page-hero .section-label { animation: fadeInUp 0.6s ease-out; }
.page-hero .section-title { animation: fadeInUp 0.6s ease-out 0.1s both; }
.page-hero .section-desc { animation: fadeInUp 0.6s ease-out 0.2s both; }

/* ============================================================
   Section Common
   ============================================================ */
.section { padding: 80px 24px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.main-content { flex: 1; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 20px; height: 2px; background: var(--gradient-1); border-radius: 1px;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800;
  color: var(--white); margin-bottom: 16px; line-height: 1.3;
}
.section-desc {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 600px;
  margin-bottom: 48px;
}
.section-title .gradient-text {
  background: var(--gradient-1); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============================================================
   About Section
   ============================================================ */
.about-section { background: var(--primary-light); }
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-feature {
  padding: 24px; background: var(--gradient-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); transition: var(--transition);
}
.about-feature:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.about-feature-icon { font-size: 2rem; margin-bottom: 12px; }
.about-feature h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.about-feature p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.about-text h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 16px; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }

/* ============================================================
   Products Section
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.product-card {
  background: var(--gradient-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden; transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-8px); border-color: rgba(0,153,255,0.3);
  box-shadow: var(--shadow-md), 0 0 40px rgba(0,153,255,0.1);
}
.product-card-image {
  height: 200px; background: var(--gradient-2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-card-image::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,153,255,0.15), transparent 70%);
}
.product-card-image .product-icon {
  font-size: 4rem; position: relative; z-index: 1;
  filter: drop-shadow(0 0 20px rgba(0,153,255,0.4));
}
.product-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  background: rgba(0,204,255,0.15); color: var(--accent-glow);
  border: 1px solid rgba(0,204,255,0.3);
}
.product-badge.rd { background: rgba(255,153,0,0.15); color: #ffaa33; border-color: rgba(255,153,0,0.3); }
.product-card-body { padding: 24px; }
.product-card-body h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.product-card-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.product-tag {
  padding: 4px 10px; background: rgba(0,153,255,0.1); border-radius: 50px;
  font-size: 0.75rem; color: var(--accent-light);
}

/* ============================================================
   Services Section
   ============================================================ */
.services-section { background: var(--primary-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.service-card {
  padding: 32px 24px; background: var(--gradient-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); text-align: center; transition: var(--transition);
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.service-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: rgba(0,153,255,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--gradient-1); box-shadow: var(--shadow-glow); }
.service-card h4 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ============================================================
   Cases Section
   ============================================================ */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.case-card {
  background: var(--gradient-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); padding: 32px; transition: var(--transition);
}
.case-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.case-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.case-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--white); font-size: 1.2rem;
}
.case-card h4 { color: var(--white); font-size: 1rem; }
.case-card .case-role { color: var(--text-muted); font-size: 0.8rem; }
.case-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; font-style: italic; }
.case-metrics { display: flex; gap: 24px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.case-metric h5 { color: var(--accent-light); font-size: 1.3rem; }
.case-metric span { color: var(--text-muted); font-size: 0.75rem; }

/* ============================================================
   Contact Section
   ============================================================ */
.contact-section { background: var(--primary-light); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto 28px;
}
@media (max-width: 768px) {
  .contact-cards { grid-template-columns: 1fr; max-width: 400px; }
}
.contact-card {
  background: var(--primary-mid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,153,255,0.12);
  border-color: rgba(0,153,255,0.3);
}
.contact-card:hover::before { opacity: 1; }
.contact-card-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(0,153,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.contact-card:hover .contact-card-icon {
  transform: scale(1.1);
  background: rgba(0,153,255,0.15);
}
.contact-card h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.contact-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}
.contact-card a:hover { color: var(--accent-light); }
.contact-card-sub {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 2px;
}
.contact-email-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ============================================================
   CTA Banner (Sub-pages bottom)
   ============================================================ */
.cta-banner {
  padding: 80px 24px;
  text-align: center;
  background: var(--primary);
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--primary); border-top: 1px solid var(--border);
  padding: 60px 24px 32px; margin-top: auto;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 16px; }
.footer-col a {
  display: block; color: var(--text-muted); font-size: 0.85rem;
  padding: 6px 0; transition: var(--transition);
}
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ============================================================
   Mobile Menu
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.98); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 28px;
    transform: translateX(100%); transition: var(--transition);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-visual-inner { width: 240px; height: 240px; }
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Back to Top
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 48px; height: 48px; background: var(--gradient-1); border: none;
  border-radius: 50%; color: var(--white); font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow-glow); transition: var(--transition);
  opacity: 0; visibility: hidden; transform: translateY(20px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 6px 25px rgba(0,153,255,0.4); }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .sep { color: var(--text-muted); }

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 64px; }
