@charset "UTF-8";

/* 后台管理样式 */
:root {
  --admin-primary: #4f46e5;
  --admin-primary-dark: #4338ca;
  --admin-primary-light: #eef2ff;
  --admin-bg: #f8fafc;
  --admin-card: #ffffff;
  --admin-text: #111827;
  --admin-muted: #6b7280;
  --admin-border: #e2e8f0;
  --admin-radius: 0.625rem;
  --admin-shadow: 0 1px 3px rgba(0,0,0,0.06);
  --admin-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --admin-success: #10b981;
  --admin-danger: #ef4444;
  --admin-warning: #f59e0b;
  --admin-info: #3b82f6;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; color: var(--admin-text); }
body.admin-body { background: var(--admin-bg); }

/* 登录页 */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: var(--admin-text); padding: 1rem; }
.login-box { background: var(--admin-card); width: 100%; max-width: 380px; padding: 2.25rem; border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,0.18); }
.login-box h2 { margin: 0 0 1.5rem; text-align: center; font-size: 1.5rem; font-weight: 700; }
.login-box .form-group { margin-bottom: 1.25rem; }
.login-box label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: var(--admin-muted); }
.login-box input { width: 100%; padding: 0.65rem; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); font-size: 1rem; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.login-box input:focus { outline: none; border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
.login-box button { width: 100%; padding: 0.75rem; background: var(--admin-primary); color: #fff; border: 0; border-radius: var(--admin-radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.1s; }
.login-box button:hover { background: var(--admin-primary-dark); }
.login-box button:active { transform: translateY(1px); }
.login-error { color: #dc2626; text-align: center; margin-bottom: 1rem; font-size: 0.9rem; }

/* 后台布局 */
.admin-body { display: flex; flex-direction: column; min-height: 100vh; }
.admin-header { background: var(--admin-card); border-bottom: 1px solid var(--admin-border); padding: 0 1.5rem; position: sticky; top: 0; z-index: 50; box-shadow: var(--admin-shadow); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.admin-logo { font-size: 1.15rem; font-weight: 700; color: var(--admin-text); display: flex; align-items: center; gap: 0.5rem; }
.admin-logo::before { content: ""; display: inline-block; width: 24px; height: 24px; background: linear-gradient(135deg, var(--admin-primary), #7c3aed); border-radius: 0.4rem; }
.admin-top-nav { display: flex; gap: 1.25rem; align-items: center; }
.admin-top-nav span { color: var(--admin-muted); font-size: 0.9rem; }
.admin-top-nav a { color: var(--admin-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.admin-top-nav a:hover { color: var(--admin-primary); }
.admin-wrapper { display: flex; flex: 1; min-height: 0; }
.admin-sidebar { width: 240px; background: var(--admin-card); border-right: 1px solid var(--admin-border); padding: 1rem 0; overflow-y: auto; display: flex; flex-direction: column; }
.admin-menu { list-style: none; margin: 0; padding: 0; }
.admin-menu li { margin: 0; }
.admin-menu .menu-title { padding: 0.9rem 1.25rem 0.4rem; font-size: 0.7rem; font-weight: 600; color: var(--admin-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.admin-menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.25rem; margin: 0 0.75rem; color: var(--admin-text); border-radius: var(--admin-radius); font-size: 0.92rem; font-weight: 500; transition: background 0.15s, color 0.15s; }
.admin-menu a:hover { background: var(--admin-primary-light); color: var(--admin-primary); }
.admin-menu a.active { background: var(--admin-primary); color: #fff; box-shadow: var(--admin-shadow-md); }
.admin-content { flex: 1; padding: 1.75rem; overflow: auto; min-width: 0; }
.admin-footer { background: var(--admin-card); border-top: 1px solid var(--admin-border); text-align: center; padding: 0.85rem; color: var(--admin-muted); font-size: 0.8rem; }

/* 后台页面标题 */
.admin-page-title { margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 700; color: var(--admin-text); }
.admin-page-subtitle { margin: -0.75rem 0 1.25rem; color: var(--admin-muted); font-size: 0.9rem; }

/* 后台卡片 */
.admin-card { background: var(--admin-card); border-radius: var(--admin-radius); border: 1px solid var(--admin-border); box-shadow: var(--admin-shadow); margin-bottom: 1.25rem; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--admin-border); }
.admin-card-title { font-size: 1.05rem; font-weight: 600; margin: 0; }
.admin-card-title .count { display: inline-block; margin-left: 0.5rem; padding: 0.15rem 0.55rem; background: var(--admin-primary-light); color: var(--admin-primary); border-radius: 9999px; font-size: 0.75rem; }
.admin-card-body { padding: 1.35rem; }

/* 统计面板 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.75rem; }
.stat-card { background: var(--admin-card); border: 1px solid var(--admin-border); border-radius: var(--admin-radius); padding: 1.25rem; box-shadow: var(--admin-shadow); position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--admin-primary); }
.stat-card .number { font-size: 1.85rem; font-weight: 700; color: var(--admin-text); line-height: 1.2; }
.stat-card .label { color: var(--admin-muted); font-size: 0.85rem; margin-top: 0.35rem; font-weight: 500; }
.stat-card.success::before { background: var(--admin-success); }
.stat-card.danger::before { background: var(--admin-danger); }
.stat-card.warning::before { background: var(--admin-warning); }
.stat-card.info::before { background: var(--admin-info); }

/* 表格 */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 680px; }
.admin-table th, .admin-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--admin-border); }
.admin-table th { background: #f8fafc; font-weight: 600; font-size: 0.8rem; color: var(--admin-muted); text-transform: uppercase; letter-spacing: 0.4px; position: sticky; top: 0; z-index: 1; }
.admin-table tbody tr { transition: background 0.15s; }
.admin-table tbody tr:hover { background: #f8fafc; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); background: var(--admin-card); }
.table-wrap .admin-table { min-width: max-content; }

/* 表单 */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: var(--admin-text); }
.form-group .form-help { margin-top: 0.25rem; font-size: 0.8rem; color: var(--admin-muted); }
.form-group input[type="text"], .form-group input[type="password"], .form-group input[type="number"], .form-group input[type="datetime-local"], .form-group input[type="url"], .form-group input[type="email"], .form-group textarea, .form-group select { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); font-size: 0.95rem; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input[type="checkbox"], .form-group input[type="radio"] { width: auto; margin-right: 0.35rem; }
.form-inline { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.form-inline .form-group { flex: 1; min-width: 160px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.55rem 1.1rem; border-radius: var(--admin-radius); font-weight: 500; font-size: 0.85rem; cursor: pointer; border: 1px solid transparent; min-height: 38px; transition: background 0.15s, border-color 0.15s, transform 0.05s; line-height: 1; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--admin-primary); color: #fff; }
.btn-primary:hover { background: var(--admin-primary-dark); }
.btn-secondary { background: #fff; color: var(--admin-text); border-color: var(--admin-border); }
.btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-danger { background: var(--admin-danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--admin-success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-warning { background: var(--admin-warning); color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; min-height: 32px; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; align-items: flex-end; }
.filter-bar .form-group { flex: 0 0 180px; margin-bottom: 0; }
.filter-bar .form-group.search-box { flex: 1; min-width: 220px; }

/* 分页 */
.admin-pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.25rem; }
.admin-pagination a, .admin-pagination span { padding: 0.4rem 0.75rem; border-radius: var(--admin-radius); border: 1px solid var(--admin-border); background: #fff; color: var(--admin-text); font-size: 0.85rem; font-weight: 500; transition: all 0.15s; }
.admin-pagination a:hover { background: var(--admin-primary); color: #fff; border-color: var(--admin-primary); }
.admin-pagination span.current { background: var(--admin-primary); color: #fff; border-color: var(--admin-primary); }
.admin-pagination span.disabled { color: #cbd5e1; cursor: not-allowed; }

/* 消息 */
.alert { padding: 0.85rem 1rem; border-radius: var(--admin-radius); margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.6rem; border: 1px solid transparent; }
.alert::before { content: "•"; font-size: 1.5rem; line-height: 1; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* 图片预览 */
.image-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.image-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 0.4rem; border: 1px solid var(--admin-border); background: #f8fafc; transition: transform 0.15s; }
.image-preview img:hover { transform: scale(1.04); }

/* 编辑文章抽屉 */
.article-block { border: 1px solid var(--admin-border); border-radius: var(--admin-radius); padding: 1.25rem; margin-bottom: 1.25rem; background: var(--admin-card); box-shadow: var(--admin-shadow); }
.article-block h4 { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; }

/* 图表占位 */
.chart-placeholder { width: 100%; height: 280px; background: #f8fafc; border: 1px dashed var(--admin-border); border-radius: var(--admin-radius); display: flex; align-items: center; justify-content: center; color: var(--admin-muted); }

/* 标签云选择器 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud-admin { max-height: 180px; overflow-y: auto; padding: 0.75rem; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); background: var(--admin-card); }
.tag-check { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; border-radius: 9999px; border: 1px solid var(--admin-border); background: #f8fafc; color: var(--admin-text); font-size: 0.85rem; cursor: pointer; user-select: none; transition: background 0.15s, border-color 0.15s; }
.tag-check input[type="checkbox"] { margin: 0; cursor: pointer; }
.tag-check:hover { border-color: var(--admin-primary); background: #fff; }
.tag-check:has(input:checked) { background: var(--admin-primary); color: #fff; border-color: var(--admin-primary); }

/* 静态生成页面 */
.static-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.mode-links { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.mode-links .sep { color: var(--admin-muted); }
.mode-links a { color: var(--admin-primary); padding: 0.25rem 0.5rem; border-radius: var(--admin-radius); }
.mode-links a:hover { background: var(--admin-primary-light); text-decoration: none; }
.mode-links a.active { color: var(--admin-text); background: #e2e8f0; font-weight: 600; pointer-events: none; }
.static-gen-table { border: 1px solid var(--admin-border); border-radius: var(--admin-radius); overflow: hidden; }
.static-gen-table td { vertical-align: top; padding: 1rem; }
.static-gen-table tr:not(:last-child) td { border-bottom: 1px solid var(--admin-border); }
.static-gen-table .opt-cell { min-width: 260px; width: 30%; background: #f8fafc; }
.gen-options { display: flex; flex-direction: column; gap: 0.6rem; }
.gen-tip { color: var(--admin-danger); font-size: 0.8rem; margin: 0; }
.gen-options select[multiple] { min-width: 200px; max-width: 320px; padding: 0.35rem; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); background: #fff; }
.gen-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; font-size: 0.85rem; }
.gen-inline input[type="number"] { width: 70px; padding: 0.35rem; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); }
.progress-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
.progress-bar { width: 100%; height: 22px; background: #e0f2fe; border: 1px solid #7dd3fc; border-radius: 9999px; overflow: hidden; }
.progress-fill { width: 0%; height: 100%; background: #38bdf8; transition: width 0.2s ease; }
.progress-wrap.done .progress-bar { background: #dcfce7; border-color: #86efac; }
.progress-wrap.done .progress-fill { background: #22c55e; }
.progress-wrap.error .progress-bar { background: #fee2e2; border-color: #fca5a5; }
.progress-wrap.error .progress-fill { background: #ef4444; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--admin-muted); }
.text-muted { color: var(--admin-muted); }

/* 空状态 */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--admin-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; color: #cbd5e1; }
.empty-state p { margin: 0; font-size: 0.95rem; }

/* 响应式 */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-header-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 0; gap: 0.75rem; }
  .admin-content { padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-inline { flex-direction: column; align-items: stretch; }
  .filter-bar .form-group, .filter-bar .form-group.search-box { flex: 1 1 100%; }
  .admin-card-header { flex-direction: column; align-items: flex-start; }
  .static-gen-table, .static-gen-table tbody, .static-gen-table tr, .static-gen-table td, .static-gen-table th { display: block; width: 100%; }
  .static-gen-table thead { display: none; }
  .static-gen-table td { border-bottom: none; padding: 0.5rem 0.75rem; }
  .static-gen-table tr { border-bottom: 1px solid var(--admin-border); margin-bottom: 0.75rem; }
  .static-gen-table .opt-cell { width: 100%; background: transparent; }
  .gen-options select[multiple] { max-width: 100%; }
}

/* 全局样式 */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --radius: 0.75rem;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.6;
}
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1rem; }
a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; display: block; }

/* 头部 */
.site-header { background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: center; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo img { max-height: 36px; }
.logo-text { white-space: nowrap; }

.main-nav { display: flex; gap: 1.25rem; flex: 1; justify-content: center; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.search-form { display: flex; gap: 0.5rem; }
.search-form input { padding: 0.45rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; min-width: 160px; }
.search-form button { background: var(--primary); color: #fff; border: 0; border-radius: var(--radius); padding: 0.45rem 0.9rem; cursor: pointer; font-size: 0.9rem; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; background: transparent; border: 0; padding: 0.5rem; cursor: pointer; }
.mobile-menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* 广告：默认隐藏，桌面端显示 */
.ad-carousel, .ad-text-grid { display: none; }
@media (min-width: 769px) {
    .ad-carousel { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--border); }
    .ad-text-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin: 0.75rem 0; }
}
.ad-carousel .ad-item { display: none; padding: 0.75rem 1rem; text-align: center; }
.ad-carousel .ad-item.active { display: block; }
.ad-carousel .ad-item a { display: block; }
.ad-carousel .ad-item img { max-height: 90px; margin: 0 auto; }
.ad-carousel .ad-dots { text-align: center; padding: 0.5rem; }
.ad-carousel .ad-dots span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--border); margin: 0 3px; cursor: pointer; }
.ad-carousel .ad-dots span.active { background: var(--primary); }

/* 文字广告 2 行 6 列网格 */
.ad-text-item { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 0.25rem 0.5rem; border-radius: var(--radius); background: hsl(var(--ad-hue), 75%, 92%); color: hsl(var(--ad-hue), 80%, 35%); font-weight: 500; font-size: 0.85rem; text-decoration: none; text-align: center; border: 1px solid hsl(var(--ad-hue), 70%, 80%); transition: transform 0.15s, box-shadow 0.15s; }
.ad-text-item:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.ad-text-placeholder { cursor: default; opacity: 0.85; }
@media (max-width: 768px) {
    .ad-text-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 主体 */
.site-main { min-height: 50vh; padding: 1.5rem 0 3rem; }

/* 图片列表 */
.page-title { font-size: 1.5rem; margin-bottom: 1rem; }
.section-title { font-size: 1.1rem; margin: 1.5rem 0 1rem; font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card-image { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--border); }
.card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.card-image img.loaded,
.card-image img:not(.lazy) { opacity: 1; }
.card-image .no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted-foreground); font-size: 12px; }
.card-type { position: absolute; top: 0.5rem; left: 0.5rem; display: inline-flex; align-items: center; padding: 0.2rem 0.5rem; border-radius: 9999px; color: #fff; font-size: 0.7rem; font-weight: 500; line-height: 1; z-index: 5; }
.card-type-phone { background: #2563eb; }
.card-type-pc { background: #9333ea; }
.card-body { padding: 0.75rem; }
.card-title { font-size: 0.9rem; font-weight: 500; color: var(--text); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-muted); }
.card-count { display: inline-flex; align-items: center; padding: 0.15rem 0.45rem; background: var(--primary); color: #fff; border-radius: 9999px; font-weight: 500; }
.card-date { display: inline-flex; align-items: center; gap: 0.2rem; }
.card-date::before { content: ""; display: inline-block; width: 12px; height: 12px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center / contain; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center / contain; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 0.4rem 0.75rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card-bg); color: var(--text); }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination span.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination span.disabled { color: var(--text-muted); }

/* 落地页 */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 1.5rem; align-items: start; }

/* iPhone 样机 */
.iphone-mockups { display: flex; justify-content: center; gap: 1rem; padding: 1rem; background: #f3f4f6; border-radius: var(--radius); }
.iphone { width: 170px; aspect-ratio: 1/2; background: #111; border-radius: 2rem; padding: 0.5rem; box-shadow: 0 12px 24px rgba(0,0,0,0.18); position: relative; display: flex; flex-direction: column; }
.iphone .dynamic-island { position: absolute; top: 0.85rem; left: 50%; transform: translateX(-50%); width: 48px; height: 14px; background: #000; border-radius: 10px; z-index: 3; }
.iphone .status-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0.65rem; color: #fff; font-size: 0.7rem; z-index: 2; }
.iphone .screen { flex: 1; border-radius: 1.5rem; overflow: hidden; position: relative; background: #000; }
.iphone .screen img { width: 100%; height: 100%; object-fit: cover; }
.iphone .lock-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; height: 100%; text-align: center; background: linear-gradient(160deg, #1e3a8a, #7c3aed); }
.iphone .lock-time { font-size: 2.4rem; font-weight: 300; letter-spacing: 2px; }
.iphone .lock-date { font-size: 0.85rem; margin-top: 0.25rem; }
.iphone .home-bar { height: 4px; width: 34%; background: rgba(255,255,255,0.85); border-radius: 2px; margin: 0.4rem auto; }

/* 缩略图列表 */
.thumbnail-wrap { position: relative; margin-top: 1rem; }
.thumbnail-list { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.5rem 0; scroll-behavior: smooth; }
.thumbnail-list::-webkit-scrollbar { height: 6px; }
.thumbnail-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.thumbnail-item { flex: 0 0 80px; width: 80px; aspect-ratio: 3/4; border-radius: 0.5rem; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--border); }
.thumbnail-item.active { border-color: var(--primary); }
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: 1px solid var(--border); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; z-index: 2; }
.thumb-arrow.prev { left: -12px; }
.thumb-arrow.next { right: -12px; }

/* 下载按钮 */
.download-buttons { display: flex; gap: 0.75rem; margin: 1.25rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.65rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 0; min-height: 44px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #f3f4f6; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }

.meta-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.meta-table th, .meta-table td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.meta-table th { color: var(--text-muted); width: 100px; font-weight: 500; }

.description-box { background: #f3f4f6; border-radius: var(--radius); padding: 1rem; margin-top: 1rem; line-height: 1.8; }

/* 相关推荐 */
.recommend-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }

/* 高亮 */
.highlight { background: #fef08a; color: var(--text); padding: 0 2px; border-radius: 2px; }

/* 友链页 */
.links-page { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.links-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.link-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; transition: box-shadow 0.15s; }
.link-card:hover { box-shadow: var(--shadow); }
.link-card h4 { margin: 0 0 0.5rem; font-size: 1rem; }
.link-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* 底部 */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem; }
.friend-links h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.friend-links-list { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-bottom: 1rem; }
.friend-links-list a { color: var(--text-muted); font-size: 0.9rem; }
.friend-links-list a:hover { color: var(--primary); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.copyright p { margin: 0.25rem 0; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; justify-content: flex-start; padding: 1.5rem; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); }
.tag-item { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.9rem; border-radius: 9999px; background: #eff6ff; color: var(--primary); font-weight: 500; transition: background 0.15s, transform 0.15s; }
.tag-item:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.tag-count { font-size: 0.75em; opacity: 0.8; }
.tag-sm { font-size: 0.85rem; }
.tag-md { font-size: 1rem; }
.tag-lg { font-size: 1.25rem; }
.tag-xl { font-size: 1.5rem; }

/* 文章页分类/标签链接 */
.article-category-link { color: var(--primary); font-weight: 500; }
.article-category-link:hover { text-decoration: underline; }
.article-tag-link { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 9999px; background: #eff6ff; color: var(--primary); font-size: 0.85rem; }
.article-tag-link:hover { background: var(--primary); color: #fff; }

/* 响应式 */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
    .recommend-grid { grid-template-columns: repeat(4, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
}
/* 移动端导航：直接显示为横向可滑动一行 */
.header-nav, .main-nav-mobile { display: none; }
@media (max-width: 768px) {
    .mobile-menu-toggle { display: none; }
    .main-nav { display: none; }
    .search-form { display: none; }
    .header-inner { justify-content: space-between; }

    .header-nav { display: block; width: 100%; background: var(--card-bg); border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .header-nav::-webkit-scrollbar { display: none; }
    .main-nav-mobile { display: flex; gap: 0; white-space: nowrap; }
    .main-nav-mobile a { display: inline-block; padding: 0.75rem 1rem; color: var(--text); font-size: 0.9rem; font-weight: 500; border-bottom: 2px solid transparent; }
    .main-nav-mobile a:hover { color: var(--primary); border-bottom-color: var(--primary); }

    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .recommend-grid { grid-template-columns: repeat(2, 1fr); }
    .links-list { grid-template-columns: 1fr; }
    .iphone { width: 130px; }
    .iphone .lock-time { font-size: 1.8rem; }
    .download-buttons { flex-direction: column; }
}

/* 文章落地页样式 */
.detail-landing .device-shadow { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35); }
.dark .detail-landing .device-shadow { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }

.detail-landing .mockup-transition { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

.detail-landing .scroll-hide { -ms-overflow-style: none; scrollbar-width: none; }
.detail-landing .scroll-hide::-webkit-scrollbar { display: none; }

.detail-landing .slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: 0;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 99;
}
.dark .detail-landing .slide-arrow { background: #374151; }
.detail-landing .slide-arrow:hover { background: #ec4899; color: #fff; }
.detail-landing .arrow-left { left: -0.75rem; }
.detail-landing .arrow-right { right: -0.75rem; }

.detail-landing .text-shadow { text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* 高级感下载按钮 */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }

.dl-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.dl-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 55%);
  pointer-events: none;
}

.dl-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.dl-btn-quark {
  background: linear-gradient(135deg, #3a1b2e 0%, #221029 100%);
  box-shadow: 0 6px 20px rgba(236,72,153,0.28);
}
.dl-btn-quark:hover { box-shadow: 0 10px 28px rgba(236,72,153,0.36); }
.dl-btn-quark i { color: #f9a8d4; font-size: 1.1rem; }

.dl-btn-ct {
  background: linear-gradient(135deg, #172033 0%, #0d1520 100%);
  box-shadow: 0 6px 20px rgba(56,189,248,0.22);
}
.dl-btn-ct:hover { box-shadow: 0 10px 28px rgba(56,189,248,0.32); }
.dl-btn-ct i { color: #7dd3fc; font-size: 1.1rem; }

/* 小游戏入口 */
.game-entry { margin-bottom: 1.25rem; }
.game-entry-title { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 600; }
.game-entry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.game-entry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.25rem;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-entry-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.game-entry-btn i { font-size: 1rem; }
.game-entry-btn.puzzle { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.game-entry-btn.memory { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.game-entry-btn.guess { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.game-entry-btn.effects { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.game-entry-btn.image-tools { background: linear-gradient(135deg, #10b981, #06b6d4); }
.game-entry-btn.match { background: linear-gradient(135deg, #f472b6, #a855f7); }

@media (max-width: 480px) {
  .game-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .game-entry-btn {
    padding: 0.55rem 0.25rem;
    font-size: 0.75rem;
  }
  .game-entry-btn i {
    font-size: 0.9rem;
  }
}
@media (max-width: 360px) {
  .dl-grid { gap: 0.5rem; }
  .dl-btn { padding: 0.75rem 0.5rem; font-size: 0.85rem; }
  .dl-btn i { font-size: 1rem; }
}

/* 电脑样机（单显示器，整体尺寸放大 2 倍） */
.pc-mockup { display: flex; flex-direction: column; align-items: center; }
.pc-monitor { position: relative; border-radius: 1.5rem; padding: 1rem; background: #1f2937; box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.pc-screen { position: relative; width: 400px; height: 224px; border-radius: 1rem; overflow: hidden; background: #000; }
@media (min-width: 640px) { .pc-screen { width: 680px; height: 382px; } }
@media (min-width: 768px) { .pc-screen { width: 840px; height: 472px; } }
.pc-bezel-top { position: absolute; top: 0.5rem; left: 50%; transform: translateX(-50%); width: 1rem; height: 1rem; background: #374151; border-radius: 9999px; z-index: 10; }
.pc-taskbar { position: absolute; bottom: 0; left: 0; right: 0; height: 3rem; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; color: #fff; font-size: 1.2rem; z-index: 10; }
.pc-taskbar .task-icons { display: flex; align-items: center; gap: 0.5rem; }
.pc-taskbar .task-icons i { font-size: 1.2rem; }
.pc-taskbar .task-time { font-size: 1.2rem; }
.pc-stand { width: 5rem; height: 1.5rem; background: #374151; border-radius: 0 0 0.5rem 0.5rem; margin-top: -0.5rem; position: relative; z-index: 1; }
.pc-stand::after { content: ''; position: absolute; bottom: -0.7rem; left: 50%; transform: translateX(-50%); width: 8rem; height: 0.7rem; background: #1f2937; border-radius: 0.5rem; }

/* 素材信息与图片介绍卡片 */
.detail-card-group { display: flex; flex-direction: column; gap: 2px; }

.detail-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.dark .detail-card { background: #1f2937; border-color: rgba(255,255,255,0.06); }

.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 1rem 1rem 0 0;
}
.info-card::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.desc-card::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.info-rows { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.info-row { display: flex; align-items: baseline; gap: 0.25rem; }
.info-label { color: #9ca3af; white-space: nowrap; }
.info-value { color: #111827; word-break: break-word; }
.dark .info-value { color: #f3f4f6; }
.info-row-decorated { justify-content: flex-start; flex-wrap: wrap; }
.info-row-decorated .info-sep { color: #ec4899; margin: 0 0.25rem; font-weight: 700; }
.info-row-decorated .info-label { color: #6b7280; }
.info-row-number .info-label { color: #ef4444; font-weight: 700; }
.info-row-number .info-value { font-weight: 700; }

.desc-title {
  font-weight: 600;
  color: #ec4899;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.desc-title i { font-size: 1rem; }
.desc-text {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.65;
  text-wrap: pretty;
}
.dark .desc-text { color: #d1d5db; }

/* Tailwind 工具类替代 —— 纯 CSS，针对 detail.asp 使用到的类 */

[class~="-translate-x-1/2"] { transform:translateX(-50%); }
[class~="absolute"] { position:absolute; }
[class~="aspect-[1/2]"] { aspect-ratio:1/2; }
[class~="bg-black"] { background-color:#000000; }
[class~="bg-gray-50"] { background-color:#f9fafb; }
[class~="bg-gray-800"] { background-color:#1f2937; }
[class~="bg-gray-900"] { background-color:#111827; }
[class~="bg-white/70"] { background-color:rgba(255,255,255,0.70); }
[class~="border-2"] { border-width:2px;border-style:solid; }
[class~="border-primary"] { border-color:#ec4899; }
[class~="border-transparent"] { border-color:transparent; }
[class~="bottom-2"] { bottom:0.5rem; }
[class~="cursor-pointer"] { cursor:pointer; }
.detail-landing.dark[class~="dark:bg-gray-900"], .detail-landing.dark [class~="dark:bg-gray-900"] { background-color:#111827; }
.detail-landing.dark[class~="dark:text-gray-100"], .detail-landing.dark [class~="dark:text-gray-100"] { color:#f3f4f6; }
.detail-landing.dark[class~="dark:text-gray-200"], .detail-landing.dark [class~="dark:text-gray-200"] { color:#e5e7eb; }
[class~="flex"] { display:flex; }
[class~="flex-1"] { flex:1 1 0%; }
[class~="flex-col"] { flex-direction:column; }
[class~="flex-row"] { flex-direction:row; }
[class~="font-bold"] { font-weight:700; }
[class~="font-inter"] { font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
[class~="font-light"] { font-weight:300; }
[class~="gap-1.5"] { gap:0.375rem; }
[class~="gap-2"] { gap:0.5rem; }
[class~="gap-4"] { gap:1rem; }
[class~="h-0.5"] { height:0.125rem; }
[class~="h-1"] { height:0.25rem; }
[class~="h-1.5"] { height:0.375rem; }
[class~="h-16"] { height:4rem; }
[class~="h-4"] { height:1rem; }
[class~="h-full"] { height:100%; }
[class~="hover:border-primary"]:hover { border-color:#ec4899; }
[class~="inset-0"] { top:0;right:0;bottom:0;left:0; }
[class~="items-center"] { align-items:center; }
[class~="items-end"] { align-items:end; }
[class~="items-start"] { align-items:start; }
[class~="justify-center"] { justify-content:center; }
[class~="justify-start"] { justify-content:start; }
[class~="left-1/2"] { left:50%; }
[class~="left-4"] { left:1rem; }
[class~="max-w-lg"] { max-width:32rem; }
[class~="mb-2"] { margin-bottom:0.5rem; }
[class~="mb-4"] { margin-bottom:1rem; }
[class~="mb-6"] { margin-bottom:1.5rem; }
[class~="ml-2"] { margin-left:0.5rem; }
[class~="mt-16"] { margin-top:4rem; }
[class~="mt-2"] { margin-top:0.5rem; }
[class~="mt-6"] { margin-top:1.5rem; }
[class~="mx-auto"] { margin-left:auto;margin-right:auto; }
[class~="object-cover"] { object-fit:cover; }
[class~="opacity-0"] { opacity:0.0; }
[class~="opacity-100"] { opacity:1.0; }
[class~="overflow-hidden"] { overflow:hidden; }
[class~="overflow-x-auto"] { overflow-x:auto; }
[class~="p-1"] { padding:0.25rem; }
[class~="pl-2"] { padding-left:0.5rem; }
[class~="pr-2"] { padding-right:0.5rem; }
[class~="pt-16"] { padding-top:4rem; }
[class~="px-10"] { padding-left:2.5rem;padding-right:2.5rem; }
[class~="px-4"] { padding-left:1rem;padding-right:1rem; }
[class~="py-2"] { padding-top:0.5rem;padding-bottom:0.5rem; }
[class~="relative"] { position:relative; }
[class~="right-2"] { right:0.5rem; }
[class~="right-4"] { right:1rem; }
[class~="rounded-3xl"] { border-radius:1.5rem; }
[class~="rounded-[20px]"] { border-radius:20px; }
[class~="rounded-full"] { border-radius:9999px; }
[class~="rounded-lg"] { border-radius:0.5rem; }
[class~="scroll-smooth"] { scroll-behavior:smooth; }
[class~="shrink-0"] { flex-shrink:0; }
[class~="text-2xl"] { font-size:1.5rem; }
[class~="text-3xl"] { font-size:1.875rem; }
[class~="text-gray-800"] { color:#1f2937; }
[class~="text-white"] { color:#ffffff; }
[class~="text-white/60"] { color:rgba(255,255,255,0.60); }
[class~="text-xl"] { font-size:1.25rem; }
[class~="text-xs"] { font-size:0.75rem; }
[class~="top-2"] { top:0.5rem; }
[class~="top-3"] { top:0.75rem; }
[class~="tracking-wider"] { letter-spacing:0.05em; }
[class~="w-1.5"] { width:0.375rem; }
[class~="w-12"] { width:3rem; }
[class~="w-16"] { width:4rem; }
[class~="w-8"] { width:2rem; }
[class~="w-[150px]"] { width:150px; }
[class~="w-full"] { width:100%; }
[class~="z-10"] { z-index:10; }
[class~="z-20"] { z-index:20; }
@media (min-width: 640px) {
  [class~="sm:gap-4"] { gap:1rem; }
  [class~="sm:h-2"] { height:0.5rem; }
  [class~="sm:h-28"] { height:7rem; }
  [class~="sm:h-6"] { height:1.5rem; }
  [class~="sm:mb-4"] { margin-bottom:1rem; }
  [class~="sm:ml-3"] { margin-left:0.75rem; }
  [class~="sm:mt-3"] { margin-top:0.75rem; }
  [class~="sm:pt-28"] { padding-top:7rem; }
  [class~="sm:right-3"] { right:0.75rem; }
  [class~="sm:text-2xl"] { font-size:1.5rem; }
  [class~="sm:text-5xl"] { font-size:3rem; }
  [class~="sm:text-base"] { font-size:1rem; }
  [class~="sm:w-2"] { width:0.5rem; }
  [class~="sm:w-20"] { width:5rem; }
  [class~="sm:w-28"] { width:7rem; }
  [class~="sm:w-[260px]"] { width:260px; }
}
@media (min-width: 768px) {
  [class~="md:gap-8"] { gap:2rem; }
  [class~="md:pt-36"] { padding-top:9rem; }
  [class~="md:text-6xl"] { font-size:3.75rem; }
  [class~="md:text-lg"] { font-size:1.125rem; }
  [class~="md:w-[400px]"] { width:400px; }
}
@media (min-width: 1280px) {
  [class~="xl:flex-row"] { flex-direction:row; }
  [class~="xl:gap-8"] { gap:2rem; }
}
