/* 攻略页共享样式：供 /guide/* 入口页与 /guide/<主题>/<章节> 子页面复用
   注意：本文件必须在 mc-gui.css 之前引入，保证 MC GUI 主题能覆盖生效 */

/* ===== 基础重置与页面底色 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%); min-height: 100vh; color: #ffffff; }
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%); pointer-events: none; z-index: 0; }

/* ===== 通用组件 ===== */
.gradient-text { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.glass-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 14px 32px; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; border: none; color: white; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5); }
.btn-secondary { background: rgba(102, 126, 234, 0.15); border: 1px solid rgba(102, 126, 234, 0.3); padding: 14px 32px; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; color: #a5b4fc; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-secondary:hover { background: rgba(102, 126, 234, 0.25); border-color: rgba(102, 126, 234, 0.5); }

/* ===== 顶部导航 ===== */
.nav-link { position: relative; padding: 10px 20px; color: rgba(255, 255, 255, 0.8); text-decoration: none; font-weight: 500; transition: all 0.3s ease; border-radius: 8px; }
.nav-link:hover { color: #667eea; background: rgba(102, 126, 234, 0.1); }
.dropdown-menu { position: absolute; top: 100%; left: 0; margin-top: 10px; background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(20px); border: 1px solid rgba(102, 126, 234, 0.2); border-radius: 12px; padding: 8px; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); z-index: 100; }
.nav-item-dropdown:hover .dropdown-menu, .user-dropdown:hover .dropdown-menu, .settings-menu:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown { position: relative; }
.user-dropdown .dropdown-menu { right: 0; left: auto; }
.user-dropdown-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(102, 126, 234, 0.1); border: 1px solid rgba(102, 126, 234, 0.2); border-radius: 10px; text-decoration: none; color: #e0e7ff; transition: all 0.3s ease; }
.user-dropdown-toggle:hover { background: rgba(102, 126, 234, 0.2); }
.dropdown-menu a { display: block; padding: 10px 14px; color: rgba(226, 232, 240, 0.8); text-decoration: none; border-radius: 8px; transition: all 0.2s ease; font-size: 14px; }
.dropdown-menu a:hover { background: rgba(102, 126, 234, 0.15); color: #a5b4fc; }
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 15px 40px; background: rgba(10, 10, 21, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(102, 126, 234, 0.15); }
.header-content { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-item-dropdown { position: relative; }
.nav-item { display: flex; align-items: center; gap: 6px; }
.nav-item i { font-size: 10px; transition: transform 0.3s ease; color: #a5b4fc; }
.nav-item-dropdown:hover .nav-item i { transform: rotate(180deg); }
.header-right { display: flex; align-items: center; gap: 16px; }
.logo img { height: 38px; width: auto; }
.settings-menu { position: relative; }
.settings-menu > a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: rgba(102, 126, 234, 0.1); border: 1px solid rgba(102, 126, 234, 0.2); border-radius: 10px; color: #a5b4fc; text-decoration: none; transition: all 0.3s ease; }
.settings-menu:hover > a { background: rgba(102, 126, 234, 0.2); box-shadow: 0 0 15px rgba(102, 126, 234, 0.3); }
.settings-menu .dropdown-menu { right: 0; left: auto; }

/* ===== 主体与标题 ===== */
.main { padding: 120px 20px 80px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; }
.page-header { margin-bottom: 50px; }
.page-header h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-header p { font-size: 18px; color: rgba(255, 255, 255, 0.8); }

/* ===== 侧栏目录 ===== */
.guide-content { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.guide-sidebar { position: sticky; top: 140px; height: fit-content; }
.guide-sidebar h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }
.guide-sidebar ul { list-style: none; }
.guide-sidebar li { margin-bottom: 8px; }
.guide-sidebar a { display: block; padding: 14px 18px; color: rgba(255, 255, 255, 0.7); text-decoration: none; border-radius: 10px; transition: all 0.3s ease; }
.guide-sidebar a:hover, .guide-sidebar a.active { background: rgba(102, 126, 234, 0.15); color: #a5b4fc; }

/* ===== 正文 ===== */
.guide-main { min-height: 600px; }
.guide-section { margin-bottom: 50px; }
.guide-section h2 { font-size: 24px; font-weight: 600; margin-bottom: 20px; color: #e0e7ff; }
.guide-section h3 { font-size: 18px; font-weight: 600; margin-top: 30px; margin-bottom: 12px; color: #c7d2fe; }
.guide-section p { font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, 0.7); margin-bottom: 16px; }
.guide-section ul, .guide-section ol { padding-left: 24px; margin-bottom: 16px; }
.guide-section li { font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.guide-section a { color: #a5b4fc; }
.guide-section strong { color: #e0e7ff; }
.tip-box { background: rgba(102, 126, 234, 0.1); border-left: 4px solid #667eea; padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.tip-box p { margin: 0; color: #a5b4fc; font-size: 14px; }

/* ===== 攻略表格 ===== */
.guide-section table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14px; }
.guide-section th, .guide-section td { border: 1px solid rgba(102, 126, 234, 0.25); padding: 10px 12px; text-align: left; color: rgba(255, 255, 255, 0.8); vertical-align: top; }
.guide-section th { background: rgba(102, 126, 234, 0.15); color: #e0e7ff; font-weight: 600; }

/* ===== 面包屑与章节翻页 ===== */
.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-bottom: 14px; }
.breadcrumb a { color: #a5b4fc; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.sep { margin: 0 6px; }
.chapter-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(102, 126, 234, 0.2); }
.chapter-nav a { flex: 1; padding: 14px 18px; border-radius: 12px; background: rgba(102, 126, 234, 0.1); border: 1px solid rgba(102, 126, 234, 0.25); color: #a5b4fc; text-decoration: none; font-size: 14px; transition: all 0.25s ease; }
.chapter-nav a:hover { background: rgba(102, 126, 234, 0.22); border-color: rgba(102, 126, 234, 0.5); }
.chapter-nav a.next { text-align: right; }

/* ===== 章节入口卡片（攻略首页） ===== */
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 24px 0 40px; }
.chapter-card { display: block; padding: 22px 24px; border-radius: 14px; background: rgba(102, 126, 234, 0.08); border: 1px solid rgba(102, 126, 234, 0.22); text-decoration: none; transition: all 0.25s ease; }
.chapter-card:hover { background: rgba(102, 126, 234, 0.18); border-color: rgba(102, 126, 234, 0.5); transform: translateY(-3px); }
.chapter-card .chapter-index { font-size: 12px; color: #a5b4fc; letter-spacing: 1px; display: block; margin-bottom: 6px; }
.chapter-card h3 { font-size: 18px; color: #e0e7ff; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.chapter-card p { font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 1.6; margin: 0; }

/* ===== 页脚 ===== */
.footer { background: rgba(10, 10, 21, 0.7); border-top: 1px solid rgba(102, 126, 234, 0.15); padding: 60px 20px 40px; margin-top: 60px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; color: #e0e7ff; }
.footer-brand p { color: #cbd5e1; line-height: 1.6; font-size: 14px; }
.footer-links h4 { font-size: 12px; font-weight: 700; margin-bottom: 16px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 14px; transition: all 0.3s ease; }
.footer-links a:hover { color: #818cf8; }
.footer-bottom { color: #94a3b8; font-size: 13px; text-align: center; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header { padding: 12px 20px; }
  .nav-menu { display: none; }
  .guide-content { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .chapter-nav { flex-direction: column; }
  .chapter-nav a.next { text-align: left; }
}

/* ===== 浅色模式 ===== */
body.light-mode { background: #f1f5f9 !important; color: #1e293b !important; }
body.light-mode .nav-link { color: #334155 !important; }
body.light-mode .nav-link:hover { color: #667eea !important; }
body.light-mode .dropdown-menu a { color: #334155 !important; }
body.light-mode .dropdown-menu { background: white !important; }
body.light-mode .header { background: rgba(255, 255, 255, 0.95) !important; }
body.light-mode .user-dropdown-toggle { color: #4338ca !important; }
body.light-mode .footer { background: #f8fafc !important; }
body.light-mode .footer-brand h3 { color: #1e293b !important; }
body.light-mode .footer-brand p { color: #475569 !important; }
body.light-mode .footer-links a { color: #475569 !important; }
body.light-mode .footer-bottom { color: #64748b !important; }
body.light-mode .guide-content h1 { color: #1e293b !important; }
body.light-mode .guide-content h2 { color: #1e293b !important; }
body.light-mode .guide-content p { color: #475569 !important; }
body.light-mode .guide-content li { color: #475569 !important; }
body.light-mode .page-header p { color: #475569 !important; }
body.light-mode .guide-sidebar { background: transparent !important; border: none !important; }
body.light-mode .guide-sidebar h3 { color: #1e293b !important; }
body.light-mode .guide-sidebar ul li a { color: #475569 !important; }
body.light-mode .guide-sidebar ul li a.active { color: #667eea !important; }
body.light-mode .guide-section h2 { color: #1e293b !important; }
body.light-mode .guide-section h3 { color: #334155 !important; }
body.light-mode .guide-section strong { color: #1e293b !important; }
body.light-mode .tip-box { background: rgba(102, 126, 234, 0.12) !important; }
body.light-mode .tip-box p { color: #4338ca !important; }
body.light-mode .chapter-card { background: rgba(102, 126, 234, 0.08) !important; border-color: rgba(102, 126, 234, 0.25) !important; }
body.light-mode .chapter-card h3 { color: #1e293b !important; }
body.light-mode .chapter-card p { color: #475569 !important; }
body.light-mode .guide-section th { color: #1e293b !important; }
body.light-mode .guide-section td { color: #475569 !important; }
body.light-mode .breadcrumb { color: #64748b !important; }