/* ============================================
   云序数字工作室 - 主样式表
   品牌色：深蓝 + 渐变紫
   ============================================ */

/* === CSS 变量 === */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #e0e7ff;
  --accent: #7c3aed;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --success: #059669;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
  --max-width: 1152px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* === 导航栏 === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.logo {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 800;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-light); font-size: .925rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* === Hero 区域 === */
.hero {
  padding: 140px 24px 100px;
  text-align: center;
  background: linear-gradient(160deg, #eef2ff 0%, #f5f3ff 50%, #fdf2f8 100%);
}
.hero-badge {
  display: inline-block; background: var(--primary-light);
  color: var(--primary); font-size: .85rem; font-weight: 600;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.25; max-width: 700px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem; color: var(--text-light);
  max-width: 560px; margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === 按钮 === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-size: .95rem; font-weight: 600; border: none; cursor: pointer;
  transition: all .25s; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,.45); color: #fff; }
.btn-outline {
  background: var(--bg); color: var(--primary);
  border: 2px solid var(--primary-light);
}
.btn-outline:hover { background: var(--primary-light); }

/* === 通用容器 === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* === 区块标题 === */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  font-size: .85rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700; margin-bottom: 12px;
}
.section-header p { color: var(--text-light); max-width: 500px; margin: 0 auto; }

/* === 优势卡片 === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.feature-card {
  padding: 36px 28px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.feature-icon.blue { background: #eef2ff; color: var(--primary); }
.feature-icon.purple { background: #f3e8ff; color: var(--accent); }
.feature-icon.green { background: #ecfdf5; color: var(--success); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: .925rem; }

/* === 产品卡片 === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center;
}
.product-image span { font-size: 3.5rem; }
.product-body { padding: 24px; }
.product-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.product-body p { color: var(--text-light); font-size: .925rem; margin-bottom: 16px; }
.product-features { margin-bottom: 20px; }
.product-features li {
  font-size: .88rem; color: var(--text-light);
  padding: 4px 0; padding-left: 20px; position: relative;
}
.product-features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.product-price small { font-size: .85rem; font-weight: 400; color: var(--text-light); }

/* === 评价区 === */
.testimonials { background: var(--bg-alt); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--bg); padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.testimonial-card .stars { color: #f59e0b; font-size: 1rem; margin-bottom: 12px; }
.testimonial-card .quote { color: var(--text); font-size: .95rem; margin-bottom: 16px; line-height: 1.7; }
.testimonial-card .author { font-weight: 600; font-size: .9rem; }
.testimonial-card .role { font-size: .8rem; color: var(--text-light); }

/* === CTA 区 === */
.cta {
  text-align: center;
  background: linear-gradient(160deg, #eef2ff, #f5f3ff);
  border-radius: var(--radius); padding: 64px 24px;
  margin: 0 24px;
}
.cta h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; }
.cta p { color: var(--text-light); margin-bottom: 28px; }

/* === 关于页 === */
.about-hero {
  padding: 120px 24px 80px;
  text-align: center;
  background: linear-gradient(160deg, #eef2ff 0%, #f5f3ff 50%, #fdf2f8 100%);
}
.about-hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.about-hero p { color: var(--text-light); max-width: 560px; margin: 0 auto; }

.about-story { padding: 80px 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.about-grid h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; }
.about-grid p { color: var(--text-light); margin-bottom: 12px; }
.about-image {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: var(--radius); height: 320px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; margin-top: 40px;
}
.stat-card {
  text-align: center; padding: 28px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: .88rem; color: var(--text-light); margin-top: 4px; }

/* === 联系页 === */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; max-width: 900px; margin: 0 auto;
}
.contact-info h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; }
.contact-info > p { color: var(--text-light); margin-bottom: 32px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px;
}
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
}
.contact-item h4 { font-size: .95rem; margin-bottom: 2px; }
.contact-item span { font-size: .88rem; color: var(--text-light); }

.contact-form {
  background: var(--bg); padding: 32px;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .88rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: .95rem; font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* === FAQ === */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 18px 24px; text-align: left;
  background: var(--bg); border: none; font-size: .98rem;
  font-weight: 600; font-family: var(--font);
  cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; color: var(--text);
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question::after {
  content: '+'; font-size: 1.3rem; color: var(--text-light);
  transition: transform .3s;
}
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-light); font-size: .925rem; }

/* === 政策页面 === */
.policy { padding: 120px 24px 80px; }
.policy .container { max-width: 760px; }
.policy h1 { font-size: 2rem; font-weight: 800; margin-bottom: 32px; }
.policy h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.policy h3 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 8px; }
.policy p, .policy li { color: var(--text-light); margin-bottom: 10px; font-size: .94rem; }
.policy ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.policy .last-updated { color: var(--text-light); font-size: .85rem; margin-bottom: 32px; }

/* === 页脚 === */
.footer {
  background: #0f172a; color: #cbd5e1;
  padding: 56px 24px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; max-width: var(--max-width); margin: 0 auto 40px;
}
.footer-brand .flogo { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: #94a3b8; font-size: .875rem; padding: 3px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid #1e293b; font-size: .8rem; color: #64748b;
  max-width: var(--max-width); margin: 0 auto;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg); flex-direction: column;
    padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .3s;
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-image { height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero { padding: 120px 24px 80px; }
  .cta { margin: 0 16px; padding: 48px 20px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
