/* 康少软件库 · 资源分类墙版式 */
:root{--brand:#2f7de0;--brand-deep:#1b539f;--ink:#1c2740;--sub:#6b7891;--line:#e6ecf5;--paper:#f5f8fd;--gold:#e8453c;--gold-deep:#b92e27;--white:#fff}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--paper);line-height:1.75;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.page-shell{width:min(1180px,calc(100% - 40px));margin:0 auto}

/* header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav-shell{width:min(1180px,calc(100% - 40px));margin:0 auto;display:flex;align-items:center;gap:20px;min-height:66px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;color:var(--ink)}
.brand img{width:44px;height:44px;border-radius:12px}
.primary-nav{margin-left:auto}
.primary-nav ul{display:flex;gap:26px;list-style:none;margin:0;padding:0}
.primary-nav a{font-size:14px;font-weight:600;color:var(--sub)}
.primary-nav a:hover{color:var(--brand)}
.nav-download{display:inline-flex;align-items:center;gap:7px;padding:10px 19px;border-radius:12px;background:var(--brand);color:#fff;font-weight:800;font-size:15px;box-shadow:0 2px 0 var(--brand-deep);transition:.2s}
.nav-download:hover{background:#3f8bf0}
.icon{position:relative;display:inline-block;width:16px;height:16px;flex:0 0 16px}
.icon-download::before{content:"";position:absolute;left:50%;top:8%;width:2px;height:52%;margin-left:-1px;background:currentColor}
.icon-download::after{content:"";position:absolute;left:26%;bottom:8%;width:48%;height:44%;background:currentColor;clip-path:polygon(0 0,100% 0,50% 100%)}
.icon-menu::before,.icon-menu::after{content:"";position:absolute;left:0;width:100%;height:2px;background:currentColor;border-radius:2px}
.icon-menu::before{top:4px}.icon-menu::after{bottom:4px}
.menu-toggle{display:none;margin-left:auto;background:none;border:0;font-size:24px;cursor:pointer}

/* buttons */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 24px;border-radius:13px;font-weight:800;font-size:15px;border:0;cursor:pointer;transition:.2s}
.button-primary{background:var(--brand);color:#fff;box-shadow:0 3px 0 var(--brand-deep)}
.button-primary:hover{background:#3f8bf0;transform:translateY(-1px)}

/* shared */
.eyebrow{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:2px;color:var(--brand)}
.section-heading{margin-bottom:26px}
.section-heading h2{margin:0 0 8px;font-size:clamp(24px,2.4vw,30px)}
.section-heading>p:last-child{margin:0;color:var(--sub);font-size:14px}
main>section{padding:58px 0}

/* ===== HERO 软件矿场 ===== */
.hero{background:radial-gradient(circle at 80% 20%,#e6f0ff 0,transparent 45%),linear-gradient(180deg,#f8fbff,#edf3fc)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:50px;align-items:center}
.hero-copy>*{min-width:0}
.hero-copy h1{margin:0 0 6px;font-size:clamp(38px,4.2vw,54px);line-height:1.15;letter-spacing:-1px}
.hero-title{margin:0 0 16px;font-size:19px;font-weight:700;color:var(--brand-deep)}
.hero-summary{margin:0 0 22px;color:var(--sub);font-size:15px;overflow-wrap:anywhere}
.hero-badge{display:inline-flex;align-items:center;gap:6px;margin-left:6px;padding:3px 10px;border-radius:20px;background:#eef2f8;color:#8a94a8;font-size:11px;font-weight:700;vertical-align:middle}
.hero-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:#aab4c6}
.hero-note{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:13px;color:var(--sub)}
.hero-note i{width:8px;height:8px;border-radius:50%;background:var(--gold)}

.hero-visual{min-width:0}
.wr-mine{position:relative;max-width:560px;margin:0 auto;padding:22px 24px 26px;border-radius:22px;background:linear-gradient(165deg,#1e4f9e,#0f2d63);border:1px solid #2c5cae;box-shadow:0 20px 48px rgba(18,52,112,.28)}
.wr-top{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:#fff}
.wr-top .pick{position:relative;width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center}
.wr-top .pick::before{content:"";width:3px;height:20px;background:#9fc4ff;border-radius:2px;transform:rotate(38deg)}
.wr-top .pick::after{content:"";position:absolute;top:5px;left:8px;width:14px;height:8px;border:3px solid #9fc4ff;border-bottom:0;border-radius:8px 8px 0 0;transform:rotate(38deg)}
.wr-top b{font-size:13px}
.wr-top .badge{margin-left:auto;padding:3px 9px;border-radius:12px;background:rgba(255,255,255,.14);font-size:10px;letter-spacing:1px;color:#cfe0ff}
.wr-tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.wr-tabs span{padding:5px 12px;border-radius:14px;background:rgba(255,255,255,.1);color:#cfe0ff;font-size:11px}
.wr-tabs span.on{background:#fff;color:#1b539f;font-weight:800}
.wr-ores{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.wr-ore{position:relative;background:#fff;border-radius:12px;padding:14px 8px 10px;text-align:center;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.wr-ore .gem{width:34px;height:34px;margin:0 auto 8px;clip-path:polygon(50% 0,100% 32%,82% 100%,18% 100%,0 32%);background:linear-gradient(150deg,#7fc4ff,#2f7de0)}
.wr-ore.r .gem{background:linear-gradient(150deg,#ff9d97,#e8453c)}
.wr-ore.p .gem{background:linear-gradient(150deg,#cbb6f5,#8b6ad4)}
.wr-ore.g .gem{background:linear-gradient(150deg,#83e0c8,#35ae90)}
.wr-ore b{display:block;font-size:11px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wr-ore .lab{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:10px;background:#edf4ff;color:var(--brand-deep);font-size:9px;font-weight:800}
.wr-ore.r .lab{background:#fdeceb;color:#b92e27}
.wr-progress{margin-top:16px;padding:11px 14px;border-radius:12px;background:rgba(255,255,255,.09)}
.wr-progress .hd{display:flex;justify-content:space-between;color:#cfe0ff;font-size:11px;margin-bottom:7px}
.wr-progress .bar{height:7px;border-radius:5px;background:rgba(255,255,255,.16);overflow:hidden}
.wr-progress .bar i{display:block;width:68%;height:100%;border-radius:5px;background:linear-gradient(90deg,#ff8a80,#e8453c)}
.wr-plate{display:flex;align-items:center;gap:8px;margin-top:12px;color:#dbe8ff;font-size:11px}
.wr-plate i{width:7px;height:7px;border-radius:50%;background:var(--gold)}
.wr-tag{position:absolute;z-index:3;padding:6px 13px;border-radius:20px;font-size:11px;font-weight:800;color:#fff;white-space:nowrap;box-shadow:0 5px 14px rgba(30,70,140,.24)}
.wr-tag.a{left:-13px;top:-18px;background:var(--brand)}
.wr-tag.b{right:-13px;top:-18px;background:var(--gold-deep)}
.wr-tag.c{left:-13px;bottom:-18px;background:#35ae90}

/* features */
.em-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.em-features article{position:relative;padding:26px 22px 22px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:0 6px 18px rgba(30,70,140,.06)}
.em-features .num{position:absolute;top:0;left:22px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--brand),var(--brand-deep));color:#fff;font-size:13px;font-weight:800;box-shadow:0 4px 10px rgba(47,125,224,.3)}
.em-features h4{margin:12px 0 10px;font-size:17px}
.em-features p{margin:0 0 14px;font-size:14px;color:var(--sub)}
.em-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.em-chips li{padding:4px 11px;border-radius:14px;background:#eef5ff;color:var(--brand-deep);font-size:11px;font-weight:700}

/* screens */
.em-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.em-gallery figure{margin:0;padding:8px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 18px rgba(30,70,140,.06)}
.em-gallery img{width:100%;height:280px;object-fit:cover;object-position:top;border-radius:10px;background:#f0f4fa}
.em-gallery figcaption{padding:8px 4px 4px;font-size:13px;font-weight:700}
.em-gallery figcaption span{display:block;font-size:11px;font-weight:400;color:var(--sub);margin-top:2px}
.em-howto{display:grid;grid-template-columns:120px minmax(0,1fr);gap:22px;margin-top:24px;padding:22px;border-radius:18px;background:linear-gradient(120deg,#eef5ff,#fff);border:1px solid #dce9fb}
.em-howto .mark{display:flex;align-items:center;justify-content:center;border-radius:14px;background:linear-gradient(135deg,var(--gold),var(--gold-deep));color:#fff;font-size:19px;font-weight:900;line-height:1.15;text-align:center}
.em-howto h4{margin:0 0 10px;font-size:18px}
.em-howto p{margin:0 0 14px;font-size:14px;color:var(--sub)}
.em-flow{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.em-flow li{display:flex;align-items:center;gap:7px;padding:7px 12px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:700}
.em-flow b{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:6px;background:var(--brand);color:#fff;font-size:11px}

/* faq */
.em-faq{display:grid;gap:12px}
.em-faq details{background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 18px;box-shadow:0 3px 10px rgba(30,70,140,.04)}
.em-faq summary{cursor:pointer;padding:15px 0;list-style:none}
.em-faq summary::-webkit-details-marker{display:none}
.em-faq summary h3{margin:0;font-size:15px;padding-left:26px;position:relative}
.em-faq summary h3::before{content:"Q";position:absolute;left:0;top:1px;width:20px;height:20px;border-radius:6px;background:#eef5ff;color:var(--brand);font-size:12px;display:flex;align-items:center;justify-content:center;font-weight:800}
.faq-answer{padding:0 0 16px 26px;font-size:14px;color:var(--sub)}
.faq-answer p{margin:0}

/* official */
.em-official{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;border-radius:18px;background:linear-gradient(120deg,#eef5ff,#fff);border:1px solid #dce9fb}
.em-official h2{margin:0 0 6px;font-size:22px}
.em-official p{margin:0;font-size:14px;color:var(--sub);max-width:70ch}
.em-official .button{flex:0 0 auto;background:var(--brand);color:#fff;box-shadow:0 3px 0 var(--brand-deep)}

/* reviews */
.em-reviews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.em-reviews article{padding:20px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 5px 16px rgba(30,70,140,.06)}
.em-reviews article>p{margin:0 0 16px;font-size:14px;color:var(--ink)}
.em-reviews footer{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--sub)}
.em-reviews footer span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:linear-gradient(135deg,var(--brand),var(--brand-deep));color:#fff;font-weight:800}
.em-reviews footer b{color:var(--ink)}
.em-reviews footer time{margin-left:auto;font-size:11px;color:#9aa8bd}

/* download */
.download{background:linear-gradient(120deg,#2f7de0,#153f7d);color:#eaf3ff}
.wr-download{position:relative;overflow:hidden;padding:52px 0}
.wr-download::before{content:"";position:absolute;inset:0;background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.07) 0 2px,transparent 2px 40px)}
.wr-download .page-shell{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px;text-align:center}
.wr-download h2{margin:0 0 12px;font-size:clamp(26px,3.1vw,34px);color:#fff}
.wr-download p{margin:0;max-width:66ch;color:#d5e4ff}
.wr-download .eyebrow{color:#bcd4ff}
.wr-download .button-primary{background:#fff;color:var(--brand-deep);box-shadow:0 3px 0 #9db8e8}
.wr-download .button-primary:hover{background:#f2f7ff}

/* footer */
.site-footer{background:#101a2e;color:#c7d2e6;padding:46px 0 30px}
.footer-grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:28px}
.footer-brand img{width:44px;height:44px;border-radius:11px;margin-bottom:10px}
.footer-brand strong{display:block;color:#fff;font-size:16px;margin-bottom:4px}
.footer-brand p{margin:0;font-size:12px;color:#8b9ab5}
.footer-nav .footer-title{margin:0 0 10px;color:#fff;font-size:13px;font-weight:700}
.footer-nav ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.footer-nav a{font-size:12px;color:#8b9ab5}
.footer-nav a:hover{color:#fff}
.copyright{grid-column:1/-1;margin:14px 0 0;padding-top:18px;border-top:1px solid #25324a;font-size:12px;color:#8492ad}
.legal{grid-column:1/-1;font-size:11px;color:#6f7d97}
.legal p{margin:6px 0 0}
.disclaimer{opacity:.85}
.to-top{position:fixed;right:18px;bottom:22px;width:42px;height:42px;border-radius:50%;border:0;background:var(--brand);color:#fff;cursor:pointer;box-shadow:0 5px 16px rgba(47,125,224,.35);z-index:40}
.to-top::before{content:"";position:absolute;left:50%;top:44%;width:10px;height:10px;border-left:2px solid #fff;border-top:2px solid #fff;transform:translate(-50%,-50%) rotate(45deg)}

@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr;gap:34px}
  .em-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-features,.em-reviews{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .primary-nav{display:none;position:absolute;top:66px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line)}
  .primary-nav.is-open{display:block}
  .primary-nav ul{flex-direction:column;gap:0;padding:8px 20px}
  .primary-nav li{padding:8px 0}
  .menu-toggle{display:block}
  .nav-download{margin-left:auto;padding:9px 13px}
  .nav-download span{display:none}
  main>section{padding:42px 0}
  .hero-copy{overflow-wrap:anywhere}
  .hero-grid>*{min-width:0}
  .hero-visual{overflow:hidden;padding:0 2px}
  .wr-board{max-width:100%;padding:20px 16px 26px}
  .wr-cats{gap:9px}
  .wr-folder{min-height:84px;padding:12px 6px 8px}
  .wr-folder b{font-size:11px}
  .wr-tag.a{left:-6px;top:-16px}
  .wr-tag.b{right:-6px;top:-16px}
  .wr-tag.c{left:-6px;bottom:-16px}
  .em-features,.em-reviews,.em-gallery{grid-template-columns:1fr}
  .em-gallery img{height:320px}
  .em-howto{grid-template-columns:1fr}
  .em-howto .mark{max-width:90px}
  .em-official{flex-direction:column;align-items:flex-start}
  .footer-grid{grid-template-columns:1fr}
}
