/*
Theme Name: YouDianErChangShi (Twenty Twenty-Five Child)
Theme URI: https://www.alibagua.com
Description: 以 Typecho「有點兒常識」主题外观为蓝本迁移的 WordPress 子主题（米色日系底 / 青绿标题 / 胶囊导航 / 工具矩阵 / 三列卡片 / 页脚徽章）
Author: Marvis
Template: twentytwentyfive
Version: 1.0.0
*/

/* ===== 1. 日系米色视觉基座 ===== */
body { background-color: #f6f3ee; color: #333; font-family: "PingFang SC","HarmonyOS Sans SC","Noto Sans SC",system-ui,-apple-system,Segoe UI,Roboto,Arial,"Microsoft YaHei",sans-serif; margin: 0; padding: 0; line-height: 1.75; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: #33a6b8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== 2. 顶部品牌区 ===== */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 40px 0 30px 0; border-bottom: 1px solid rgba(184, 134, 11, 0.1); margin-bottom: 35px; }
.site-title { margin: 0; }
.site-title a { font-size: 26px; font-weight: 800; color: #33a6b8; text-decoration: none; letter-spacing: 1px; }
.site-subtitle { font-size: 12px; color: #8a817c; letter-spacing: 1.5px; }
.card-link { color: #b8860b; font-weight: 600; text-decoration: none; border: 1.5px solid #b8860b; padding: 6px 15px; border-radius: 4px; font-size: 13px; background: rgba(255,255,255,0.4); }
.card-link:hover { background: #b8860b; color: #fff; text-decoration: none; }

/* ===== 3. 八胶囊导航 ===== */
.home-sections { display: flex; justify-content: center; gap: 8px; margin: 0 auto 40px auto; flex-wrap: wrap; max-width: 1050px; }
.home-sections .pill { padding: 7px 16px; background: #fff; border: 1px solid #e8e4de; border-radius: 50px; text-decoration: none; transition: 0.3s ease; }
.home-sections .pill .nav-title { font-size: 13px; font-weight: 600; color: #7f7a75; }
.home-sections .pill:hover, .home-sections .pill.current { border-color: #b8860b; background: #fffcf5; transform: translateY(-1px); }
.home-sections .pill:hover .nav-title, .home-sections .pill.current .nav-title { color: #b8860b; }

/* ===== 4. 顶部工具矩阵 ===== */
.toolkit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.tool-item { text-decoration: none; padding: 15px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); transition: 0.3s; }
.tool-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-decoration: none; }
.card-gray { background: #f8fafc; }
.card-blue { background: #eff6ff; }
.card-peach { background: #fff5f5; border-color: #fecaca; }
.tool-content { display: flex; align-items: center; gap: 10px; }
.tool-icon { font-size: 22px; }
.tool-text { display: flex; flex-direction: column; }
.tool-name { font-size: 15px; font-weight: 700; color: #333; }
.tool-desc { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* ===== 5. 文章卡片矩阵 ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.post-card { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: 0.3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.post-thumb { width: 100%; height: 160px; object-fit: cover; background: #fafafa; display: block; }
.post-body { padding: 15px; }
.post-title { font-size: 17px; font-weight: 700; color: #33a6b8; text-decoration: none; display: block; margin-bottom: 8px; }
.post-title:hover { color: #b8860b; text-decoration: none; }
.post-meta { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.post-meta a { color: #9ca3af; text-decoration: none; }
.post-excerpt { font-size: 13px; color: #4b5563; line-height: 1.6; }

/* ===== 6. 分页（圆形胶囊） ===== */
.pager { margin: 60px 0 40px; text-align: center; }
.pager .nav-links { display: inline-flex; list-style: none; padding: 0; margin: 0; gap: 8px; justify-content: center; }
.pager .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #e8e4de; color: #7f7a75; text-decoration: none; font-size: 14px; transition: 0.3s; }
.pager .page-numbers.current, .pager .page-numbers:hover { background: #b8860b; color: #fff !important; border-color: #b8860b; box-shadow: 0 4px 10px rgba(184,134,11,0.12); text-decoration: none; }

/* ===== 7. 文章页 / 页面 ===== */
.article { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 25px; }
.archive-title { font-size: 22px; color: #333; margin: 10px 0 25px; padding-bottom: 12px; border-bottom: 1px solid rgba(184,134,11,0.1); }
.post-header h1 { font-size: 26px; color: #333; margin: 0 0 10px; }
.post-info { font-size: 13px; color: #9ca3af; }
.post-info a { color: #9ca3af; }
.post-content { margin-top: 20px; font-size: 15px; line-height: 1.9; color: #333; }
.post-content p { margin: 1em 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 12px auto; }
.post-content h2 { font-size: 22px; margin: 1.6em 0 .6em; }
.post-content h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.post-content pre, .post-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.post-content pre { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 14px; overflow: auto; }
.post-content blockquote { border-left: 3px solid #b8860b; margin: 1em 0; padding: 4px 16px; color: #6b7280; background: #fffcf5; }
.tag-list { margin-top: 20px; font-size: 13px; color: #8a817c; }
.tag-list a { color: #b8860b; margin-right: 8px; text-decoration: none; }
.post-nav { display: flex; justify-content: space-between; margin-top: 15px; font-size: 13px; }
.post-nav a { color: #8a817c; text-decoration: none; max-width: 48%; }
.post-nav a:hover { color: #b8860b; }

/* ===== 8. 页脚 ===== */
.site-footer { padding: 50px 0 30px; margin-top: 80px; border-top: 1px solid rgba(184, 134, 11, 0.1); color: #8a817c; font-size: 12px; }
.footer-layout { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.footer-left { text-align: left; line-height: 1.8; }
.footer-left strong { color: #33a6b8; }
.footer-left a { color: #8a817c; text-decoration: none; }
.footer-left a:hover { color: #b8860b; }
.icp-row { opacity: 0.6; font-size: 11px; margin-top: 4px; }
.footer-right { text-align: right; }
.geek-badges { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.badge-item, .geek-badges a { color: #999; text-decoration: none; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.geek-badges a:hover { color: #b8860b; }
.sep { color: #eee; margin: 0 2px; }

/* ===== 9. 移动端适配 ===== */
@media (max-width: 768px) {
    .site-nav { flex-direction: column; gap: 20px; text-align: center; }
    .home-sections { gap: 6px; }
    .toolkit-grid, .post-grid { grid-template-columns: 1fr; }
    .footer-layout { flex-direction: column; align-items: center; text-align: center; }
    .footer-left, .footer-right { text-align: center; }
    .geek-badges { justify-content: center; flex-wrap: wrap; }
}
