/* Senflare Fofa - 统一样式 */

/* ========== CSS 变量 ========== */
:root {
  --primary-color: #FF6901;
  --custom-primary-background: linear-gradient(135deg, hsl(22, 98%, 50%) 0%, hsl(35, 90%, 65%) 100%);
  --card-bg: rgba(255, 255, 255, 0.82);
  --bg-color: #ffffff;
  --text-color: #333;
  --text-muted: #666;
  --border-color: rgba(0, 0, 0, 0.05);
  --bg-secondary: rgba(0, 0, 0, 0.03);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  --orb-1: #fff5e6;
  --orb-2: #fff0e0;
  --orb-3: #ffeadd;
  --modal-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
  --card-bg: rgba(30, 30, 30, 0.4);
  --bg-color: #050505;
  --text-color: #f7fafc;
  --text-muted: rgba(255, 255, 255, 0.6);
  --bg-secondary: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.05);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --orb-1: #4a1c03;
  --orb-2: #2c1e0b;
  --orb-3: #662200;
  --modal-bg: rgba(30, 30, 30, 0.6);
}

/* ========== 字体 ========== */
@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('../assets/fonts/AlibabaPuHuiTi.woff') format('woff');
  font-display: swap;
}

/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Alibaba PuHuiTi", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

html { font-size: 14px; }

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: color 0.3s, background-color 0.3s;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 0; height: 0; }

input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--card-bg) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
}

input::placeholder { color: var(--text-muted); opacity: 0.6; }

/* 隐藏 number input 的上下箭头 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.hidden { display: none !important; }

/* ========== 动态背景 ========== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-color);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.orb-1 { width: 500px; height: 500px; background: var(--orb-1); top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--orb-2); top: 50%; right: -100px; animation-delay: -5s; }
.orb-3 { width: 350px; height: 350px; background: var(--orb-3); bottom: -50px; left: 30%; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: all 0.3s;
}

.navbar.with-bg {
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.nav-container {
  height: 64px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left { flex: 1; }
.nav-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.nav-right .nav-links { display: flex; gap: 32px; margin-right: 8px; }

.nav-brand { font-size: 1.2rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.brand-senflare, .brand-fofa {
  background: var(--custom-primary-background);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--primary-color); }

.search-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-toggle:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

/* ========== 搜索弹窗 ========== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.search-modal.show { opacity: 1; pointer-events: all; }

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .search-modal-backdrop { background: rgba(0, 0, 0, 0.7); }

.search-modal-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  background: var(--modal-bg);
  backdrop-filter: blur(25px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.2s;
}

.search-modal.show .search-modal-content { transform: translateY(0); }

.search-modal-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-modal-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 0 12px 0 16px;
  transition: border-color 0.2s;
}

.search-modal-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(255, 105, 1, 0.2);
}

.search-modal-input-wrapper:focus-within .search-modal-icon {
  color: var(--primary-color);
}

.search-modal-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s;
}

.search-modal-input-wrapper input {
  flex: 1;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-color);
  outline: none;
}

.search-modal-btn {
  height: 32px;
  padding: 0 20px;
  background: var(--custom-primary-background);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.search-modal-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(255, 105, 1, 0.3);
}

.search-modal-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.theme-toggle, .github-link {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.theme-toggle:hover, .github-link:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--custom-primary-background);
  color: #fff !important;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(255, 105, 1, 0.3);
}

.btn-outline {
  background: var(--custom-primary-background);
  border: none;
  color: #fff;
}

.btn-outline:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(255, 105, 1, 0.3);
}

.btn-tcping {
  background: transparent !important;
  border: 1.5px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
}

.btn-tcping:hover {
  background: rgba(255, 105, 1, 0.05) !important;
  filter: none !important;
}

/* ========== 页面切换 ========== */
#app { flex: 1; }
.page, #page-home { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease-in-out; }
#page-home.active { display: flex; flex-direction: column; min-height: calc(100vh - 64px - 85px); }

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

/* ========== 首页 ========== */

.hero-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 0;
}

