* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2933; background: #f7f9fc; line-height: 1.7; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(30,60,114,.96); color: #fff; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-header .brand { font-weight: 700; letter-spacing: 1px; color: #fff; text-decoration: none; font-size: 1.1rem; }
.site-header nav a { color: #dfe6f3; text-decoration: none; margin-left: 18px; font-size: .95rem; }
.site-header nav a:hover { color: #fff; }
.container { max-width: 800px; margin: 0 auto; padding: 32px 24px 56px; }
.hero { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: #fff; text-align: center; padding: 70px 24px 60px; border-radius: 0 0 16px 16px; margin: -32px -24px 32px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 14px; letter-spacing: 2px; }
.hero p { font-size: 1.15rem; opacity: .9; }
.intro { margin-bottom: 36px; font-size: 1.05rem; color: #3a4654; }
.latest h2, .page-title { font-size: 1.5rem; color: #1e3c72; margin-bottom: 16px; border-left: 4px solid #2a5298; padding-left: 12px; }
.post-list { list-style: none; }
.post-list li { padding: 12px 0; border-bottom: 1px solid #e3e9f2; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.post-list a { color: #2a5298; text-decoration: none; font-size: 1.05rem; }
.post-list a:hover { text-decoration: underline; }
.post-list .date { color: #8a97a8; font-size: .85rem; }
.post { }
.post-title { font-size: 2rem; color: #1e3c72; margin-bottom: 8px; }
.post-meta { color: #8a97a8; font-size: .9rem; margin-bottom: 24px; }
.post-content { font-size: 1.05rem; color: #2b3643; }
.post-content h2, .post-content h3 { color: #1e3c72; margin: 24px 0 10px; }
.post-content p { margin-bottom: 14px; }
.post-content code { background: #eef2f9; padding: 2px 6px; border-radius: 4px; }
.post-content pre { background: #1e293b; color: #e2e8f0; padding: 14px; border-radius: 8px; overflow-x: auto; }
.site-footer { text-align: center; padding: 26px 24px; color: #8a97a8; font-size: .85rem; border-top: 1px solid #e3e9f2; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(30,60,114,.96); color: #fff; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
/* ===== 老主页专属 ===== */
.homewrap { padding-top: 0; }
.hero { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%), url("/img/hero-bg.svg") center/cover no-repeat; background-blend-mode: overlay; color: #fff; text-align: center; padding: 120px 24px 100px; margin: -32px -24px 0; border-radius: 0; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(20,40,80,.35); }
.hero h1, .hero p, .hero .badge { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 18px; letter-spacing: 2px; }
.hero p { font-size: 1.2rem; opacity: .9; max-width: 640px; margin: 0 auto; }
.badge { display: inline-block; margin-top: 26px; padding: 7px 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .82rem; opacity: .85; background: rgba(255,255,255,.08); }
.block { max-width: 820px; margin: 0 auto; padding: 40px 24px 0; }
.block h2 { font-size: 1.6rem; color: #1e3c72; margin-bottom: 18px; border-left: 4px solid #2a5298; padding-left: 12px; }
.block p { font-size: 1.05rem; color: #3a4654; }
.topics { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.topic { flex: 1 1 220px; background: #fff; border: 1px solid #e3e9f2; border-radius: 12px; padding: 22px; box-shadow: 0 4px 14px rgba(30,60,114,.06); }
.topic h3 { color: #2a5298; margin-bottom: 8px; }
.topic p { font-size: .98rem; }
.maillink, .textlink { color: #2a5298; text-decoration: none; }
.maillink:hover, .textlink:hover { text-decoration: underline; }
