/* 🎨 CoordCode 现代化UI设计 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #7c8ea3;
  --primary-dark: #5a6b7d;
  --secondary: #8b9dc3;
  --accent: #6b7b8c;
  --dark: #2e3440;
  --light: #f8f9fa;
  --cream: #f0f2f5;
  --border: #dee2e6;
  --text-primary: #2e3440;
  --text-secondary: #6c757d;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(222, 226, 230, 0.5);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #faf8f6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(166, 105, 85, 0.20) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(148, 118, 98, 0.15) 1.5px, transparent 1.5px);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 30px 30px;
  pointer-events: none;
  z-index: 1;
  animation: dotDrift 80s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(166, 105, 85, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(148, 118, 98, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(166, 105, 85, 0.03) 100%);
  pointer-events: none;
  z-index: 1;
}

@keyframes dotDrift {
  0% { background-position: 0 0, 30px 30px; }
  100% { background-position: 40px 0, 70px 30px; }
}

/* 动画背景球体 */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.orb1 {
  display: none;
}

.orb2 {
  display: none;
}

.orb3 {
  display: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-50px, 50px) scale(0.9); }
  75% { transform: translate(30px, 30px) scale(1.05); }
}

/* 导航栏 */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

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

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

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

/* Hero 区域 */
.hero {
  padding: 8rem 0 4rem;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
  line-height: 1.2;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  font-weight: 400;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature-badge {
  background: white;
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s;
}

.feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: var(--cream);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

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

/* 服务卡片 */
.services {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.service-card:hover::before {
  animation: shimmer 0.5s ease-out;
}

@keyframes shimmer {
  0% {
    transform: rotate(45deg) translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(45deg) translateY(100%);
    opacity: 0;
  }
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  background: var(--light);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--primary);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.service-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 联系区域 */
.contact {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}

.contact-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 1rem 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tab-button:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
  display: block;
}

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

.tab-content h3 {
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.qr-code {
  width: 250px;
  height: 250px;
  border-radius: 16px;
  margin: 0 auto 2rem;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 4px solid var(--border);
  transition: all 0.3s;
}

.qr-code:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tab-content p {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* 页脚 */
.footer {
  background: white;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

/* 左右侧边悬浮二维码 */
.side-qr-left,
.side-qr-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.side-qr-left {
  left: 20px;
}

.side-qr-right {
  right: 20px;
}

.side-qr-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.side-qr-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  background: var(--light);
}

.side-qr-card h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.side-qr-card img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  border: 2px solid var(--border);
}

.side-qr-card p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.3;
}

/* 快速联系按钮 */
.quick-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.quick-contact a {
  display: block;
  padding: 0.6rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.quick-contact a:hover {
  background: var(--primary-dark);
  transform: translateX(-3px);
}

/* 动画效果 */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.side-qr-left {
  animation: slideInLeft 0.8s ease-out;
}

.side-qr-right {
  animation: slideInRight 0.8s ease-out;
}

/* 响应式隐藏 */
@media (max-width: 1400px) {
  .side-qr-left,
  .side-qr-right {
    display: none;
  }
}

/* 特色区域 */
.features {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  background: var(--light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  color: var(--primary);
}

.feature-card h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 容器优化 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 价格方案 */
.pricing {
  padding: 4rem 0;
  background: var(--cream);
  position: relative;
  z-index: 10;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.pricing-card.recommended {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(124, 142, 163, 0.15);
}

.badge-recommended {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-features {
  flex: 1;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.feature-check {
  color: #22c55e;
  font-weight: 600;
  font-size: 1.2rem;
}

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

.btn-pricing {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  font-size: 1rem;
}

.pricing-card .btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(124, 142, 163, 0.25);
}

.pricing-card .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 142, 163, 0.35);
}

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

.pricing-card .btn-outline:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 联系区域 */
.contact {
  padding: 4rem 0;
  background: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .floating-qr-button {
    right: 20px;
    bottom: 20px;
  }

  .floating-qr-panel {
    right: 20px;
    width: calc(100vw - 40px);
    max-width: 320px;
  }
}