/* 个人博客 H5/PC - 清新简洁 */
:root {
  --primary: #0D9488;
  --primary-bg: #F0FDFA;
  --text: #1E293B;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --card-bg: #FFFFFF;
  --max-width: 720px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: #F8FAFC; min-height: 100vh; }
.layout { max-width: var(--max-width); margin: 0 auto; padding: 24px 16px 48px; }
.carousel { position: relative; width: 100%; margin-bottom: 24px; border-radius: 12px; overflow: hidden; background: #F1F5F9; aspect-ratio: 2/1; max-height: 280px; }
.carousel-inner { display: flex; width: 100%; height: 100%; transition: transform 0.4s ease; }
.carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; display: block; text-decoration: none; color: inherit; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.5)); color: #fff; font-size: 1rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; z-index: 2; }
.carousel-dot { display: inline-block; width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.carousel-dot.active { background: #fff; }
.header { background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%); color: #fff; padding: 32px 16px 40px; text-align: center; margin-bottom: 24px; }
.header h1 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.header p { margin: 8px 0 0; opacity: 0.9; font-size: 0.9rem; }
.header a { color: #fff; text-decoration: none; }
.nav { margin-bottom: 24px; }
.nav a { display: inline-block; margin-right: 16px; color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--primary); }
.card { background: var(--card-bg); border-radius: 12px; box-shadow: 0 2px 12px rgba(13, 148, 136, 0.06); overflow: hidden; margin-bottom: 16px; text-decoration: none; color: inherit; display: block; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 20px rgba(13, 148, 136, 0.12); }
.article-card .cover { width: 100%; height: 180px; object-fit: cover; background: #F1F5F9; }
.article-card .body { padding: 20px; }
.article-card .title { font-size: 1.15rem; font-weight: 600; color: var(--text); margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-card .summary { font-size: 0.9rem; color: var(--text-secondary); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.article-card .meta { font-size: 0.8rem; color: var(--text-secondary); }
.article-card .meta .category { color: var(--primary); margin-right: 12px; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { margin-bottom: 12px; }
.category-list a { display: flex; align-items: center; justify-content: space-between; padding: 20px; background: var(--card-bg); border-radius: 12px; color: var(--text); text-decoration: none; box-shadow: 0 2px 12px rgba(13, 148, 136, 0.06); transition: box-shadow 0.2s; }
.category-list a:hover { box-shadow: 0 4px 20px rgba(13, 148, 136, 0.12); }
.category-list .arrow { color: #94A3B8; font-size: 1.2rem; }
.article-header { margin-bottom: 24px; }
.article-header .title { font-size: 1.6rem; font-weight: 600; margin: 0 0 12px; line-height: 1.35; }
.article-header .meta { font-size: 0.9rem; color: var(--text-secondary); }
.article-header .meta span { margin-right: 16px; }
.article-header .meta .category { color: var(--primary); }
.article-detail .cover { width: 100%; border-radius: 12px; margin-bottom: 24px; background: #F1F5F9; }
.article-body { font-size: 1rem; line-height: 1.8; color: #334155; }
.article-body p { margin-bottom: 1em; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body h1, .article-body h2, .article-body h3 { margin: 1.5em 0 0.5em; font-weight: 600; color: var(--text); }
.article-body pre, .article-body code { background: #F1F5F9; padding: 4px 8px; border-radius: 6px; font-size: 0.9em; }
.article-body blockquote { border-left: 4px solid var(--primary); padding-left: 16px; color: var(--text-secondary); margin: 1em 0; }
.about-card { text-align: center; padding: 48px 24px; background: var(--card-bg); border-radius: 12px; box-shadow: 0 2px 12px rgba(13, 148, 136, 0.06); margin-bottom: 24px; }
.about-card .logo { display: inline-block; width: 80px; height: 80px; line-height: 80px; border-radius: 16px; background: linear-gradient(135deg, #0D9488 0%, #2DD4BF 100%); color: #fff; font-size: 1.4rem; font-weight: 600; margin-bottom: 16px; }
.about-card .site-name { display: block; font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.about-card .site-desc { color: var(--text-secondary); font-size: 0.95rem; }
.notice { padding: 24px; background: var(--card-bg); border-radius: 12px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.loading, .empty { text-align: center; padding: 48px; color: var(--text-secondary); }
.btn-more { display: block; text-align: center; padding: 14px; margin-top: 16px; background: var(--primary-bg); color: var(--primary); border-radius: 10px; text-decoration: none; font-size: 0.95rem; border: none; cursor: pointer; width: 100%; font-family: inherit; }
.btn-more:hover { background: #CCFBF1; }
@media (min-width: 768px) { :root { --max-width: 900px; } .header { padding: 48px 24px 56px; } .header h1 { font-size: 1.75rem; } }
