:root {
  --blue: #3478f6;
  --blue-dark: #245ed0;
  --orange: #ff6437;
  --text: #20242c;
  --muted: #8a909b;
  --line: #e8ebf0;
  --bg: #f5f7fb;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
* { box-sizing: border-box; }
html,body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
button,input { font: inherit; }
button { border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.loading,.empty { padding: 80px; color: var(--muted); text-align: center; }
.pc-shell { min-height: 100vh; }
.top { position: sticky; z-index: 30; top: 0; background: #fff; box-shadow: 0 3px 18px #23304b12; }
.top-main { display: flex; align-items: center; width: min(1200px,calc(100% - 40px)); height: 74px; margin: auto; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.brand strong { display: block; font-size: 21px; color: var(--blue-dark); }
.brand small { display: block; margin-top: 2px; color: #a3a8b1; font-size: 11px; }
.search { flex: 1; display: flex; height: 42px; max-width: 600px; margin-left: 30px; border: 2px solid var(--blue); border-radius: 22px; overflow: hidden; }
.search input { flex: 1; min-width: 0; padding: 0 18px; border: 0; outline: 0; }
.search button { width: 92px; background: var(--blue); color: #fff; font-weight: 700; }
.top-links { margin-left: auto; display: flex; gap: 8px; }
.top-links button,.top-links a { padding: 9px 14px; border-radius: 18px; background: #f2f5fb; color: #596273; text-decoration: none; font-size: 13px; }
.nav { background: linear-gradient(90deg,var(--blue-dark),var(--blue)); }
.nav-inner { display: flex; width: min(1200px,calc(100% - 40px)); height: 46px; margin: auto; overflow: hidden; }
.nav button { padding: 0 23px; background: transparent; color: #fff; font-size: 15px; }
.nav button:hover,.nav button.active { background: #ffffff20; font-weight: 700; }
.container { width: min(1200px,calc(100% - 40px)); margin: 20px auto 50px; }
.hero-grid { display: grid; grid-template-columns: 220px 1fr 280px; gap: 16px; height: 330px; }
.category-box,.hero,.notice-card,.section { border-radius: 12px; background: #fff; box-shadow: 0 4px 16px #2433500b; }
.category-box { overflow: hidden; }
.category-title { padding: 14px 18px; background: #2d68de; color: #fff; font-weight: 700; }
.category-list { height: 284px; overflow-y: auto; }
.category-list button { display: flex; width: 100%; padding: 10px 17px; background: #fff; color: #404857; text-align: left; }
.category-list button:hover { background: #edf4ff; color: var(--blue); }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg,#4387fb,#665be6); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { display: flex; height: 100%; align-items: center; justify-content: space-between; padding: 45px; color: #fff; }
.hero-fallback h1 { margin: 0 0 12px; font-size: 34px; }
.hero-fallback p { opacity: .9; }
.hero-fallback b { font-size: 95px; opacity: .32; }
.notice-card { padding: 20px; }
.notice-card h3 { margin: 0 0 15px; color: var(--blue); }
.notice-card p { padding: 12px 0; margin: 0; border-bottom: 1px dashed var(--line); color: #606978; font-size: 13px; line-height: 1.6; }
.notice-card .service { margin-top: 18px; padding: 14px; border-radius: 9px; background: #fff5ec; color: #b85a23; }
.section { margin-top: 18px; padding: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head h2::before { content: ""; display: inline-block; width: 5px; height: 21px; margin-right: 10px; border-radius: 5px; background: var(--blue); vertical-align: -3px; }
.section-head button { background: transparent; color: var(--muted); }
.grade-grid { display: grid; grid-template-columns: repeat(10,1fr); gap: 13px; }
.grade { padding: 14px 6px; border-radius: 9px; background: #f3f6fb; color: #424b5a; }
.grade:hover { transform: translateY(-2px); background: var(--blue); color: #fff; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-bar button { padding: 8px 16px; border-radius: 18px; background: #f2f4f8; color: #596273; }
.filter-bar button.active { background: var(--blue); color: #fff; }
.resources { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.resource { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: .2s; }
.resource:hover { transform: translateY(-3px); box-shadow: 0 9px 22px #30466b1a; }
.thumb { position: relative; height: 165px; overflow: hidden; background: #edf1f7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 9px; left: 9px; padding: 3px 7px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 11px; }
.resource-info { padding: 12px; }
.resource h3 { height: 44px; margin: 0; overflow: hidden; font-size: 14px; line-height: 1.55; }
.resource-meta { display: flex; align-items: end; margin-top: 11px; }
.price { color: #ee4728; font-size: 20px; font-weight: 800; }
.sales { margin-left: auto; color: #a0a6af; font-size: 11px; }
.more { display: block; width: 180px; margin: 24px auto 0; padding: 11px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: #6d7582; }
.category-page { position: fixed; z-index: 50; inset: 0; display: none; background: var(--bg); overflow-y: auto; }
.category-page.open { display: block; }
.page-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; height: 60px; padding: 0 calc((100% - min(1200px,calc(100% - 40px)))/2); background: #fff; box-shadow: 0 2px 12px #0000000c; }
.page-head button { margin-right: 15px; background: transparent; color: #555; font-size: 28px; }
.page-head h2 { margin: 0; }
.category-layout { display: grid; grid-template-columns: 210px 1fr; width: min(1200px,calc(100% - 40px)); min-height: 650px; margin: 20px auto; overflow: hidden; border-radius: 12px; background: #fff; }
.category-menu { padding: 10px 0; background: #f2f5f9; }
.category-menu button { width: 100%; padding: 12px 20px; background: transparent; color: #515968; text-align: left; }
.category-menu button.active { border-left: 4px solid var(--blue); background: #fff; color: var(--blue); font-weight: 700; }
.category-content { padding: 25px; }
.category-content h3 { margin-top: 0; }
.child-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.child { padding: 18px 8px; border-radius: 9px; background: #f6f8fc; color: #4a5361; }
.child:hover { background: #eaf2ff; color: var(--blue); }
@media(max-width:900px){.hero-grid{grid-template-columns:1fr;height:auto}.category-box,.notice-card{display:none}.hero{height:280px}.resources{grid-template-columns:repeat(2,1fr)}.grade-grid{grid-template-columns:repeat(5,1fr)}}
