/* 新的现代化UI设计 */
:root {
  /* 主色调 */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #0ea5e9;
  --secondary-hover: #0284c7;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #6366f1;
  
  /* 背景色 */
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.8);
  
  /* 文本色 */
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* 边框色 */
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* 其他 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* 深色模式 */
body.dark-theme {
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --secondary: #38bdf8;
  --secondary-hover: #7dd3fc;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  
  --bg: #0f172a;
  --card-bg: #1e293b;
  --header-bg: rgba(15, 23, 42, 0.8);
  
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-light: #e2e8f0;
  
  --border: #334155;
  --border-hover: #475569;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: var(--transition);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* 导航栏 */
.nav-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(var(--border), 0.3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-logo {  display: flex;  align-items: center;  user-select: none;}.nav-logo img {  width: 40px;  height: 40px;  border-radius: 8px;  object-fit: cover;  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);  transition: transform 0.3s ease;}.nav-logo img:hover {  transform: scale(1.05);}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-left: 12px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.nav-link.active,
.nav-link:hover {
  color: var(--primary);
  background: rgba(var(--primary), 0.08);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-nick {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.current-time {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 8px;
  background: rgba(var(--primary), 0.08);
  color: var(--primary);
  border-radius: var(--radius-sm);
}

/* 按钮样式 */
.btn-glass {
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: white;
  transition: var(--transition);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(var(--primary), 0.08);
  border-color: var(--primary-hover);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-large {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-secondary {
  background: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
}

/* 卡片样式 */
.card-glass {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 24px;
}

.card-glass:hover {
  box-shadow: var(--shadow-lg);
}

.page-section {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 帖子样式 */
.post {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.post:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(var(--primary), 0.3);
}

.post-author {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.post-category {
  background: rgba(var(--info), 0.1);
  color: var(--info);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.post-timestamp {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: auto;
}

.post-content {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.post-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius);
  margin: 10px 0;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.post-actions button {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-actions button:hover {
  background: rgba(var(--primary), 0.08);
  color: var(--primary);
  border-color: rgba(var(--primary), 0.3);
}

.post-actions button i {
  font-size: 0.95rem;
}

/* 评论区样式 */
.comments-section {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.comment {
  background: rgba(var(--bg), 0.5);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.comment:hover {
  box-shadow: var(--shadow-sm);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--info);
}

.comment-author {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-timestamp {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: auto;
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.comment-actions {
  display: flex;
  gap: 8px;
}

.comment-actions button {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-actions button:hover {
  color: var(--primary);
  background: rgba(var(--primary), 0.08);
}

.reply-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reply-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
  transition: var(--transition);
  background: var(--card-bg);
  color: var(--text);
}

.reply-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

.submit-comment-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-end;
}

.submit-comment-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* 表单样式 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-group input {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 1rem;
  background: var(--bg);
  transition: var(--transition);
  color: var(--text);
}

.form-group input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
  background: var(--card-bg);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.form-info {
  margin-top: 20px;
  padding: 12px;
  background: rgba(var(--info), 0.08);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* 发帖表单 */
.post-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#post-content {
  width: 100%;
  min-height: 120px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  font-size: 1rem;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}

#post-content:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
  background: var(--card-bg);
}

.post-form-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

#post-category {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}

#post-category:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
  background: var(--card-bg);
}

.image-upload-container {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

#add-image-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px dashed var(--border-hover);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

#add-image-btn:hover {
  background: rgba(var(--primary), 0.08);
  color: var(--primary);
  border-color: var(--primary);
}

#remove-image-btn {
  background: rgba(var(--danger), 0.1);
  color: var(--danger);
  border: none;
  font-size: 0.9rem;
}

#remove-image-btn:hover {
  background: rgba(var(--danger), 0.2);
}

/* 设置页面 */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  transition: var(--transition);
}

.settings-item:hover {
  box-shadow: var(--shadow-sm);
}

.settings-item > span:first-child {
  min-width: 140px;
  font-weight: 600;
  color: var(--text);
}

.settings-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 12px;
}

/* 开关按钮 */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin: 0 8px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 26px;
}

.slider.round:before {
  border-radius: 50%;
}

/* 消息提示 */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: auto;
  max-width: 320px;
}

.toast {
  background: var(--card-bg);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  border-left: 4px solid var(--primary);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.info {
  border-left-color: var(--info);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast .close-toast {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0 5px;
  transition: var(--transition);
}

.toast .close-toast:hover {
  color: var(--text);
}

/* 空状态显示 */
.empty-state-message {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-state-message:before {
  content: "🌱";
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .nav-glass {
    padding: 0 16px;
  }
  
  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px;
    border-top: 1px solid var(--border);
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  .nav-link:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.2rem;
  }
  
  #nav-home:before { content: "\f015"; }
  #nav-my-posts:before { content: "\f303"; }
  #nav-my-collections:before { content: "\f02e"; }
  #nav-profile:before { content: "\f007"; }
  #nav-settings:before { content: "\f013"; }
  
  .card-glass {
    padding: 24px 16px;
  }
  
  .post {
    padding: 16px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  .post-form-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .container {
    padding-bottom: 80px; /* 为底部导航留出空间 */
  }
}

@media (max-width: 600px) {
  .post-header {
    flex-wrap: wrap;
  }
  
  .post-timestamp {
    margin-left: 0;
    width: 100%;
    margin-top: 8px;
  }
  
  .post-actions {
    justify-content: space-between;
  }
  
  .post-actions button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* 辅助工具类 */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mr-1 { margin-right: 8px; }
.ml-1 { margin-left: 8px; }
.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-content {
  background: var(--card-bg);
  margin: 5% auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

.close-modal {
  color: var(--text-muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text);
}

.modal h2 {
  margin-top: 10px;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.modal-body {
  margin-top: 20px;
}

.modal-body h3 {
  color: var(--text);
  margin: 25px 0 10px 0;
  font-size: 1.1rem;
}

.modal-body p, .modal-body ul {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.modal-body ul {
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 8px;
}

/* 链接样式 */
.form-info a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.form-info a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* u5e2eu52a9u9875u9762u6837u5f0f */
.faq-section {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 20px;
}

.faq-item {
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question h3 i {
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0.9;
}

.faq-question:after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-question.active {
  background-color: rgba(99, 102, 241, 0.08);
  border-left-color: var(--primary);
}

.faq-question.active:after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid rgba(99, 102, 241, 0.2);
}

.faq-category {
  margin: 2rem 0 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
}

.faq-category h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-category h2 i {
  font-size: 1.5rem;
}

.faq-category:after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(99, 102, 241, 0.3), transparent);
  margin-left: 15px;
}

.help-contact {
  background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow);
}

.help-contact:before {
  content: '\f2b6';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: -15px;
  bottom: -15px;
  font-size: 8rem;
  color: rgba(99, 102, 241, 0.08);
  transform: rotate(-10deg);
}

.help-contact h3 {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  margin-top: 0;
}

.help-contact p {
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.help-contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 1px dashed rgba(99, 102, 241, 0.4);
}

.help-contact a:hover {
  color: var(--primary-hover);
  border-bottom-style: solid;
}

.help-intro {
  background-color: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--success);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
}

.help-intro:before {
  content: '\f05a';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 0;
  font-size: 6rem;
  color: rgba(16, 185, 129, 0.1);
  transform: translate(20%, -30%);
}

.help-intro h2 {
  margin-top: 0;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-intro h2 i {
  font-size: 1.3rem;
}

.help-intro p {
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .faq-section {
    grid-template-columns: 1fr;
  }
  
  .faq-item {
    margin-bottom: 0.8rem;
  }
  
  .faq-question {
    padding: 1rem;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
  }
  
  .help-contact {
    padding: 1.5rem;
  }
  
  .help-contact:before {
    font-size: 6rem;
    right: -25px;
    bottom: -25px;
  }
  
  .help-intro {
    padding: 1.2rem;
  }
  
  .help-intro h2 {
    font-size: 1.2rem;
  }
  
  .help-intro:before {
    font-size: 4rem;
  }
  
  .faq-category h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .faq-question h3 i {
    font-size: 1.1rem;
  }
  
  .faq-question:after {
    right: 0.8rem;
  }
  
  .help-contact h3 {
    font-size: 1.1rem;
  }
  
  .help-intro:before,
  .help-contact:before {
    display: none; /* u79fbu52a8u8bbeu5907u4e0au9690u85cfu88abu6ed1u52a8u7684u5927u56feu6807 */
  }
}

/* 让FAQ问题默认展开第一个 */
.faq-item:first-child .faq-answer {
  display: block;
}

.faq-item:first-child .faq-question {
  background-color: rgba(99, 102, 241, 0.08);
  border-left-color: var(--primary);
}

.random-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.random-placeholder {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.random-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--primary);
  opacity: 0.7;
}

/* u968fu673au6d4fu89c8u9875u9762u6837u5f0f */
.random-intro {
  display: flex;
  background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(79, 70, 229, 0.05));
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.random-intro-content {
  flex: 1;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.random-intro-content h3 {
  color: var(--primary);
  margin-top: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.random-intro-content h3 i {
  color: var(--secondary);
}

.random-intro-content p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 600px;
}

.random-stats {
  display: flex;
  padding: 1.5rem;
  background: rgba(99, 102, 241, 0.15);
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.random-stat-item {
  text-align: center;
  padding: 0 15px;
}

.random-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 5px;
}

.random-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.random-controls-wrapper {
  margin-bottom: 1.5rem;
}

.random-controls {
  background: var(--bg);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.random-main-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.random-btn {
  font-size: 1rem;
  padding: 10px 20px;
  flex: 1;
  min-width: 180px;
}

.random-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.random-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.switch-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.switch-text i {
  color: var(--primary);
}

.random-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.95rem;
  min-width: 150px;
  transition: var(--transition);
}

.random-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.random-container {
  position: relative;
}

.random-placeholder {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.random-placeholder:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.02);
}

.random-placeholder h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.3rem;
}

.random-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: inline-block;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.random-post {
  border: 2px solid rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.random-journey-tracker {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.journey-progress {
  flex: 1;
  min-width: 200px;
}

.journey-progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.journey-progress-text strong {
  color: var(--primary);
  font-weight: 700;
}

.journey-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.journey-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease;
}

/* u54cdu5e94u5f0fu8c03u6574 */
@media (max-width: 768px) {
  .random-hero-content p {
    max-width: 100%;
  }
  
  .random-stat-card {
    min-width: 100%;
  }
  
  .random-main-actions {
    flex-direction: column;
  }
  
  .random-btn-primary {
    width: 100%;
  }
  
  .random-journey-tracker {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 安全验证模态框样式 */
#password-confirm-modal {
  z-index: 10000;
}

#password-confirm-modal .modal-content {
  border-top: 4px solid var(--danger);
}

#security-password {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.3s ease;
}

#security-password:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#confirm-clear-storage {
  transition: all 0.3s ease;
}

#confirm-clear-storage:hover {
  background-color: #dc2626 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

#password-error {
  font-size: 0.9rem;
  padding: 6px 0;
  transition: all 0.3s ease;
}

/* u6570u636eu5907u4efdu4e0eu6062u590du9875u9762u6837u5f0f */
.backup-intro {
  background: linear-gradient(to right, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.03));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow-sm);
}

.backup-intro h3 {
  color: var(--secondary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.backup-intro p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.backup-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.backup-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.backup-section:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.backup-section-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.backup-section-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.backup-section-header h3 i {
  color: var(--primary);
}

.backup-section-content {
  padding: 1.5rem;
}

.backup-data-list {
  list-style-type: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.backup-data-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.backup-data-list li i {
  color: var(--success);
}

.backup-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backup-options {
  background: var(--bg);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
}

.backup-password-group {
  margin-top: 0.75rem;
}

.backup-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}

.backup-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

.helper-text {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.backup-btn {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.restore-warning {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(var(--warning), 0.1);
  border-left: 4px solid var(--warning);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.restore-warning i {
  color: var(--warning);
  font-size: 1.25rem;
}

.restore-warning p {
  margin: 0;
  line-height: 1.5;
  color: var(--text);
  font-size: 0.95rem;
}

.file-upload-container {
  margin-bottom: 1.5rem;
}

.file-upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  margin-bottom: 1rem;
}

.file-upload-box:hover {
  border-color: var(--primary);
  background: rgba(var(--primary), 0.02);
}

.file-upload-dragover {
  border-color: var(--primary);
  background: rgba(var(--primary), 0.05);
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
  transform: scale(1.01);
}

.file-upload-box i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.file-upload-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.selected-file-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.selected-file-name i {
  color: var(--primary);
}

.selected-file-name span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.empty-history-message {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-history-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-history-message p {
  margin: 0;
  font-size: 1.1rem;
}

/* u5907u4efdu5386u53f2u5217u8868u6837u5f0f */
.backup-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.backup-history-item:last-child {
  border-bottom: none;
}

.backup-history-item:hover {
  background: var(--bg);
}

.backup-history-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.backup-history-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(var(--info), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--info);
  font-size: 1.25rem;
}

.backup-history-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.backup-history-name {
  font-weight: 600;
  color: var(--text);
}

.backup-history-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.backup-history-details {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.backup-history-actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .backup-data-list {
    grid-template-columns: 1fr;
  }
  
  .backup-history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .backup-history-actions {
    width: 100%;
    justify-content: flex-end;
  }
} 