* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background:#f5f7fa; color:#1e293b; line-height:1.6; }
a { text-decoration:none; color:inherit; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

.topbar { background:#0b2b4a; color:#e2e8f0; padding:8px 0; font-size:13px; }
.topbar .container { display:flex; justify-content:space-between; flex-wrap:wrap; }
.topbar a { color:#94a3b8; margin-left:18px; transition:color 0.2s; }
.topbar a:hover { color:#fff; }

.header { background:#fff; padding:18px 0; box-shadow:0 1px 3px rgba(0,0,0,0.06); }
.header .container { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.logo h1 { font-size:24px; font-weight:700; color:#0b2b4a; }
.logo .sub { font-size:12px; color:#64748b; }
nav a { margin-left:20px; font-size:15px; color:#334155; font-weight:500; }
nav a:hover { color:#0b2b4a; }

.main { padding:30px 0; min-height:70vh; }
.page-title { font-size:22px; margin-bottom:20px; color:#0b2b4a; }

.post-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:20px; }
.post-card { background:#fff; border-radius:8px; padding:18px; box-shadow:0 2px 6px rgba(0,0,0,0.05); transition:0.2s; }
.post-card:hover { box-shadow:0 4px 12px rgba(0,0,0,0.1); }
.post-card .title { font-size:18px; font-weight:600; color:#0b2b4a; }
.post-card .meta { font-size:13px; color:#64748b; margin:6px 0; }
.post-card .excerpt { font-size:14px; color:#334155; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.post-card .price { font-size:16px; font-weight:600; color:#dc2626; margin-top:8px; }
.post-card .cat-tag { display:inline-block; background:#e2e8f0; border-radius:12px; padding:2px 12px; font-size:12px; color:#475569; }

.filter-bar { display:flex; gap:12px; margin-bottom:25px; flex-wrap:wrap; }
.filter-bar a { background:#fff; padding:6px 18px; border-radius:20px; border:1px solid #e2e8f0; }
.filter-bar a.active { background:#0b2b4a; color:#fff; border-color:#0b2b4a; }

.form-group { margin-bottom:16px; }
.form-group label { display:block; font-weight:500; margin-bottom:4px; }
.form-group input, .form-group textarea, .form-group select { width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:15px; }
.form-group textarea { min-height:120px; }
.btn { background:#0b2b4a; color:#fff; border:none; padding:10px 24px; border-radius:6px; font-size:15px; cursor:pointer; transition:0.2s; }
.btn:hover { opacity:0.85; }
.btn-outline { background:transparent; border:1px solid #0b2b4a; color:#0b2b4a; }
.btn-outline:hover { background:#0b2b4a; color:#fff; }

.detail-box { background:#fff; padding:30px; border-radius:8px; }
.detail-box .title { font-size:26px; font-weight:700; }
.detail-box .content { margin:20px 0; white-space:pre-wrap; font-size:15px; }
.detail-box .info { background:#f1f5f9; padding:16px; border-radius:6px; }
.detail-box .info p { margin:4px 0; }

.auth-box { max-width:420px; margin:40px auto; background:#fff; padding:30px; border-radius:8px; box-shadow:0 2px 10px rgba(0,0,0,0.08); }
.auth-box h2 { margin-bottom:20px; }
.auth-box input { margin-bottom:12px; }
.auth-box .checkbox { display:flex; align-items:center; gap:8px; font-size:14px; }

.modal { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:999; }
.modal-box { background:#fff; padding:40px; border-radius:12px; text-align:center; max-width:400px; width:100%; }
.modal-box img { width:200px; height:200px; margin:16px auto; }

.footer { background:#0b2b4a; color:#94a3b8; text-align:center; padding:20px 0; font-size:13px; margin-top:40px; }
.footer p { margin:4px 0; }

/* 商城商品卡片 */
.shop-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.shop-card { background:#fff; border-radius:8px; padding:16px; box-shadow:0 2px 6px rgba(0,0,0,0.05); }
.shop-card img { width:100%; height:160px; object-fit:cover; border-radius:4px; }
.shop-card h3 { font-size:16px; margin:8px 0; }
.shop-card .shop-name { color:#64748b; font-size:13px; }
.shop-card .price { color:#dc2626; font-weight:600; }
.shop-card .tag { display:inline-block; background:#e2e8f0; border-radius:12px; padding:0 10px; font-size:12px; }

@media (max-width:600px) {
    .shop-grid { grid-template-columns:1fr 1fr; }
    .post-list { grid-template-columns:1fr; }
    .header .container { flex-direction:column; align-items:stretch; }
    nav a { margin-left:0; margin-right:16px; }
}