﻿/* 外卖CPS官网 - 主样式表 */

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

:root {
  --primary: #FF6B35;
  --primary-light: #FFD93D;
  --secondary: #6366f1;
  --accent: #8b5cf6;
  
  --bg-dark: #0a0a1a;
  --bg-darker: #050510;
  --bg-card: rgba(15, 15, 35, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 60px rgba(255, 107, 53, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

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

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==================== 容器 ==================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* 下拉菜单 */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown .nav-link svg {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px 0;
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
  padding-left: 24px;
}

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

.nav-btn-secondary {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.nav-btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

.nav-btn-primary {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

#particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

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

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--bg-glass);
  border-color: var(--primary);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-suffix {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
}

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}

.main-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.card-dots span:nth-child(1) { background: #ff5f56; }
.card-dots span:nth-child(2) { background: #ffbd2e; }
.card-dots span:nth-child(3) { background: #27c93f; }

.card-title {
  font-size: 13px;
  color: var(--text-muted);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.data-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.data-value.up small {
  color: #22c55e;
  margin-left: 4px;
}

.chart-placeholder {
  margin-top: 8px;
}

.mini-chart {
  width: 100%;
  height: 60px;
}

.float-card {
  position: absolute;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}

.float-1 { top: 20px; right: -20px; animation-delay: 0s; }
.float-2 { bottom: 80px; left: -60px; animation-delay: 0.5s; }
.float-3 { bottom: 20px; right: 0; animation-delay: 1s; }

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

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-icon.green { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.float-icon.orange { background: rgba(255, 107, 53, 0.2); color: var(--primary); }
.float-icon.purple { background: rgba(139, 92, 246, 0.2); color: var(--accent); }

.float-icon svg {
  width: 20px;
  height: 20px;
}

.float-content {
  display: flex;
  flex-direction: column;
}

.float-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.float-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==================== 合作伙伴 ==================== */
.partners-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-dark);
}

.partners-title {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-item {
  padding: 16px 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.partner-name {
  font-size: 16px;
  font-weight: 700;
}

.partner-name.meituan { color: #FFD93D; }
.partner-name.eleme { color: #0097FF; }
.partner-name.douyin { color: #FF0050; }
.partner-name.jd { color: #E2231A; }

/* ==================== 产品中心 ==================== */
.products-section {
  padding: 120px 0;
  background: var(--bg-darker);
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
}

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

.product-card {
  position: relative;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: var(--shadow-glow);
}

.product-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), transparent);
}

.featured-tag {
  position: absolute;
  top: -10px;
  right: 24px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50px;
}

.product-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--radius-md);
}

.product-icon.green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.product-icon.orange { background: rgba(255, 107, 53, 0.1); color: var(--primary); }
.product-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent); }

.product-icon svg {
  width: 100%;
  height: 100%;
}

.product-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
}

.product-link:hover {
  gap: 12px;
}

/* ==================== 解决方案 ==================== */
.solutions-section {
  padding: 120px 0;
  background: var(--bg-dark);
}

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

.solution-card {
  position: relative;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s ease;
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 53, 0.3);
}

.solution-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.solution-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
}

.solution-badge.hot {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
}

.solution-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.solution-price {
  margin-bottom: 24px;
}

.price-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.solution-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.solution-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

/* ==================== 成功案例 ==================== */
.cases-section {
  padding: 120px 0;
  background: var(--bg-darker);
}

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

.case-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 53, 0.3);
}

.case-category {
  font-size: 12px;
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

.case-title {
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0 12px;
}

.case-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.case-stats {
  display: flex;
  gap: 24px;
}

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

.cs-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.cs-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 价格方案 ==================== */
.pricing-section {
  padding: 120px 0;
  background: var(--bg-dark);
}

.pricing-table-wrap {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 20px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
}

.pricing-table th.highlight {
  background: rgba(255, 107, 53, 0.1);
}

.pricing-table th small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-table td:first-child {
  text-align: left;
}

.check {
  color: #22c55e;
  font-weight: 700;
}

.cross {
  color: var(--text-muted);
}

/* ==================== CTA ==================== */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

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

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

.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.cta-form select {
  cursor: pointer;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

/* ==================== Footer ==================== */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo span {
  font-size: 20px;
  font-weight: 800;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

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

/* ==================== Back to Top ==================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-visual {
    height: 400px;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .products-grid,
  .solutions-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .solution-card.featured {
    transform: none;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-container {
    padding: 0 20px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

.hide-mobile {
  display: inline;
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none;
  }
}
