/* ========================================
   昆仑智界网站升级样式 - P0-P2 改进
   ======================================== */

/* P1: 自定义字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, "Courier New", monospace;
}

body {
  font-family: var(--font-sans);
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

code, pre {
  font-family: var(--font-mono);
}

/* P0: Hero 区域重设计 */
.showcase-hero {
  position: relative;
  padding: 60px 48px;
  margin-bottom: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.08) 0%, rgba(212, 160, 23, 0.05) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.showcase-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #e8c35a, #d4a017 60%, rgba(212, 160, 23, 0.15));
}

.showcase-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.showcase-hero h1 {
  display: inline-block;
  font-size: 48px;
  font-weight: 700;
  margin: 0 14px 12px 0;
  letter-spacing: 0.02em;
  vertical-align: middle;
  background: linear-gradient(135deg, #fff 0%, #e8ecf0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-hero .tagline {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.showcase-hero .subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 760px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.showcase-hero .price-hero {
  display: inline-block;
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.showcase-actions .btn-primary {
  background: linear-gradient(135deg, #e8c35a, #d4a017);
  color: #1a1408;
  font-weight: 600;
  padding: 14px 32px;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.3);
  transition: all 0.3s ease;
}

.showcase-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 160, 23, 0.4);
}

/* P0: 数据亮点区域 */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  padding: 0;
}

@media (max-width: 768px) {
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--brand-gold));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(79, 140, 255, 0.3);
}

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

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

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

/* P1: 卡片 hover 效果增强 */
.home-card {
  display: block;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.05) 0%, rgba(212, 160, 23, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-card:hover {
  border-color: rgba(212, 160, 23, 0.5);
  transform: translateY(-6px);
  color: inherit;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 160, 23, 0.2);
}

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

.home-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.home-card p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

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

/* P2: 工作流程区域 */
.workflow-section {
  margin-bottom: 40px;
  padding: 40px 0;
}

.workflow-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.workflow-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

@media (max-width: 968px) {
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

.workflow-step {
  text-align: center;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(79, 140, 255, 0.3);
}

.workflow-step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.workflow-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.workflow-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* P1: Footer 多列重构 */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  margin-top: auto;
  padding: 48px 20px 40px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
  text-align: left;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

.footer-brand-col h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
}

.footer-brand-col p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
}

/* P2: 导航栏滚动收缩 */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled .navbar-inner {
  height: 48px;
}

.navbar.scrolled .navbar-brand-logo {
  width: 32px;
  height: 32px;
}

.navbar.scrolled .navbar-brand {
  font-size: 16px;
}

/* P2: 移动端汉堡菜单 */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .navbar-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .navbar-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .navbar.scrolled .navbar-nav {
    top: 48px;
  }

  .navbar-nav a,
  .navbar-nav button {
    width: 100%;
    padding: 12px 16px;
  }
}

/* P2: 按钮涟漪效果 */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* P2: SEO Meta 标签样式（隐藏） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .showcase-hero {
    padding: 40px 28px;
  }

  .showcase-hero h1 {
    font-size: 32px;
  }

  .showcase-hero .price-hero {
    font-size: 22px;
  }

  .stat-number {
    font-size: 32px;
  }

  .workflow-section h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .showcase-hero h1 {
    font-size: 28px;
  }

  .showcase-actions {
    flex-direction: column;
  }

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