:root {
  --bg: #ffffff;
  --bg-accent: #f6f7ff;
  --surface: #fbfbfe;
  --surface-2: #f3f4f8;
  --text: #141416;
  --muted: #5b5f6b;
  --primary: #7438db;
  --primary-2: #a78bfa;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --outline: #e7e7ee;
  --shadow-1: 0 4px 12px rgba(20, 20, 20, .06);
  --shadow-2: 0 10px 28px rgba(20, 20, 20, .10);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --dur-f: 160ms;
  --dur-m: 280ms;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 8px;
}

/* ===== 视觉升级：玻璃质感、渐变描边、装饰光斑、下划线 ===== */
:root {
  --ring1: linear-gradient(135deg, rgba(124, 58, 237, .45), rgba(34, 211, 238, .35));
  --ring2: linear-gradient(135deg, rgba(167, 139, 250, .5), rgba(245, 158, 11, .35));
  --glass: rgba(255, 255, 255, .55);
}

/* 页面彩色光斑背景（无黑线） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, .1), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .08), transparent 45%);
  background-size: auto, auto;
  filter: saturate(120%);
}

/* 卡片渐变描边 + 玻璃态 */
.panel,
.kp,
.quote {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--ring1) border-box;
  backdrop-filter: saturate(110%) blur(6px);
}


/* 标题渐变下划线 */
.h2 {
  position: relative;
}

.h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 6px;
  width: 88px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

/* 引用更优雅 */
.quote {
  position: relative;
}

.quote::before {
  content: "\201C";
  /* 左引号 */
  position: absolute;
  left: 12px;
  top: 8px;
  font-size: 28px;
  line-height: 1;
  color: rgba(124, 58, 237, .28);
}

/* 导航链接：下划线动画 */
.link {
  position: relative;
}

.link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-m) var(--ease);
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.link:hover::after {
  transform: scaleX(1);
}

/* Hero 装饰光斑（柔和） */
.hero .container {
  position: relative;
}

.hero .container::before,
.hero .container::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  z-index: -1;
  opacity: .55;
  animation: blob 18s ease-in-out infinite;
}

.hero .container::before {
  left: -60px;
  top: -40px;
  background: radial-gradient(circle, rgba(124, 58, 237, .35), transparent 60%);
}

.hero .container::after {
  right: -60px;
  top: -20px;
  background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 60%);
  animation-delay: -6s;
}

@keyframes blob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(10px, -14px) scale(1.06);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* 跑马灯边缘渐隐与自动滚动 */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  scroll-snap-type: x mandatory;
}

.marquee .pill {
  scroll-snap-align: start;
}

/* 顶部返回按钮（浮动） */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--cyan)) padding-box, var(--ring1) border-box;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-2);
  display: grid;
  place-items: center;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-m) var(--ease), opacity var(--dur-m) var(--ease), filter var(--dur-m) var(--ease);
}

.to-top.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  filter: saturate(115%);
}

/* 按钮按下的“物理感” */
.btn:active {
  transform: translateY(0) scale(.98);
  filter: saturate(100%);
}

