:root {
  /* 清新亮色主题 */
  --primary: #0984e3;      /* 鲜艳的蓝色 */
  --primary-light: #74b9ff;
  --bg-body: #f5f6fa;      /* 浅灰背景 */
  --bg-card: #ffffff;      /* 纯白卡片 */
  --bg-sidebar: #ffffff;
  --text-main: #2d3436;    /* 深灰字体 */
  --text-sub: #636e72;     /* 浅灰字体 */
  --border: #dfe6e9;
  --success: #00b894;
  --danger: #ff7675;
  --warning: #0984e3;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
  --sidebar-width: 240px;
  --bottom-nav-height: 60px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

/* --- 布局框架 --- */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 (PC显示，手机隐藏) */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
	height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.logo-area {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.nav-links {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
	padding: 12px 16px;
  border: none;
	background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 15px;
  text-align: left;
}

.nav-item:hover { background-color: #f0f4f8; color: var(--primary); }
.nav-item.active { background-color: #e3f2fd; color: var(--primary); font-weight: 600; }
.nav-icon { font-size: 18px; }

/* 主内容区 */
.main-container {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  max-width: 1200px;
  width: 100%;
}

.page { display: none; animation: fadeUp 0.3s ease-out; }
.page.active { display: block; }

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

/* 头部样式 */
.content-header { margin-bottom: 32px; }
.content-header.flex-row { display: flex; justify-content: space-between; align-items: flex-end; }
.content-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.content-header p { color: var(--text-sub); }

/* --- 组件样式 --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
	border: 1px solid var(--border);
  transition: transform 0.2s;
}

/* 统计面板 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.star-card {
  background: linear-gradient(135deg, #0984e3, #6c5ce7);
  color: white;
  border: none;
}
.star-card .icon { font-size: 24px; }
.star-card h3 { display: inline-block; margin-left: 8px; font-size: 18px; }
.star-stats { margin: 20px 0; }
.stat-big { font-size: 42px; font-weight: 700; }
.stat-big small { font-size: 16px; opacity: 0.8; font-weight: 400; }
.progress-bar { background: rgba(255,255,255,0.2); height: 8px; border-radius: 4px; overflow: hidden; }
.progress-fill { background: #ffeaa7; height: 100%; width: 0%; transition: width 0.5s; }

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-item-card {
  background: var(--bg-card);
  padding: 20px;
	border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.stat-item-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.stat-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.stat-title { color: var(--text-sub); font-size: 14px; }
.stat-numbers { font-size: 20px; font-weight: 600; color: var(--text-main); margin-top: 4px; }

/* 筛选栏 */
.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
}
.filter-group { display: flex; gap: 12px; flex-wrap: wrap; }
.input-field, select.input-field, .filter-group select, .filter-group input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9fa;
  color: var(--text-main);
  outline: none;
  font-size: 14px;
  flex: 1;
  min-width: 120px;
}
.input-field:focus, select:focus { border-color: var(--primary); background: #fff; }

/* 成就列表 */
.achievement-list { display: flex; flex-direction: column; gap: 12px; }
.achievement-item {
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}
.achievement-item:hover { box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.achievement-item.completed { border-left: 4px solid var(--success); background-color: #fafffe; }

/* 成就中的图片大小调整 */
.achievement-item img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  margin-right: 12px;
}

/* 成就导入 */
/* 导入模态框样式优化 */
.input-file {
  display: block;
  width: 100%;
  padding: 12px;
  border: 2px dashed #667eea;
  border-radius: 8px;
  cursor: pointer;
  background: #f8f9ff;
  transition: all 0.3s ease;
}

.input-file:hover {
  border-color: #764ba2;
  background: #f0f2ff;
}

textarea.input-field {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  min-height: 150px;
}

textarea.input-field:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.check-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
	border: 2px solid #b2bec3;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.achievement-item.completed .check-circle { background: var(--success); border-color: var(--success); color: white; }
.achievement-item.completed .check-circle::after { content: '✓'; font-size: 14px; font-weight: bold; }

.ach-content { flex: 1; }
.ach-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: normal; }
.tag-hidden {
  background: #ffd166;
  color: #b45309;
  border: 1px solid #fdcb6e;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}
.ach-meta { font-size: 13px; color: var(--text-sub); display: flex; gap: 12px; }
.ach-stars { color: var(--warning); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.btn-delete {
  padding: 6px 12px;
  border: 1px solid var(--danger);
  color: var(--danger);
  background: transparent;
  border-radius: 6px;
	font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
}
.btn-delete:hover { background: var(--danger); color: white; }

/* 攻略网格 */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
  -webkit-grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  -moz-grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* 攻略卡片样式 */
.guide-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  position: relative;
  display: -webkit-flex;
  display: -ms-flexbox;
}

/* 鼠标悬浮效果 */
.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ✅ 攻略卡片图片 置顶显示，不变形 */
.guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  display: block;
  cursor: zoom-in;
  border-bottom: 1px solid #f0f0f0;
  background-size: cover;
  background-position: top center;
}

/* 卡片文字内容 */
.guide-content {
  padding: 16px;
  flex-grow: 1;
}
.guide-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}
.guide-category {
  display: inline-block;
  font-size: 0.75rem;
  color: #3b82f6;
  background: #eff6ff;
	padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.guide-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ✅✅✅ 【最终完美长图预览样式】核心！！ */
/* 彻底解锁滚动，宽度贴屏，高度原图，滑动查看，无任何压缩变形 */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.image-viewer.active {
  display: flex;
}
/* 长图核心规则：宽度99%贴屏、高度自适应原图、无缩放、无裁剪、完全展示 */
.image-viewer img {
  width: 99vw !important;
  max-width: 99vw !important;
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
  border-radius: 6px;
}
#previewImage {
  width: 99vw !important;
  max-width: 99vw !important;
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
}
/* 关闭按钮悬浮置顶，不跟随滚动 */
.image-close-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.image-close-btn:hover {
  background: #f5f5f5;
  transform: scale(1.05);
}

/* 按钮样式 */
.btn { padding: 10px 20px; border-radius: 8px; border: none; font-weight: 500; cursor: pointer; transition: 0.2s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #0077c8; }
.btn-outline { background: white; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.full-width { width: 100%; }

/* 个人中心 */
.profile-container { max-width: 600px; margin: 0 auto; }
.tab-switcher { display: flex; margin-bottom: 24px; background: #f1f2f6; padding: 4px; border-radius: 8px; }
.tab-btn { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--text-sub); }
.tab-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.user-profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.avatar { width: 64px; height: 64px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: bold; }
.user-stats-row { display: flex; justify-content: space-around; margin-bottom: 32px; }
.stat { text-align: center; }
.stat .val { display: block; font-size: 24px; font-weight: 700; color: var(--primary); }
.stat .lbl { font-size: 13px; color: var(--text-sub); }

/* 模态框 (通用) */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 1000; backdrop-filter: blur(2px);
}
.modal-overlay.active { display: block; }
.modal {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: white; width: 90%; max-width: 500px; max-height: 85vh;
  border-radius: 16px; padding: 0; z-index: 1001; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  flex-direction: column;
}
.modal.active { display: flex; animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { from { transform: translate(-50%, -45%) scale(0.95); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.modal-header { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--text-sub); }
.modal-body { padding: 24px; overflow-y: auto; }

/* 新增文件输入框样式 */
.input-file {
  display: block;
  width: 100%;
  padding: 10px;
  background: #f8f9fa;
  border: 2px dashed #dfe6e9;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 12px;
}
.input-file:hover {
  border-color: var(--primary);
  background: #e3f2fd;
}

/* Logo 图片样式 */
.sidebar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

/* 社交媒体底部栏 */
.social-footer {
  margin-top: 40px;
  padding-top: 20px;
	border-top: 1px solid var(--border);
  text-align: center;
}
.social-footer p {
  color: var(--text-sub);
  font-size: 13px;
  margin-bottom: 12px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
	padding: 10px 20px;
 	border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}
/* 社交按钮配色 */
.douyin { background: #1c1c1c; color: white; }
.bilibili { background: #fb7299; color: white; }
.xiaoheihe { background: #ffffff; color: #000000; border: 1px solid #e0e0e0; }
.haoyou { background: #1abc9c; color: white; }
.xiaohongshu { background: linear-gradient(135deg, #ff2442, #ff2d51); color: white; }
.taptap { background: #5FFFF5; color: #333; }
.miyoushe { background: linear-gradient(135deg, #2a9ef5, #5c6bc0); color: white; }
.copyright { font-size: 12px; opacity: 0.5; }
.kl { background: #F6FCFC; color: #000000; border: 1px solid #e0e0e0; }

.social-btn.other {
  /* 替换默认白底，改用高对比度橙红渐变（醒目且不刺眼） */
  background: linear-gradient(135deg, #ff7a00, #ff3d00);
  color: #ffffff !important; /* 强制白色文字，避免继承变量色 */
  border: 1px solid #ff7a00 !important; /* 边框和主色呼应 */
  /* 增加圆角+阴影，提升层次感（和其他平台按钮风格统一） */
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(255, 122, 0, 0.25);
  /* 加粗文字+稍大字号，强化视觉 */
  font-weight: 600;
  font-size: 14px;
  /* 内边距增大，按钮更饱满 */
  padding: 8px 12px;
  /* 过渡动画，交互更丝滑 */
  transition: all 0.3s ease;
  /* 置顶层级，避免被遮挡 */
  position: relative;
  z-index: 5;
}

/* hover状态：强化反馈，进一步突出 */
.social-btn.other:hover {
  background: linear-gradient(135deg, #ff6a00, #ff2d00);
  border-color: #ff6a00 !important;
  box-shadow: 0 5px 12px rgba(255, 122, 0, 0.4);
  /* 轻微放大+提亮，吸引注意力 */
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* 可选：点击态优化 */
.social-btn.other:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(255, 122, 0, 0.2);
}

/* 可选：呼吸动效（持续吸引注意力，按需开启） */
@keyframes breathe {
  0% { opacity: 1; }
  50% { opacity: 0.9; box-shadow: 0 4px 10px rgba(255, 122, 0, 0.35); }
  100% { opacity: 1; }
}
/* 仅给交流群按钮加动效，不影响其他.other类元素 */
.social-btn.other:has(span:contains("💬")) {
  animation: breathe 2s infinite ease-in-out;
}
/* 登录框优化 */
.auth-tip {
  text-align: center;
	font-size: 12px;
 	color: var(--text-sub);
  margin-top: 12px;
}
.form-group-icon {
  position: relative;
  margin-bottom: 12px;
}
.input-icon {
  position: absolute;
	left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-size: 14px;
}
.form-group-icon input {
  padding-left: 36px;
}

/* 序号标签样式 */
.serial-tag {
  background: rgba(9, 132, 227, 0.08);
  color: #0984e3;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  border: 1px solid rgba(9, 132, 227, 0.2);
  letter-spacing: 0.5px;
}

/* Toast 提示框样式 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  min-width: 250px;
  max-width: 90%;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}
.toast.error {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* 星星图片强制尺寸 */
.ach-stars img, 
#modalStars img, 
.stat-item-card img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin-top: -2px;
}
/* 星声+成就 横向并排容器 */
.dual-card-wrapper {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}
/* 两个卡片平分宽度 */
.dual-card-wrapper .star-card {
  flex: 1;
  margin: 0;
}
/* 成就进度条金色美化(推荐)，星声保留原蓝色，区分度高 */
#achProgress {
  background-color: #f59e0b !important;
}
/* 手机端自适应：屏幕小了自动变回上下排列 */
@media (max-width: 768px) {
  .dual-card-wrapper {
    flex-direction: column;
  }
}
#starCollected img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin-top: -4px;
}

/* 导入选项弹窗 */
.import-options-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  animation: popIn 0.3s ease forwards;
}

.import-options-modal .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.import-options-modal .modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1e293b;
}

.import-options-modal .modal-body {
  padding: 24px;
}

.import-options-modal .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.option-group {
  margin-bottom: 24px;
}

.option-title {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  font-size: 14px;
}

.option-buttons {
  display: flex;
  gap: 12px;
}

.option-btn {
  flex: 1;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.option-btn:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.option-btn.active {
  border-color: #3b82f6;
  background: #eff6ff;
}

.option-btn .icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.option-btn .text {
  font-weight: 600;
  color: #1e293b;
  display: block;
  margin-bottom: 4px;
}

.option-btn .desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.file-info {
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #64748b;
}

.file-info #importFileName {
  color: #3b82f6;
  font-weight: 500;
}

.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  padding: 10px 20px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e2e8f0;
}
/* --- 移动端适配 完整版 无重复代码 --- */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
    --bottom-nav-height: 70px;
  }
  .sidebar {
    width: 100%; height: var(--bottom-nav-height);
    bottom: 0; top: auto; flex-direction: row;
    border-right: none; border-top: 1px solid var(--border);
    justify-content: space-around; padding: 0;
  }
  .logo-area { display: none; }
  .nav-links { flex-direction: row; width: 100%; justify-content: space-around; padding: 0; }
  .nav-item { flex-direction: column; gap: 4px; padding: 8px; font-size: 11px; border-radius: 0; }
  .nav-item:hover { background: transparent; }
  .nav-icon { font-size: 20px; }
  
  .main-container { margin-left: 0; padding: 16px; padding-bottom: 80px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .filter-group { flex-direction: column; }
  .content-header.flex-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  
  .achievement-item { padding: 14px 12px; gap: 10px; }
  .achievement-item img { max-width:30px; max-height:30px; }
  .ach-meta span:not(.ach-stars) { display: none; }
  
  .stat-big { font-size: 32px; }
  .modal { width: 95%; max-height:90vh; bottom:10px; top:auto; transform: translate(-50%,0); }
  @keyframes popIn { from { transform: translate(-50%,100%); opacity:0; } to { transform: translate(-50%,0); opacity:1; } }
  
  .form-row, .admin-grid { grid-template-columns:1fr; display:flex; flex-direction:column; gap:8px; }
  body.modal-open { overflow:hidden; }
  .toast { top:80px; font-size:14px; padding:14px 20px; max-width:85%; }
  
  .guide-card { max-width:100%; margin:0 16px; }
  .guide-image { height:160px; }
  .guide-title { font-size:1rem; }
  .guide-description { font-size:0.85rem; }
}

/* 超小屏适配 */
@media (max-width: 375px) {
  .nav-item { font-size:10px; }
  .nav-icon { font-size:18px; }
  .guide-card { padding:12px; }
  .guide-title { font-size:0.95rem; }
  .guide-description { font-size:0.8rem; }
  .guide-image { height:140px; }
}

/* 全局通用样式 完整收尾 */
.hidden { display: none !important; }
.text-star { color: var(--warning); font-weight: bold; }
.form-row { display: flex; gap:12px; margin-bottom:12px; }
.input-field { margin-bottom:12px; width:100%; }
.admin-grid { display: grid; grid-template-columns:1fr 1fr; gap:12px; }
