/* ========================================
   隐士工作室 - 全局设计系统 v2
   Design Tokens + Base Styles + Aurora
   ======================================== */

/* --- Google Fonts 引入 --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* --- 设计 Token --- */
:root {
  /* 背景层级 */
  --bg-base: #070B14;
  --bg-surface: #0D1525;
  --bg-card: rgba(15, 25, 50, 0.55);
  --bg-card-border: rgba(99, 140, 255, 0.15);

  /* 主色系 */
  --primary: #6366F1;
  --primary-light: #818CF8;
  --secondary: #7C3AED;
  --accent: #19C8FF;
  --accent-dim: #0093ff;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #19C8FF 100%);
  --gradient-text: linear-gradient(135deg, #818CF8, #19C8FF);
  --gradient-aurora-1: radial-gradient(ellipse 80% 60% at 20% 30%, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  --gradient-aurora-2: radial-gradient(ellipse 70% 80% at 80% 70%, rgba(124, 58, 237, 0.14) 0%, transparent 65%);
  --gradient-aurora-3: radial-gradient(ellipse 60% 50% at 50% 10%, rgba(25, 200, 255, 0.10) 0%, transparent 60%);

  /* 文本 */
  --text-primary: #F0F4FF;
  --text-secondary: #8B9CC8;
  --text-muted: #4A5578;

  /* 阴影/发光 */
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-btn: 0 4px 20px rgba(99, 102, 241, 0.4);

  /* 间距节奏（4/8dp） */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* 字体 */
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', sans-serif;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* 过渡 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* 模糊 */
  --blur-glass: blur(20px);
  --blur-card: blur(16px);
}

/* --- 全局重置 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

/* 全局键盘焦点环 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 自定义滚动条 --- */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

/* ==============================
   Aurora 背景层（全局）
   ============================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    var(--gradient-aurora-1),
    var(--gradient-aurora-2),
    var(--gradient-aurora-3);
  animation: auroraShift 16s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes auroraShift {
  0% {
    opacity: 0.6;
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 1;
    filter: hue-rotate(20deg);
  }
  100% {
    opacity: 0.7;
    filter: hue-rotate(-10deg);
  }
}

/* --- 页面框架 --- */
.centerBox {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  color: var(--text-primary);
}

.center-list {
  width: 72%;
  margin: 0 auto;
  max-width: 1200px;
}

/* ==============================
   首页主体 —— 真正垂直居中
   ============================== */
.centerBody {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) 0;
  padding-bottom: 80px; /* 为底部 footer 留空间 */
}

/* Logo 发光 + 浮动 */
.centerBody img {
  display: block;
  max-width: 600px;
  width: 100%;
  filter: drop-shadow(0 0 24px rgba(99, 102, 241, 0.5)) drop-shadow(0 0 60px rgba(25, 200, 255, 0.2));
  transition: filter var(--transition-slow);
  animation: logoFloat 6s ease-in-out infinite;
  will-change: transform;
}

.centerBody img:hover {
  filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.8)) drop-shadow(0 0 80px rgba(25, 200, 255, 0.35));
}

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

/* --- 按钮组 --- */
.btn-p {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-p a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-primary);
  padding: 12px 36px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: inline-block;
  min-height: 44px; /* 触摸目标 ≥ 44px */
  min-width: 120px;
}

/* 涟漪效果层 */
.btn-p a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-p a:active::after {
  opacity: 1;
  transform: scale(1);
}

/* 主按钮：渐变实心 */
.btn-p a:first-child {
  background: var(--gradient-primary);
  border: 1px solid transparent;
  box-shadow: var(--shadow-btn);
}

.btn-p a:first-child:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(99, 102, 241, 0.65);
  filter: brightness(1.12);
}

/* 次按钮：玻璃态轮廓 */
.btn-p a:last-child {
  background: rgba(15, 25, 50, 0.45);
  border: 1px solid rgba(99, 140, 255, 0.25);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
}

.btn-p a:last-child:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 140, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* --- 口号文字 --- */
.txt-slogan {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 12px;
  padding-left: 12px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
  /* 文字光泽动画 */
  background-size: 200% 100%;
  animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- 入场动画 --- */
.anim-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.anim-fade-up.delay-1 { animation-delay: 0.15s; }
.anim-fade-up.delay-2 { animation-delay: 0.3s; }
.anim-fade-up.delay-3 { animation-delay: 0.45s; }

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

/* --- prefers-reduced-motion：减少动画 --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before {
    animation: none;
    opacity: 0.5;
  }
}

/* --- 页脚 --- */
.footer {
  position: fixed;
  bottom: var(--space-lg);
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

.center-footer {
  width: 72%;
  margin: 0 auto;
  max-width: 1200px;
}

.footer .banquan {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

/* ==============================
   页面标题（产品 / 联系 页复用）
   ============================== */
.page-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 10px;
  margin-bottom: var(--space-sm);
  background: var(--gradient-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 5s ease-in-out infinite;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 5px;
  margin-bottom: var(--space-md);
}

.page-title-wrap {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-2xl);
}

/* 标题装饰线：带光晕的渐变线 */
.page-divider {
  width: 56px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  margin: var(--space-md) auto 0;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  position: relative;
}

.page-divider::before,
.page-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.page-divider::before { left: -10px; }
.page-divider::after  { right: -10px; }

/* --- 返回链接 --- */
.back-link {
  margin-top: var(--space-2xl);
  padding-bottom: calc(var(--space-3xl) + 40px);
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 1px;
  transition: color var(--transition-base);
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
}

.back-link a::before {
  content: '←';
  transition: transform var(--transition-base);
  display: inline-block;
}

.back-link a:hover {
  color: var(--accent);
}

.back-link a:hover::before {
  transform: translateX(-5px);
}

/* ==============================
   响应式
   ============================== */
@media screen and (max-width: 950px) {
  .centerBody img {
    max-width: 85%;
  }

  .center-list,
  .center-footer {
    width: 90%;
    margin: 0 auto;
  }

  .page-title {
    font-size: 22px;
    letter-spacing: 5px;
  }

  .btn-p {
    flex-direction: column;
    align-items: center;
  }

  .btn-p a {
    width: 200px;
    text-align: center;
  }
}

@media screen and (max-width: 460px) {
  .page-title {
    font-size: 18px;
    letter-spacing: 3px;
  }
}