/* ============================================
   锶派科技 - AI智能体行业应用网站
   设计系统 v1.0
   ============================================ */

/* === CSS 变量 === */
:root {
  /* 主色调 - 科技深蓝 */
  --primary: #0B1F3A;
  --primary-light: #1a3a5f;
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-glow: rgba(37, 99, 235, 0.15);

  /* 辅助色 */
  --cyan: #06B6D4;
  --purple: #7C3AED;
  --green: #10B981;
  --orange: #F59E0B;
  --red: #EF4444;

  /* 中性色 */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #0B1F3A;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-light: #CBD5E1;
  --text-white: #FFFFFF;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.12);

  /* 过渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* 布局 */
  --header-height: 68px;
  --max-width: 1200px;
  --sidebar-width: 260px;
}

/* === 基础重置 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === 容器 === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* === 顶部导航 === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.logo span {
  color: var(--accent);
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-link .arrow {
  font-size: 10px;
  transition: var(--transition-fast);
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
}

/* 下拉菜单 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-dropdown a:hover {
  background: var(--bg-soft);
  color: var(--accent);
  padding-left: 20px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta .btn {
  padding: 9px 22px;
  font-size: 14px;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

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

/* === 页面容器 === */
.page {
  padding-top: var(--header-height);
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}

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

/* === 通用 Section === */
.section {
  padding: var(--space-5xl) 0;
}

.section-sm {
  padding: var(--space-4xl) 0;
}

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-soft {
  background: var(--bg-soft);
}

/* === Section 标题 === */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

.section-dark .section-eyebrow {
  background: rgba(37, 99, 235, 0.2);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-md);
}

.section-dark .section-title {
  color: #fff;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-dark .section-subtitle {
  color: var(--text-light);
}

/* === 面包屑 === */
.breadcrumb {
  padding: var(--space-lg) 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}

/* === 页面 Hero === */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1e3a5f 100%);
  color: #fff;
  padding: var(--space-5xl) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  line-height: 1.8;
}

/* === 卡片 === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

/* === 网格 === */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === 悬浮咨询组件 === */
.float-widget {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
  background: var(--primary-light);
}

.float-btn .tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.float-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.float-panel {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-xl);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.float-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-panel h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.float-panel p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.float-panel .btn {
  width: 100%;
}

.float-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

/* 底部固定咨询条 */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 12px 0;
  z-index: 998;
  display: none;
}

.bottom-bar.show {
  display: block;
}

.bottom-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.bottom-bar-text {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-bar-text strong {
  font-weight: 700;
}

.bottom-bar .btn {
  padding: 8px 20px;
  font-size: 14px;
  flex-shrink: 0;
}

/* === 页脚 === */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  max-width: 360px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-contact li {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--text-light);
}

/* === 标签/徽章 === */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.badge-blue { background: #DBEAFE; color: #1D4ED8; }
.badge-green { background: #D1FAE5; color: #047857; }
.badge-purple { background: #EDE9FE; color: #6D28D9; }
.badge-orange { background: #FEF3C7; color: #B45309; }
.badge-cyan { background: #CFFAFE; color: #0E7490; }
.badge-red { background: #FEE2E2; color: #B91C1C; }
.badge-gray { background: #F1F5F9; color: #475569; }

/* === 行业图标颜色 === */
.industry-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

/* === 动画 === */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.animate-up {
  animation: slideUp 0.6s ease forwards;
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --space-5xl: 80px;
    --space-4xl: 60px;
    --space-3xl: 40px;
  }

  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .section-title { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 15px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .float-widget { right: 12px; bottom: 20px; }
  .float-panel { width: calc(100vw - 24px); right: 12px; }

  .container, .container-wide { padding: 0 var(--space-md); }
}

/* === 移动端菜单 === */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  padding: var(--space-xl);
  overflow-y: auto;
  transform: translateX(100%);
  transition: var(--transition);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-item {
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu-item > a, .mobile-menu-item > .mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.mobile-menu-sub {
  display: none;
  padding-bottom: 12px;
}

.mobile-menu-sub.active {
  display: block;
}

.mobile-menu-sub a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.mobile-menu-cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* === 滚动条 === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* === 选中文字 === */
::selection {
  background: var(--accent);
  color: #fff;
}
