* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #333; line-height: 1.6; background: #f5f5f5; }
a { color: #409EFF; text-decoration: none; }
a:hover { color: #66b1ff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header { background: #1a1a2e; box-shadow: 0 2px 8px rgba(0,0,0,0.15); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; height: auto; min-height: 64px; padding: 10px 0; gap: 16px; }
.logo.logo-text { white-space: nowrap; }
.logo.logo-text a { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.logo.logo-text a:hover { color: #c8a45c; }
.brand { color: #b0b0b0; font-size: 12px; line-height: 1.5; white-space: nowrap; margin-right: 16px; }
.site-nav.site-navbar { display: flex; list-style: none; gap: 0; flex: 1; justify-content: flex-end; align-items: center; }
.site-nav.site-navbar li { }
.site-nav.site-navbar a { color: #ccc; font-size: 16px; padding: 8px 16px; transition: all 0.3s; display: block; line-height: 1.5; }
.site-nav.site-navbar a:hover, .site-nav.site-navbar a.active { color: #c8a45c; }

.main-content { display: flex; gap: 24px; margin-top: 24px; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

.search-tip { background: #fff; padding: 16px 20px; border-radius: 8px; margin-bottom: 16px; color: #666; font-size: 14px; }

.article-card { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 16px; transition: box-shadow 0.3s; }
.article-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.article-title { font-size: 20px; margin-bottom: 8px; }
.article-title a { color: #333; }
.article-title a:hover { color: #409EFF; }
.top-badge { background: #E6A23C; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; vertical-align: middle; }
.article-summary { color: #666; font-size: 14px; line-height: 1.8; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { color: #999; font-size: 13px; display: flex; gap: 16px; align-items: center; }
.article-card-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; background: #e8f4fd; color: #409EFF; font-size: 12px; padding: 2px 10px; border-radius: 12px; border: 1px solid #d0e8fa; }
.detail-category a { color: #409EFF; font-weight: 500; }

.no-more { text-align: center; color: #bbb; font-size: 14px; margin: 16px 0; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 32px 0; }
.pagination a { padding: 8px 20px; background: #fff; border-radius: 4px; color: #409EFF; border: 1px solid #ddd; }
.pagination a:hover { background: #409EFF; color: #fff; }
.pagination .current { color: #666; font-size: 14px; }

.load-more { text-align: center; margin: 16px 0; }
.loading-indicator { color: #999; font-size: 14px; padding: 16px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #ddd; border-top-color: #409EFF; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-sentinel { height: 1px; }

.widget { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.widget-title { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #409EFF; }
.recent-list, .category-list { list-style: none; }
.recent-list li, .category-list li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.recent-list li:last-child, .category-list li:last-child { border-bottom: none; }
.recent-list a, .category-list a { color: #555; font-size: 14px; }
.recent-list a:hover, .category-list a:hover { color: #409EFF; }
.hot-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-keyword { display: inline-block; padding: 4px 12px; background: #f0f0f0; border-radius: 16px; font-size: 13px; color: #555; transition: all 0.2s; }
.hot-keyword:hover { background: #c8a45c; color: #fff; }
.prev-next-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #e8e8e8; }
.prev-next-item { flex: 1; max-width: 48%; }
.prev-next-item.next { text-align: right; }
.prev-next-item .nav-label { display: block; font-size: 13px; color: #999; margin-bottom: 4px; }
.prev-next-item a { font-size: 15px; color: #333; line-height: 1.5; display: inline-block; }
.prev-next-item a:hover { color: #c8a45c; }
.post-copyright-custom { margin-top: 24px; padding: 12px 16px; background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 4px; font-size: 13px; color: #666; line-height: 1.8; }
.about-page { max-width: 900px; margin: 20px auto; padding: 40px; background: #fff; border-radius: 8px; }
.about-title { font-size: 28px; color: #1a1a2e; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #c8a45c; }
.about-content p { font-size: 15px; color: #444; line-height: 2; margin-bottom: 16px; text-indent: 2em; }
.about-section-title { font-size: 22px; color: #1a1a2e; margin: 32px 0 16px; padding-left: 12px; border-left: 4px solid #c8a45c; }
.about-timeline, .about-culture { list-style: none; padding: 0; }
.about-timeline li { padding: 8px 0 8px 24px; font-size: 15px; color: #555; position: relative; line-height: 1.8; }
.about-timeline li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #c8a45c; }
.about-culture li { padding: 8px 0; font-size: 15px; color: #555; }
.about-culture strong { color: #1a1a2e; margin-right: 12px; min-width: 60px; display: inline-block; }
.about-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.contact-block { padding: 20px; background: #f9f9f9; border-radius: 6px; border: 1px solid #eee; }
.contact-block h3 { font-size: 16px; color: #1a1a2e; margin-bottom: 12px; }
.contact-block p { font-size: 14px; color: #666; line-height: 1.8; margin: 4px 0; text-indent: 0; }
@media (max-width: 768px) { .about-contact { grid-template-columns: 1fr; } }

.article-detail { background: #fff; border-radius: 8px; padding: 40px; max-width: 800px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 16px; padding: 0 4px; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #c8a45c; }
.breadcrumb-sep { margin: 0 6px; color: #ccc; }
.breadcrumb-current { color: #333; }
.detail-title { font-size: 28px; margin-bottom: 16px; line-height: 1.4; }
.detail-meta { color: #999; font-size: 14px; margin-bottom: 12px; display: flex; gap: 20px; align-items: center; }
.detail-tags { margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.detail-cover { margin-bottom: 24px; }
.detail-cover img { max-width: 100%; border-radius: 8px; }
.detail-content { line-height: 1.8; font-size: 16px; }
.detail-content h1, .detail-content h2, .detail-content h3 { margin: 24px 0 12px; }
.detail-content p { margin-bottom: 16px; }
.detail-content img { max-width: 100%; border-radius: 4px; }
.detail-content pre { background: #f6f8fa; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0; }
.detail-content code { background: #f6f8fa; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.detail-content blockquote { border-left: 4px solid #409EFF; padding: 8px 16px; background: #f0f7ff; margin: 16px 0; }
.detail-content ul, .detail-content ol { padding-left: 24px; margin-bottom: 16px; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.detail-content th, .detail-content td { border: 1px solid #ddd; padding: 8px 12px; }

.footer { background: #2c3e50; color: #aaa; text-align: center; padding: 24px; margin-top: 40px; }
.footer p { font-size: 14px; line-height: 2; }
.footer a { color: #c8a45c; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.share-btn { cursor: pointer; color: #999; display: inline-flex; align-items: center; transition: color 0.3s; }
.share-btn:hover { color: #409EFF; }
.qr-popup { display: none; position: absolute; z-index: 200; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); padding: 16px; }
.qr-popup-inner { text-align: center; }
.qr-popup-inner img { display: block; width: 180px; height: 180px; }
.qr-popup-inner p { margin-top: 8px; font-size: 13px; color: #666; }

@media (max-width: 768px) {
  .main-content { flex-direction: column; }
  .sidebar { width: 100%; }
  .header-inner { gap: 8px; }
  .site-nav.site-navbar { display: none; }
  .brand { display: none; }
  .article-detail { padding: 20px; }
  .detail-title { font-size: 22px; }
}