/* 首页目录独立样式：沿用品牌色与图标，不影响后台和软件详情页。 */
.home-page{background:#f7f9fd;color:#182139}
.home-page .container{max-width:1400px}
.home-page .content{padding:28px 28px 48px}
.home-page .header-inner{height:76px;padding:0 28px}
.home-page .logo{font-size:25px;letter-spacing:-.5px}
.home-page .logo-icon{width:34px;height:34px}
.home-page .site-header{box-shadow:none;border-color:#edf0f6}
.home-page .nav{gap:24px;align-items:center}
.home-page .nav a{font-size:14px;border-radius:0;padding:23px 0;background:none;white-space:nowrap}
.home-page .nav a.active{color:var(--primary);font-weight:600;box-shadow:inset 0 -2px var(--primary)}
.home-page .nav a:last-child{margin-left:28px;padding:9px 23px;border-radius:8px;background:var(--primary);color:#fff;box-shadow:0 4px 12px #4f7cff1c}
.catalog-page{min-width:0}
.catalog-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:260px;padding:28px 38px;margin-bottom:28px;border:1px solid #eaf0fe;border-radius:20px;background:linear-gradient(115deg,#fff 8%,#eef4ff 100%);overflow:hidden}
.catalog-hero-copy{width:62%;position:relative;z-index:1;min-width:0}
.catalog-hero h1{font-size:42px;font-weight:750;line-height:1.35;letter-spacing:-1px;margin-bottom:8px}
.catalog-hero h1 span{color:var(--primary);white-space:nowrap}
.catalog-hero-copy>p{font-size:16px;color:#68768e;margin-bottom:22px}
.catalog-search{display:flex;align-items:center;gap:8px;padding:5px;height:56px;border:1px solid #dbe3f2;border-radius:10px;background:#fff;width:100%;max-width:650px;box-shadow:0 3px 12px #1f355305}
.catalog-search:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #4f7cff18}
.catalog-search-icon{font-size:27px;line-height:1;padding-left:12px;color:#506077}
.catalog-search input{border:0;outline:0;background:transparent;min-width:0;flex:1;font:inherit;font-size:14px;padding:0 8px;color:#25334c}
.catalog-search input::placeholder{color:#8994a8}
.catalog-search button{border:0;border-radius:7px;background:var(--primary);color:#fff;align-self:stretch;padding:0 24px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}
.catalog-search button:hover{background:var(--primary-dark)}
.catalog-hot{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:13px;font-size:12px}
.catalog-hot>span{color:#596780}
.catalog-hero-art{width:32%;max-width:340px;position:relative;padding:8px 32px 8px 0}
.catalog-hero-art:before{content:"";position:absolute;inset:-24px -55px -28px -15px;background:linear-gradient(135deg,#dbe8fd77,#dae7fc00);border-radius:44% 36% 45% 25%;transform:rotate(-9deg)}
.catalog-art-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;position:relative}
.catalog-art-tile{aspect-ratio:1;background:#ffffffc9;display:flex;align-items:center;justify-content:center;border:1px solid #fff;border-radius:18px;box-shadow:0 8px 22px #365d9a12;padding:14px}
.catalog-art-tile img{width:100%;height:100%;max-width:62px;max-height:62px;object-fit:contain;border-radius:10px;filter:drop-shadow(0 5px 5px #263c5814)}
.catalog-art-tile>span{font-size:12px;word-break:break-word;text-align:center;color:var(--primary)}
.catalog-art-note{position:absolute;right:-18px;bottom:-4px;transform:rotate(-13deg);font-size:13px;color:#526b96;line-height:1.5;letter-spacing:2px}
.catalog-banner{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:24px 30px;margin-bottom:24px;border-radius:16px;background:linear-gradient(115deg,#e8f2ff,#f0f6ff 55%,#e5f0ff)}
.catalog-banner-copy{min-width:0}
.catalog-breadcrumb{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:#687c9c;margin-bottom:12px}
.catalog-banner h1{font-size:30px;line-height:1.4;overflow-wrap:anywhere;margin-bottom:5px;color:#17223b}
.catalog-banner-copy>p{font-size:14px;color:#61748f}
.catalog-banner .catalog-search{max-width:540px;flex:0 1 46%;height:52px}
.catalog-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start;scroll-margin-top:100px}
/* 分类侧栏最多 620px，列表最多 480px；先提供固定上限，再按视口收缩，兼容不支持 dvh 的浏览器。 */
.catalog-sidebar{background:#fff;border:1px solid #edf0f6;border-radius:14px;padding:20px 12px;min-width:0;min-height:0;box-sizing:border-box;overflow:hidden;box-shadow:0 3px 18px #243c6b03;position:sticky;top:96px;max-height:620px;max-height:clamp(280px,calc(100vh - 300px),620px);max-height:clamp(280px,calc(100dvh - 300px),620px);display:flex;flex-direction:column}
.catalog-sidebar h2{font-size:15px;margin:0 10px 13px;color:#27334a}
.catalog-category-list{list-style:none;padding:0 3px 0 0;margin:0;flex:1 1 auto;min-height:0;max-height:480px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cad5ea transparent}
.catalog-category-list::-webkit-scrollbar{width:5px}
.catalog-category-list::-webkit-scrollbar-thumb{background:#cad5ea;border-radius:4px}
.catalog-sidebar h2,.catalog-support{flex-shrink:0}
.catalog-category-list a{display:flex;align-items:center;gap:9px;color:#435169;padding:10px;border-radius:8px;font-size:13px;min-width:0;min-height:40px}
.catalog-category-list a:hover{background:#f4f7fd;color:var(--primary)}
.catalog-category-list a.active{background:#eaf0ff;color:var(--primary);font-weight:600}
.catalog-category-list img,.catalog-category-text-icon{width:20px;height:20px;object-fit:contain;flex-shrink:0;border-radius:4px;text-align:center}
.catalog-all-icon{font-size:21px;line-height:20px;width:20px}
.catalog-category-name{min-width:0;overflow-wrap:anywhere}
.catalog-category-count{margin-left:auto;color:#8995a9;background:#f5f7fb;border-radius:20px;padding:1px 6px;font-size:11px;flex-shrink:0}
.catalog-category-list a.active .catalog-category-count{color:var(--primary);background:#dde7ff}
.catalog-support{display:flex;align-items:center;gap:10px;margin:20px 4px 0;padding:14px 10px;background:#eef4ff;border-radius:9px;color:#293d64}
.catalog-support>span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--primary);color:#fff;font-weight:700;flex-shrink:0}
.catalog-support strong{display:block;font-size:12px}
.catalog-support small{display:block;color:var(--primary);font-size:11px;margin-top:2px}
.catalog-main{min-width:0}
.catalog-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}
.catalog-section-head h1,.catalog-section-head h2{font-size:23px;line-height:1.4;overflow-wrap:anywhere}
.catalog-section-head p{color:#7c8aa1;font-size:12px;margin-top:4px}
.catalog-section-head>a{font-size:12px;white-space:nowrap}
.catalog-section-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px}
.catalog-section-title p{margin:0}
.catalog-system-filter{display:flex;gap:7px;flex-shrink:0}
.catalog-system-filter a{display:block;padding:6px 12px;background:#fff;border:1px solid #e6ebf5;border-radius:8px;color:#64738d;font-size:12px;white-space:nowrap}
.catalog-system-filter a.active{border-color:var(--primary);background:var(--primary);color:#fff}
.catalog-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.catalog-card{background:#fff;border:1px solid #e9edf5;border-radius:14px;padding:22px;min-width:0;box-shadow:0 3px 16px #263e6a04;transition:box-shadow .15s,border-color .15s,transform .15s;display:flex;flex-direction:column}
.catalog-card:hover{border-color:#c8d7ff;box-shadow:0 8px 24px #294b8510;transform:translateY(-2px)}
.catalog-card-heading{display:flex;align-items:flex-start;gap:16px;color:#1f2a42;min-width:0;min-height:84px}
.catalog-card-heading>div:last-child{min-width:0}
.catalog-card-icon{width:56px;height:56px;flex:0 0 56px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#f7f9fe}
.catalog-card-icon img{width:100%;height:100%;object-fit:contain;border-radius:12px}
.catalog-card-icon>span{font-size:28px;color:var(--primary)}
.catalog-card-heading h3{font-size:16px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.catalog-card-version{display:block;font-size:23px;line-height:1.3;margin-top:3px;color:#182139;overflow-wrap:anywhere}
.catalog-platform-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.catalog-platform-tags>span{font-size:11px;color:#647899;background:#f0f3f9;border-radius:20px;padding:1px 9px;overflow-wrap:anywhere}
.catalog-card-description{font-size:12px;color:#667a99;margin:16px 0 10px;padding-top:12px;border-top:1px solid #edf1f8;line-height:1.6}
.catalog-version-labels{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}
.catalog-version-labels>span{display:flex;align-items:center;gap:5px;color:#506481;font-size:12px;overflow-wrap:anywhere;max-width:100%}
.catalog-version-labels>span>span{font-size:15px;line-height:1}
.catalog-version-labels .catalog-mac-icon{font-size:10px}
.catalog-card-detail{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px;padding:10px 12px;border-radius:8px;background:#edf3ff;color:#315fe8;font-size:13px;font-weight:600;width:100%;box-sizing:border-box}
.catalog-card-detail:hover{background:#dfeaff;color:#224ed0}
.catalog-card:first-child .catalog-card-detail{background:var(--primary);color:#fff}
.catalog-card:first-child .catalog-card-detail:hover{background:var(--primary-dark)}
.catalog-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin-top:24px;font-size:12px;color:#6b7e9e}
.catalog-pagination a,.catalog-page-disabled{display:grid;place-items:center;min-width:36px;min-height:36px;padding:6px 12px;border:1px solid #e3eaf6;border-radius:8px;background:#fff;color:#416af0}
.catalog-pagination a.active{color:#fff;background:var(--primary);border-color:var(--primary)}
.catalog-pagination .catalog-page-disabled{color:#a0afc7;background:#fafbfd}
.catalog-page-total{margin-left:8px}
.catalog-guides{margin-top:30px;scroll-margin-top:100px}
.catalog-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.catalog-guide-card{display:flex;flex-direction:column;align-items:flex-start;padding:18px;background:#fff;border:1px solid #e9edf5;border-radius:12px;min-width:0;color:#283751;transition:border-color .15s;position:relative;overflow:hidden}
.catalog-guide-card:after{content:"?";font-size:90px;color:#ecf2ff;position:absolute;right:10px;top:14px;line-height:1;z-index:0;font-weight:700}
.catalog-guide-card>*{position:relative;z-index:1}
.catalog-guide-card:hover{border-color:#c8d7ff}
.catalog-guide-label{background:#edf3ff;color:var(--primary);border-radius:12px;padding:2px 9px;font-size:10px;margin-bottom:10px}
.catalog-guide-card h3{font-size:14px;line-height:1.6;margin-bottom:12px;overflow-wrap:anywhere;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.catalog-guide-card p{font-size:11px;color:#7b89a1;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:12px}
.catalog-guide-action{font-size:11px;color:var(--primary);margin-top:auto}
.catalog-questions,.catalog-category-footer{margin-top:28px;padding-top:24px;border-top:1px solid #e4eaf4;scroll-margin-top:100px}
.catalog-questions h2,.catalog-category-footer h2{font-size:17px;margin-bottom:14px}
.catalog-question-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.catalog-question-grid details{border:1px solid #e6ecf6;border-radius:10px;background:#fff;padding:13px 16px;scroll-margin-top:100px;min-width:0}
.catalog-question-grid summary{font-size:13px;color:#465672;cursor:pointer;overflow-wrap:anywhere}
.catalog-question-grid p{font-size:12px;color:#718098;margin-top:10px;line-height:1.9}
.catalog-category-footer>div{display:flex;flex-wrap:wrap;gap:8px}
.catalog-category-footer a{font-size:12px;color:#586c88;padding:6px 12px;background:#fff;border:1px solid #e6ebf4;border-radius:7px}
.catalog-category-footer a:hover{border-color:var(--primary);color:var(--primary)}
.home-page .site-footer{background:transparent;border-top:0;padding:0 20px 24px;color:#7d8ba1;font-size:12px}
.catalog-search-strip{display:flex;align-items:center;gap:10px;margin-bottom:24px;font-size:13px;color:#7e8ba2}
.catalog-search-strip .catalog-search{margin-left:auto;max-width:470px;height:44px}
.catalog-empty{text-align:center;padding:65px 20px;border:1px solid #e8edf6;border-radius:12px;background:#fff}
.catalog-empty>span{font-size:42px;color:#95abd5}
.catalog-empty h2{font-size:18px;margin:8px 0}
.catalog-empty p{font-size:13px;color:#7d8ba2;margin-bottom:15px}
.catalog-empty>a{font-size:13px}
.catalog-page.is-loading{opacity:.6;pointer-events:none}
.catalog-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.home-page a:focus-visible,.home-page button:focus-visible,.home-page summary:focus-visible{outline:3px solid #8faeff;outline-offset:3px}
@media(max-width:1150px){.catalog-layout{grid-template-columns:200px minmax(0,1fr);gap:20px}.catalog-card-grid,.catalog-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-hero h1{font-size:35px}.catalog-hero{padding:27px}.catalog-card{padding:18px}.catalog-hero-art{padding-right:15px}.catalog-art-note{right:-10px}.catalog-section-head{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:800px){.home-page .content{padding:20px 20px 36px}.home-page .header-inner{padding:0 20px}.home-page .nav{gap:14px}.home-page .nav a{font-size:12px}.home-page .nav a:last-child{margin-left:5px;padding:7px 14px}.catalog-layout{grid-template-columns:170px minmax(0,1fr);gap:16px}.catalog-hero-copy{width:75%}.catalog-hero-art{width:24%;padding:0}.catalog-art-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.catalog-art-tile{border-radius:12px;padding:10px}.catalog-art-note{display:none}.catalog-hero h1{font-size:30px}.catalog-hero-copy>p{font-size:14px}.catalog-hot{gap:7px 11px}.catalog-card-heading{gap:9px}.catalog-card-heading h3{font-size:14px}.catalog-card-icon{width:44px;height:44px;flex-basis:44px}.catalog-card{padding:15px}.catalog-card-description{font-size:11px}.catalog-question-grid{grid-template-columns:1fr}.catalog-sidebar{padding:17px 8px}.catalog-category-list a{padding:9px 7px;gap:7px;font-size:12px}}
/* 窄屏分类全部展示为双列，纵向滚动限制在列表中，避免挤占软件浏览区域。 */
@media(max-width:640px){.home-page .header-inner{height:auto;min-height:92px;flex-wrap:wrap;gap:4px;padding:12px 16px 0}.home-page .logo{font-size:22px}.home-page .logo-icon{width:28px;height:28px}.home-page .nav{width:100%;justify-content:space-between;gap:8px}.home-page .nav a{font-size:12px;padding:9px 0}.home-page .nav a:last-child{padding:5px 12px;margin:0}.home-page .content{padding:16px 16px 30px}.catalog-hero{min-height:0;padding:24px 20px;margin-bottom:18px;border-radius:14px}.catalog-hero-copy{width:100%}.catalog-hero-art{display:none}.catalog-hero h1{font-size:29px;letter-spacing:-.7px}.catalog-hero-copy>p{font-size:12px;margin-bottom:18px}.catalog-search{height:49px;gap:2px}.catalog-search-icon{padding-left:8px;font-size:24px}.catalog-search input{font-size:12px;padding:0 5px}.catalog-search button{font-size:12px;padding:0 12px}.catalog-hot{font-size:10px;gap:6px 10px}.catalog-layout{display:block}.catalog-sidebar{position:static;padding:12px;margin-bottom:20px;max-height:none}.catalog-sidebar h2{font-size:13px;margin:0 4px 8px}.catalog-sidebar>.catalog-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow-y:auto;overflow-x:hidden;max-height:196px;gap:5px}.catalog-sidebar>.catalog-category-list li{min-width:0}.catalog-sidebar>.catalog-category-list a{padding:7px 9px;min-height:34px;white-space:normal;border:1px solid #eff2f8}.catalog-category-count{display:none}.catalog-support{display:none}.catalog-section-head h1,.catalog-section-head h2{font-size:21px}.catalog-section-head{gap:12px;margin-bottom:14px}.catalog-system-filter{gap:6px}.catalog-system-filter a{font-size:11px;padding:5px 11px}.catalog-card-grid,.catalog-guide-grid{gap:10px}.catalog-card{padding:14px 12px}.catalog-card-heading{gap:8px;align-items:flex-start}.catalog-card-icon{width:38px;height:38px;flex-basis:38px;border-radius:8px}.catalog-card-heading h3{font-size:13px}.catalog-card-version{font-size:20px}.catalog-platform-tags>span{font-size:10px}.catalog-card-heading{min-height:88px}.catalog-card-description{font-size:10px;margin:13px 0 12px}.catalog-version-labels{gap:5px}.catalog-version-labels>span{font-size:10px}.catalog-card-detail{font-size:11px;margin-top:12px;gap:8px}.catalog-guides{margin-top:24px}.catalog-guide-grid{grid-template-columns:1fr}.catalog-guide-card{padding:16px}.catalog-guide-card h3{font-size:14px;margin-bottom:8px}.catalog-guide-card p{font-size:12px}.catalog-search-strip{flex-wrap:wrap;margin-bottom:18px}.catalog-search-strip .catalog-search{max-width:none;width:100%;flex-basis:100%;margin:4px 0 0}.catalog-category-footer a{font-size:11px;padding:5px 9px}.catalog-layout,.catalog-guides,.catalog-questions,.catalog-question-grid details{scroll-margin-top:120px}}
@media(max-width:350px){.catalog-card-grid{grid-template-columns:1fr}.catalog-hero{padding:20px 15px}.catalog-hero h1{font-size:26px}.catalog-hot{column-gap:8px}.catalog-search-icon{display:none}.home-page .nav{gap:5px}.home-page .nav a{font-size:11px}}
@media(prefers-reduced-motion:reduce){.catalog-card,.catalog-guide-card{transition:none}.catalog-card:hover{transform:none}}

@media(max-width:800px){.catalog-banner{gap:20px;padding:22px}.catalog-banner h1{font-size:25px}.catalog-banner-copy>p{font-size:12px}}
@media(max-width:640px){.catalog-banner{flex-direction:column;align-items:stretch;gap:16px;padding:20px 18px;margin-bottom:18px;border-radius:14px}.catalog-banner h1{font-size:25px}.catalog-banner .catalog-search{flex-basis:auto;max-width:none;height:48px}.catalog-breadcrumb{font-size:11px;margin-bottom:8px}.catalog-section-title{gap:4px 12px}.catalog-pagination{gap:6px}.catalog-pagination a,.catalog-page-disabled{min-width:32px;min-height:32px;padding:5px 9px}.catalog-page-total{flex-basis:100%;text-align:center;margin:4px 0 0}}
