* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f8f9fa; color: #1a1a2e; line-height: 1.8; }

.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-size: 1.3rem; font-weight: 700; color: #e63946; text-decoration: none; }
.logo:hover { opacity: 0.85; }
nav a { margin-left: 24px; color: #555; text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: #e63946; }

/* Hero */
.hero { text-align: center; padding: 60px 0 40px; }
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.hero .highlight { color: #e63946; }
.hero p { font-size: 1.1rem; color: #666; }

/* Featured */
.featured { padding: 20px 0 60px; }
.featured h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; padding-bottom: 8px; border-bottom: 2px solid #e63946; display: inline-block; }

/* Post Card */
.post-card { background: #fff; border-radius: 12px; padding: 28px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.post-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.post-meta { display: flex; gap: 12px; font-size: 0.85rem; color: #888; margin-bottom: 10px; }
.category { background: #f0f0f5; padding: 2px 10px; border-radius: 4px; color: #555; }
.post-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.post-card h3 a { color: #1a1a2e; text-decoration: none; }
.post-card h3 a:hover { color: #e63946; }
.excerpt { color: #555; font-size: 0.95rem; margin-bottom: 12px; }
.read-more { color: #e63946; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.read-more:hover { text-decoration: underline; }

/* Post Page */
.post-page { padding: 40px 0; }
.post-page header { border: none; position: static; }
.post-page .post-header { margin-bottom: 32px; }
.post-page .post-header h1 { font-size: 1.8rem; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.post-page .post-header .meta { color: #888; font-size: 0.9rem; }
.post-content { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.post-content h2 { font-size: 1.4rem; margin: 32px 0 16px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.post-content h3 { font-size: 1.15rem; margin: 24px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.post-content th, .post-content td { border: 1px solid #e0e0e0; padding: 10px 14px; text-align: left; }
.post-content th { background: #f8f9fa; font-weight: 600; }
.post-content strong { color: #1a1a2e; }
.post-content blockquote { border-left: 4px solid #e63946; padding: 12px 20px; margin: 16px 0; background: #f8f9fa; border-radius: 0 8px 8px 0; }
.post-content blockquote p { margin: 0; }

/* TOC */
.toc { background: #f8f9fa; border: 1px solid #eee; border-radius: 8px; padding: 20px 24px; margin: 16px 0 24px; }
.toc h4 { font-size: 1rem; margin-bottom: 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 4px; font-size: 0.9rem; }
.toc a { color: #555; text-decoration: none; }
.toc a:hover { color: #e63946; }

/* Affiliate Disclaimer */
.disclaimer { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 12px 16px; margin: 24px 0; font-size: 0.85rem; color: #8c6d00; }

/* Footer */
footer { border-top: 1px solid #eee; padding: 24px 0; margin-top: 40px; }
.footer-inner { text-align: center; color: #999; font-size: 0.85rem; }

/* Buttons */
.btn-primary { display: inline-block; background: #e63946; color: #fff; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background 0.2s; }
.btn-primary:hover { background: #c52d39; }

/* Responsive */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.6rem; }
    .post-content { padding: 20px; }
    .post-card { padding: 20px; }
}
