/* style.css */
:root {
    --bg-dark: #0a0b10;
    --bg-card: #161823;
    --primary: #ff3344;
    --primary-hover: #ff1122;
    --text-main: #e2e8f0;
    --text-muted: #8b949e;
    --border: #2d313f;
    --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-base); line-height: 1.6; overflow-x: hidden; }
a { color: var(--text-main); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary); }
ul { list-style: none; }
.container { width: 92%; max-width: 1280px; margin: 0 auto; }

/* SVG Icons (Inline Support) */
.icon { width: 1.2em; height: 1.2em; fill: currentColor; vertical-align: middle; }

/* Header & Nav */
header { background: rgba(10, 11, 16, 0.95); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 24px; font-weight: 900; font-style: italic; color: #fff; letter-spacing: 2px; }
.logo span { color: var(--primary); }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 600; text-transform: uppercase; font-size: 15px; }
.menu-toggle { display: none; cursor: pointer; background: none; border: none; color: #fff; font-size: 24px; }

/* Banners */
.hero-banner { height: 500px; display: flex; align-items: center; position: relative; background: linear-gradient(135deg, #1a1c29 0%, #0a0b10 100%); overflow: hidden; margin-bottom: 40px; }
.hero-banner::after { content: ''; position: absolute; right: 0; top: 0; width: 50%; height: 100%; background: #232738; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 50%; }
.hero-content h1 { font-size: 48px; font-weight: 900; line-height: 1.2; margin-bottom: 20px; font-style: italic; }
.hero-tag { display: inline-block; background: var(--primary); color: #fff; padding: 4px 12px; font-size: 12px; font-weight: bold; margin-bottom: 15px; clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%); }

/* Inner Page Banner & Breadcrumb */
.inner-banner { height: 200px; background: var(--bg-card); display: flex; flex-direction: column; justify-content: center; align-items: center; border-bottom: 2px solid var(--primary); }
.inner-banner h1 { font-size: 32px; font-style: italic; }
.breadcrumb { margin-top: 15px; font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Categories */
.category-bar { display: flex; gap: 15px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 10px; }
.category-bar::-webkit-scrollbar { height: 4px; }
.category-bar::-webkit-scrollbar-thumb { background: var(--primary); }
.cat-item { padding: 8px 24px; background: var(--bg-card); border-radius: 20px; font-size: 14px; white-space: nowrap; border: 1px solid var(--border); }
.cat-item.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Section Titles */
.section-title { font-size: 24px; font-style: italic; font-weight: 800; border-left: 4px solid var(--primary); padding-left: 15px; margin: 40px 0 20px 0; }

/* Article List (With Thumbnails) */
.thumb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.thumb-card { background: var(--bg-card); border-radius: 8px; overflow: hidden; transition: transform 0.3s; }
.thumb-card:hover { transform: translateY(-5px); }
.thumb-img { height: 180px; background: #2a2d3e; position: relative; }
.thumb-img img{width:100%;height:100%}
/* 模拟本地图片占位 */
.thumb-img::before {  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: rgba(255,255,255,0.2); font-weight: bold; font-size: 20px; }
.thumb-info { padding: 20px; }
.thumb-info h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.thumb-meta { font-size: 12px; color: var(--text-muted); }

/* Article List (No Thumbnails - 3 Columns) */
.no-thumb-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.no-thumb-item { background: var(--bg-card); padding: 20px; border-left: 2px solid transparent; transition: 0.3s; }
.no-thumb-item:hover { border-left-color: var(--primary); background: #1e2130; }
.no-thumb-item h4 { font-size: 16px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; }
.no-thumb-item p { font-size: 12px; color: var(--text-muted); }

/* Form Module */
.form-section { background: var(--bg-card); padding: 40px; margin-top: 50px; border-radius: 8px; display: flex; gap: 40px; align-items: center; }
.form-text { flex: 1; }
.form-text h2 { font-size: 28px; margin-bottom: 10px; color: var(--primary); }
.custom-form { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.custom-form input, .custom-form textarea { width: 100%; padding: 12px 15px; background: var(--bg-dark); border: 1px solid var(--border); color: #fff; font-family: var(--font-base); border-radius: 4px; }
.custom-form input:focus, .custom-form textarea:focus { outline: none; border-color: var(--primary); }
.btn-submit { background: var(--primary); color: #fff; border: none; padding: 12px; font-weight: bold; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; transition: 0.3s; }
.btn-submit:hover { background: var(--primary-hover); }

/* Friend Links */
.friend-links { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; margin-bottom: 40px; }
.friend-links a { font-size: 14px; color: var(--text-muted); padding: 5px 10px; background: var(--bg-card); border-radius: 4px; }

/* Article Detail Page */
.article-content { background: var(--bg-card); padding: 40px; border-radius: 8px; margin-top: 30px; }
.article-header { text-align: center; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.article-header h1 { font-size: 28px; margin-bottom: 15px; }
.article-meta { color: var(--text-muted); font-size: 13px; }
.article-meta span { margin: 0 10px; }
.article-body { font-size: 16px; line-height: 1.8; color: #ccc; }
/* 清除正文所有元素背景，强制站点配色 */
.article-body p,
.article-body h2,
.article-body h1,
.article-body h3,
.article-body span,
.article-body a {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-main) !important;
}
/* 链接单独颜色，适配网站主题色 */
.article-body a {
    color: var(--primary) !important;
}
.article-body p { margin-bottom: 20px; }
/* 上下篇 */
.article-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--border); }
.article-nav a { display: block; width: 48%; background: var(--bg-dark); padding: 15px; border-radius: 4px; font-size: 14px; }
.article-nav a span { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 5px; }

/* Footer */
footer { background: #050608; padding: 40px 0; margin-top: 60px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 14px; }

/* Responsive */
@media (max-width: 992px) {
    .no-thumb-list { grid-template-columns: repeat(2, 1fr); }
    .hero-content { max-width: 80%; }
    .hero-banner::after { width: 30%; }
    .form-section { flex-direction: column; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: var(--bg-card); flex-direction: column; padding: 20px; gap: 15px; border-bottom: 2px solid var(--primary); }
    .nav-menu.active { display: flex; }
    .menu-toggle { display: block; }
    .no-thumb-list { grid-template-columns: 1fr; }
    .hero-banner { height: 400px; }
    .hero-banner::after { display: none; }
    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: 32px; }
    .article-nav { flex-direction: column; gap: 10px; }
    .article-nav a { width: 100%; }
}