
:root { --bg-body: #f5f6f7; --bg-card: #ffffff; --text-main: #333333; --text-light: #666666; --border-color: #eaeaea; --primary-color: #007bff; --header-bg: #ffffff; }
[data-theme="dark"] { --bg-body: #1a1a1a; --bg-card: #2d2d2d; --text-main: #e0e0e0; --text-light: #a0a0a0; --border-color: #444444; --primary-color: #4da3ff; --header-bg: #2d2d2d; }
body { font-family: "Microsoft YaHei", sans-serif; background: var(--bg-body); color: var(--text-main); margin: 0; padding: 0; transition: background 0.3s, color 0.3s; }
a { color: var(--text-main); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.header { background: var(--header-bg); padding: 20px 0; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.logo img { max-height: 40px; }
.nav ul li { display: inline-block; margin-left: 20px; }
.nav a { font-size: 16px; font-weight: bold; }
.theme-switch { cursor: pointer; padding: 5px 10px; border: 1px solid var(--border-color); border-radius: 20px; background: var(--bg-card); display: flex; align-items: center; gap: 5px; }
.wrapper { display: flex; gap: 20px; margin-top: 20px; }
.main { flex: 7; }
.sidebar { flex: 3; }
.card { background: var(--bg-card); padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.post-item { display: flex; gap: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px; }
.post-thumb { width: 200px; height: 130px; border-radius: 4px; overflow: hidden; background: #eee; flex-shrink: 0; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-title { margin: 0 0 10px 0; font-size: 18px; }
.post-meta { font-size: 12px; color: var(--text-light); margin-top: 10px; }
.author-box { background: var(--bg-card); padding: 20px; border-left: 4px solid var(--primary-color); display: flex; gap: 15px; margin-top: 30px; border-radius: 4px; }
.author-avatar img { border-radius: 50%; width: 60px; height: 60px; }
.widget h3 { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; font-size: 16px; }
.widget li { border-bottom: 1px dashed var(--border-color); padding: 8px 0; }
.footer { text-align: center; padding: 40px 0; color: var(--text-light); }
