:root { --bg:#f3f5f8; --surface:#fff; --surface-soft:#f7f8fb; --ink:#172033; --muted:#687386; --line:#e3e7ee; --brand:#2563eb; --brand-soft:#edf3ff; --shadow:0 10px 28px rgba(25,39,68,.07); --radius:14px; --container:1240px; }
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;color:var(--ink);background:#f4f6f9;font-family:"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased} a{color:inherit;text-decoration:none} button,input{font:inherit} img{display:block;max-width:100%} [hidden]{display:none!important}
.container{width:min(calc(100% - 40px),var(--container));margin:0 auto}
.announcement-bar{color:#dce7ff;background:linear-gradient(90deg,#101827,#17305e 55%,#123f4d);border-bottom:1px solid rgba(255,255,255,.08)}.announcement-inner{min-height:38px;display:flex;align-items:center;gap:10px;font-size:12px}.announcement-label{padding:3px 8px;color:#fff;border-radius:6px;background:var(--brand);font-size:10px;font-weight:800}.announcement-inner p{min-width:0;flex:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.announcement-inner a{color:#fff;font-weight:700;white-space:nowrap}
.site-header{position:sticky;top:0;z-index:40;border-bottom:1px solid rgba(227,231,238,.9);background:rgba(255,255,255,.94);backdrop-filter:blur(16px)}.header-main{min-height:78px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,540px) minmax(260px,1fr);align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 6px 18px rgba(23,32,51,.07)}.brand-mark img{width:38px;height:38px;object-fit:contain}.brand-copy{display:grid;min-width:0;line-height:1.2}.brand-copy strong{font-size:18px}.brand-copy small{max-width:280px;margin-top:4px;overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.header-search{position:relative;display:flex;align-items:center;min-height:46px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);transition:.2s ease}.header-search:focus-within{border-color:rgba(37,99,235,.45);background:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.07)}.header-search svg{width:18px;height:18px;fill:none;stroke:#7c8799;stroke-width:1.8;stroke-linecap:round}.header-search input{flex:1;min-width:0;height:44px;padding:0 10px;border:0;outline:0;background:transparent;font-size:13px}.header-search kbd{padding:3px 7px;color:#8490a3;border:1px solid #d9dee8;border-bottom-width:2px;border-radius:6px;background:#fff;font-size:10px}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px}.header-stat{display:grid;text-align:right;line-height:1.1}.header-stat strong{font-size:15px}.header-stat small{margin-top:3px;color:var(--muted);font-size:10px}.admin-entry{padding:9px 13px;color:var(--brand);border:1px solid rgba(37,99,235,.18);border-radius:9px;background:var(--brand-soft);font-size:12px;font-weight:750}
.category-dock{position:sticky;top:78px;z-index:35;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);box-shadow:0 6px 16px rgba(23,32,51,.035)}.category-dock-inner{display:flex;align-items:center;gap:8px;min-height:54px;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth}.category-dock-inner::-webkit-scrollbar{display:none}.category-link{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:9px 13px;color:#566174;border-radius:9px;font-size:12px;font-weight:700;transition:.18s ease}.category-link:hover{color:var(--brand);background:var(--brand-soft)}.category-link.is-active{color:#fff;background:var(--brand);box-shadow:0 7px 18px rgba(37,99,235,.22)}.category-link span{display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:6px;background:rgba(255,255,255,.16);font-size:10px}.category-link:not(.is-active) span{color:var(--brand);background:var(--brand-soft)}
main{min-height:60vh}.hero{padding:44px 0 38px}.hero-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:36px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--brand);font-size:10px;font-weight:850;letter-spacing:1.8px}.eyebrow i{width:7px;height:7px;border-radius:50%;background:#19a88f;box-shadow:0 0 0 4px rgba(25,168,143,.11)}.hero h1{margin:12px 0 10px;font-size:clamp(32px,4vw,48px);line-height:1.12;letter-spacing:-1.7px}.hero h1 span{color:var(--brand)}.hero p{margin:0;color:var(--muted);font-size:14px}.hero-panel{display:grid;grid-template-columns:repeat(3,1fr);min-width:370px;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.hero-panel>div{display:grid;min-width:112px;padding:17px 18px;border-left:1px solid var(--line)}.hero-panel>div:first-child{border-left:0}.hero-panel span{color:var(--muted);font-size:10px}.hero-panel strong{margin-top:5px;font-size:22px;line-height:1}
.content-section{padding:32px 0}.featured-section{padding-top:8px}.category-stack{display:grid;gap:14px;padding-bottom:42px}.category-section{padding:24px 0 28px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.section-heading>div>span{color:var(--brand);font-size:10px;font-weight:850;letter-spacing:1.7px}.section-heading h2{margin:4px 0 3px;font-size:24px;letter-spacing:-.7px}.section-heading p{margin:0;color:var(--muted);font-size:12px}.section-count{color:#8590a2;font-size:11px;white-space:nowrap}
.section-heading--category{position:relative;display:flex;margin-bottom:16px;padding:17px 18px;border:1px solid var(--line);border-bottom:0;border-radius:var(--radius) var(--radius) 0 0;background:#fff}.category-heading-copy{display:flex;align-items:center;gap:13px}.category-number{display:grid;place-items:center;width:42px;height:42px;color:#fff;border-radius:12px;background:linear-gradient(145deg,var(--brand),#5791ff);font-size:11px;font-weight:850}.category-heading-copy h2{margin:0;font-size:21px}.category-heading-copy p{margin:2px 0 0}
.site-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.category-section .site-grid{padding:14px;border:1px solid var(--line);border-radius:0 0 var(--radius) var(--radius);background:#fff;box-shadow:0 8px 24px rgba(23,32,51,.035)}.site-card{position:relative;display:flex;min-height:244px;flex-direction:column;padding:15px;overflow:hidden;border:1px solid #e5e9f0;border-radius:12px;background:linear-gradient(180deg,#fff,#fcfdff);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.site-card::before{content:"";position:absolute;inset:0;opacity:0;background:linear-gradient(145deg,rgba(37,99,235,.055),transparent 52%);transition:opacity .2s ease}.site-card:hover{transform:translateY(-3px);border-color:rgba(37,99,235,.32);box-shadow:0 14px 30px rgba(27,50,96,.1)}.site-card:hover::before{opacity:1}.site-card-hit{position:absolute;inset:0;z-index:3;border-radius:inherit}.site-card>:not(.site-card-hit){position:relative;z-index:2;pointer-events:none}
.site-card-head{display:flex;align-items:center;gap:11px;min-width:0}.site-logo{display:grid;place-items:center;flex:0 0 auto;width:50px;height:50px;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 6px 14px rgba(23,32,51,.06)}.site-logo img{width:34px;height:34px;object-fit:contain}.site-title{display:grid;min-width:0}.site-name-line{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.site-name-line h3{max-width:100%;margin:0;overflow:hidden;font-size:15px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.site-category{margin-top:3px;color:#8a94a5;font-size:10px}.badge{display:inline-flex;padding:2px 6px;border-radius:5px;font-size:9px;font-weight:800;line-height:1.35}.badge--recommend{color:var(--brand);background:var(--brand-soft)}.badge--hot{color:#b65c18;background:#fff0e4}
.site-description{display:-webkit-box;min-height:40px;margin:13px 0 10px;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:2}.site-address{display:flex;align-items:center;gap:7px;min-width:0;padding:8px 9px;border-radius:8px;background:#f5f7fb;font-size:10px}.site-address span{flex:0 0 auto;color:#8d97a7}.site-address strong{min-width:0;overflow:hidden;color:#425269;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.site-card-meta{display:flex;align-items:center;gap:13px;margin-top:10px;color:#8b95a6;font-size:10px}.site-card-meta b{color:#556176;font-size:10px}.site-action{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:12px;color:var(--brand);font-size:12px;font-weight:800}.site-action i{display:grid;place-items:center;width:26px;height:26px;color:#fff;border-radius:8px;background:var(--brand);font-size:14px;font-style:normal;transition:transform .2s ease}.site-card:hover .site-action i{transform:translateX(3px)}
.search-empty{margin-top:30px;padding:70px 20px;text-align:center}.search-empty>span{display:grid;place-items:center;width:58px;height:58px;margin:0 auto;color:var(--brand);border-radius:16px;background:var(--brand-soft);font-size:28px}.search-empty h2{margin:16px 0 4px;font-size:21px}.search-empty p{margin:0;color:var(--muted);font-size:13px}.site-footer{border-top:1px solid var(--line);background:#fff}.footer-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand>span{display:grid}.footer-brand strong{font-size:13px}.footer-brand small{color:var(--muted);font-size:10px}.footer-links{display:flex;gap:20px;color:var(--muted);font-size:11px}.footer-links a:hover{color:var(--brand)}
.message-page{display:grid;min-height:100vh;place-items:center;padding:24px;background:linear-gradient(145deg,#f3f6ff,#f5fbfa)}.message-card{width:min(520px,100%);padding:48px 34px;text-align:center;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow)}.message-card img{margin:0 auto 18px}.message-card>span{color:var(--brand);font-size:11px;font-weight:800;letter-spacing:2px}.message-card h1{margin:8px 0;font-size:30px}.message-card p{margin:0 0 22px;color:var(--muted)}.message-card a{display:inline-flex;padding:11px 17px;color:#fff;border-radius:10px;background:var(--brand);font-weight:700}
@media(max-width:1080px){.header-main{grid-template-columns:minmax(220px,1fr) minmax(280px,1fr) auto}.header-stat{display:none}.site-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-panel{min-width:330px}}
@media(max-width:820px){.container{width:min(calc(100% - 24px),var(--container))}.header-main{grid-template-columns:1fr auto;gap:12px;padding:12px 0}.brand-copy small{max-width:210px}.header-search{grid-column:1/-1;grid-row:2}.admin-entry{padding:8px 10px}.category-dock{top:126px}.category-dock-inner{min-height:50px}.hero{padding:34px 0 22px}.hero-inner{grid-template-columns:1fr;align-items:start;gap:22px}.hero h1{font-size:34px}.hero-panel{width:100%;min-width:0}.site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-card{min-height:238px}.footer-inner{align-items:flex-start;flex-direction:column;padding:24px 0}}
@media(max-width:540px){.container{width:min(calc(100% - 18px),var(--container))}.announcement-inner{min-height:36px}.announcement-inner p{font-size:11px}.header-main{min-height:72px}.brand-mark{width:42px;height:42px}.brand-copy strong{font-size:16px}.brand-copy small{max-width:150px}.header-actions{gap:8px}.admin-entry{font-size:0}.admin-entry::after{content:"管理";font-size:11px}.category-dock{top:121px}.hero{padding-top:26px}.hero h1{font-size:29px;letter-spacing:-1px}.hero-panel>div{min-width:0;padding:13px 10px;text-align:center}.hero-panel strong{font-size:19px}.site-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-section .site-grid{padding:9px;gap:8px}.site-card{min-height:229px;padding:11px}.site-logo{width:43px;height:43px;border-radius:11px}.site-logo img{width:29px;height:29px}.site-name-line h3{font-size:14px}.site-description{min-height:37px;font-size:11px}.site-card-meta{gap:7px}.site-card-meta span:nth-child(3){display:none}.section-heading--category{padding:14px 12px}.category-number{width:36px;height:36px}.category-heading-copy h2{font-size:18px}.section-count{display:none}}
@media(max-width:380px){.site-grid,.site-grid--featured{grid-template-columns:1fr}.site-card{min-height:218px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Dark commercial theme */
:root{
  color-scheme:dark;
  --bg:#0f1116;
  --surface:#181b21;
  --surface-soft:#20242b;
  --ink:#f0f2f6;
  --muted:#a0a7b4;
  --line:#2a3039;
  --brand:#5f7cff;
  --brand-soft:rgba(95,124,255,.14);
  --shadow:0 14px 36px rgba(0,0,0,.26);
}
body{color:var(--ink);background:#0f1116}
.announcement-bar{color:#dbe4f7;background:linear-gradient(90deg,#141922,#1a2742 55%,#173039);border-bottom-color:rgba(255,255,255,.06)}
.site-header{background:rgba(15,17,22,.94);border-bottom-color:var(--line)}
.brand-mark{background:#20242b;border-color:#303641;box-shadow:0 8px 22px rgba(0,0,0,.24)}
.brand-copy strong{color:#f5f7fb}
.brand-copy small{color:#8f97a5}
.header-search{background:#1b1f26;border-color:#2b313b}
.header-search:focus-within{background:#20252d;border-color:rgba(95,124,255,.55);box-shadow:0 0 0 4px rgba(95,124,255,.1)}
.header-search input{color:#f3f5f9}
.header-search input::placeholder{color:#777f8d}
.header-search kbd{color:#9aa2b0;border-color:#343b46;border-bottom-color:#414956;background:#252a32}
.header-stat small{color:#8f97a5}
.admin-entry{color:#9ab0ff;border-color:rgba(95,124,255,.28);background:rgba(95,124,255,.12)}
.category-dock{background:rgba(18,21,27,.96);border-bottom-color:var(--line);box-shadow:0 8px 20px rgba(0,0,0,.2)}
.category-link{color:#a3aab7}
.category-link:hover{color:#fff;background:rgba(95,124,255,.12)}
.category-link.is-active{color:#fff;background:var(--brand);box-shadow:0 8px 22px rgba(95,124,255,.25)}
.category-link:not(.is-active) span{color:#aebcff;background:rgba(95,124,255,.12)}
.hero{background:linear-gradient(180deg,#12151b,#0f1116);border-bottom:1px solid #20252d}
.eyebrow{color:#8ea4ff}
.hero h1{color:#f5f7fb}
.hero h1 span{color:#7f97ff}
.hero p{color:#9aa2af}
.hero-panel{background:#181b21;border-color:var(--line);box-shadow:0 18px 42px rgba(0,0,0,.26)}
.hero-panel>div{border-left-color:var(--line)}
.hero-panel span{color:#8f97a5}
.hero-panel strong{color:#f3f5f9}
.content-section{background:transparent}
.featured-section{background:#111419;border-bottom-color:#20252d}
.section-heading>div>span{color:#8da3ff}
.section-heading h2{color:#f1f3f7}
.section-heading p,.category-heading-copy p{color:#969eac}
.section-count{color:#858d9a}
.section-heading--category{background:#181b21;border-color:var(--line)}
.category-number{background:linear-gradient(145deg,#4e6df5,#6f8cff)}
.category-section .site-grid{background:#15181e;border-color:var(--line);box-shadow:0 12px 30px rgba(0,0,0,.18)}
.site-card{background:linear-gradient(180deg,#1c2027,#171a20);border-color:#2b313b;box-shadow:0 8px 22px rgba(0,0,0,.2)}
.site-card::before{background:linear-gradient(145deg,rgba(95,124,255,.1),transparent 54%)}
.site-card:hover{background:linear-gradient(180deg,#222730,#1b1f26);border-color:rgba(106,135,255,.48);box-shadow:0 16px 34px rgba(0,0,0,.32)}
.site-logo{background:#22262e;border-color:#343a45;box-shadow:0 7px 16px rgba(0,0,0,.24)}
.site-name-line h3{color:#f2f4f8}
.badge--recommend{color:#9cb0ff;background:rgba(95,124,255,.16)}
.badge--hot{color:#ffc184;background:rgba(232,123,44,.16)}
.site-description{color:#a4abb8}
.site-action{color:#91a6ff}
.site-action i{background:var(--brand);box-shadow:0 6px 16px rgba(95,124,255,.28)}
.search-empty>span{color:#9cb0ff;background:rgba(95,124,255,.13)}
.search-empty h2{color:#f0f2f6}
.search-empty p{color:#969eac}
.site-footer{background:#14171d;border-top-color:var(--line)}
.footer-brand strong{color:#eef1f6}
.footer-brand small,.footer-links{color:#8f97a5}
.footer-links a:hover{color:#a7b7ff}
.message-page{background:#0f1116}
.message-card{background:#181b21;border-color:var(--line);color:#f0f2f6;box-shadow:0 18px 48px rgba(0,0,0,.3)}
.message-card p{color:#9da5b2}
@media(max-width:820px){.hero{background:#111419}.site-header{background:rgba(15,17,22,.97)}}
.site-card{min-height:190px}
.site-description{min-height:40px;margin:14px 0 0}
.site-action{padding-top:16px}

/* Compact commercial layout */
.announcement-inner{min-height:32px}
.header-main{min-height:68px;gap:20px}
.header-search{min-height:42px}
.header-search input{height:40px}
.header-actions{gap:14px}
.brand{gap:10px}
.brand-mark{width:42px;height:42px;border-radius:12px}
.brand-mark img{width:34px;height:34px}
.category-dock{top:68px}
.category-dock-inner{min-height:46px}
.category-link{padding:7px 11px}
.hero{padding:22px 0 18px}
.hero-inner{gap:24px}
.hero h1{margin:8px 0 6px;font-size:clamp(28px,3.2vw,38px);line-height:1.1;letter-spacing:-1.2px}
.hero p{font-size:13px}
.hero-panel>div{padding:12px 14px}
.hero-panel strong{margin-top:3px;font-size:18px}
.content-section{padding:16px 0}
.featured-section{padding-top:2px}
.category-stack{gap:10px;padding-bottom:26px}
.category-section{padding:12px 0 16px}
.section-heading{margin-bottom:11px}
.section-heading h2{margin:2px 0;font-size:20px}
.section-heading--category{margin-bottom:0;padding:10px 13px}
.category-number{width:34px;height:34px;border-radius:10px}
.category-heading-copy{gap:10px}
.category-heading-copy h2{font-size:18px}
.site-grid{gap:10px}
.category-section .site-grid{padding:10px}
.site-card{min-height:166px;padding:12px}
.site-logo{width:44px;height:44px;border-radius:11px}
.site-logo img{width:30px;height:30px}
.site-description{min-height:34px;margin:10px 0 0;line-height:1.55}
.site-action{padding-top:10px}
@media(max-width:1080px){.hero-panel{min-width:300px}}
@media(max-width:820px){
  .header-main{gap:10px;padding:9px 0}
  .category-dock{top:126px}
  .hero{padding:18px 0 14px}
  .hero-inner{gap:14px}
  .hero h1{font-size:28px}
  .hero-panel>div{padding:10px 8px}
  .content-section{padding:12px 0}
  .featured-section{padding-top:0}
  .category-section{padding:10px 0 14px}
  .site-card{min-height:166px}
}
@media(max-width:540px){
  .announcement-inner{min-height:32px}
  .hero{padding-top:14px}
  .hero h1{font-size:25px}
  .site-grid{gap:8px}
  .category-section .site-grid{padding:8px}
  .site-card{min-height:164px;padding:10px}
  .site-logo{width:40px;height:40px}
  .site-logo img{width:28px;height:28px}
  .site-description{min-height:32px;margin-top:8px;font-size:11px}
  .section-heading--category{padding:9px 10px}
}
/* Final density pass */
.hero{padding:16px 0 14px}
.hero-inner{gap:20px}
.hero h1{margin:6px 0 4px;font-size:clamp(26px,3vw,34px);line-height:1.06}
.hero-panel>div{padding:10px 12px}
.hero-panel strong{font-size:17px}
.section-heading{margin-bottom:9px}
@media(max-width:820px){
  .hero{padding:14px 0 12px}
  .hero .eyebrow{display:none}
  .hero-inner{gap:10px}
  .hero h1{margin:0 0 4px;font-size:23px;line-height:1.06;letter-spacing:-.7px}
  .hero p{font-size:11px}
  .hero-panel>div{padding:8px 7px}
  .hero-panel span{font-size:9px}
  .hero-panel strong{margin-top:2px;font-size:16px}
  .section-heading{margin-bottom:8px}
  .section-heading h2{font-size:18px}
}
/* Ultra compact commercial homepage */
.announcement-inner{min-height:30px}
.header-main{min-height:62px;gap:16px}
.header-search{min-height:40px}
.header-search input{height:38px}
.header-actions{gap:12px}
.brand{gap:9px}
.brand-mark{width:40px;height:40px;border-radius:11px}
.brand-mark img{width:32px;height:32px}
.category-dock{top:62px}
.category-dock-inner{min-height:44px}
.category-link{padding:6px 10px}
.hero{padding:10px 0 8px}
.hero-inner{gap:18px;align-items:center}
.hero h1{margin:4px 0 3px;font-size:clamp(24px,2.7vw,30px);line-height:1.06;letter-spacing:-1px;white-space:nowrap}
.hero h1 br{display:none}
.hero h1 span{margin-left:.35em}
.hero p{margin:0;font-size:12px}
.hero-panel>div{padding:9px 12px}
.hero-panel strong{margin-top:2px;font-size:16px}
.content-section{padding:10px 0}
.featured-section{padding-top:0;padding-bottom:10px}
.category-stack{gap:8px;padding-bottom:20px}
.category-section{padding:8px 0 10px}
.section-heading{margin-bottom:8px}
.section-heading h2{margin:1px 0;font-size:19px}
.section-heading p{font-size:11px}
.section-heading--category{margin-bottom:0;padding:8px 11px}
.category-number{width:32px;height:32px;border-radius:9px}
.category-heading-copy{gap:9px}
.category-heading-copy h2{font-size:17px}
.category-heading-copy p{font-size:11px}
.site-grid{gap:8px}
.category-section .site-grid{padding:8px}
.site-card{min-height:148px;padding:10px}
.site-logo{width:40px;height:40px;border-radius:10px}
.site-logo img{width:27px;height:27px}
.site-description{min-height:30px;margin:8px 0 0;line-height:1.5}
.site-action{padding-top:8px;font-size:11px}
.site-action i{width:24px;height:24px;border-radius:7px}
@media(max-width:820px){
  .header-main{gap:8px;padding:6px 0}
  .category-dock{top:97px}
  .category-dock-inner{min-height:42px}
  .hero{padding:9px 0 8px}
  .hero-inner{gap:8px}
  .hero h1{font-size:21px;letter-spacing:-.7px}
  .hero p{font-size:10px}
  .hero-panel>div{padding:7px 6px}
  .hero-panel strong{font-size:15px}
  .content-section{padding:8px 0}
  .featured-section{padding-top:0;padding-bottom:8px}
  .category-stack{gap:7px;padding-bottom:16px}
  .category-section{padding:7px 0 9px}
  .section-heading{margin-bottom:7px}
  .site-card{min-height:148px}
}
@media(max-width:540px){
  .announcement-inner{min-height:30px}
  .header-search{min-height:38px}
  .header-search input{height:36px}
  .brand-mark{width:38px;height:38px}
  .category-dock{top:94px}
  .category-dock-inner{min-height:41px}
  .hero{padding-top:8px}
  .hero h1{font-size:20px}
  .site-grid{gap:7px}
  .category-section .site-grid{padding:7px}
  .site-card{min-height:144px;padding:9px}
  .site-description{min-height:30px;margin-top:7px;font-size:11px}
  .section-heading--category{padding:8px 9px}
}
/* Mobile focus: search and site cards only */
@media(max-width:820px){
  .brand-copy{display:none}
  .hero{display:none}
  .featured-section{padding-top:8px}
  .category-stack{padding-top:2px}
}
@media(max-width:540px){
  .featured-section{padding-top:7px}
  .category-stack{padding-top:1px}
}
/* Mobile three-column card grid */
@media(max-width:540px){
  .site-grid,.site-grid--featured{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .category-section .site-grid{padding:6px;gap:6px}
  .site-card{min-height:132px;padding:7px}
  .site-card-head{gap:6px}
  .site-logo{width:34px;height:34px;border-radius:8px}
  .site-logo img{width:23px;height:23px}
  .site-name-line{gap:3px}
  .site-name-line h3{font-size:11px;line-height:1.2}
  .site-description{min-height:29px;margin:6px 0 0;font-size:10px;line-height:1.45}
  .site-action{padding-top:6px;font-size:10px}
  .site-action i{width:21px;height:21px;border-radius:6px;font-size:11px}
  .category-section{padding:6px 0 8px}
  .section-heading--category{padding:7px 8px}
  .category-number{width:28px;height:28px;border-radius:8px;font-size:9px}
  .category-heading-copy{gap:7px}
  .category-heading-copy h2{font-size:15px}
  .category-heading-copy p{font-size:10px}
}
/* Mobile four-column directory cards */
@media(max-width:540px){
  .brand-copy{display:grid}
  .brand-copy strong{font-size:15px;line-height:1.15}
  .brand-copy small{display:none}
  .header-main{gap:7px;padding:5px 0}
  .brand-mark{width:36px;height:36px;border-radius:10px}
  .brand-mark img{width:29px;height:29px}
  .header-search{min-height:38px}
  .header-search input{height:36px}
  .category-dock{top:94px}
  .category-dock-inner{min-height:41px}
  .hero{display:none}
  .category-section{padding:5px 0 7px}
  .site-grid:not(.site-grid--featured){grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .category-section .site-grid{padding:5px;gap:5px}
  .category-section .site-card{min-height:76px;padding:6px;justify-content:center}
  .category-section .site-card-head{gap:5px}
  .category-section .site-logo{width:28px;height:28px;border-radius:7px}
  .category-section .site-logo img{width:20px;height:20px}
  .category-section .site-name-line h3{font-size:10px;line-height:1.15}
  .category-section .site-description,
  .category-section .site-action{display:none}
  .category-section .section-heading--category{padding:7px 7px}
  .category-section .category-number{width:26px;height:26px;border-radius:7px;font-size:8px}
  .category-section .category-heading-copy{gap:6px}
  .category-section .category-heading-copy h2{font-size:15px}
  .category-section .category-heading-copy p{font-size:10px}
  .featured-section .site-grid--featured{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .featured-section .site-card{min-height:142px;padding:9px}
  .featured-section .site-card-head{gap:7px}
  .featured-section .site-logo{width:38px;height:38px;border-radius:9px}
  .featured-section .site-logo img{width:26px;height:26px}
  .featured-section .site-name-line h3{font-size:12px;line-height:1.2}
  .featured-section .site-description{display:-webkit-box;min-height:30px;margin:7px 0 0;font-size:10px;line-height:1.45}
  .featured-section .site-action{display:flex;padding-top:7px;font-size:10px}
  .featured-section .site-action i{width:21px;height:21px;border-radius:6px;font-size:11px}
}

/* Mobile compact ordinary cards */
@media(max-width:540px){
  .category-section .site-card{min-height:62px;padding:4px 5px;justify-content:center}
  .category-section .site-card-head{gap:4px}
  .category-section .site-logo{width:24px;height:24px;border-radius:6px}
  .category-section .site-logo img{width:17px;height:17px}
  .category-section .site-name-line h3{font-size:9.5px;line-height:1.1}
}