/* 确保只有首页显示 hero-container */
#page-docs .hero-container,
#page-syntax .hero-container,
#page-about .hero-container,
#page-faq .hero-container {
  display: none !important;
}

.hero-content { max-width: 900px; width: 100%; }
.hero-header { text-align: center; margin-bottom: 32px; }

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 8px 24px rgba(255, 105, 1, 0.4));
}

.hero-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--custom-primary-background);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.hero-search { margin-bottom: 64px; }

.search-box-large {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  border: 0.5px solid var(--border-color);
  border-radius: 16px;
  padding: 8px 8px 8px 24px;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.search-box-large:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(255, 105, 1, 0.2);
}

.search-box-large:focus-within .search-icon-large {
  color: var(--primary-color);
}

.search-icon-large {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 16px;
}

.search-box-large input {
  flex: 1;
  height: 40px;
  border: none;
  background: transparent !important;
  font-size: 1rem;
  color: var(--text-color);
  outline: none;
}

.search-box-large input:-webkit-autofill,
.search-box-large input:-webkit-autofill:hover,
.search-box-large input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  background-color: transparent !important;
  transition: background-color 5000s ease-in-out 0s;
}

.search-btn-large {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 28px;
  background: var(--custom-primary-background);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.search-btn-large:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 105, 1, 0.35);
}

.search-hint-large {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
  justify-content: center;
}

/* ========== 搜索结果页 ========== */
.search-results-container {
  flex: 1;
  padding: 88px 24px 40px;
}

.content-wrapper { max-width: 1200px; margin: 0 auto; }

.stats-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(255, 105, 1, 0.15);
}

