/* ===== 合租吧 前台样式 ===== */
:root {
  --primary: #1f2937;
  --primary-dark: #111827;
  --bg: #f5f5f5;
  --text: #333;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --white: #fff;
}

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

body {
  font-family: "MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* 按钮 */
.btn {
  display: inline-block; padding: 8px 18px; border-radius: 6px;
  font-size: 14px; cursor: pointer; border: 1px solid transparent;
  transition: all .2s; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 40px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 头部 */
.site-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 3px rgba(0,0,0,.05); border-bottom: 1px solid rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-size: 22px; font-weight: 700; color: #1f2937; display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; transition: all .3s ease; }
.logo:hover { transform: translateY(-1px); }
.logo-img { max-width: 200px; height: 60px; width: auto; border-radius: 0; object-fit: contain; transition: all .3s ease; display: block; }
.logo:hover .logo-img { transform: scale(1.05); }
.logo-text { color: #1f2937; font-weight: 700; }
.main-nav { display: flex; gap: 8px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: #4b5563; padding: 8px 16px; border-radius: 8px; position: relative; transition: all .3s ease; }
.main-nav a:hover { color: #1f2937; background: rgba(31, 41, 55, 0.08); }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: #1f2937; transition: width .3s ease; border-radius: 2px; }
.main-nav a:hover::after { width: 60%; }
.main-nav a.active { color: #1f2937; background: rgba(31, 41, 55, 0.1); font-weight: 600; }
.main-nav a.active::after { width: 60%; }
.main-nav .menu-icon { font-size: 16px; line-height: 1; display: inline-flex; align-items: center; }
.main-nav .menu-icon-img { width: 16px; height: 16px; object-fit: contain; display: inline-block; }
.user-menu { display: flex; gap: 15px; align-items: center; position: relative; z-index: 1001; }
.search-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; color: #4b5563; font-size: 16px; text-decoration: none; transition: all .2s ease; border: 2px solid #e5e7eb; }
.search-icon-link:hover { background: #1f2937; color: #fff; border-color: #1f2937; transform: scale(1.1); box-shadow: 0 0 0 3px rgba(31, 41, 55, .2); }
.login-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; color: #4b5563; font-size: 18px; text-decoration: none; transition: all .2s ease; border: 2px solid #e5e7eb; cursor: pointer; }
.login-icon-link:hover { background: #1f2937; color: #fff; border-color: #1f2937; transform: scale(1.1); box-shadow: 0 0 0 3px rgba(31, 41, 55, .2); }

/* 用户下拉菜单容器 */
.user-dropdown { position: relative; display: flex; align-items: center; }

/* 用户头像链接（右上角圆形头像：容器裁剪 + 图片 cover） */
.user-avatar-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: border-color .3s, transform .3s, box-shadow .3s; border-radius: 50%; cursor: pointer; width: 40px; height: 40px; overflow: hidden; flex-shrink: 0; border: 2px solid #e5e7eb; box-sizing: border-box; }
.user-avatar-link:hover { transform: scale(1.1); box-shadow: 0 0 0 3px rgba(31, 41, 55, .2); border-color: #1f2937; }
.user-avatar { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 50%; object-fit: cover; object-position: center; display: block; border: 0; vertical-align: middle; }
.user-avatar-default { display: flex; align-items: center; justify-content: center; font-size: 20px; background: #f3f4f6; }

/* 下拉菜单 */
.user-dropdown-menu { position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.15); min-width: 180px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s ease; z-index: 9999; overflow: hidden; }
.user-dropdown:hover .user-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* 下拉菜单项 */
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #374151; text-decoration: none; transition: all .2s; font-size: 14px; }
.dropdown-item .dd-icon { font-size: 18px; width: 18px; height: 18px; color: #6b7280; text-align: center; flex-shrink: 0; }
.dropdown-item:hover { background: #f9fafb; color: #1f2937; }
.dropdown-item:hover .dd-icon { color: #1f2937; }

/* 退出登录项 */
.dropdown-item-logout { color: #ef4444; }
.dropdown-item-logout .dd-icon { color: #ef4444; }
.dropdown-item-logout:hover { background: #fef2f2; color: #dc2626; }
.dropdown-item-logout:hover .dd-icon { color: #dc2626; }

/* 分隔线 */
.dropdown-divider { height: 1px; background: #e5e7eb; margin: 4px 0; }

/* Hero（旧版，已弃用，保留兼容） */
.hero { background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%); color: #fff; text-align: center; padding: 70px 20px; }
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: .95; margin-bottom: 28px; }
.hero .btn-primary { background: #fff; color: var(--primary); font-weight: 600; }
.hero .btn-primary:hover { background: #fff5f5; }

.main-content { min-height: 60vh; padding-top: 30px; padding-bottom: 50px; }

/* 首页区块 */
.section { margin-bottom: 40px; }
.section-title { font-size: 28px; text-align: center; margin-bottom: 30px; color: #1f2937; }
.section-title a { font-size: 14px; color: var(--text-light); font-weight: 400; }

/* 分类导航 */
.category-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.category-nav a { padding: 8px 20px; background: var(--white); border-radius: 20px; border: 1px solid var(--border); font-size: 14px; }
.category-nav a.active, .category-nav a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 账号卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.card-cover { height: 160px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #ccc; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.card-price-row { display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--primary); font-size: 20px; font-weight: 700; }
.price small { font-size: 13px; font-weight: 400; }
.price-original { color: #ccc; text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.tag-hot { background: #fff1f0; color: var(--primary); font-size: 12px; padding: 2px 8px; border-radius: 4px; }

/* 列表筛选 */
.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px;
}

/* 详情页 */
.detail-wrap { display: grid; grid-template-columns: 400px 1fr; gap: 30px; }
.detail-cover { border-radius: 10px; overflow: hidden; background: #f0f0f0; height: 280px; display: flex; align-items: center; justify-content: center; font-size: 60px; color: #ccc; }
.detail-info h1 { font-size: 24px; margin-bottom: 12px; }
.detail-meta { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.detail-price-box { background: #fff7f7; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.detail-price-box .price { font-size: 32px; }
.detail-desc { background: var(--white); padding: 20px; border-radius: 8px; }
.detail-desc h3 { margin-bottom: 12px; }

/* 表单 */
.form-card { background: var(--white); border-radius: 10px; padding: 30px; max-width: 420px; margin: 0 auto; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.form-card h2 { text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-footer { text-align: center; margin-top: 8px; font-size: 14px; color: var(--text-light); }
.form-footer a { color: var(--primary); }

/* 提示 */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.alert-error { background: #fff1f0; color: #ff4d4f; border: 1px solid #ffa39e; }
.alert-info { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
/* 会员中心空状态提示条（常驻显示，不自动消失） */
.empty-state-bar { background: #eff6ff; color: #4b5563; border-radius: 8px; padding: 16px 20px; font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.empty-state-bar .empty-state-link { color: #6d28d9; text-decoration: underline; font-weight: 600; margin-left: 2px; }
.empty-state-bar .empty-state-link:hover { color: #5b21b6; }

/* 会员中心 */
.member-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.member-sidebar { background: var(--white); border-radius: 8px; padding: 16px 0; }
.member-sidebar a { display: block; padding: 12px 20px; font-size: 14px; }
.member-sidebar a.active, .member-sidebar a:hover { background: #fff1f0; color: var(--primary); }
.member-panel { background: var(--white); border-radius: 8px; padding: 24px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { background: #fafafa; font-weight: 600; }
.table tr:hover td { background: #fafafa; }
.status-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.status-0 { background: #fff7e6; color: #d46b08; }
.status-1 { background: #e6f7ff; color: #096dd9; }
.status-2 { background: #f6ffed; color: #389e0d; }
.status-3 { background: #f0f5ff; color: #2f54eb; }
.status-4 { background: #f5f5f5; color: #8c8c8c; }
.status-5 { background: #fff1f0; color: #cf1322; }

/* 分页 */
.pagination-wrapper { background: var(--white); border-radius: 12px; padding: 20px; margin-top: 30px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.05); border: 1px solid #f0f0f0; }
.pagination-info { text-align: center; margin-bottom: 12px; color: #6b7280; font-size: 13px; font-weight: 500; }
.pagination-info strong { color: #1f2937; font-weight: 600; background: #f0f4ff; padding: 2px 6px; border-radius: 4px; }
.pagination { margin: 0; text-align: center; position: relative; }
.pagination ul { display: inline-flex; align-items: center; gap: 4px; list-style: none; padding: 6px; margin: 0; flex-wrap: wrap; justify-content: center; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); border: 1px solid #f0f0f0; }
.pagination ul li { margin: 0; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; font-weight: 500; color: #6b7280; background: transparent; border: none; border-radius: 6px; text-decoration: none; transition: all .2s ease; }
.pagination .page-numbers:hover { color: #1f2937; background: #f8fafc; transform: translateY(-1px); }
.pagination .page-numbers.current { color: #fff; background: #1f2937; font-weight: 600; }
.pagination .page-numbers.prev, .pagination .page-numbers.next { font-weight: 600; color: #1f2937; background: #f8fafc; border: 1px solid #e2e8f0; }
.pagination .page-numbers.prev:hover, .pagination .page-numbers.next:hover { background: #1f2937; color: #fff; border-color: transparent; }
.pagination .page-numbers.dots { background: transparent; cursor: default; min-width: auto; padding: 0 6px; color: #9ca3af; font-weight: 400; }

/* 底部 */
.site-footer { background: #1f2937; color: #fff; padding: 30px 0; margin-top: 40px; }
.footer-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: #d1d5db; padding: 0 8px; transition: color .3s ease; }
.footer-nav a:hover { color: #fff; }
.site-footer .footer-contact { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; font-size: 14px; }
.site-footer .footer-contact .contact-item { display: inline-flex; align-items: center; gap: 6px; color: #9ca3af; }
.site-footer .copyright { text-align: center; font-size: 14px; color: #9ca3af; padding-top: 20px; border-top: 1px solid #374151; }

/* 底部悬浮通知栏 */
body:has(.site-announcement) { padding-bottom: 52px; }
.site-announcement { background: #1f2937; color: #fff; padding: 12px 0; position: fixed; bottom: 0; left: 0; right: 0; width: 100%; z-index: 9999; box-shadow: 0 -2px 8px rgba(0,0,0,.1); }
.site-announcement .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 40px; position: relative; }
.announcement-content { display: flex; align-items: center; gap: 12px; flex: 1; }
.announcement-icon { font-size: 20px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.announcement-text { font-size: 14px; line-height: 1.5; flex: 1; }
.announcement-btn { background: rgba(255,255,255,.2); color: #fff; padding: 6px 16px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 500; transition: all .3s; border: 1px solid rgba(255,255,255,.3); white-space: nowrap; cursor: pointer; }
.announcement-btn:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.5); transform: translateY(-1px); }
.announcement-close { position: absolute; top: 50%; right: 0; transform: translateY(-50%); background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .3s; font-size: 20px; line-height: 1; padding: 0; }
.announcement-close:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) rotate(90deg); }
.announcement-close span { display: block; line-height: 1; }

/* ===== 账号列表页（/accounts）===== */
.accounts-archive { padding: 40px 0 20px; }

.account-filter-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px 22px; margin-bottom: 32px; box-shadow: 0 4px 24px rgba(15,23,42,.06); }
.account-filter-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #f3f4f6; }
.account-filter-panel__title { font-size: 15px; font-weight: 600; color: #1f2937; letter-spacing: .02em; }
.account-filter-panel__sort { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.account-filter-panel__body { display: flex; flex-direction: column; gap: 16px; }

.filter-field { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px 16px; }
.filter-field__label { font-size: 13px; font-weight: 600; color: #9ca3af; white-space: nowrap; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.filter-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.filter-chips--scroll::-webkit-scrollbar { display: none; }
.filter-chip { flex-shrink: 0; padding: 7px 14px; font-size: 13px; font-weight: 500; line-height: 1.3; color: #4b5563; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 999px; cursor: pointer; text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.filter-chip:hover { color: #1f2937; border-color: #d1d5db; background: #f3f4f6; }
.filter-chip.is-active { color: #fff; background: #1f2937; border-color: #1f2937; box-shadow: 0 2px 8px rgba(31,41,55,.25); }

.filter-select { min-width: 140px; padding: 8px 32px 8px 12px; font-size: 13px; font-weight: 500; color: #374151; background-color: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.filter-select:focus { outline: none; border-color: #1f2937; box-shadow: 0 0 0 3px rgba(31,41,55,.1); }

.account-grid-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.account-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.account-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04); transition: all .4s cubic-bezier(.4,0,.2,1); border: 1px solid #f0f0f0; display: flex; flex-direction: column; height: 100%; position: relative; text-decoration: none; color: inherit; cursor: pointer; }
.account-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 12px 28px rgba(31,41,55,.12), 0 6px 12px rgba(31,41,55,.08); border-color: #f3f4f6; }
/* 卡片边框规则：默认橙边（普通/热门账号）；is_top=1 置顶时改为红边（优先级更高） */
.account-card { border: 2px solid #f59e0b; box-shadow: 0 2px 8px rgba(245,158,11,.12); }
.account-card:hover { border-color: #f59e0b; }
.account-card.is-top-card { border: 2px solid #dc2626; box-shadow: 0 4px 12px rgba(220,38,38,.15); }
.account-card.is-top-card:hover { border-color: #dc2626; box-shadow: 0 12px 28px rgba(220,38,38,.18), 0 6px 12px rgba(31,41,55,.08); }
.account-card-header { position: relative; background: #1f2937; padding: 18px 16px 16px; text-align: center; }
.account-icon { width: 60px; height: 60px; background: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto; font-size: 28px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.account-icon img { width: 100%; height: 100%; object-fit: contain; }
.account-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.account-card h3 { font-size: 16px; margin: 0; color: #1f2937; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.account-card .price { font-size: 24px; color: #334155; font-weight: 700; margin: 6px 0; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.account-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; padding: 8px 12px; background: #f9fafb; border-radius: 8px; font-size: 13px; color: #6b7280; border: 1px solid #f0f0f0; }
.account-meta span { display: inline-flex; align-items: center; gap: 3px; }
.account-meta a { color: #1f2937; text-decoration: none; }
.account-meta .price { color: #334155; font-size: inherit; font-weight: 700; }
.account-meta > div:not(:last-child)::after, .account-meta > span:not(:last-child)::after { content: "|"; color: #d1d5db; margin: 0 4px; font-weight: 300; }
.seat-status.has-seat { color: #16a34a; font-weight: 400; }
.seat-status.full { color: #dc2626; font-weight: 600; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.feature-tag { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; background: #1f2937; color: #fff; border-radius: 12px; font-size: 11px; font-weight: 500; border: 1px solid #1f2937; transition: all .2s ease; text-align: center; }

/* 新手指南（详情页） */
.beginner-guide .guide-item { transition: all .3s ease; }
.beginner-guide .guide-item:hover { border-color: #3b82f6 !important; box-shadow: 0 4px 12px rgba(59,130,246,.15); transform: translateY(-2px); }
.beginner-guide .guide-item:hover h4 { color: #2563eb !important; }
.account-card:hover .feature-tag { background: #111827; border-color: #111827; transform: translateY(-1px); }

/* 响应式 */
@media (max-width: 768px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .member-layout { grid-template-columns: 1fr; }

  /* ===== 顶部导航：固定 + 两行布局（第一行 Logo/用户菜单，第二行横向滚动导航）===== */
  .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,.1); overflow: visible; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0;
    align-items: center;
    padding: 12px 15px;
    overflow: visible;
  }
  .logo { grid-column: 1; grid-row: 1; font-size: 18px; gap: 8px; }
  .logo-img { max-width: 60px; height: 30px; border-radius: 0; }
  .user-menu { grid-column: 2; grid-row: 1; display: flex; gap: 8px; margin-left: 10px; align-items: center; position: relative; z-index: 1001; overflow: visible; }
  .user-menu .search-icon-link, .user-menu .login-icon-link { width: 32px; height: 32px; font-size: 15px; flex-shrink: 0; }
  .user-avatar-link { width: 36px; height: 36px; }
  .user-dropdown-menu { min-width: 160px; right: 0; position: fixed; top: 60px; z-index: 9999; }

  /* 主导航：第二行横向滚动条 */
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex-shrink: 0; padding: 6px 12px; font-size: 13px; white-space: nowrap; border-radius: 6px; }
  .main-nav a::after { display: none !important; }
  .main-nav a:hover, .main-nav a.active { color: #1f2937; background: #f3f4f6; }

  /* 固定顶栏后补页面顶部间距 */
  body { padding-top: 110px; }
  main { padding-top: 0; }

  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-section h1 { font-size: 28px; }
  .hero-section p { font-size: 15px; }
  .page-header { padding: 40px 0 !important; }
  .page-header h1 { font-size: 28px !important; margin-bottom: 10px !important; }
  .page-header p { font-size: 15px !important; }
  .section-title { font-size: 24px !important; margin-bottom: 20px !important; }

  /* 特性区：单行紧凑 */
  .features-section { padding: 15px 0; }
  .features-grid { display: flex !important; grid-template-columns: none !important; gap: 4px !important; margin-top: 10px !important; padding: 0 3px; }
  .feature-item { flex: 1; padding: 8px 2px !important; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); margin: 0 1px; }
  .feature-icon { width: 32px !important; height: 32px !important; font-size: 18px !important; margin: 0 auto 5px !important; }
  .feature-item h3 { font-size: 11px !important; margin-bottom: 2px !important; }
  .feature-item p { font-size: 9px !important; white-space: nowrap; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .site-announcement .container { flex-direction: row; align-items: center; gap: 8px; padding-right: 36px; position: relative; }
  .site-announcement .announcement-content { flex-wrap: nowrap; gap: 8px; align-items: center; }
  .site-announcement .announcement-text { font-size: 13px; }
  .site-announcement .announcement-btn { padding: 4px 12px; font-size: 12px; }
  .site-announcement .announcement-close { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 24px; height: 24px; font-size: 17px; flex-shrink: 0; }
  .site-announcement .announcement-close:hover { transform: translateY(-50%) rotate(90deg); }
  .account-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
  .account-filter-panel { padding: 10px 12px; margin-bottom: 16px; border-radius: 10px; }
  .account-filter-panel__head { gap: 8px; margin-bottom: 10px; padding-bottom: 8px; }
  .account-filter-panel__title { font-size: 13px; }
  .account-filter-panel__sort { margin-left: auto; gap: 6px; }
  .filter-field { grid-template-columns: 36px 1fr; gap: 4px 8px; align-items: start; }
  .filter-field__label { font-size: 12px; line-height: 28px; }
  .filter-chips { gap: 6px; }
  .filter-chip { padding: 5px 10px; font-size: 11px; }
  .filter-select--sort, .filter-select { min-width: 108px; padding: 5px 26px 5px 8px; font-size: 12px; }
  .account-card-header { padding: 12px; }
  .account-icon { width: 50px; height: 50px; font-size: 24px; border-radius: 12px; }
  .account-card-body { padding: 10px; gap: 6px; }
  .account-card h3 { font-size: 14px; -webkit-line-clamp: 1; }
  .account-card .price { font-size: 20px; margin: 3px 0; }
  .account-meta { font-size: 10px; padding: 6px 8px; gap: 4px; }
  .feature-tag { padding: 3px 7px; font-size: 9px; border-radius: 8px; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .card-tags { gap: 4px; margin-top: 6px; flex-wrap: nowrap; justify-content: space-between; align-items: center; }
  .card-tags .feature-tag:nth-child(n+3) { display: none; }

  /* 详情页移动端紧凑 */
  .account-detail, .detail-wrap { padding: 20px 0 !important; }
  .account-detail-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .account-info h1, .detail-header h1 { font-size: 26px !important; }
  .sidebar-sticky { position: static !important; top: auto !important; }
  .account-description h2 { font-size: 20px; }
  .account-description h3 { font-size: 17px; }
  .account-description p, .account-description li { font-size: 15px; line-height: 1.7; }
  .account-description img { max-width: 100% !important; height: auto !important; }
  .purchase-box { padding: 20px !important; }
  .purchase-box .price-display div:first-child { font-size: 34px !important; }

  /* 内容图片区域（详情页）：移动端 2 列固定尺寸 */
  .content-images-zone { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }

  /* 分页：可横向滚动 */
  .pagination { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 30px 0 20px !important; }
  .pagination ul { gap: 6px; min-width: min-content; }
  .pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; display: inline-flex !important; align-items: center; justify-content: center; }
  .pagination-wrapper { padding: 16px 12px !important; margin-top: 30px !important; }

  /* 通用表格：横向滚动 */
  .data-table, table.table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; font-size: 13px; }

  /* 弹窗移动端 */
  .modal-content { margin: 15px !important; max-width: calc(100% - 30px) !important; max-height: calc(100vh - 30px) !important; overflow-y: auto; }
  .modal-header { padding: 15px 18px !important; }
  .modal-header h2 { font-size: 17px !important; }

  /* 页脚移动端 */
  .site-footer { padding: 25px 0 20px; }
  .footer-content { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
  .footer-section { width: 100%; min-width: auto; }
  .footer-section h3 { font-size: 15px; }
  .footer-section p, .footer-section li, .footer-section a { font-size: 13px; }
  .footer-bottom { font-size: 12px; }
}
@media (max-width: 480px) {
  .account-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .account-card .price { font-size: 18px; }
  .content-images-zone { grid-template-columns: repeat(2, 1fr) !important; }
  .account-info h1, .detail-header h1 { font-size: 22px !important; }
}

/* ===== 新手指南列表页（分类页） ===== */
.category-layout { padding: 40px 20px; background: #f9fafb; min-height: calc(100vh - 200px); }
.category-sidebar-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.category-sidebar { position: sticky; top: 20px; }
.category-info-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.08); text-align: center; margin-bottom: 20px; }
.category-icon { width: 80px; height: 80px; margin: 0 auto 20px; background: #1f2937; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.category-title { font-size: 28px; font-weight: 700; margin: 0 0 15px; color: #1f2937; }
.category-stats { display: flex; justify-content: center; gap: 30px; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 32px; font-weight: 700; color: #1f2937; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 13px; color: #9ca3af; }
.popular-tags { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.popular-tags h3 { font-size: 16px; font-weight: 600; color: #1f2937; margin: 0 0 15px; padding-bottom: 12px; border-bottom: 2px solid #e5e7eb; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #f3f4f6; color: #374151; border-radius: 20px; text-decoration: none; font-size: 13px; transition: all .3s; border: 1px solid transparent; }
.tag-item:hover { background: #1f2937; color: #fff; border-color: #1f2937; transform: translateY(-2px); }
.tag-name { font-weight: 500; }
.tag-count { font-size: 11px; background: rgba(0,0,0,.1); padding: 2px 6px; border-radius: 10px; min-width: 20px; text-align: center; }
.tag-item:hover .tag-count { background: rgba(255,255,255,.2); }
.category-content { min-height: 400px; }
.posts-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.post-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: all .3s; display: flex; flex-direction: row; }
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.post-card-thumbnail { width: 240px; min-width: 240px; height: 180px; position: relative; overflow: hidden; }
.post-card-thumbnail > a { display: block; width: 100%; height: 100%; }
.post-thumbnail-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-thumbnail-img { transform: scale(1.05); }
.post-card-categories { position: absolute; top: 12px; left: 12px; z-index: 1; }
.category-badge { display: inline-block; padding: 4px 10px; background: rgba(102,126,234,.95); color: #fff; border-radius: 12px; font-size: 12px; text-decoration: none; font-weight: 500; transition: all .3s; }
.category-badge:hover { background: rgba(102,126,234,1); }
.post-card-content { padding: 14px 20px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.post-card-title { font-size: 18px; font-weight: 600; margin: 0 0 10px; line-height: 1.4; }
.post-card-title a { color: #1f2937; text-decoration: none; transition: color .3s; }
.post-card-title a:hover { color: #111827; }
.post-card-excerpt { color: #6b7280; line-height: 1.7; margin-bottom: 12px; font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; align-items: center; gap: 15px; font-size: 12px; color: #9ca3af; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.post-card-meta > span { display: flex; align-items: center; gap: 5px; }
.post-author { display: flex; align-items: center; gap: 6px; }
.post-author img { border-radius: 50%; width: 24px; height: 24px; object-fit: cover; }
.post-author .author-avatar-placeholder { width: 24px; height: 24px; border-radius: 50%; background: #e5e7eb; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

@media (max-width: 1024px) {
  .category-sidebar-layout { grid-template-columns: 1fr; gap: 30px; }
  .category-sidebar { position: relative; top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .popular-tags { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .category-layout { padding: 15px 5px; }
  .category-sidebar-layout { gap: 20px; }
  .category-sidebar { grid-template-columns: 1fr; gap: 15px; }
  .category-info-card { padding: 15px; }
  .category-title { font-size: 22px; }
  .category-icon { width: 50px; height: 50px; margin-bottom: 15px; font-size: 24px; }
  .stat-value { font-size: 20px; }
  .popular-tags { padding: 15px; }
  .post-card { flex-direction: column; }
  .post-card-thumbnail { width: 100%; min-width: unset; height: 0; padding-top: 66.67%; position: relative; }
  .post-card-thumbnail > a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .post-thumbnail-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
  .post-card-content { padding: 12px; }
  .post-card-meta { flex-wrap: wrap; gap: 8px; }
}

/* ===== 文章详情页 ===== */
.single-post { background: #fff; }
.post-header { padding: 30px 20px 20px; background: #1f2937; color: #fff; }
.post-header .category-badge { background: rgba(255,255,255,.2); color: #fff; border-radius: 20px; padding: 6px 16px; font-size: 14px; margin-right: 10px; }
.post-header .category-badge:hover { background: rgba(255,255,255,.3); }
.post-title { font-size: 36px; font-weight: 700; line-height: 1.3; margin: 0 0 15px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; opacity: .95; }
.post-meta > span { display: flex; align-items: center; gap: 6px; }
.post-meta .post-author { display: flex; align-items: center; gap: 8px; }
.post-meta .post-author img { border-radius: 50%; border: 2px solid rgba(255,255,255,.3); width: 32px; height: 32px; object-fit: cover; }
.post-meta .post-author .author-avatar-placeholder { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.post-content { padding: 30px 20px; position: relative; }

/* 文章目录 */
.post-toc { position: absolute; right: calc(50% - 700px); width: 240px; background: #f9fafb; border-radius: 12px; padding: 0; max-height: calc(100vh - 120px); z-index: 10; transition: all .3s ease; }
.post-toc.fixed { position: fixed; top: 100px; }
.post-toc.collapsed .toc-nav { display: none; }
.toc-nav::-webkit-scrollbar { width: 4px; }
.toc-nav::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.toc-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 2px solid #e5e7eb; cursor: pointer; }
.toc-title { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.toc-title h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1f2937; }
.toc-toggle { background: none; border: none; cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 16px; color: #1f2937; transition: all .3s; }
.toc-toggle:hover { background: #e5e7eb; }
.post-toc.collapsed .toc-toggle { transform: rotate(180deg); }
.toc-nav { font-size: 14px; padding: 15px 20px 20px; overflow-y: auto; max-height: calc(100vh - 200px); }
.toc-nav ul { list-style: none; padding: 0; margin: 0; }
.toc-nav li { list-style: none; margin-bottom: 0; }
.toc-nav a { display: block; padding: 6px 10px; color: #6b7280; text-decoration: none; border-radius: 6px; transition: all .3s; line-height: 1.5; }
.toc-nav a:hover { background: #e5e7eb; color: #1f2937; }
.toc-nav a.active { background: #1f2937; color: #fff; }
.toc-nav .toc-h2 { font-weight: 500; }
.toc-nav .toc-h3 { padding-left: 20px; font-size: 13px; }
.post-main-content { min-width: 0; }

/* 推荐账号区域 */
.recommended-accounts { background: linear-gradient(135deg, #f0f4ff 0%, #f9f0ff 100%); border: 2px solid #e0e7ff; border-radius: 10px; padding: 18px; margin-bottom: 25px; }
.recommended-header { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.recommended-header h2 { margin: 0 !important; font-size: 16px !important; font-weight: 600; color: #1f2937 !important; }
.recommended-list { display: flex; flex-direction: column; gap: 10px; }
.recommended-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 8px; text-decoration: none; transition: all .3s; border: 1px solid #e5e7eb; }
.recommended-item:hover { transform: translateX(5px); box-shadow: 0 4px 12px rgba(31,41,55,.15); border-color: #1f2937; }
.recommended-item-icon { width: 45px; height: 45px; flex-shrink: 0; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #1f2937; font-size: 24px; }
.recommended-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.recommended-item-content { flex: 1; min-width: 0; }
.recommended-item-content h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #1f2937; }
.recommended-item-meta { display: flex; align-items: center; gap: 10px; }
.recommended-price { font-size: 16px; font-weight: 700; color: #1f2937; }
.recommended-status { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.recommended-status.available { background: #d1fae5; color: #059669; }
.recommended-status.full { background: #fee2e2; color: #dc2626; }
.recommended-item > .arrow { color: #9ca3af; font-size: 18px; transition: all .3s; }
.recommended-item:hover > .arrow { color: #1f2937; transform: translateX(5px); }

/* 正文排版 */
.post-content p { line-height: 1.8; margin-bottom: 16px; font-size: 16px; color: #374151; }
.post-main-content h2 { font-size: 28px; font-weight: 600; margin: 30px 0 16px; color: #1f2937; }
.post-main-content h3 { font-size: 24px; font-weight: 600; margin: 25px 0 14px; color: #1f2937; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.post-content ul, .post-content ol { margin: 16px 0; padding-left: 20px; }
.post-content li { margin-bottom: 8px; line-height: 1.8; }
.post-content blockquote { border-left: 4px solid #1f2937; padding: 12px 18px; margin: 20px 0; background: #f9fafb; border-radius: 4px; font-style: italic; color: #6b7280; }
.post-content code { background: #f3f4f6; padding: 2px 8px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 14px; color: #dc2626; }
.post-content pre { background: #1f2937; color: #f9fafb; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 20px 0; }
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content video, .post-content iframe { max-width: 100%; border-radius: 8px; margin: 20px 0; }

/* 文章标签 */
.post-tags { padding: 20px; background: #f9fafb; border-top: 1px solid #e5e7eb; }
.post-tags .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-tags .tag-icon { color: #1f2937; font-size: 20px; }
.post-tags a { display: inline-block; padding: 6px 16px; background: #fff; color: #1f2937; border: 1px solid #1f2937; border-radius: 20px; text-decoration: none; font-size: 14px; transition: all .3s; }
.post-tags a:hover { background: #1f2937; color: #fff; }

/* 文章导航 */
.post-navigation { padding: 25px 20px; border-top: 1px solid #e5e7eb; }
.nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.nav-previous, .nav-next { padding: 18px; background: #f9fafb; border-radius: 12px; transition: all .3s; }
.nav-previous:hover, .nav-next:hover { background: #f3f4f6; transform: translateY(-2px); }
.nav-previous a, .nav-next a { text-decoration: none; color: inherit; display: block; }
.nav-next { text-align: right; }
.nav-subtitle { display: block; font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.nav-title { display: block; font-size: 16px; font-weight: 600; color: #1f2937; }

/* 评论区 */
.post-comments-section { padding: 30px 20px; background: #f9fafb; }
.comments-area { margin-top: 0; }
.comments-title { font-size: 24px; font-weight: 600; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #e5e7eb; display: flex; align-items: center; gap: 10px; color: #1f2937; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-body { display: flex; gap: 20px; padding: 25px; background: #f9fafb; border-radius: 12px; margin-bottom: 20px; transition: all .3s; }
.comment-body:hover { background: #f3f4f6; }
.comment-author-avatar img { border-radius: 50%; border: 2px solid #e5e7eb; width: 48px; height: 48px; object-fit: cover; }
.comment-author-avatar .avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.comment-content-wrap { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.comment-author-name { font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.comment-metadata { font-size: 13px; color: #9ca3af; }
.comment-text { line-height: 1.7; color: #374151; margin: 0; }
.comment-text p { margin-bottom: 10px; }
.no-comments { padding: 30px; text-align: center; background: #f9fafb; border-radius: 8px; color: #6b7280; }

/* 评论表单 */
.comment-form { background: #fff; padding: 30px; border-radius: 12px; border: 2px solid #e5e7eb; }
.comment-reply-title { font-size: 22px; font-weight: 600; margin-bottom: 20px; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.comment-form .form-group { margin-bottom: 20px; }
.comment-form label { display: block; margin-bottom: 8px; font-weight: 500; color: #374151; }
.comment-form .form-control { width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; transition: all .3s; box-sizing: border-box; }
.comment-form .form-control:focus { outline: none; border-color: #1f2937; box-shadow: 0 0 0 3px rgba(31,41,55,.1); }
.comment-form textarea.form-control { resize: vertical; min-height: 120px; font-family: inherit; }
.comment-form .btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: #1f2937; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .3s; }
.comment-form .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(31,41,55,.3); }

/* 返回顶部 */
.back-to-top { position: fixed; right: 40px; bottom: 40px; width: 50px; height: 50px; background: #1f2937; color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s ease; z-index: 100; box-shadow: 0 4px 12px rgba(31,41,55,.3); font-size: 22px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(31,41,55,.4); }

@media (max-width: 1500px) { .post-toc { right: 20px; } }
@media (max-width: 1200px) { .post-toc { position: static; width: 100%; max-width: 900px; max-height: 400px; margin: 0 auto 25px; border-radius: 10px; } .toc-nav { max-height: 320px; } }
@media (max-width: 768px) {
  .post-header { padding: 25px 5px 18px; }
  .post-title { font-size: 28px; }
  .post-meta { gap: 12px; font-size: 13px; }
  .post-content { padding: 25px 5px; }
  .post-toc { position: fixed; right: 20px; bottom: 20px; width: calc(100% - 40px); max-width: 400px; max-height: 60vh; margin: 0; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.2); z-index: 100; opacity: 0; visibility: hidden; transform: translateY(20px); }
  .post-toc.mobile-show { opacity: 1; visibility: visible; transform: translateY(0); }
  .toc-header { padding: 12px 15px; }
  .toc-nav { padding: 12px 15px 15px; max-height: calc(60vh - 80px); font-size: 13px; }
  .nav-links { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
  .back-to-top { right: 20px; bottom: 20px; width: 45px; height: 45px; }
  .recommended-accounts { padding: 15px; margin-bottom: 20px; }
  .recommended-item { padding: 10px; gap: 10px; }
  .recommended-item-icon { width: 40px; height: 40px; }
  .post-tags { padding: 20px 5px; }
  .post-navigation { padding: 25px 5px; }
  .post-comments-section { padding: 30px 5px; }
  .comment-body { flex-direction: column; gap: 15px; padding: 20px; }
  .comment-form { padding: 20px; }
}

/* ===== 精致首页横幅 ===== */
.hero-section {
  background: #1e293b;
  color: #fff;
  padding: 45px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0;
  color: #fff;
}
.hero-section p {
  font-size: 16px;
  opacity: 1;
  margin-bottom: 0;
  color: #e2e8f0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-actions .btn {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all .3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-actions .btn-primary {
  background: #f59e0b;
  color: #1f2937;
  box-shadow: 0 10px 25px rgba(245,158,11,.35);
}
.hero-actions .btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245,158,11,.45);
}
.hero-actions .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-3px);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 8px;
  display: block;
}
@media (max-width: 768px) {
  .hero-section { padding: 50px 0 45px; }
  .hero-section h1 { font-size: 26px; }
  .hero-section p { font-size: 14px; }
  .hero-stats { gap: 30px; }
  .hero-stat-value { font-size: 26px; }
}

/* ===== 会员中心：余额充值 / 联系我们 ===== */
.recharge-balance-banner {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.recharge-balance-banner .rb-label { font-size: 14px; opacity: .8; }
.recharge-balance-banner .rb-amount { font-size: 36px; font-weight: 800; }
.recharge-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.recharge-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.recharge-card h3 { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.recharge-card .rc-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; font-size: 16px; flex-shrink: 0; }
.recharge-card .rc-icon-yellow { background: #fef3c7; }
.recharge-card .rc-icon-blue { background: #dbeafe; }
.recharge-card .rc-desc { font-size: 13px; color: #6b7280; margin-bottom: 18px; }
.amount-btns { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.amount-btn { padding: 10px 18px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-weight: 600; color: #374151; cursor: pointer; transition: all .2s; }
.amount-btn:hover { border-color: #1f2937; }
.amount-btn.selected { border-color: #1f2937; color: #111827; background: #fff; box-shadow: 0 0 0 1px #1f2937; }
.pay-type-options { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.pay-type-option { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: all .2s; background: #fff; }
.pay-type-option input { display: none; }
.pay-type-option .radio-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d1d5db; flex-shrink: 0; position: relative; }
.pay-type-option .pay-icon { font-size: 20px; }
.pay-type-option .pay-name { font-size: 14px; font-weight: 500; color: #111827; }
.pay-type-option.selected { border-color: #1f2937; background: #fff7ed; }
.pay-type-option.selected .radio-dot { border-color: #2563eb; background: #2563eb; }
.pay-type-option.selected .radio-dot::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -60%) rotate(45deg); }
.card-buy-bar { background: #fff3cd; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.card-buy-bar .card-buy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 24px; background: transparent; color: #b8860b; border: 1px solid #d4a017; border-radius: 6px; font-size: 14px; font-weight: 400; text-decoration: none; transition: all .2s; }
.card-buy-bar .card-buy-btn .card-buy-icon { font-size: 16px; line-height: 1; }
.card-buy-bar .card-buy-btn:hover { background: #ffe9a8; }
.recharge-submit { width: 100%; padding: 12px; background: #1f2937; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .3s; }
.recharge-submit:hover { background: #111827; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31,41,55,.3); }
.ticket-status-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; }
.ticket-status-0 { background: #fff7e6; color: #fa8c16; }
.ticket-status-1 { background: #f6ffed; color: #52c41a; }
.ticket-status-2 { background: #f5f5f5; color: #999; }
.ticket-reply-box { background: #f0f9ff; border: 1px solid #bae7ff; border-radius: 8px; padding: 14px 16px; margin-top: 12px; }
.ticket-reply-box .reply-label { font-weight: 600; color: #0369a1; margin-bottom: 6px; font-size: 13px; }
.ticket-reply-box .reply-text { white-space: pre-wrap; line-height: 1.8; color: #374151; font-size: 14px; }
.contact-notice-bar { background: #f0f7ff; border-left: 3px solid #2b7cd3; border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.contact-notice-bar .cn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.contact-notice-bar .cn-icon { font-size: 18px; flex-shrink: 0; }
.contact-notice-bar .cn-title { font-weight: 700; color: #1d4ed8; font-size: 15px; }
.contact-notice-bar .cn-text { color: #2563eb; font-size: 14px; line-height: 1.7; }
.contact-submit { display: inline-flex; align-items: center; gap: 8px; padding: 12px 36px; background: #3478e8; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .3s; box-shadow: 0 2px 6px rgba(52,120,232,.3); }
.contact-submit:hover { background: #2b6cd4; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(52,120,232,.4); }
.ticket-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.ticket-item { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; }
.ticket-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ticket-item-head .ticket-no { font-weight: 600; color: #1f2937; font-size: 14px; }
.ticket-item-head .ticket-time { font-size: 12px; color: #9ca3af; }
.ticket-item-subject { font-size: 14px; color: #374151; margin-bottom: 6px; font-weight: 500; }
.ticket-item-content { font-size: 13px; color: #6b7280; line-height: 1.7; }
.recharge-record-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px 28px; margin-top: 24px; }
.recharge-record-card .rr-title { font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 16px; }
.rr-list { display: flex; flex-direction: column; }
.rr-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f3f4f6; }
.rr-item:last-child { border-bottom: none; }
.rr-left { min-width: 0; flex: 1; }
.rr-label { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rr-pay { color: #dc2626; }
.rr-recharge { color: #00a86b; }
.rr-status-paid { font-size: 12px; font-weight: 400; color: #9ca3af; margin-left: 2px; }
.rr-desc { font-size: 13px; color: #374151; margin-top: 4px; }
.rr-time { font-size: 12px; color: #9ca3af; margin-top: 3px; }
.rr-amount { font-size: 16px; font-weight: 700; flex-shrink: 0; }
.rr-minus { color: #dc2626; }
.rr-plus { color: #00a86b; }
@media (max-width: 768px) {
  .recharge-cards { grid-template-columns: 1fr; }
  .recharge-balance-banner { padding: 18px 20px; }
  .recharge-balance-banner .rb-amount { font-size: 26px; }
}

/* ============ 内容区块图片（固定尺寸 + 点击放大） ============ */
.content-images-zone { display: flex; flex-wrap: wrap; gap: 12px; }
.content-images-zone img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.content-images-zone img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
@media (max-width: 768px) {
  .content-images-zone img { width: 120px; height: 90px; }
}

/* 图片放大弹窗 */
.image-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.image-lightbox img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.image-lightbox-close {
  position: absolute; top: 20px; right: 26px;
  width: 40px; height: 40px; line-height: 40px;
  text-align: center; font-size: 26px; color: #fff;
  background: rgba(255,255,255,.15); border-radius: 50%;
  cursor: pointer; user-select: none;
}
.image-lightbox-close:hover { background: rgba(255,255,255,.3); }
