/*
 * DYNAMIC — Component Styles
 * 开发者: 山河·無名/shanhewuming
 */

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.btn span { position: relative; z-index: 1; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff2d78, #6c5ce7);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.05);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
}

.btn-block { width: 100%; }
.btn-lg { padding: 18px 48px; font-size: 17px; }

/* ========== 进度条 ========== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-hero);
  z-index: var(--z-progress);
  width: 0%;
  transition: width 0.1s;
}

/* ========== 光标光晕 ========== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
}

/* ========== 返回顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-back-to-top);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-out);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

/* ========== 统计卡片 ========== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-icon { font-size: 32px; margin-bottom: var(--space-md); }

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}

.stat-label {
  margin-top: var(--space-sm);
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stat-bar {
  margin-top: var(--space-md);
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s var(--ease-out);
}

/* ========== 特性卡片 ========== */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-xl);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s 0.2s;
}

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

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  margin-bottom: var(--space-lg);
  transition: transform 0.3s var(--ease-bounce);
}

.feature-card:hover .feature-icon-wrap { transform: scale(1.1); }

.feature-icon { font-size: 28px; }

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.feature-metrics {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

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

.metric strong {
  color: var(--primary);
  font-weight: 700;
}

/* ========== 展示卡片 ========== */
.showcase-card {
  flex-shrink: 0;
  width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.showcase-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.showcase-card-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.showcase-card-num {
  font-size: 64px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
}

.showcase-card-content {
  padding: var(--space-lg);
}

.showcase-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.showcase-card-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.showcase-card-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== 时间线 ========== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s;
}

.timeline-item.active .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.timeline-content {
  width: calc(50% - 40px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  transition: all 0.3s var(--ease-out);
}

.timeline-content:hover {
  border-color: var(--border-hover);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: var(--space-xs) 0 var(--space-sm);
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== 评价卡片 ========== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-xl);
  flex-shrink: 0;
  width: 380px;
  transition: all 0.3s var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-stars {
  color: #ffd700;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.author-info strong {
  display: block;
  font-size: 15px;
}

.author-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.testimonial-prev,
.testimonial-next {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all 0.3s;
}

.testimonial-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ========== 价格卡片 ========== */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.05) 0%, var(--bg-card) 100%);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.pricing-price {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.price-currency {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-secondary);
  vertical-align: top;
}

.price-amount {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: var(--space-xl);
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-features li.included { color: var(--text-secondary); }
.pricing-features li.excluded { color: var(--text-dim); }

/* ========== 画廊 ========== */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}

.gallery-placeholder span {
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
}

.gallery-item:hover .gallery-placeholder { transform: scale(1.05); }

/* ========== FAQ ========== */
.faq-item {
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-sm);
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.faq-arrow {
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.open .faq-arrow { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== 时间显示 ========== */
.time-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.time-block { text-align: center; }

.time-value {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}

.time-label {
  margin-top: var(--space-sm);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.time-sep {
  font-size: 60px;
  font-weight: 300;
  color: var(--text-dim);
  align-self: flex-start;
  padding-top: 8px;
}

.time-note {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 14px;
  color: var(--text-muted);
}
