/* ==========================================================================
   映辞 · Elocue (Teleprompter Android) 官网全局样式
   高级工业质感 · 拒绝 AI Slop 廉价感 · 严禁 Emoji · 精细微反光边框
   ========================================================================== */

:root {
  /* 深度微冷灰阶系统 (Neutral Obsidian Scale) */
  --bg-canvas: #0a0c0d;
  --bg-surface: #121517;
  --bg-surface-elevated: #1a1e20;
  --bg-surface-card: #15181a;
  --bg-surface-hover: #22272a;

  /* 边框体系 (精确 1px 微反光线) */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-glass: rgba(255, 255, 255, 0.12);

  /* 工业精炼品牌色 */
  --brand-orange: #ed7d1c;
  --brand-orange-hover: #fa8b2a;
  --brand-orange-pressed: #d96d14;
  --brand-orange-glow: rgba(237, 125, 28, 0.28);
  --brand-orange-dim: rgba(237, 125, 28, 0.12);

  /* 提词红线 */
  --guide-red: #ff3b30;
  --guide-red-glow: rgba(255, 59, 48, 0.5);

  /* 状态绿 */
  --status-green: #34c759;
  --status-green-dim: rgba(52, 199, 89, 0.12);

  /* 文字系统 */
  --text-white: #ffffff;
  --text-primary: #f0f2f4;
  --text-secondary: #9da5ab;
  --text-tertiary: #676e73;

  /* 字体栈 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* 圆角规范 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 尺寸 */
  --max-width: 1120px;
  --header-height: 64px;

  /* 动效 */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  overflow-x: hidden;
}

/* 纯净暗黑背景（彻底杜绝廉价大方格线条） */
body {
  background-image: radial-gradient(circle at 50% 0%, rgba(237, 125, 28, 0.05) 0%, transparent 60%);
  background-repeat: no-repeat;
}

::selection {
  background-color: var(--brand-orange);
  color: #000000;
}

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

a:hover {
  color: var(--text-white);
}

img, svg {
  display: block;
}

/* 容器规范 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   极简顶部导航 (Navbar)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(10, 12, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.brand-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.brand-en {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

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

.nav-link {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 按钮体系 (温润扎实，彻底杜绝刺眼纯白大方块) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

/* 主行动按钮：温润有力的活力品牌橙 */
.btn-primary {
  background-color: var(--brand-orange);
  color: #0b0d0e;
  border-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
  box-shadow: 0 2px 10px var(--brand-orange-glow);
}

.btn-primary:hover {
  background-color: var(--brand-orange-hover);
  color: #0b0d0e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--brand-orange-glow);
}

.btn-primary:active {
  background-color: var(--brand-orange-pressed);
  transform: translateY(0);
}

/* 次级按钮：高透玻璃质感 */
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  color: var(--text-white);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 6px 14px;
}

.btn-lg {
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 7px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 820px) {
  .nav-links,
  .nav-actions .btn-nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-canvas);
    z-index: 99;
    padding: 24px;
    border-top: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
  }

  .mobile-menu-list a {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* ==========================================================================
   胶囊标签 (Pill Badges)
   ========================================================================== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-orange);
}

.pill-dot.green {
  background-color: var(--status-green);
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.4);
}

/* ==========================================================================
   页脚 (Footer)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background-color: #08090a;
  padding: 56px 0 36px;
  font-size: 0.84rem;
  color: var(--text-tertiary);
}

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

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

.footer-brand h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  color: var(--text-secondary);
}

.footer-col-links a:hover {
  color: var(--text-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

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

/* ==========================================================================
   模态框与 Toast
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 7, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(8px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal-window {
  transform: translateY(0);
}

.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title-row h3 {
  font-size: 1.05rem;
  color: var(--text-white);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-white);
}

.modal-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 极简 Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
  color: var(--text-white);
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  pointer-events: none;
  opacity: 0;
  transition: all var(--transition);
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast-msg.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 全局移动端布局与导航微调 */
@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }
  .container {
    padding: 0 16px;
  }
  .site-header {
    height: var(--header-height);
  }
  .brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-en {
    font-size: 0.68rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
