/* 新增：主题切换过渡（配合main.js） */
:root.theme-transition {
  transition: 
    background-color 0.3s ease, 
    color 0.3s ease, 
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-image 0.3s ease;
}

:root[data-theme='light'] {
  --bg: #f3f4f6;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-strong: rgba(37, 99, 235, 0.22);
  --text-main: #020617;
  --text-muted: #4b5563;
  --border-subtle: #e5e7eb;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
}

:root[data-theme='dark'] {
  --bg: #020617;
  --bg-alt: #020617;
  --card: #020617;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.2);
  --accent-strong: rgba(34, 211, 238, 0.4);
  --text-main: #f9fafb;
  --text-muted: #cbd5f5;
  --border-subtle: #1f2933;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

:root[data-theme='dark'] body {
  background: radial-gradient(circle at top, #0f172a 0, #020617 40%, #020617 100%);
}

:root[data-theme='light'] body {
  background: radial-gradient(circle at top, #f9fafb 0, #e5e7eb 40%, #e5e7eb 100%);
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

:root[data-theme='dark'] .site-header {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.4),
    transparent
  );
}

:root[data-theme='light'] .site-header {
  background: linear-gradient(
    to bottom,
    rgba(249, 250, 251, 0.96),
    rgba(249, 250, 251, 0.9),
    rgba(249, 250, 251, 0.6),
    transparent
  );
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(
    from 160deg,
    #22d3ee,
    #6366f1,
    #a855f7,
    #22d3ee
  );
  position: relative;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, #f9fafb, #0f172a 60%);
}

.logo-text span {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-text small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav a {
  padding: 6px 0;
  position: relative;
  color: var(--text-main);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22d3ee, #6366f1);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--card);
  cursor: pointer;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 70px;
  justify-content: space-between;
}

.theme-toggle-label {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

.theme-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 4px);
  height: calc(100% - 4px);
  border-radius: 999px;
  background: var(--accent-soft);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

:root[data-theme='light'] .theme-toggle-knob {
  transform: translateX(0);
}

:root[data-theme='dark'] .theme-toggle-knob {
  transform: translateX(100%);
}

:root[data-theme='light'] .theme-toggle-label-light {
  color: var(--text-main);
  font-weight: 600;
}

:root[data-theme='dark'] .theme-toggle-label-dark {
  color: var(--text-main);
  font-weight: 600;
}

/* Hero区样式 */
.hero {
  padding: 56px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  margin: 8px 0;
  font-size: clamp(32px, 4vw, 40px);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-slogan {
  font-size: 18px;
  color: var(--accent);
  margin: 6px 0 10px;
}

.hero-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background: linear-gradient(to right, #22d3ee, #6366f1);
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.6);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.btn-secondary:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
}

/* 3D立方体样式 */
.hero-visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  -webkit-perspective: 800px;
}

.hero-orbit {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 1px dashed var(--accent-soft);
  box-shadow: 0 0 40px var(--accent-soft);
  background: radial-gradient(circle at 20% 0, var(--accent-soft), transparent 55%);
  z-index: 1;
}

.hero-cube {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  animation: spin-cube 18s linear infinite;
  z-index: 2;
  transform: rotateX(-30deg) rotateY(15deg);
}

.cube-face {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.cube-front {
  transform: translateZ(75px);
  background: radial-gradient(circle at 30% 20%, var(--accent), var(--bg-alt) 70%);
}

.cube-back {
  transform: rotateY(180deg) translateZ(75px);
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.8), var(--bg-alt) 75%);
}

.cube-right {
  transform: rotateY(90deg) translateZ(75px);
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.7), var(--bg-alt) 78%);
}

.cube-left {
  transform: rotateY(-90deg) translateZ(75px);
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.75), var(--bg-alt) 72%);
}

.cube-top {
  transform: rotateX(90deg) translateZ(75px);
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.9), var(--bg-alt) 68%);
}

.cube-bottom {
  transform: rotateX(-90deg) translateZ(75px);
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.6), var(--bg-alt) 80%);
  box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.1), var(--shadow-soft);
}

.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 24px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  z-index: 3;
}

.hero-badge span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
}

.hero-badge small {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes spin-cube {
  0% {
    transform: rotateX(-30deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(-30deg) rotateY(360deg);
  }
}

/* 通用区块样式（之前缺失的核心） */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-radius: var(--radius-xl);
  margin: 40px 0;
  box-shadow: var(--shadow-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.section-head p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 卡片网格样式（业务/案例） */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.card-industry {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
}

.card-title {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.card-highlight {
  font-size: 13px;
  color: var(--text-main);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.card-material {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* 报价套餐样式 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.pricing-name {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.pricing-target {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.pricing-price span {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  gap: 8px;
  display: flex;
  flex-direction: column;
}

.pricing-features li {
  padding-left: 16px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.pricing-notes {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 24px;
  padding: 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
}

.pricing-notes li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.pricing-notes li::before {
  content: '❗';
  position: absolute;
  left: 0;
}

.pricing-tip {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* 联系板块样式 */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.contact-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-item .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  min-width: 80px;
}

.contact-item .value {
  font-size: 14px;
  color: var(--text-muted);
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

.contact-form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-field {
  flex: 1;
  min-width: 200px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.full-width {
  width: 100%;
}

.form-feedback {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

/* 页脚样式 */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0 20px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 40px;
}

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

#footer-icp {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

#footer-icp:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 移动端适配（唯一媒体查询） */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-visual {
    min-height: 220px;
    perspective: 1000px;
  }

  .hero-orbit {
    width: 200px;
    height: 200px;
  }

  .hero-cube,
  .cube-face {
    width: 120px;
    height: 120px;
  }

  .cube-front { transform: translateZ(60px); }
  .cube-back { transform: rotateY(180deg) translateZ(60px); }
  .cube-right { transform: rotateY(90deg) translateZ(60px); }
  .cube-left { transform: rotateY(-90deg) translateZ(60px); }
  .cube-top { transform: rotateX(90deg) translateZ(60px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(60px); }

  .hero-cube {
    transform: rotateX(-45deg) rotateY(45deg);
  }

  @keyframes spin-cube {
    0% {
      transform: rotateX(-45deg) rotateY(0deg);
    }
    100% {
      transform: rotateX(-45deg) rotateY(360deg);
    }
  }

  .theme-toggle {
    font-size: 10px;
    padding: 4px 8px;
    min-width: 64px;
  }

  .section {
    padding: 40px 0;
  }

  .section-alt {
    margin: 20px 0;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .cards-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  
  #footer-icp {
    flex: none;
    white-space: normal;
  }
}