/* ===========================
   XIPUGUAN · cloud-ai.work
   Global Styles
=========================== */

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

:root {
  --orange: #f97316;
  --orange-light: #fb923c;
  --navy: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #374151;
  --white: #ffffff;
  --text: #1e293b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.logo-icon { width: 36px; height: 36px; }
.logo-icon.sm { width: 28px; height: 28px; }

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.logo-cn {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange); }

.btn-nav {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--orange-light) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--navy);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 50%, #eff6ff 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(249,115,22,0.1);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 24px;
}

.accent { color: var(--orange); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 680px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.hero-sub-cn {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy-700);
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  margin: 12px 0 8px;
}

.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.6); }

.section-header p {
  font-size: 1rem;
  color: var(--gray-500);
}

.tag {
  display: inline-block;
  background: rgba(249,115,22,0.1);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.tag-orange { background: rgba(249,115,22,0.15); }

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow);
}

.product-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-card h3 .cn {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 500;
}

.product-card p {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 8px;
}

.cn-desc {
  color: var(--gray-500) !important;
  font-size: 0.82rem !important;
}

.product-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.product-link:hover { text-decoration: underline; }

/* ===== HSDV SYSTEM ===== */
.system-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.feature-item:last-child { border-bottom: none; }

.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.cn-small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-left: 8px;
}

.feature-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 8px;
}

/* ===== MOCKUP ===== */
.system-mockup {
  position: sticky;
  top: 100px;
}

.mockup-window {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.mockup-topbar {
  background: var(--navy-700);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.mockup-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-family: monospace;
}

.mockup-body { padding: 20px; }

.mockup-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mockup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.mockup-badge.online {
  font-size: 0.72rem;
  color: #22c55e;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.mockup-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.metric-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}

.metric-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.metric-value.normal { color: #22c55e; }
.metric-value.warn { color: #f59e0b; }

.metric-status {
  font-size: 0.65rem;
  font-weight: 600;
}
.metric-status.ok { color: #22c55e; }
.metric-status.alert { color: #f59e0b; }

.mockup-alert {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.72rem;
  color: #fca5a5;
  margin-bottom: 16px;
}

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  padding: 0 4px;
}

.chart-bar {
  flex: 1;
  background: rgba(249,115,22,0.4);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s;
}

.chart-bar.warn {
  background: rgba(239,68,68,0.6);
}

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}

.why-card:hover { box-shadow: var(--shadow); }

.why-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 16px;
}

.why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.section-contact {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 16px;
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-info {
  font-size: 0.78rem;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .system-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .system-mockup { position: static; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    gap: 12px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 32px; }
  .mockup-metrics { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ===== 语言切换按钮与工业插图样式增强 ===== */
.brand-subtext {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--orange);
  margin-left: 6px;
}

.lang-switch-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-lang-toggle {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-lang-toggle:hover {
  background: var(--white);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(249,115,22,0.15);
}

.product-media {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
}

.product-svg-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-svg-art {
  transform: scale(1.03);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-specs {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.p-desc {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
