:root {
    --primary: #c52b2b; --primary-dark: #a00; --primary-light: #fff5f5;
    --bg: #f4f5f7; --bg-card: #fff; --text: #222; --text-secondary: #555;
    --text-muted: #999; --border: #ebebeb; --border-light: #f2f2f2;
    --shadow: 0 1px 3px rgba(0,0,0,0.05); --radius: 0;
    --header-h: 52px; --tab-h: 42px;
    --max-width: 100%;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background:var(--bg); color:var(--text); line-height:1.5; font-size:15px; -webkit-font-smoothing:antialiased; }
a { color:var(--text); text-decoration:none; }
a:hover { color:var(--primary); }
img { max-width:100%; vertical-align:middle; }
.container { max-width:var(--max-width); margin:0 auto; padding:0 12px; }
.text-muted { color:var(--text-muted); font-size:12px; }
.empty-state { text-align:center; padding:60px 20px; color:var(--text-muted); font-size:14px; }

/* ===== HEADER ===== */
.site-header { position:sticky; top:0; z-index:100; background:#fff; }
.header-top { height:var(--header-h); display:flex; align-items:center; padding:0 12px; border-bottom:1px solid var(--border); }
.header-top-inner { display:flex; align-items:center; width:100%; gap:8px; }
.site-logo { font-size:20px; font-weight:900; color:#222 !important; white-space:nowrap; line-height:1; letter-spacing:1px; text-decoration:none !important; }
.logo-accent { color:var(--primary); font-style:normal; }
.logo-desc { font-weight:300; color:var(--text-muted); font-size:12px; letter-spacing:0; }
.header-search { flex:1; max-width:300px; }
.header-search form { position:relative; }
.header-search .search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); font-size:15px; color:#bbb; pointer-events:none; line-height:1; }
.header-search .search-input {
    width:100%; height:36px; padding:0 14px 0 38px;
    border:1px solid #e8e8e8; border-radius:18px;
    font-size:13px; color:#333; outline:none;
    background:#f5f5f5; transition:all 0.25s;
}
.header-search .search-input::placeholder { color:#bbb; }
.header-search .search-input:focus {
    border-color:var(--primary); background:#fff;
    box-shadow:0 2px 8px rgba(197,43,43,0.08);
}
.header-right { display:flex; align-items:center; gap:8px; margin-left:auto; }
.header-btn { padding:6px 14px; border-radius:4px; font-size:13px; color:var(--text-secondary); }
.header-btn-reg { background:var(--primary); color:#fff !important; }
.btn-publish { padding:5px 12px; border-radius:4px; background:var(--primary); color:#fff !important; font-size:12px; }
.user-dropdown { position:relative; cursor:pointer; }
.user-trigger { padding:4px; font-size:13px; color:var(--text-secondary); display:flex; align-items:center; gap:2px; user-select:none; }
.user-avatar-sm { width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#667eea,#764ba2); display:flex; align-items:center; justify-content:center; color:#fff; font-size:13px; font-weight:600; flex-shrink:0; }
.dropdown-menu { display:none; position:absolute; right:0; top:100%; background:#fff; border-radius:6px; box-shadow:0 4px 16px rgba(0,0,0,0.12); min-width:130px; z-index:50; border:none; overflow:hidden; }
.dropdown-menu.show { display:block; }
.dropdown-menu a { display:block; padding:10px 16px; font-size:13px; color:var(--text-secondary); border-bottom:1px solid var(--border-light); }
.dropdown-menu a:last-child { border-bottom:none; }
.dropdown-menu a:hover { background:var(--primary-light); color:var(--primary); }

/* Hamburger */



/* ===== TAB NAV ===== */
.header-tabs { height:var(--tab-h); background:#fff; border-bottom:1px solid var(--border); overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; }
.header-tabs::-webkit-scrollbar { display:none; }
.tabs-inner { display:flex; height:100%; align-items:center; padding:0 8px; gap:0; white-space:nowrap; }
.tab-link { display:inline-flex; align-items:center; height:100%; padding:0 14px; font-size:14px; color:var(--text-secondary); border-bottom:2px solid transparent; transition:all 0.15s; flex-shrink:0; }
.tab-link.active { color:var(--primary); border-bottom-color:var(--primary); font-weight:600; }
.tab-link:hover { color:var(--primary); }

/* ===== HERO CAROUSEL ===== */
.hero-carousel { position:relative; margin:0; background:#fff; overflow:hidden; }
.hero-slide { display:block; position:relative; width:100%; height:200px; overflow:hidden; }
.hero-slide img { width:100%; height:100%; object-fit:cover; }
.hero-slide-overlay { position:absolute; bottom:0; left:0; right:0; padding:16px; background:linear-gradient(transparent,rgba(0,0,0,0.7)); }
.hero-slide-title { color:#fff; font-size:16px; font-weight:600; line-height:1.4; text-shadow:0 1px 3px rgba(0,0,0,0.3); }
.hero-slide-meta { color:rgba(255,255,255,0.8); font-size:11px; margin-top:4px; display:flex; gap:8px; }
.hero-dots { position:absolute; bottom:8px; right:12px; display:flex; gap:5px; }
.hero-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.5); cursor:pointer; }
.hero-dot.active { background:#fff; width:18px; border-radius:3px; }

/* ===== CONTENT ===== */
.main-content { min-height:calc(100vh - var(--header-h) - var(--tab-h)); padding:0 0 16px; }
.section-header { display:flex; align-items:center; justify-content:space-between; padding:14px 12px 8px; }
.section-title { font-size:17px; font-weight:700; }

/* ===== NEWS FEED ===== */
.news-feed { display:flex; flex-direction:column; }
.news-card { display:flex; gap:12px; padding:14px 12px; background:#fff; border-bottom:1px solid var(--border-light); transition:background 0.15s; text-decoration:none; color:inherit; }
.news-card:hover { background:var(--border-light); }
.news-card:active { background:var(--border-light); }
.news-card-img { display:block; width:120px; height:80px; flex-shrink:0; border-radius:4px; overflow:hidden; position:relative; background:var(--bg); }
.news-card-img img { width:100%; height:100%; object-fit:cover; pointer-events:none; }
.card-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#f0f0f0,#e0e0e0); pointer-events:none; }
.card-placeholder-icon { font-size:28px; opacity:.4; }
.news-card-body { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:space-between; }
.news-card-title { font-size:15px; font-weight:500; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-card-meta { display:flex; align-items:center; gap:10px; font-size:11px; color:var(--text-muted); margin-top:6px; flex-wrap:wrap; }
.news-card-meta .source { color:var(--primary); font-weight:500; }
.news-card-meta .tag { padding:1px 5px; background:var(--primary-light); color:var(--primary); border-radius:2px; font-size:10px; }

/* Video badge */
.vid-badge { position:absolute; left:4px; bottom:4px; padding:1px 6px; background:rgba(0,0,0,0.7); color:#fff; font-size:10px; border-radius:2px; display:flex; align-items:center; gap:2px; pointer-events:none; }

/* ===== SIDEBAR (hidden on mobile, cards on desktop) ===== */
.content-layout { display:block; }
.content-sidebar { display:none; }
.load-more { text-align:center; padding:20px 0; }
.load-more-btn { padding:8px 40px; background:#fff; border:1px solid var(--border); border-radius:4px; font-size:13px; color:var(--text-muted); cursor:pointer; }
.load-more-btn:hover { border-color:var(--primary); color:var(--primary); }

/* ===== BOTTOM ACTIONS ===== */
.bottom-bar { position:fixed; bottom:20px; right:20px; z-index:50; display:flex; flex-direction:column; gap:8px; }
.go-top-btn { width:38px; height:38px; border-radius:50%; background:#fff; border:none; box-shadow:0 2px 8px rgba(0,0,0,0.15); cursor:pointer; font-size:18px; display:flex; align-items:center; justify-content:center; color:var(--text-secondary); opacity:0; transform:translateY(20px); transition:all 0.3s; pointer-events:none; }
.go-top-btn.show { opacity:1; transform:translateY(0); pointer-events:auto; }

/* ===== POST DETAIL ===== */
.post-detail { background:#fff; }
.detail-wrap { padding:20px 16px 0; }
.detail-breadcrumb { font-size:12px; color:var(--primary); margin-bottom:14px; }
.detail-breadcrumb a { color:var(--primary); }
.detail-title { font-size:22px; font-weight:700; line-height:1.35; margin-bottom:14px; letter-spacing:-0.01em; color:#222; }
.detail-byline { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; color:var(--text-muted); margin-bottom:4px; }
.detail-author { color:var(--text-secondary); font-weight:500; }
.detail-byline-sep { color:var(--border); }
.detail-source { color:var(--primary); }
.detail-time { color:var(--text-muted); }
.detail-cover { width:100%; display:block; margin:16px 0; border-radius:8px; overflow:hidden; }
.detail-cover img { width:100%; max-height:220px; object-fit:cover; display:block; }
.detail-cover figcaption { font-size:12px; color:var(--text-muted); padding:6px 0 0; line-height:1.4; }
.detail-content { font-size:16px; line-height:1.85; color:#333; }
.detail-content p { margin-bottom:18px; }
/* 确保正文图片在手机和PC都不超出容器 */
.detail-content img {
  max-width:100%;
  height:auto;
  margin:12px 0;
  display:block;
  border-radius:8px;
}
.detail-content ul, .detail-content ol { margin:14px 0; padding-left:20px; }
.detail-content li { margin-bottom:8px; }
.detail-content blockquote { margin:18px 0; padding:14px 18px; background:#f9f9f9; border-left:4px solid var(--primary); color:var(--text-secondary); font-size:15px; }
.detail-content a { color:var(--primary); text-decoration:underline; }
.detail-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; margin:16px 0; }
.detail-grid-item { aspect-ratio:1; overflow:hidden; cursor:pointer; background:#f5f5f5; }
.detail-grid-item img { width:100%; height:100%; object-fit:cover; }
.detail-video { margin:16px 0; }
.detail-video video { width:100%; max-height:400px; background:#000; display:block; }
.detail-tags { padding:20px 0 0; display:flex; gap:8px; flex-wrap:wrap; border-top:1px solid var(--border-light); }
.detail-tag { padding:4px 10px; background:var(--bg); border-radius:4px; font-size:12px; color:var(--text-secondary); }
.detail-actions { display:flex; align-items:center; justify-content:space-between; padding:16px 0; border-bottom:1px solid var(--border-light); }
.detail-actions-left { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted); }
.detail-actions-left span { display:flex; align-items:center; gap:4px; }
.detail-actions-right { display:flex; align-items:center; gap:8px; }
.detail-like-btn { display:inline-flex; align-items:center; gap:4px; background:none; border:none; cursor:pointer; font-size:13px; color:var(--text-secondary); padding:6px 14px; border-radius:4px; transition:all 0.15s; }
.detail-like-btn:hover { background:var(--primary-light); color:var(--primary); }
.detail-like-btn.liked { color:var(--primary); }
.detail-poster-btn { padding:6px 14px; font-size:13px; border:1px solid var(--primary); color:var(--primary); background:#fff; border-radius:4px; cursor:pointer; transition:all 0.15s; }
.detail-poster-btn:active { background:var(--primary-light); }
.poster-overlay { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; position:fixed; inset:0; background:rgba(0,0,0,.75); z-index:1000; padding:20px; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.poster-style-bar { display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; justify-content:center; }
.poster-style-opt { padding:5px 12px; font-size:12px; border:2px solid #ddd; border-radius:20px; background:#fff; cursor:pointer; transition:all .2s; color:#333; }
.poster-style-opt.active { border-color:var(--c, #c52b2b); color:var(--c, #c52b2b); font-weight:600; background:#fff; }
.poster-style-opt:hover { border-color:var(--c, #c52b2b); opacity:.8; }
.poster-layout-bar { display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; justify-content:center; }
.poster-layout-opt { padding:5px 12px; font-size:12px; border:2px solid #ddd; border-radius:20px; background:#fff; cursor:pointer; transition:all .2s; color:#333; }
.poster-layout-opt.active { border-color:#333; color:#333; font-weight:600; background:#f5f5f5; }
.poster-layout-opt:hover { border-color:#333; opacity:.8; }
.poster-card { width:375px; max-width:100%; background:#fff; overflow:hidden; box-shadow:0 8px 40px rgba(0,0,0,.4); border-radius:0; flex-shrink:0; }
.poster-hero { position:relative; width:100%; min-height:280px; max-height:480px; background:#111; overflow:hidden; }
.poster-hero-img { width:100%; display:block; max-height:480px; }
.poster-hero-img.poster-img-contain { width:100%; height:480px; object-fit:contain; background:#111; }
.poster-hero-img.poster-img-cover { width:100%; height:480px; object-fit:cover; }
.poster-hero-placeholder { width:100%; height:480px; background:linear-gradient(135deg,#c52b2b,#333); }
.poster-hero-overlay { position:absolute; bottom:0; left:0; right:0; height:60%; background:linear-gradient(transparent,rgba(0,0,0,.75)); pointer-events:none; }
.poster-hero-content { position:absolute; bottom:0; left:0; right:0; padding:24px 20px; }
.poster-hero-title { color:#fff; font-size:22px; font-weight:700; line-height:1.45; margin:0; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.poster-bottom { display:flex; align-items:center; justify-content:space-between; padding:18px 20px 14px; }
.poster-info { flex:1; min-width:0; }
.poster-author { font-size:15px; font-weight:600; color:#222; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.poster-author-light { font-size:15px; font-weight:600; color:#fff; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.poster-date { font-size:12px; color:#999; }
.poster-date-light { font-size:12px; color:rgba(255,255,255,.7); }
.poster-qr-area { display:flex; flex-direction:column; align-items:center; margin-left:14px; }
.poster-qr { flex-shrink:0; padding:4px; background:#fff; border:1px solid #e5e5e5; border-radius:4px; line-height:1; }
.poster-qr img { display:block !important; width:76px !important; height:76px !important; }
.poster-qr canvas { display:none !important; }
.poster-qr-label { font-size:10px; color:#999; margin-top:4px; text-align:center; }
.poster-footer-bar { display:flex; align-items:center; justify-content:space-between; padding:12px 20px 14px; background:#c52b2b; transition:background .3s; }
.poster-brand-name { font-size:17px; font-weight:900; color:#fff; letter-spacing:2px; }
.poster-brand-name-dark { font-size:20px; font-weight:900; color:#222; letter-spacing:3px; }
.pm-w { display:inline-block; transform:rotate(-3deg); background:rgba(255,255,255,.2); padding:1px 5px; border-radius:3px; margin-right:1px; }
.pm-c { display:inline-block; }
.poster-brand-slogan { font-size:13px; color:rgba(255,255,255,.8); letter-spacing:1px; }
.poster-brand-slogan-dark { font-size:13px; color:#888; letter-spacing:1px; }
/* layout: card style */
.poster-card-split .poster-split { display:flex; flex-direction:column; }
.poster-card-split .poster-split-img { width:100%; height:240px; overflow:hidden; background:#111; }
.poster-card-split .poster-split-img img { width:100%; height:100%; object-fit:cover; }
.poster-card-split .poster-split-body { padding:20px 20px 16px; background:#fafafa; }
.poster-card-split .poster-split-title { font-size:19px; font-weight:700; color:#222; line-height:1.45; margin-bottom:12px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.poster-card-split .poster-split-divider { width:32px; height:3px; border-radius:2px; margin-bottom:12px; }
/* layout: magazine */
.poster-card-mag .poster-mag-header { padding:40px 28px 24px; background:#fff; }
.poster-card-mag .poster-mag-tag { display:inline-block; font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; padding:3px 10px; border-radius:2px; margin-bottom:14px; }
.poster-card-mag .poster-mag-title { font-size:28px; font-weight:900; color:#111; line-height:1.3; margin-bottom:12px; }
/* layout: minimal */
.detail-copyright { padding:14px 0; font-size:13px; color:var(--text-muted); line-height:1.6; border-bottom:1px solid var(--border-light); }
.detail-copyright .disclaimer-box { background:#f9f9f9; border:1px solid var(--border-light); border-radius:4px; padding:12px 14px; margin-bottom:10px; font-size:12px; color:#666; line-height:1.7; }
.detail-copyright .disclaimer-box p { margin-bottom:4px; }
.detail-copyright .disclaimer-box p:last-child { margin-bottom:0; }
.detail-copyright .disclaimer-box strong { color:#444; }
.detail-copyright .detail-editor { color:var(--text-muted); }

/* Comments */
.comments-section { padding:20px 0 32px; }
.comments-section h3 { font-size:16px; font-weight:700; margin-bottom:18px; }
.comment-form { display:flex; gap:10px; margin-bottom:20px; }
.comment-form .form-input { flex:1; padding:10px 12px; border:1px solid var(--border); border-radius:4px; font-size:13px; resize:none; outline:none; transition:border 0.2s; font-family:inherit; }
.comment-form .form-input:focus { border-color:var(--primary); }
.comment-form .btn { flex-shrink:0; height:36px; padding:0 16px; border-radius:4px; }
.comment-item { display:flex; gap:10px; padding:14px 0; border-bottom:1px solid var(--border-light); }
.comment-item:last-child { border-bottom:none; }
.comment-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.comment-body { flex:1; min-width:0; }
.comment-user { font-weight:600; font-size:13px; color:var(--text); }
.comment-text { font-size:14px; margin:4px 0; color:var(--text-secondary); line-height:1.6; }
.comment-time { font-size:12px; color:var(--text-muted); }

/* ===== AUTH SHARED ===== */
.auth-page { display:flex; align-items:center; justify-content:center; min-height:calc(100vh - 100px); padding:0 12px; }
.form-group { margin-bottom:14px; }
.form-group label { display:block; margin-bottom:4px; font-weight:500; font-size:13px; color:var(--text-secondary); }
.form-input { width:100%; padding:9px 12px; border:1px solid var(--border); border-radius:4px; font-size:14px; outline:none; transition:border 0.2s; }
.form-input:focus { border-color:var(--primary); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:4px; padding:8px 20px; border-radius:4px; font-size:14px; border:none; cursor:pointer; transition:all 0.15s; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:active { opacity:0.85; }
.btn-block { width:100%; }
.btn-wechat { background:#07c160; color:#fff; }
.social-login { text-align:center; margin-top:16px; padding-top:16px; border-top:1px solid var(--border-light); }
.auth-links { text-align:center; margin-top:12px; font-size:13px; }

/* ===== PROFILE ===== */
.profile-page { background:#fff; }
.profile-header { display:flex; align-items:center; gap:16px; padding:20px 12px; border-bottom:1px solid var(--border-light); }
.profile-avatar { width:64px; height:64px; border-radius:50%; object-fit:cover; }
.profile-info { flex:1; }
.profile-info h2 { font-size:18px; }
.profile-bio { font-size:13px; color:var(--text-secondary); margin:2px 0 8px; }
.profile-stats { display:flex; gap:16px; font-size:13px; }
.profile-stats a, .profile-stats span { color:var(--text-muted); }
.profile-stats strong { color:var(--text); font-size:15px; }
.profile-posts { padding:0; }
.profile-posts .news-card { padding-left:12px; padding-right:12px; }

/* ===== SETTINGS ===== */
.settings-page { max-width:400px; margin:0 auto; background:#fff; padding:24px; min-height:calc(100vh - 100px); }
.settings-page h2 { font-size:18px; margin-bottom:16px; }

/* ===== USER LIST ===== */
.user-list { padding:0 12px; }
.user-list-item { background:#fff; border-radius:4px; padding:12px; margin-bottom:6px; }
.user-list-link { display:flex; align-items:center; gap:10px; }
.user-list-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.user-list-name { font-weight:600; font-size:14px; }
.user-list-bio { font-size:12px; color:var(--text-muted); margin-top:2px; }

/* ===== CREATE PAGE ===== */
.create-page { max-width:600px; margin:0 auto; background:#fff; padding:16px; min-height:calc(100vh - 100px); }
.create-tabs { display:flex; gap:4px; margin-bottom:16px; overflow-x:auto; }
.create-tabs .tab { padding:6px 14px; border-radius:16px; font-size:13px; color:var(--text-secondary); border:1px solid var(--border); white-space:nowrap; }
.create-tabs .tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.editor-toolbar { display:flex; gap:4px; padding:6px; background:#fafafa; border:1px solid var(--border); border-bottom:0; border-radius:4px 4px 0 0; flex-wrap:wrap; }
.editor-toolbar button { padding:3px 10px; background:#fff; border:1px solid var(--border); border-radius:3px; cursor:pointer; font-size:12px; }
.editor { min-height:240px; border:1px solid var(--border); border-radius:0 0 4px 4px; padding:12px; font-size:15px; line-height:1.8; outline:none; }
.editor:focus { border-color:var(--primary); }
.grid-upload-area { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:6px; }
.grid-upload-btn { width:100px; height:100px; border:2px dashed var(--border); border-radius:4px; display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; color:var(--text-muted); }
.grid-upload-btn:hover { border-color:var(--primary); color:var(--primary); }
.grid-upload-btn span { font-size:28px; }
.grid-upload-preview { position:relative; width:100px; height:100px; }
.grid-upload-preview img { width:100%; height:100%; object-fit:cover; border-radius:4px; }
.grid-upload-preview .del { position:absolute; top:-5px; right:-5px; width:18px; height:18px; background:#e74c3c; color:#fff; border-radius:50%; font-size:10px; line-height:18px; text-align:center; cursor:pointer; }
.video-upload-area { padding:16px; border:2px dashed var(--border); border-radius:4px; text-align:center; }

/* ===== FOOTER ===== */
.site-footer { display:none; }

/* ===== IMAGE VIEWER ===== */
.image-viewer-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.95); z-index:1000; display:flex; align-items:center; justify-content:center; cursor:zoom-out; }
.image-viewer-overlay img { max-width:92%; max-height:92%; object-fit:contain; border-radius:4px; }
.image-viewer-overlay .close { position:absolute; top:16px; right:20px; color:#fff; font-size:32px; cursor:pointer; }

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    .header-right { display:flex; }
    .header-search { max-width:none; flex:1; }
    .header-search .search-input {
        height:40px; font-size:15px; padding:0 16px 0 42px;
        border-radius:20px;
    }
    .header-search .search-icon { left:16px; font-size:16px; }
    .logo-desc { display:none; }
    .site-logo { font-size:18px; }

    .header-tabs { display:block; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; }
    .header-tabs::-webkit-scrollbar { display:none; }
    .tabs-inner { gap:0; }

    .hero-slide { height:180px; }
    .hero-slide-title { font-size:15px; }

    .news-card-img { width:112px; height:74px; }
    .news-card-title { font-size:14px; }
}


/* ===== MOBILE BOTTOM NAV ===== */
.mob-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 6px 0 4px;
    color: #8e8e93;
    text-decoration: none !important;
    font-size: 10px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}
.mob-nav-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}
.mob-nav-icon svg {
    width: 22px;
    height: 22px;
}
.mob-nav-label {
    font-size: 10px;
    letter-spacing: 0;
}
.mob-nav-item.active {
    color: var(--primary);
}
.mob-nav-item.active .mob-nav-icon svg {
    stroke-width: 2.2;
}

@media (max-width: 768px) {
    .mob-nav {
        display: flex;
        justify-content: center;
        align-items: stretch;
        height: 50px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .main-content {
        padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    }
    .bottom-bar {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }
    .site-footer .footer-bottom {
        padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    }
    .site-logo img {
        max-height: 32px !important;
    }
}
/* ===== CATEGORY NAV TABS (index page) ===== */
.cat-nav {
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    background: #fff;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    gap: 0;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none !important;
    border-radius: 16px;
    background: var(--bg);
    margin-right: 6px;
    flex-shrink: 0;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.cat-nav-item.active,
.cat-nav-item:active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
@media (max-width: 768px) {
    .cat-nav {
        display: flex;
    }
}

/* hide homepage source/直播 labels on cards */
.source-link{display:none;}

/* ===== ARTICLE DETAIL READING MODE ===== */
.article-topbar {
    max-width: 720px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0 6px;
}
.article-topbar .back-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 14px; color: var(--text-secondary); text-decoration: none;
    padding: 6px 10px; border-radius: 6px; transition: all 0.15s;
    font-weight: 500;
}
.article-topbar .back-link:hover { background: var(--bg); color: var(--primary); }
.article-topbar .back-link svg { width: 18px; height: 18px; }
.article-topbar .topbar-action { font-size: 12px; color: var(--text-muted); }

.app-download-wrap { max-width: 720px; margin: 0 auto; }
.app-download-banner {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e8ecf4; border-radius: 14px;
    padding: 16px 18px; margin: 28px 16px 8px;
    transition: box-shadow 0.2s; cursor: default;
}
.app-download-banner:hover { box-shadow: 0 3px 16px rgba(0,0,0,0.06); }
.app-download-icon {
    width: 52px; height: 52px; border-radius: 13px;
    flex-shrink: 0; overflow: hidden;
    box-shadow: 0 3px 10px rgba(197,43,43,0.3);
}
.app-download-icon img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 13px; }
.app-download-info { flex: 1; min-width: 0; }
.app-download-title {
    font-size: 15px; font-weight: 700; color: #222; margin-bottom: 3px;
}
.app-download-desc {
    font-size: 12px; color: #999; line-height: 1.4;
}
.app-download-btn {
    display: inline-flex; align-items: center; gap: 5px;
    flex-shrink: 0; padding: 8px 20px;
    background: linear-gradient(135deg, #c52b2b, #a00);
    color: #fff !important; font-size: 13px; font-weight: 600;
    border: none; border-radius: 20px; cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s;
}
.app-download-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.app-download-btn:active { transform: scale(0.97); }
.app-download-btn svg { width: 16px; height: 16px; }

.article-floating-home {
    display: none;
    position: fixed; bottom: 24px; right: 16px; z-index: 100;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border: none; cursor: pointer;
    align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 20px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: color 0.15s;
}
.article-floating-home:hover { color: var(--primary); }
.article-floating-home svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
    .detail-wrap { padding: 6px 0 0; }
    .article-topbar { padding: 8px 0 2px; }
    .app-download-banner { padding: 14px; margin: 20px 0 8px; }
    .app-download-icon { width: 44px; height: 44px; border-radius: 11px; }
    .app-download-icon img { width: 44px; height: 44px; border-radius: 11px; }
    .app-download-btn { padding: 6px 16px; font-size: 12px; }
    .article-floating-home { display: flex; }
}

/* ===== RECOMMEND SECTION (PC detail page) ===== */
.recommend-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 12px 16px;
}
.recommend-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
}
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.recommend-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.recommend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.recommend-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg);
}
.recommend-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommend-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}
.recommend-card-video {
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none;
}
.recommend-card-body {
    padding: 10px 12px 12px;
}
.recommend-card-body h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recommend-card-meta {
    font-size: 11px;
    color: var(--text-muted);
}