/* ===== 动画：基础 ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 修正 Modal 居中与入场动画冲突：在居中位基础上做 Y 方向位移 */
@keyframes fadeUpCenter {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(14px); }
  to   { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes spinGlow {
  0% {
    filter: drop-shadow(0 0 0 rgba(124, 58, 237, .0));
    transform: rotate(0deg);
  }

  50% {
    filter: drop-shadow(0 6px 12px rgba(124, 58, 237, .25));
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes shine {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

/* 进场通用类（由 JS 触发 .show） */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.show {
  animation: fadeUp var(--dur-m) var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 120ms);
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .reveal.show {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Logo 样式已在 .logo 中定义 */

/* App 图标轻微浮动 */
.app-icon {
  animation: float 6s ease-in-out infinite;
}

/* 主按钮光泽扫光效果 */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .35) 50%, transparent 100%);
  transform: translateX(-120%);
}

.btn:hover::after {
  animation: shine 900ms var(--ease);
}

/* 瓶贴 / 卡片悬浮更明显 */
.kp:hover,
.quote:hover {
  box-shadow: var(--shadow-2);
}

/* 深色模式适配 */

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: #7f53ac;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}


a {
  color: inherit;
  text-decoration: none
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  background: rgba(127, 83, 172, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(80, 40, 120, 0.3);
}

.container {
  max-width: 1040px;
  margin: auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.brand {
  font-size: 1.5em;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-right {
  display: flex;
  align-items: center;
}

.header-right .links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  fill: currentColor;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
  display: block;
  flex-shrink: 0;
}

.header-icon:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* 菜单按钮 */
.menu-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.menu-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-icon-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* 菜单打开时的图标动画 - 变成叉叉 */
.menu-toggle.active .menu-icon-line-1 {
  transform: translateY(6px) rotate(45deg);
  transform-origin: 12px 6px;
}

.menu-toggle.active .menu-icon-line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active .menu-icon-line-3 {
  transform: translateY(-6px) rotate(-45deg);
  transform-origin: 12px 18px;
}

/* 菜单面板 */
.menu-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

@media (max-width: 900px) {
  .menu-overlay {
    top: 60px;
  }
}

@media (max-width: 640px) {
  .menu-overlay {
    top: 56px;
  }
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: rgba(127, 83, 172, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  padding: 0 0 40px 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 101;
}

@media (max-width: 640px) {
  .menu-panel {
    width: 260px;
    padding: 0 0 32px 0;
  }
}

@media (max-width: 480px) {
  .menu-panel {
    width: 240px;
    padding: 0 0 28px 0;
  }
  
  .menu-link {
    padding: 14px 24px;
    font-size: 1em;
  }
}

.menu-overlay.active .menu-panel {
  transform: translateX(0);
}

.menu-link {
  display: block;
  padding: 16px 32px;
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border-left: 3px solid transparent;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #fff;
  transform: translateX(4px);
}

.link {
  padding: 10px 12px;
  border-radius: 10px;
  transition: background var(--dur-m) var(--ease), transform var(--dur-f) var(--ease)
}

.link:hover {
  background: var(--surface);
  transform: translateY(-1px)
}

/* Hero */
main {
  margin: 0;
  padding: 0;
  min-height: calc(100vh - 64px);
}

.hero {
  padding: 0;
  text-align: center;
  background: transparent;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-1)
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #fff2 60%, transparent 70%), linear-gradient(135deg, var(--primary-2), var(--cyan))
}

.title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  margin: 12px 0 8px;
  letter-spacing: .2px;
  color: #fff;
  letter-spacing: .3px;
  display: none;
}

.subtitle {
  margin: 20px auto 30px;
  color: #fff;
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 600px;
  padding: 0 20px;
  word-break: break-word;
  hyphens: auto;
}

.cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px
}

.btn {
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-f) var(--ease), filter var(--dur-m) var(--ease)
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(110%)
}

/* 强化主按钮样式 */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: var(--shadow-2), 0 0 0 0 rgba(124, 58, 237, .34);
  }

  50% {
    box-shadow: var(--shadow-2), 0 0 0 10px rgba(124, 58, 237, .0);
  }
}

.btn-primary {
  padding: 16px 26px;
  font-size: 17px;
  letter-spacing: .3px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  animation: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
}

/* Modal 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(80, 40, 120, .55);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(167, 139, 250, 0.85));
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(80, 40, 120, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 24px 24px 20px;
  animation: fadeUpCenter var(--dur-m) var(--ease);
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .modal-card {
    width: calc(100% - 24px);
    padding: 20px 20px 16px;
    border-radius: 16px;
    max-height: 85vh;
  }
}

.modal-card h3 {
  margin: 4px 0 6px;
  font-size: 22px;
  color: #fff;
  font-weight: 800;
}

.modal-desc {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.85);
}

.modal-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

@media (max-width:560px) {
  .modal-actions {
    grid-template-columns: 1fr;
  }
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-f) var(--ease), transform var(--dur-f) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Store / 在线体验按钮外观区分 */
.store-btn {
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  font-weight: 800;
}


.live-btn {
  background: linear-gradient(135deg, var(--primary-2), var(--cyan));
  color: #fff;
  font-weight: 800;
}
.testflight-btn { background: linear-gradient(135deg, #0ea5e9, #22d3ee); color: #fff; font-weight: 800; }
.android-btn { background: linear-gradient(135deg, #10b981, #34d399); color: #fff; font-weight: 800; }
.btn .ico { display: inline-flex; width: 1em; height: 1em; margin-right: 8px; align-items: center; justify-content: center; }
.btn .ico svg { width: 1em; height: 1em; display: block; }

/* 打开弹窗时禁用页面滚动 */
body.modal-open {
  overflow: hidden;
}

/* 仅放软件图标（代替应用主界面截图），类似 Whisky */
.hero-icon {
  display: flex;
  justify-content: center;
  margin: 40px 0 28px;
}

.app-icon {
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 500px;
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: transparent;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon::before {
  display: none;
}

.app-icon img {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .app-icon {
    max-width: 300px;
  }
  
  .app-icon img {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .app-icon {
    max-width: 250px;
  }
  
  .app-icon img {
    max-width: 250px;
  }
}

.marquee {
  display: flex;
  gap: 14px;
  overflow: auto;
  scrollbar-width: none;
  padding: 14px 6px;
  margin: 22px auto 0;
  max-width: 960px
}

.marquee::-webkit-scrollbar {
  display: none
}

.pill {
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-1)
}

section.block {
  padding: 80px 0;
  border-top: 1px solid var(--outline)
}

.h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  margin: 0 0 8px
}

.lead {
  color: var(--muted);
  margin: 0 0 18px
}

.feat {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: center
}

.feat.reverse {
  grid-template-columns: .95fr 1.05fr
}

@media (max-width: 900px) {
  .header {
    padding: 0 20px;
    height: 60px;
  }
  .logo {
    width: 20px;
    height: 20px;
  }
  .brand {
    font-size: 1.3em;
  }
  .header-icon {
    width: 24px;
    height: 24px;
  }

  .feat,
  .feat.reverse {
    grid-template-columns: 1fr
  }
}

@media (max-width: 640px) {
  .header {
    padding: 0 16px;
    height: 56px;
  }
  .logo {
    width: 20px;
    height: 20px;
  }
  .brand {
    font-size: 1.1em;
  }
  .header-icon {
    width: 24px;
    height: 24px;
  }
  
  .subtitle {
    font-size: 1em;
    padding: 0 16px;
    margin: 16px auto 24px;
  }
  
  .hero-icon {
    margin: 30px 0 20px;
  }
  
  .app-icon img {
    max-width: 300px;
  }
  
  .btn-primary {
    padding: 14px 22px;
    font-size: 16px;
  }
}

.panel {
  border: 1px solid transparent;
  border-radius: 16px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--ring1) border-box;
  box-shadow: var(--shadow-1);
  backdrop-filter: saturate(110%) blur(6px);
}

.panel>img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit
}

.keypoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px
}

@media (max-width:900px) {
  .keypoints {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:640px) {
  .keypoints {
    grid-template-columns: 1fr
  }
}

.kp {
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--ring1) border-box;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-f) var(--ease), box-shadow var(--dur-m) var(--ease);
  backdrop-filter: saturate(110%) blur(4px);
}

