/* ===== 科维创达 - 官网样式表 ===== */

/* --- 设计变量 --- */
:root {
  /* 主色调 - 科技蓝 */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;

  /* 中性色 */
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* 功能色 */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --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 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.18);

  /* 布局 */
  --container-max: 1200px;
  --nav-height: 64px;

  /* 过渡 */
  --transition: 0.3s ease;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--primary-dark);
}

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

ul,
ol {
  list-style: none;
}

/* --- 布局工具 --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

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

.text-center {
  text-align: center;
}

.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);
}

/* --- 排版 --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-muted);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.section-header p {
  font-size: 1.125rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- 导航栏 --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.nav-logo:hover {
  color: var(--text);
}

.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo .logo-text {
  letter-spacing: -0.01em;
}

.nav-logo .logo-text span {
  color: var(--primary);
}

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

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

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

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

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

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

.btn-white:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Hero 区域 --- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--primary-50) 0%, #fff 50%, var(--primary-50) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-100);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  display: inline;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- 页面 Banner（子页面用） --- */
.page-banner {
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  background: linear-gradient(135deg, var(--primary-50), #fff);
  text-align: center;
}

.page-banner h1 {
  margin-bottom: var(--space-sm);
}

.page-banner p {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- 卡片 --- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.card h3 {
  margin-bottom: var(--space-xs);
}

.card p {
  font-size: 0.95rem;
}

/* --- 特性列表 --- */
.feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.feature-item .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item .feature-content h4 {
  margin-bottom: 4px;
}

.feature-item .feature-content p {
  font-size: 0.9rem;
}

/* --- 时间线 --- */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  width: 100px;
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.timeline-dot {
  position: absolute;
  left: 114px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  z-index: 1;
}

.timeline-content h4 {
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.95rem;
}

/* --- 产品/服务卡片 --- */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

.product-header {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-bottom: 1px solid var(--border);
}

.product-header .product-icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.product-header h3 {
  margin-bottom: 4px;
}

.product-header p {
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.product-body {
  padding: var(--space-lg);
}

.product-body .feature-item {
  margin-bottom: var(--space-sm);
}

.product-body .feature-item:last-child {
  margin-bottom: 0;
}

/* --- 博客/文章列表 --- */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.article-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.article-body h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.article-body p {
  font-size: 0.9rem;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- 联系页面 --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.contact-info-card h3 {
  color: #fff;
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item .ci-label {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 2px;
}

.contact-info-item .ci-value {
  font-size: 1rem;
  font-weight: 500;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: var(--space-sm);
}

/* --- CTA 区域 --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* --- 价值观 --- */
.value-card {
  text-align: center;
  padding: var(--space-lg);
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-md);
}

.value-card h4 {
  margin-bottom: var(--space-xs);
}

/* --- 团队 --- */
.team-card {
  text-align: center;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin: 0 auto var(--space-md);
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

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

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-col ul li span {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
}

.footer-bottom .icp a {
  color: #64748b;
  font-size: 0.85rem;
}

.footer-bottom .icp a:hover {
  color: #cbd5e1;
}

/* --- 动画 --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
}

.fade-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

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

  /* 移动端导航 */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  /* 网格变单列 */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* 时间线 */
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    flex-direction: column;
    gap: var(--space-xs);
    padding-left: var(--space-xl);
  }

  .timeline-date {
    width: auto;
    text-align: left;
  }

  .timeline-dot {
    left: 2px;
  }

  /* 联系页 */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* 表单 */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-section {
    padding: var(--space-xl) var(--space-md);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
