/* ============================================
   智建站 - 自助建站平台 全局样式
   响应式设计：支持 WEB 端 + 移动端
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #06b6d4;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px -12px rgba(99,102,241,0.25);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

input, textarea, select {
  font-family: inherit;
  outline: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-white);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ============ 布局容器 ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ 按钮样式 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ============ 导航栏 ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

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

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu a {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

/* ============ Hero 区域 ============ */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

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

.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

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

/* ============ 区块通用 ============ */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============ 特性卡片 ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.feature-icon.purple { background: rgba(139, 92, 246, 0.1); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.1); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.1); }
.feature-icon.green { background: rgba(16, 185, 129, 0.1); }
.feature-icon.orange { background: rgba(245, 158, 11, 0.1); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.1); }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* ============ 工作流程 ============ */
.steps-section {
  background: var(--bg-gray);
}

.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.step-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============ 模板展示 ============ */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.template-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.template-preview {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

/* 浏览器顶栏 */
.tpl-browser {
  height: 28px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 4px;
}
.tpl-browser span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tpl-browser span:nth-child(1) { background: #ef4444; }
.tpl-browser span:nth-child(2) { background: #f59e0b; }
.tpl-browser span:nth-child(3) { background: #10b981; }
.tpl-browser .url {
  flex: 1;
  margin-left: 6px;
  height: 14px;
  background: white;
  border-radius: 3px;
}

/* 仿真网站内容 */
.tpl-mockup {
  height: 192px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.tpl-mockup > * { display: none !important; }

/* 悬停遮罩 */
.template-preview .tpl-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 5;
}
.template-card:hover .tpl-overlay {
  opacity: 1;
}
.tpl-overlay-btn {
  padding: 0.5rem 1.25rem;
  background: white;
  color: var(--text);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.template-card:hover .tpl-overlay-btn {
  transform: translateY(0);
}

.template-info {
  padding: 1rem 1.25rem;
}

.template-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.template-info .tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.template-info .price {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

/* ========== 真实行业网站预览图 ========== */
.tpl-corporate .tpl-mockup { background-image: url('assets/preview-corporate.jpg'), linear-gradient(180deg, #1e3a5f, #2d5a87); }

.tpl-restaurant .tpl-mockup { background-image: url('assets/preview-restaurant.jpg'), linear-gradient(180deg, #c0392b, #e67e22); }

.tpl-ecommerce .tpl-mockup { background-image: url('assets/preview-ecommerce.jpg'), linear-gradient(180deg, #be185d, #ec4899); }

.tpl-education .tpl-mockup { background-image: url('assets/preview-education.jpg'), linear-gradient(180deg, #0369a1, #0ea5e9); }

.tpl-tech .tpl-mockup { background-image: url('assets/preview-tech.jpg'), linear-gradient(180deg, #0f172a, #1e293b); }

.tpl-law .tpl-mockup { background-image: url('assets/preview-law.jpg'), linear-gradient(180deg, #18181b, #3f3f46); }

.tpl-medical .tpl-mockup { background-image: url('assets/preview-medical.jpg'), linear-gradient(180deg, #0284c7, #38bdf8); }

.tpl-creative .tpl-mockup { background-image: url('assets/preview-creative.jpg'), linear-gradient(180deg, #be185d, #f59e0b); }

.tpl-young .tpl-mockup { background-image: url('assets/preview-young.jpg'), linear-gradient(180deg, #ea580c, #fbbf24); }

.tpl-minimal .tpl-mockup { background-image: url('assets/preview-minimal.jpg'), linear-gradient(180deg, #6b7280, #9ca3af); }

/* ========== 预览弹窗 ========== */
.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.preview-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.preview-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.preview-close:hover {
  background: rgba(0,0,0,0.5);
  transform: rotate(90deg);
}
.preview-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.preview-info {
  padding: 1.5rem 2rem;
}
.preview-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.preview-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.preview-tags span {
  padding: 0.2rem 0.6rem;
  background: var(--bg-gray);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.preview-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ============ 价格套餐 ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured::before {
  content: '最受欢迎';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.pricing-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: top;
  margin-right: 2px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

/* ============ 底部 CTA ============ */
.cta-section {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  position: relative;
}

.cta-section .btn {
  background: white;
  color: var(--primary);
  position: relative;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ============ 页脚 ============ */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* ============ 页面内容区 ============ */
.page-header {
  padding: 6rem 0 3rem;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ============ 表单样式 ============ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ============ 卡片容器 ============ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-gray);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============ 进度条 ============ */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

.progress-step .circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.progress-step.active .circle {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.progress-step.done .circle {
  background: var(--success);
  color: white;
}

.progress-step .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.progress-step.active .label,
.progress-step.done .label {
  color: var(--text);
  font-weight: 600;
}

/* ============ 标签 ============ */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* ============ 聊天界面 ============ */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: slideIn 0.3s ease;
}

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

.chat-message.ai {
  align-self: flex-start;
  background: var(--bg-gray);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-input-wrap {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chat-quick-chip {
  padding: 0.4rem 0.85rem;
  background: var(--bg-gray);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.chat-quick-chip:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}

.chat-input-row input {
  flex: 1;
}

/* ============ 搜索结果 ============ */
.search-tabs {
  display: flex;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 1.5rem;
}

.search-tab {
  flex: 1;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.search-tab.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.search-result-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-white);
}

.search-result-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.search-result-thumb {
  width: 100px;
  height: 75px;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-result-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.search-result-info .url {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.search-result-info .match {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 500;
}

/* ============ 订单列表 ============ */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.order-item:hover {
  box-shadow: var(--shadow);
}

.order-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.order-info {
  flex: 1;
  min-width: 0;
}

.order-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.order-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.order-status {
  flex-shrink: 0;
}

/* ============ 侧边栏（用户中心） ============ */
.user-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding-top: 2rem;
}

.user-sidebar {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1rem;
  height: fit-content;
}

.user-sidebar ul {
  list-style: none;
}

.user-sidebar li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.user-sidebar li a:hover,
.user-sidebar li a.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.user-main {
  min-width: 0;
}

/* ============ 响应式设计 ============ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    padding: 0 1rem;
  }

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

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat .num {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

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

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

  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .steps-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .user-layout {
    grid-template-columns: 1fr;
  }

  .user-sidebar {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem;
  }

  .user-sidebar ul {
    display: flex;
    gap: 0.5rem;
  }

  .user-sidebar li a {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .page-header {
    padding: 5rem 0 2rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .chat-container {
    height: 450px;
  }

  .chat-message {
    max-width: 85%;
  }

  .progress-bar {
    flex-wrap: wrap;
  }

  .progress-step .label {
    font-size: 0.7rem;
  }
}

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps-wrapper {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}

/* ============ 工具类 ============ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.w-full { width: 100%; }

/* ============ 浮动客服组件 ============ */
.floating-widget {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.3rem;
  position: relative;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}
.float-btn.primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}
.float-btn .tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.float-btn:hover .tooltip {
  opacity: 1;
}
.float-btn .tooltip::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--text);
}

@media (max-width: 768px) {
  .floating-widget {
    right: 12px;
    bottom: 70px;
  }
  .float-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* ============ 信任栏 ============ */
.trust-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.trust-item .icon {
  font-size: 1rem;
}

/* 渐变文字 */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 价格套餐 disabled 项 */
.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.6;
}
.pricing-features li.disabled::before {
  content: '✗';
  color: var(--text-muted);
}
