/* ============================================
   蜂旅智能 - 高端商务官网样式
   ============================================ */

/* Fonts - 使用系统字体栈，国内用户无需下载额外字体
   如需更精致字体效果，可启用以下任意一行（选一即可）：
   @import url('https://fonts.googleapis.cn/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
   @import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
   @import url('https://fonts.font.im/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
   注意：启用后会增加约 1MB 流量，建议根据业务需求酌情开启。*/

/* @import url('https://fonts.font.im/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap'); */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* 背景色 */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: rgba(22, 27, 34, 0.85);
  --bg-card-hover: rgba(30, 37, 47, 0.9);

  /* 品牌色 - 蜂巢琥珀金 */
  --brand-primary: #d4a853;
  --brand-light: #e8c77b;
  --brand-dark: #b8923f;
  --brand-glow: rgba(212, 168, 83, 0.12);
  --brand-glow-strong: rgba(212, 168, 83, 0.25);

  /* 文字色 */
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;

  /* 点缀色 */
  --accent-blue: #58a6ff;
  --accent-green: #3fb950;

  /* 边框 */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  /* 间距 */
  --section-padding: clamp(52px, 8vw, 88px);
  --container-max: 1200px;

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 阴影 */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px var(--brand-glow);
}

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

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

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

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(88, 166, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* ============================================
   Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

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

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

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

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

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
  }

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

  .nav-links a {
    width: 100%;
    padding: 16px;
    text-align: center;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: #0d1117;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-primary);
  padding: 12px 20px;
}

.btn-ghost:hover {
  background: var(--brand-glow);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: clamp(680px, 82vh, 820px);
  display: flex;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

/* 蜂巢背景装饰 */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3Cpattern id='hex' width='60' height='52' patternUnits='userSpaceOnUse'%3E%3Cpath d='M30 0 L60 15 L60 37 L30 52 L0 37 L0 15 Z' fill='none' stroke='rgba(212,168,83,0.08)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23hex)'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  animation: hexFloat 20s ease-in-out infinite;
}

@keyframes hexFloat {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-50%) rotate(3deg); }
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 56px);
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--brand-glow);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-slogan {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-light) 50%, var(--brand-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slogan .highlight {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.25rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

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

.hero-stat-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

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

/* ============================================
   Services Section
   ============================================ */
.services {
  background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
  padding: 48px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-glow);
  border-radius: 12px;
  margin-bottom: 16px;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--brand-primary);
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.875rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ============================================
   Features Section
   ============================================ */
.features {
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 28px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, transparent 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: rgba(212, 168, 83, 0.15);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-glow);
  border-radius: 50%;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-primary);
}

.feature-card h4 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  position: relative;
}

.cta-inner {
  position: relative;
  padding: 56px 48px;
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  margin-bottom: 16px;
}

.cta-desc {
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.125rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cta-inner {
    padding: 48px 24px;
  }
}

/* ============================================
   Cases Section
   ============================================ */
.cases {
  background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 83, 0.3);
  box-shadow: var(--shadow-glow);
}

.case-visual {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, var(--brand-glow) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-icon {
  width: 64px;
  height: 64px;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand-primary);
}

.case-content {
  padding: 24px;
}

.case-type {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(212, 168, 83, 0.22);
  border-radius: 999px;
  background: var(--brand-glow);
  color: var(--brand-primary);
  font-size: 0.75rem;
  line-height: 1;
}

.case-content h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.case-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.case-stats {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

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

.case-stat .stat-value {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.case-stat .stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   Partners Section
   ============================================ */
.partners {
  background: var(--bg-secondary);
}

.partners-ecosystem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px 0;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .partners-ecosystem {
    flex-direction: column;
    gap: 16px;
  }

  .partner-arrow {
    transform: rotate(90deg);
  }
}

.partner-level {
  text-align: center;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  min-width: 160px;
  transition: all var(--transition-normal);
}

.partner-level:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-4px);
}

.partner-level.level-center {
  background: var(--brand-glow);
  border-color: rgba(212, 168, 83, 0.4);
  padding: 32px 40px;
}

.partner-level.level-center .level-icon.brand {
  width: 72px;
  height: 72px;
  background: none;
  border: none;
  margin: 0 auto 12px;
}

.partner-level.level-center .level-icon.brand svg {
  width: 72px;
  height: 72px;
}

.level-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.level-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-primary);
}

.partner-level h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.partner-level p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.partner-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.partner-arrow svg {
  width: 24px;
  height: 24px;
}

.partners-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  min-width: 120px;
  transition: all var(--transition-fast);
}

.partner-logo:hover {
  border-color: rgba(212, 168, 83, 0.2);
}

.partner-logo svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

.partner-logo span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.contact-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-glow);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
}

.contact-item-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 1.0625rem;
  color: var(--text-primary);
}