.stat-item { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.stat-item:first-child { flex: 1; min-width: 0; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

.stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--custom-primary-background);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item:first-child .stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#exportBtn { margin-left: auto; }

.stats-bar .btn-outline {
  height: 36px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.results-grid { display: flex; flex-direction: column; gap: 12px; }

.result-card {
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  border: none;
  border-radius: 16px;
  padding: 20px 24px;
  transition: box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.result-card:hover {
  box-shadow: 0 8px 24px rgba(255, 105, 1, 0.2);
}

.result-card-desktop {
  display: flex;
  align-items: center;
  gap: 20px;
}

.result-card-mobile { display: none; }

.result-card-main { flex: 1; display: flex; align-items: center; gap: 20px; }
.result-ip-section { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }

.result-ip {
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--custom-primary-background);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-port {
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--custom-primary-background);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-info-section {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 20px;
  min-width: 0;
}

.result-info-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.result-info-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; }
.result-info-value { 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-card-actions { display: flex; gap: 8px; flex-shrink: 0; }

.result-card-actions .btn {
  min-width: 80px;
  font-size: 0.85rem;
  height: 36px;
  border-radius: 8px;
  font-weight: 600;
}

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .pagination-row { flex-wrap: nowrap; gap: 6px; }
}

.pagination button {
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--primary-color);
  background: rgba(255, 105, 1, 0.05);
  color: var(--primary-color);
}

.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.pagination button.active {
  background: var(--custom-primary-background);
  color: #fff;
  border-color: var(--primary-color);
  height: 36px;
}

.page-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.page-info {
  font-size: 0.9rem;
  color: var(--text-color);
  padding: 0 16px;
}

.loading-state, .empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.loading-state { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.empty-state svg { color: var(--text-muted); opacity: 0.3; margin-bottom: 20px; }

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 文档页面 ========== */
.docs-container { 
  padding: 120px 24px 40px;
}
.docs-content { max-width: 800px; margin: 0 auto; }

.docs-content h1 {
  font-size: 2.5rem;
  margin-bottom: 48px;
  background: var(--custom-primary-background);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.docs-content h2 { font-size: 1.8rem; margin-top: 48px; margin-bottom: 16px; color: var(--text-color); }
.docs-content h3 { font-size: 1.3rem; margin-top: 32px; margin-bottom: 12px; color: var(--text-color); }
.doc-section { margin-bottom: 48px; }
.docs-content p { line-height: 1.8; color: var(--text-color); margin-bottom: 16px; }
.docs-content ul { list-style: none; padding-left: 0; }

.docs-content ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-color);
}

.docs-content ul li::before {
  content: '\2022';
  position: absolute;
  left: 8px;
  color: var(--primary-color);
  font-weight: bold;
}

.docs-content a { color: var(--primary-color); text-decoration: none; }
.docs-content a:hover { text-decoration: underline; }

.code-block {
  background: rgba(255, 105, 1, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--primary-color);
  overflow-x: auto;
}

.syntax-table { 
  width: 100%; 
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0; 
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.syntax-table th {
  text-align: left;
  padding: 12px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.syntax-table td { padding: 12px; border-bottom: 1px solid var(--border-color); color: var(--text-color); }

.syntax-table tr:last-child td { border-bottom: none; }

.syntax-table code {
  background: rgba(255, 105, 1, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--primary-color);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-right .nav-links { display: none; }
  .search-toggle { display: none !important; }
  .nav-left, .nav-right { flex: 0; }
  .nav-container { justify-content: space-between; }
  #page-home.active { min-height: calc(100vh - 64px - 85px); }
  .hero-container { flex: 1; display: flex; align-items: center; justify-content: center; }
  .hero-header h1 { font-size: 2.2rem; }
  .hero-title { gap: 10px; }
  .hero-logo { width: 36px; height: 36px; }
  .search-box-large { padding: 6px 6px 6px 16px; }
  .search-btn-large { height: 40px; padding: 0 24px; font-size: 0.9rem; }
  .search-modal-content { width: 95%; }
  .search-modal { padding-top: 10vh; }
  .stat-item:first-child { display: none; }
  .docs-container { padding: 104px 16px 40px; }
  .stats-bar { 
    flex-wrap: nowrap; 
    gap: 12px; 
  }
  .stat-item { 
    flex-shrink: 0;
  }
  .stat-item:first-child { 
    flex: 1; 
    min-width: 0;
  }
  .stat-item:first-child .stat-value { 
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #exportBtn { margin-left: auto; width: auto; }
  .docs-content h1 { font-size: 2rem; }
  .docs-content h2 { font-size: 1.5rem; }
  .docs-content h3 { font-size: 1.2rem; }
  .syntax-table { font-size: 0.85rem; }
  .syntax-table th, .syntax-table td { padding: 8px; }
  .faq-question { font-size: 0.95rem; padding: 16px; }
  .faq-answer { padding: 16px; }
  
  /* 移动端卡片样式 */
  .result-card { padding: 16px; }
  .result-card-desktop { display: none; }
  .result-card-mobile { display: block; }
  .mobile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
  }
  .mobile-row:last-child { border-bottom: none; }
  .mobile-label {
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  .mobile-value {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: right;
  }
  .mobile-value.result-ip,
  .mobile-value.result-port {
    font-weight: 600;
    background: var(--custom-primary-background);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .mobile-link {
    color: var(--primary-color);
    text-decoration: none;
    border: 1.5px solid var(--primary-color);
    padding: 4px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
  }
  .mobile-copy-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
  }
}

/* ========== FAQ 页面 ========== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover { border-color: rgba(255, 105, 1, 0.3); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-color);
  user-select: none;
  transition: all 0.2s;
}


.faq-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.2s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in, padding 0.2s ease-in;
  padding: 0 24px;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p { line-height: 1.8; margin-bottom: 12px; }

.faq-answer ul {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.faq-answer ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.6;
}

.faq-answer ul li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: var(--primary-color);
  font-weight: bold;
}


/* ========== 移动端抽屉菜单 ========== */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.menu-toggle:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.drawer-overlay {
  position: fixed;
  top: 64px;
  width: 100%;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: fixed;
  top: 64px;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}

[data-theme="dark"] .drawer {
  background: #1e1e1e;
}

.drawer.show {
  max-height: calc(100vh - 64px);
}

.drawer-content {
  padding: 8px;
  overflow-y: auto;
}

.drawer-link {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 1rem;
}

.drawer-link:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-container { padding: 0 20px; }
}


/* ========== 版权信息 ========== */
.copyright {
  text-align: center;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}
