

:root {
  --ink: #0a0a0a;
  --charcoal: #222222;
  --steel: #626262;
  --muted: #909090;
  --canvas: #ffffff;
  --surface: #f6f6f6;
  --hairline: #e7e7e7;
  --coral: #ff5530;
  --magenta: #ea5ec1;
  --blue: #1456f0;
  --purple: #a855f7;
  --green: #168f55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
main { min-height: 100vh; overflow: clip; }

.site-header, .section-shell { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255,255,255,.92);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 650; letter-spacing: -.03em; white-space: nowrap; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
nav a { color: #4f4f4f; font-size: 14px; transition: color .18s ease; }
nav a:hover { color: var(--ink); }
.header-cta { margin-left: 34px; display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: white; font-size: 13px; font-weight: 600; }

.hero {
  width: min(1020px, calc(100% - 64px));
  min-height: 620px;
  margin-inline: auto;
  padding: 104px 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-kicker { margin: 0 0 32px; display: flex; align-items: center; gap: 11px; color: var(--steel); font-size: 12px; }
.hero-kicker span { background: var(--coral); color: white; padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.hero-kicker i { width: 3px; height: 3px; border-radius: 50%; background: #b8b8b8; }
h1 { margin: 0; max-width: 980px; font-size: clamp(58px, 7vw, 88px); line-height: 1.08; letter-spacing: -.065em; font-weight: 610; }
h1 span { color: #8c8c8c; }
.hero-lede { max-width: 680px; margin: 30px auto 36px; color: var(--steel); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.button { border: 0; min-height: 46px; padding: 11px 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; font-size: 14px; font-weight: 620; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: #242424; }
.button-secondary { background: white; color: var(--ink); border: 1px solid var(--ink); }
.button-light { background: white; color: var(--ink); }

.matrix { padding: 10px 0 96px; }
.section-intro { margin-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); align-items: end; gap: 64px; }
.section-label { margin: 0 0 15px; color: var(--steel); font-size: 11px; font-weight: 650; letter-spacing: .13em; }
.section-intro h2, .about h2 { margin: 0; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.12; letter-spacing: -.055em; font-weight: 610; }
.section-intro > p { margin: 0; color: var(--steel); font-size: 15px; line-height: 1.7; }
.product-matrix { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.product-card {
  aspect-ratio: .78;
  min-height: 360px;
  border: 0;
  border-radius: 32px;
  padding: 26px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: transform .22s ease;
}
.product-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -100px; top: -100px; background: rgba(255,255,255,.24); filter: blur(2px); z-index: -1; }
.product-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; left: -100px; bottom: -120px; background: rgba(0,0,0,.13); filter: blur(4px); z-index: -1; }
.product-card:hover { transform: translateY(-5px); }
.product-card.coral { background: linear-gradient(145deg,#ff2d19,#ff8a28); }
.product-card.magenta { background: linear-gradient(145deg,#e54db2,#c04bf5); }
.product-card.blue { background: linear-gradient(145deg,#2474ff,#063ad0); }
.product-card.purple { background: linear-gradient(145deg,#d45cf0,#8244e8); }
.product-number, .product-count { font-size: 11px; font-weight: 650; letter-spacing: .06em; }
.product-count { margin-left: auto; margin-top: -14px; opacity: .78; letter-spacing: 0; }
.product-card strong { margin-top: auto; font-size: clamp(28px,2.7vw,42px); line-height: 1.04; letter-spacing: -.045em; font-weight: 620; }
.product-card small { margin-top: 9px; max-width: 190px; font-size: 13px; line-height: 1.45; opacity: .82; }
.product-arrow { position: absolute; right: 25px; bottom: 26px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; font-size: 17px; }

.stats { padding: 40px 0 104px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: repeat(4,1fr); }
.stats article { min-height: 140px; padding: 25px 28px; border-left: 1px solid var(--hairline); }
.stats article:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font-size: 42px; line-height: 1; letter-spacing: -.055em; font-weight: 610; }
.stats span { display: block; margin-top: 14px; font-size: 14px; font-weight: 620; }
.stats p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.catalog { padding: 96px 0 120px; border-top: 1px solid var(--hairline); }
.catalog-intro { margin-bottom: 42px; }
.filter-panel { position: sticky; top: 0; z-index: 10; margin-bottom: 26px; padding: 14px 0; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hairline); }
.toolbar { display: flex; align-items: center; gap: 12px; }
.search-box { min-height: 48px; flex: 1; display: flex; align-items: center; gap: 13px; border: 1px solid #d9d9d9; border-radius: 999px; padding: 0 18px; background: var(--canvas); transition: border-color .18s ease; }
.search-box:focus-within { border-color: var(--ink); }
.search-icon { width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ""; width: 6px; height: 1.5px; background: var(--ink); position: absolute; right: -4px; bottom: -2px; transform: rotate(45deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #9b9b9b; }
.clear-search { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; }
.scope-toggle { padding: 4px; border: 1px solid var(--hairline); border-radius: 999px; display: flex; background: var(--surface); }
.scope-toggle button { min-height: 38px; padding: 8px 17px; border: 0; border-radius: 999px; background: transparent; color: var(--steel); font-size: 13px; cursor: pointer; }
.scope-toggle button.active { background: var(--ink); color: white; }
.category-rail { display: flex; gap: 8px; overflow-x: auto; padding: 13px 0 2px; scrollbar-width: none; }
.category-rail::-webkit-scrollbar { display: none; }
.category-rail button { flex: 0 0 auto; min-height: 34px; padding: 7px 12px; border: 1px solid var(--hairline); border-radius: 999px; background: white; color: var(--steel); font-size: 12px; cursor: pointer; }
.category-rail button small { margin-left: 5px; color: #9a9a9a; }
.category-rail button.active { border-color: var(--ink); background: var(--ink); color: white; }
.category-rail button.active small { color: #c7c7c7; }
.results-line { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-line p { margin: 0; color: var(--steel); font-size: 13px; }
.results-line p strong { color: var(--ink); }
.results-line button { padding: 0; border: 0; background: transparent; font-size: 12px; text-decoration: underline; cursor: pointer; }

.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.project-card { min-height: 360px; padding: 24px; border: 1px solid var(--hairline); border-radius: 16px; background: white; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.055); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status { min-height: 25px; padding: 5px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; background: #ebfaef; color: var(--green); font-size: 11px; font-weight: 620; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.closed { background: var(--surface); color: #747474; }
.stars { color: #777; font-size: 12px; }
.project-card h3 { margin: 23px 0 12px; font-size: 21px; line-height: 1.3; letter-spacing: -.025em; font-weight: 630; overflow-wrap: anywhere; }
.description { margin: 0 0 22px; color: #626262; font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags span { padding: 5px 8px; border-radius: 6px; background: var(--surface); color: #666; font-size: 10px; line-height: 1.3; }
.card-links { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.card-links a { font-size: 12px; font-weight: 620; }
.card-links a span { color: var(--muted); }
.load-more { width: 100%; min-height: 56px; margin-top: 22px; border: 1px solid var(--ink); border-radius: 999px; background: white; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 14px; font-weight: 620; cursor: pointer; transition: background .18s ease,color .18s ease; }
.load-more span { color: var(--muted); font-size: 12px; font-weight: 400; }
.load-more:hover { background: var(--ink); color: white; }
.empty-state { padding: 100px 24px; border: 1px solid var(--hairline); border-radius: 24px; text-align: center; }
.empty-state > span { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.empty-state h3 { margin: 14px 0 8px; font-size: 28px; }
.empty-state p { margin: 0 0 24px; color: var(--steel); }

.about { margin-bottom: 96px; padding: 64px; border-radius: 32px; background: var(--coral); color: white; display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: end; }
.about .section-label { color: rgba(255,255,255,.72); }
.about-copy > p { margin: 0; font-size: 16px; line-height: 1.75; }
.about-note { margin-top: 18px !important; color: rgba(255,255,255,.74); font-size: 13px !important; }
.about-copy .button { margin-top: 30px; }

footer { background: var(--ink); color: white; }
.footer-inner, .footer-base { width: min(1280px,calc(100% - 64px)); margin-inline: auto; }
.footer-inner { min-height: 320px; padding: 66px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.footer-brand p { margin: 18px 0 0; color: #858585; font-size: 13px; }
.footer-brand .brand-logo { width: 34px; height: 34px; padding: 4px; border-radius: 10px; background: white; }
.footer-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
.footer-links div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-links span { margin-bottom: 8px; color: #777; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { color: #cdcdcd; font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-base { min-height: 72px; border-top: 1px solid #282828; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #777; font-size: 11px; }
.footer-base p { margin: 0; }

@media (max-width: 1040px) {
  .product-matrix { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-card { aspect-ratio: 1.2; min-height: 320px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about { gap: 48px; }
}

@media (max-width: 760px) {
  .site-header, .section-shell, .footer-inner, .footer-base { width: min(100% - 30px,1280px); }
  .site-header { height: 64px; }
  nav { display: none; }
  .header-cta { margin-left: auto; padding: 10px 16px; }
  .hero { width: min(100% - 30px,1020px); min-height: 560px; padding: 76px 0 70px; }
  .hero-kicker { margin-bottom: 26px; }
  h1 { font-size: clamp(43px,13vw,62px); }
  .hero-lede { margin: 25px auto 31px; font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .button { width: min(100%,320px); }
  .matrix { padding-bottom: 74px; }
  .section-intro { grid-template-columns: 1fr; gap: 18px; }
  .section-intro h2, .about h2 { font-size: 39px; }
  .product-matrix { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -15px; padding-right: 15px; }
  .product-matrix::-webkit-scrollbar { display: none; }
  .product-card { flex: 0 0 min(82vw,320px); min-height: 390px; aspect-ratio: .8; scroll-snap-align: start; }
  .stats { grid-template-columns: repeat(2,1fr); padding-bottom: 78px; }
  .stats article, .stats article:first-child { padding: 22px 18px; border-left: 1px solid var(--hairline); border-top: 1px solid var(--hairline); }
  .stats article:nth-child(odd) { border-left: 0; }
  .catalog { padding: 78px 0 90px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .scope-toggle button { flex: 1; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 340px; }
  .about { width: 100%; margin-bottom: 0; border-radius: 0; padding: 64px 24px; grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { min-height: auto; grid-template-columns: 1fr; gap: 54px; }
  .footer-base { padding: 20px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.standalone-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.standalone-empty{display:none}
@media(max-width:1040px){.standalone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.standalone-grid{grid-template-columns:1fr}}

/* --- 首页图鉴入口区块 --- */
.catalog-teaser { padding: 84px 0 96px; border-top: 1px solid var(--hairline); }
.catalog-teaser .section-intro { margin-bottom: 0; align-items: center; }
.teaser-actions { display: flex; justify-content: flex-end; align-items: center; }
@media (max-width: 760px) {
  .catalog-teaser { padding: 64px 0 72px; }
  .teaser-actions { justify-content: flex-start; margin-top: 6px; }
}