.contact-item-value a:hover {
  color: var(--brand-primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

.contact-form h3 {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  appearance: none;
}

select {
  width: 100%;
  padding: 10px 40px 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999999' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* 自定义下拉框 */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select-trigger svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  transition: transform 0.2s;
}

.custom-select.open .select-trigger {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.custom-select.open .select-trigger svg {
  transform: rotate(180deg);
}

.select-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.custom-select.open .select-options {
  display: block;
}

.select-option {
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.select-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.select-option.selected {
  background: rgba(212, 168, 83, 0.15);
  color: var(--brand-primary);
}

.select-trigger.has-value {
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
  color: var(--text-muted);
}

.form-group label .required {
  color: #e74c3c;
  margin-left: 4px;
}

.error-msg {
  color: #e74c3c;
  font-size: 0.75rem;
  margin-top: 6px;
}

.form-group input.input-error,
.form-group textarea.input-error,
.form-group select.input-error {
  border-color: #e74c3c;
}

.form-group .field-error {
  color: #e74c3c;
  font-size: 0.75rem;
  margin-top: 6px;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #e74c3c;
}

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

/* Toast 提示 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 400px;
}

.toast-show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.toast-success {
  background: #27ae60;
  color: #fff;
}

.toast-error {
  background: #e74c3c;
  color: #fff;
}

/* Loading 状态 */
#formLoading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 10px;
  z-index: 10;
}

#formLoading span {
  color: #fff;
  font-size: 0.9rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 24px;
  }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand svg {
  width: 32px;
  height: 32px;
}

.footer-brand span {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  font-size: 1.125rem;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .site-footer {
    padding: 32px 0 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    gap: 16px 24px;
    justify-content: center;
  }

  .footer-copy {
    padding-top: 20px;
    margin-top: 20px;
  }
}

/* ============================================
   claude-mem.ai Design Patterns
   ============================================ */

/* Staggered fade-in delays */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Count badges (claude-mem style) */
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: var(--brand-glow);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 100px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--brand-primary);
  white-space: nowrap;
}

/* Monospace for statistics */
.stat-value,
.card-value,
.hero-stat-value {
  font-family: 'SF Mono', 'Monaco', 'Consolas', 'Noto Sans SC', monospace;
  font-variant-numeric: tabular-nums;
}

/* Before/After comparison */
.comparison {
  background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 50%, transparent 100%);
  padding: 48px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .comparison-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }
}

.comparison-card {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all var(--transition-normal);
}

.comparison-card:hover {
  border-color: rgba(212, 168, 83, 0.2);
}

.comparison-card.before {
  border-left: 3px solid var(--text-muted);
}

.comparison-card.after {
  border-left: 3px solid var(--brand-primary);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 168, 83, 0.05) 100%);
}

.comparison-card h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-card li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.comparison-card li:last-child {
  margin-bottom: 0;
}

.comparison-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.comparison-card.after li::before {
  background: var(--brand-primary);
}

.comparison-arrow {
  font-size: 2rem;
  color: var(--brand-primary);
  text-align: center;
  flex-shrink: 0;
}

/* Timeline connector for process flow */
.timeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.timeline-connector svg {
  width: 24px;
  height: 24px;
  color: var(--brand-primary);
  opacity: 0.6;
}

.process-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

@media (max-width: 768px) {
  .process-flow {
    flex-direction: column;
    align-items: center;
  }
  .process-flow .timeline-connector {
    padding: 12px 0;
    transform: rotate(90deg);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-brand { color: var(--brand-primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   Mobile Optimizations
   ============================================ */

/* Hero section mobile */
@media (max-width: 1024px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .hero-tag {
    font-size: 0.75rem;
    padding: 6px 12px;
    margin-bottom: 24px;
  }

  .hero-slogan {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 48px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 32px;
    width: 100%;
  }

  .hero-stat {
    text-align: center;
    min-width: 0;
  }

  .hero-stat-value {
    font-size: 1.55rem;
    word-break: keep-all;
  }

  .hero-stat-label {
    font-size: 0.8125rem;
  }

  /* Section padding mobile */
  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-desc {
    font-size: 1rem;
  }

  /* Service cards mobile */
  .service-card {
    padding: 28px 20px;
  }

  .service-icon {
    width: 52px;
    height: 52px;
  }

  /* CTA mobile */
  .cta-inner {
    padding: 48px 24px;
  }

  .cta h2 {
    font-size: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

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

  /* Contact mobile */
  .contact-grid {
    gap: 32px;
  }

  /* Nav mobile */
  .nav-cta .btn {
    display: none;
  }

  .nav-logo span {
    font-size: 1rem;
  }

  /* Hide hero honeycomb on mobile for performance */
  .hero::before {
    display: none;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 48px;
    padding: 14px 24px;
  }

  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Remove hover effects on touch devices */
  .service-card:hover,
  .feature-card:hover,
  .process-card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .site-footer {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* Selection */
::selection {
  background: var(--brand-glow-strong);
  color: var(--text-primary);
}

/* Nav Right & Language Switcher */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--brand-primary);
}

.lang-btn.active {
  font-weight: 600;
}

.lang-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0 2px;
}

@media (max-width: 900px) {
  .lang-switcher {
    display: none;
  }

  .mobile-lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
  }

  .mobile-lang-switcher .lang-btn {
    font-size: 0.9375rem;
    padding: 6px 10px;
  }
}

@media (min-width: 901px) {
  .mobile-lang-switcher {
    display: none;
  }
}

/* ============================================
   Language Switch Fade Transition
   ============================================ */
/* Temporarily disabled */
/*
body.i18n-fade-out [data-i18n],
body.i18n-fade-out [data-i18n-placeholder] {
  opacity: 0.15;
  transition: opacity 0.12s ease;
}

body:not(.i18n-fade-out) [data-i18n],
body:not(.i18n-fade-out) [data-i18n-placeholder] {
  transition: opacity 0.12s ease;
}
*/