.kp:hover {
  transform: translateY(-3px)
}

.kp .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-2), var(--cyan));
  color: #fff;
  font-weight: 900
}

.kp h3 {
  margin: 6px 0 6px;
  font-size: 16px
}

.kp p {
  margin: 0;
  color: var(--muted)
}

.socialproof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px
}

@media (max-width:900px) {
  .socialproof {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:640px) {
  .socialproof {
    grid-template-columns: 1fr
  }
}

.quote {
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--ring1) border-box;
  box-shadow: var(--shadow-1);
  backdrop-filter: saturate(110%) blur(4px);
}

.quote b {
  display: block;
  margin-bottom: 6px
}

.bottom-cta {
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg), var(--surface))
}

footer {
  padding: 36px 0 54px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

footer p {
  margin: 8px 0;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px
}

/* 三个按钮横向排列 */
.marquee {
  display: flex;
  gap: 16px;
  justify-content: center; /* Add this line to center the buttons */
}

/* 按钮样式 */
.pill {
  display: inline-block;
  background: #111;                /* Black background */
  color: #fff;                     /* White text */
  padding: 12px 24px;
  border-radius: 22px;             /* More rounded rectangle */
  border: 2px solid #fff;          /* White border */
  box-shadow: var(--shadow-1);
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 悬停效果 */
.pill:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

/* 欢迎动画层 */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #7f53ac;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s ease-out;
  overflow: hidden;
  touch-action: none;
}

.welcome-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.welcome-text {
  font-size: 4em;
  color: #fff;
  font-weight: 900;
  text-align: center;
  font-family: 'KaiTi', '楷体', 'STKaiti', '华文楷体', serif;
  position: relative;
  letter-spacing: 0.1em;
  word-break: keep-all;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.welcome-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.7);
  animation: writeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.welcome-text span:nth-child(1) { animation-delay: 0.1s; }
.welcome-text span:nth-child(2) { animation-delay: 0.2s; }
.welcome-text span:nth-child(3) { animation-delay: 0.3s; }
.welcome-text span:nth-child(4) { animation-delay: 0.4s; }
.welcome-text span:nth-child(5) { animation-delay: 0.5s; }
.welcome-text span:nth-child(6) { animation-delay: 0.6s; }
.welcome-text span:nth-child(7) { animation-delay: 0.7s; }
.welcome-text span:nth-child(8) { animation-delay: 0.8s; }
.welcome-text span:nth-child(9) { animation-delay: 0.9s; }
.welcome-text span:nth-child(10) { animation-delay: 1.0s; }
.welcome-text span:nth-child(11) { animation-delay: 1.1s; }
.welcome-text span:nth-child(12) { animation-delay: 1.2s; }

@keyframes writeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.7) rotate(-2deg);
  }
  30% {
    opacity: 0.5;
    transform: translateY(10px) scale(0.9) rotate(1deg);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-3px) scale(1.05) rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* 手写效果增强 */
.welcome-text::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #fff;
  animation: underline 0.3s ease-out 1.5s forwards;
}

@keyframes underline {
  to {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .welcome-text {
    font-size: 2.5em;
    letter-spacing: 0.05em;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .welcome-text {
    font-size: 1.8em;
    letter-spacing: 0.03em;
    padding: 0 16px;
  }
}

@media (max-width: 360px) {
  .welcome-text {
    font-size: 1.5em;
    letter-spacing: 0.02em;
    padding: 0 12px;
  }
}
