/* www.360wenjian.com - 轻量教育风，移动优先 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:#f5f7fa; color:#24292f; line-height:1.6; }
.wrap { max-width:1080px; margin:0 auto; padding:0 16px; }
a { color:#2f6fed; text-decoration:none; }
a:hover { text-decoration:underline; }

/* header / footer */
.site-header { background:#fff; border-bottom:1px solid #e7eaef; position:sticky; top:0; z-index:10; }
.site-header .wrap { display:flex; align-items:center; justify-content:space-between; height:56px; }
.logo { font-size:20px; color:#24292f; }
.logo b { color:#2f6fed; }
.site-header nav a { margin-left:20px; color:#555; font-size:15px; }
.site-footer { margin-top:48px; border-top:1px solid #e7eaef; background:#fff; padding:24px 0 32px; color:#8b949e; font-size:13px; text-align:center; }
.site-footer p { margin:4px 0; }

/* hero */
.hero { text-align:center; padding:40px 0 28px; }
.hero h1 { font-size:28px; }
.hero h1 b { color:#2f6fed; }
.hero p { color:#6a737d; margin:10px 0 16px; }
.hero-steps { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; color:#555; font-size:14px; }
.hero-steps i { color:#c0c8d2; font-style:normal; }
@media (max-width:640px){ .hero h1{font-size:22px;} .hero{padding:28px 0 20px;} }

.sec-title { font-size:20px; margin:28px 0 14px; }
.sec-title small { color:#8b949e; font-size:14px; font-weight:normal; }

/* 筛选 */
.filter-bar { background:#fff; border:1px solid #e7eaef; border-radius:12px; padding:12px 16px; margin:12px 0 8px; }
.f-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:4px 0; }
.f-label { font-size:13px; color:#8b949e; width:38px; }
.chip { padding:3px 12px; border-radius:999px; border:1px solid #d7dde5; color:#555; font-size:13px; }
.chip:hover { text-decoration:none; border-color:#2f6fed; color:#2f6fed; }
.chip.on { background:#2f6fed; border-color:#2f6fed; color:#fff; }

/* 卡片 */
.grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:920px){ .grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:640px){ .grid{grid-template-columns:repeat(2,1fr); gap:10px;} }
.card { position:relative; background:#fff; border:1px solid #e7eaef; border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:6px; color:inherit; transition:box-shadow .15s, transform .15s; }
.card:hover { text-decoration:none; box-shadow:0 6px 18px rgba(47,111,237,.12); transform:translateY(-2px); }
.card-subject { display:inline-block; align-self:flex-start; font-size:12px; padding:1px 8px; border-radius:6px; color:#fff; background:#2f6fed; }
.s-chinese { background:#e6553a; } .s-math { background:#2f6fed; } .s-english { background:#1a9e5c; }
.s-physics { background:#7a4fd3; } .s-chemistry { background:#c77d1f; }
.card-title { font-size:15px; font-weight:600; line-height:1.45; min-height:44px; }
.card-meta { font-size:12px; color:#8b949e; }
.card-foot { display:flex; justify-content:space-between; align-items:center; margin-top:auto; }
.price { color:#ff6b35; font-weight:700; font-size:17px; }
.try { font-size:12px; color:#2f6fed; }
.hot-tag { position:absolute; top:-1px; right:-1px; background:#ff6b35; color:#fff; font-size:11px; padding:2px 8px; border-radius:0 12px 0 10px; }
.empty { background:#fff; border:1px dashed #d7dde5; border-radius:12px; text-align:center; padding:40px 16px; color:#8b949e; margin:16px 0; }

/* 分页 */
.pager { display:flex; gap:8px; justify-content:center; margin:24px 0; flex-wrap:wrap; }
.pg { padding:5px 12px; border:1px solid #d7dde5; border-radius:8px; background:#fff; color:#555; font-size:14px; }
.pg.on { background:#2f6fed; border-color:#2f6fed; color:#fff; }
.pg:hover { text-decoration:none; border-color:#2f6fed; }

/* 详情 */
.crumb { font-size:13px; color:#8b949e; margin:16px 0; }
.detail-head { background:#fff; border:1px solid #e7eaef; border-radius:14px; padding:22px; margin-bottom:16px; }
.detail-head h1 { font-size:22px; line-height:1.45; }
.d-tags { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 16px; }
.tag { font-size:12px; background:#f0f4fb; color:#2f6fed; border-radius:6px; padding:2px 10px; }
.d-price { font-size:26px; color:#ff6b35; font-weight:700; }
.d-price small { font-size:13px; color:#8b949e; font-weight:normal; margin-left:8px; }
.btn { display:inline-block; border:none; border-radius:10px; padding:12px 22px; font-size:16px; cursor:pointer; background:#eef1f5; color:#24292f; }
.btn:hover { text-decoration:none; opacity:.92; }
.btn-buy { background:linear-gradient(135deg,#09bb07,#07ad06); color:#fff; font-weight:600; }
.btn-ok { background:#1a9e5c; color:#fff; }
.buy-form { margin:6px 0; }
.d-note { font-size:12px; color:#8b949e; }

/* 预览 */
.preview-box { background:#fff; border:1px solid #e7eaef; border-radius:14px; padding:18px; }
.pv-head { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.pv-head h2 { font-size:18px; }
.pv-tip { font-size:13px; color:#8b949e; }
.pv-frame { width:100%; height:82vh; min-height:560px; border:1px solid #e7eaef; border-radius:8px; background:#fafbfc; }

/* 下载页 / 订单页 */
.dl-box, .order-box { background:#fff; border:1px solid #e7eaef; border-radius:14px; padding:32px 22px; margin:24px 0; text-align:center; }
.dl-state h1, .dl-done h1, .order-box h1 { font-size:22px; margin-bottom:8px; }
.muted { color:#8b949e; font-size:14px; }
.small { font-size:12px; }
.spinner { width:36px; height:36px; border:4px solid #e7eaef; border-top-color:#2f6fed; border-radius:50%; margin:0 auto 14px; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.ok-badge { width:56px; height:56px; line-height:56px; margin:0 auto 12px; background:#1a9e5c; color:#fff; border-radius:50%; font-size:28px; }
.dl-done .btn { margin:14px 0 10px; }
.order-form { display:flex; gap:10px; max-width:520px; margin:18px auto; }
.order-form input { flex:1; border:1px solid #d7dde5; border-radius:10px; padding:11px 14px; font-size:15px; }
.order-result { max-width:520px; margin:18px auto 0; text-align:left; background:#f8fafd; border:1px solid #e7eaef; border-radius:12px; padding:16px 18px; }
.order-result p { margin:5px 0; font-size:14px; }
.order-result .btn { margin-top:8px; }
