/* ===== MOMENT 通用样式 ===== */

:root {
  --bg-primary: #0c0e12;
  --bg-secondary: #13161c;
  --bg-tertiary: #1a1e27;
  --bg-elevated: #1f2430;
  --border: #1e2330;
  --border-light: #282e3e;
  --text-primary: #f0f1f3;
  --text-secondary: #c5cad3;
  --text-muted: #8a919e;
  --text-dim: #6b7280;
  --text-faint: #4b5260;
  --accent: #f5b800;
  --accent-hover: #ffd040;
  --accent-glow: rgba(245, 184, 0, 0.15);
  --blue: #5b9dff;
  --green: #4ade80;
  --red: #ff6b6b;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow: 0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

body.about-page { overflow-y: auto; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
::selection { background: var(--accent); color: #1a1d24; }

/* ===== 极简导航（工具页专用） ===== */
.nav-minimal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.nav-minimal > * { pointer-events: auto; }

.nav-minimal .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-minimal .brand:hover { opacity: 1; }

.nav-minimal .brand-cn {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.nav-minimal .brand-en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-minimal .brand-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.6; box-shadow: 0 0 14px var(--accent); }
}

.nav-minimal .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-minimal .icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 16px;
  opacity: 0.6;
  transition: all 0.2s;
  background: rgba(19, 22, 28, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid transparent;
}

.nav-minimal .icon-btn:hover {
  opacity: 1;
  color: var(--text-primary);
  border-color: var(--border-light);
}

.nav-minimal .icon-btn-text {
  width: auto;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  background: rgba(26, 30, 39, 0.7);
}

.nav-minimal .icon-btn-text:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(245, 184, 0, 0.08);
}

.nav-minimal .icon-btn-primary {
  background: rgba(245, 184, 0, 0.12);
  border-color: rgba(245, 184, 0, 0.4);
  color: var(--accent);
  font-weight: 600;
  opacity: 1;
}

.nav-minimal .icon-btn-primary:hover {
  background: var(--accent);
  color: #1a1d24;
  border-color: var(--accent);
}

/* ===== 标准导航（介绍页专用） ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 40px;
  background: rgba(12, 14, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand .brand-cn {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-brand .brand-en {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.nav-links a:hover { color: var(--text-secondary); }

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-cta {
  padding: 8px 20px !important;
  background: var(--accent) !important;
  color: #1a1d24 !important;
  font-weight: 600;
  border-radius: var(--radius) !important;
  transition: all 0.15s !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

/* ===== 微信悬浮按钮 ===== */
.wechat-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
}

.wechat-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}

.wechat-btn:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

.wechat-popup {
  position: absolute;
  bottom: 56px;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  text-align: center;
  min-width: 160px;
}

.wechat-float.open .wechat-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wechat-popup img {
  width: 130px;
  height: 130px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 10px;
}

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

.wechat-popup .wechat-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ===== 通用按钮 ===== */
.btn {
  padding: 10px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover { border-color: var(--text-faint); background: var(--bg-elevated); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1d24;
  font-weight: 600;
}

.btn-primary:hover { background: var(--accent-hover); }

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

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 10px; }

/* ===== 容器 ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .container { padding: 0 20px; }
  .nav-minimal { padding: 10px 14px; }
}
