@font-face{font-family:'Category Serif';src:url('category-serif.woff2');font-weight:700;font-display:swap}
.category-page{--q-serif:'Category Serif','Noto Serif SC','Songti SC',SimSun,serif;--ink:#102e43;--muted:#4c626f;--accent:#007580;--pale:#edf3f4;--line:#cddadf;color:var(--ink)}
.category-hero{position:relative;isolation:isolate;overflow:hidden;background-image:none}
.category-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 43%;z-index:-2}
.category-hero::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(4,28,45,.94),rgba(4,28,45,.77) 35%,rgba(4,28,45,.12) 75%)}
.category-page .q-hero h1{letter-spacing:-.035em}
.category-spread{--pad:clamp(24px,3.1vw,53px);position:relative;width:min(90.5%,1420px);margin:-126px auto 0;padding:26px var(--pad) 42px;background:white}
.category-breadcrumb{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;color:var(--muted);font-size:14px}
.category-breadcrumb ol{display:flex;align-items:center;gap:12px;padding:0;margin:0;list-style:none;min-height:44px}
.category-breadcrumb li+li::before{content:'/';margin-right:12px;color:#7c929e}
.category-breadcrumb a:hover{color:var(--accent)}
.category-switch{position:relative;flex:none;z-index:4}
.category-switch summary{display:flex;align-items:center;gap:14px;min-height:44px;color:var(--accent);font-size:14px;cursor:pointer;list-style:none}
.category-switch summary::-webkit-details-marker{display:none}
.category-switch summary svg{width:17px;height:17px;transition:transform .2s}
.category-switch[open] summary svg{transform:rotate(180deg)}
.category-switch nav{position:absolute;right:0;top:100%;width:440px;display:grid;grid-template-columns:1fr 1fr;gap:2px 16px;padding:18px 24px;background:white;box-shadow:0 8px 28px rgba(8,44,69,.15)}
.category-switch nav a{display:flex;align-items:center;min-height:44px;font-size:15px}
.category-switch nav a[aria-current]{color:var(--accent);font-weight:700}
.category-opening{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:24px}
.category-opening h2{font:700 clamp(29px,2.7vw,40px)/1.4 var(--q-serif);letter-spacing:-.03em;margin:0 0 10px;text-wrap:balance}
.category-opening p{font-size:16px;line-height:1.8;margin:0;color:var(--muted);max-width:42em}
.project-search{width:310px;flex:none;margin:0}
.project-search label{display:block;font-size:14px;font-weight:600;margin-bottom:9px}
.project-search>div{position:relative}
.project-search input{display:block;width:100%;height:50px;min-width:0;padding:0 48px 0 16px;border:1px solid #90a6b1;border-radius:0;color:var(--ink);background:white;font:16px/1.5 'Microsoft YaHei','PingFang SC',sans-serif;caret-color:var(--accent)}
.project-search input::placeholder{color:#566d79;opacity:1}
.project-search input:focus{outline:none;box-shadow:none;border:2px solid var(--accent);padding-left:15px;padding-right:47px}
.project-search button{position:absolute;right:1px;top:1px;display:grid;place-items:center;width:46px;height:48px;background:none;border:0;color:var(--muted);cursor:pointer}
.project-search button:hover{color:var(--accent)}
.icon{width:22px;height:22px;display:inline-block;vertical-align:middle;flex:none}
.filter-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 18px;border-bottom:1px solid var(--line)}
.direction-filter{display:flex;gap:8px;flex-wrap:wrap}
.direction-filter button{font:500 15px/1.5 'Microsoft YaHei','PingFang SC',sans-serif;display:flex;gap:9px;align-items:center;min-height:44px;padding:9px 16px;background:white;border:0;color:var(--muted);cursor:pointer;transition:background .2s,color .2s}
.direction-filter button[aria-pressed=true]{background:var(--ink);color:white}
.direction-filter button:hover:not([aria-pressed=true]){background:var(--pale);color:var(--accent)}
.direction-filter .count{font-size:13px;font-variant-numeric:tabular-nums}
.project-count{font-size:14px;color:var(--muted);margin:0;white-space:nowrap}
.testing-chapter{display:grid;grid-template-columns:minmax(250px,30.5%) minmax(0,1fr);gap:50px;padding-block:34px;border-bottom:1px solid var(--line)}
.chapter-photo{display:block;width:100%;height:auto;aspect-ratio:1.75;object-fit:cover;background:var(--pale);transition:filter .35s}
.testing-chapter:hover .chapter-photo{filter:brightness(1.06)}
.chapter-heading h3{font:700 clamp(26px,2.4vw,34px)/1.4 var(--q-serif);letter-spacing:-.025em;margin:16px 0 8px}
.chapter-heading p{font-size:16px;line-height:1.8;color:var(--muted);margin:0;max-width:27em}
.chapter-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px;align-content:start;list-style:none;margin:0;padding:0}
.chapter-projects li{min-width:0;border-bottom:1px solid var(--line)}
.chapter-projects a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:17px 3px;font-size:18px;line-height:1.6;transition:color .2s,background .2s}
.chapter-projects a .icon{width:19px;height:19px;color:var(--accent);transition:transform .2s}
.chapter-projects a:hover{color:var(--accent);background:#f5f8f9}
.chapter-projects a:hover .icon{transform:translate(3px,-3px)}
.empty-projects{padding:48px 0}
.empty-projects h3{font:700 30px/1.4 var(--q-serif);margin:0 0 12px}
.empty-projects p{font-size:16px;color:var(--muted);line-height:1.8;margin:0 0 18px}
.text-action{background:none;border:0;padding:10px 0;min-height:44px;font:600 16px/1.5 'Microsoft YaHei','PingFang SC',sans-serif;color:var(--accent);cursor:pointer}
.category-enquiry{display:flex;justify-content:space-between;align-items:center;gap:50px;margin-top:36px;padding:30px 36px;background:var(--pale)}
.category-enquiry h2{font:700 clamp(28px,2.4vw,35px)/1.4 var(--q-serif);letter-spacing:-.025em;margin:0 0 12px}
.category-enquiry p{font-size:16px;line-height:1.85;color:var(--muted);margin:0;max-width:37em}
.primary-action{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:52px;margin-top:20px;padding:12px 24px;background:var(--ink);color:white;font-size:16px;font-weight:600;transition:background .2s}
.primary-action:hover{background:#175673}.primary-action .icon{transition:transform .2s}.primary-action:hover .icon{transform:translateX(3px)}
.enquiry-details{flex:none}
.enquiry-details>a{display:block;font-size:clamp(26px,2.2vw,34px);line-height:1.5;font-weight:600;letter-spacing:-.025em}
.enquiry-details>a:hover{color:var(--accent)}
.enquiry-details p{font-size:15px;margin-top:6px}.enquiry-details p a{overflow-wrap:anywhere}
.category-page [hidden]{display:none!important}
.category-page :is(a,button,summary):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.category-page ::selection{background:#c6e8eb;color:var(--ink)}
@media(max-width:1100px){.category-opening{display:block}.project-search{margin-top:20px;width:100%}.testing-chapter{gap:30px;grid-template-columns:32% minmax(0,1fr)}.chapter-projects{gap:0 20px}.chapter-projects a{font-size:17px}.category-enquiry{gap:30px;padding:28px}.category-enquiry h2{font-size:29px}.filter-row{align-items:flex-start}}
@media(max-width:900px){.category-enquiry{align-items:flex-start;flex-direction:column;gap:24px}.category-switch nav{width:400px}.chapter-projects{grid-template-columns:1fr}.chapter-projects a{min-height:54px;padding:12px 2px}.testing-chapter{grid-template-columns:40% minmax(0,1fr)}.chapter-photo{aspect-ratio:1.35}.filter-row{flex-direction:column;gap:10px}.direction-filter{gap:4px}.direction-filter button{padding-inline:13px}}
@media(max-width:760px){.category-spread{margin-top:-116px;padding-top:18px;padding-bottom:28px}.category-hero>img{object-position:65% 43%}.category-opening h2{font-size:28px}.category-opening p{font-size:15px}.category-breadcrumb{gap:12px;margin-bottom:14px}.category-breadcrumb ol{font-size:13px;gap:8px}.category-breadcrumb li+li::before{margin-right:8px}.category-switch summary{font-size:13px;gap:5px}.category-switch nav{width:min(83vw,380px);padding:12px 18px}.testing-chapter{gap:24px;padding-block:28px}.chapter-heading h3{font-size:26px}.chapter-heading p{font-size:15px}.project-search{margin-top:16px}.category-enquiry{margin-top:28px;padding:24px}.category-enquiry p{font-size:15px}}
@media(max-width:540px){.testing-chapter{grid-template-columns:1fr;gap:12px}.chapter-photo{aspect-ratio:2.05}.chapter-heading h3{margin-top:14px}.chapter-projects{grid-template-columns:1fr 1fr;gap:0 18px}.chapter-projects a{font-size:15px;min-height:60px;gap:5px}.chapter-projects a .icon{width:16px;height:16px}.chapter-heading p{font-size:15px}.direction-filter{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:5px}.direction-filter button{justify-content:space-between;font-size:14px}.project-search input{font-size:15px}.category-enquiry h2{font-size:28px;max-width:9em}.enquiry-details>a{font-size:27px}.enquiry-details p{font-size:14px}}
@media(max-width:430px){.category-spread{width:94%;--pad:18px}.category-breadcrumb ol{font-size:12px}.category-switch summary{font-size:12px}.category-opening h2{font-size:26px}.category-enquiry{padding:22px 18px}.category-enquiry h2{font-size:26px}.chapter-projects{gap:0 14px}}
@media(prefers-reduced-motion:reduce){.category-page *{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:760px){.category-long-title .q-hero h1{font-size:clamp(30px,8.5vw,44.1px)}}
