/* 目录优先的展示版式：搜索 → 类别 → 图样 → 详情 */
:root {
  --paper: #f4f7f6;
  --white: #ffffff;
  --ink: #172a27;
  --muted: #62726d;
  --line: #d9e2de;
  --deep: #145447;
  --sage: #e6efeb;
  --lime: #e2f0e8;
  --radius: 12px;
  --shadow: 0 16px 40px rgba(17, 55, 45, 0.09);
}

body { line-height: 1.55; }
h1, h2, h3 { letter-spacing: -0.04em; }
h1, h2 { font-weight: 720; }
.serif { font-family: inherit; }
.container { width: min(100% - 56px, 1360px); }
.eyebrow { color: #287162; font-size: .72rem; letter-spacing: .13em; }
.btn { border-radius: 8px; }
.btn-primary { background: var(--deep); }
.btn-primary:hover { background: #0d4036; }
.btn-secondary { border-color: #b9cac3; }
.link { text-decoration: none; }
.link:hover { text-decoration: underline; }

.site-header { background: rgba(255, 255, 255, .96); }
.header-inner { height: 78px; gap: 44px; }
.brand { gap: 9px; font-size: 1.24rem; letter-spacing: -.05em; }
.brand-symbol { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: var(--deep); color: white; font-size: .85rem; letter-spacing: -.06em; }
.brand-dot { color: #408170; }
.nav { margin-left: 36px; margin-right: auto; gap: 36px; }
.nav a { color: #4d625a; font-weight: 560; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--deep); }
.header-actions { gap: 20px; }
.header-search { font-size: .87rem; font-weight: 650; color: var(--deep); }
.header-search span { margin-left: 6px; }
.saved-link { font-size: .87rem; }
.saved-count { background: #d9ede4; color: var(--deep); }
.mobile-bottom-nav { display: none; }

.hero { padding: 22px 0 28px; }
.hero-grid { min-height: 400px; grid-template-columns: 1.03fr .97fr; background: #e8f0ec; border: 1px solid #dce9e3; border-radius: 12px; }
.hero-copy { padding: clamp(30px, 5vw, 68px); }
.hero-copy h1 { max-width: none; margin: 10px 0 13px; font-size: clamp(2.8rem, 4.6vw, 4.7rem); line-height: 1.15; }
.hero-copy p { max-width: 43ch; margin-bottom: 18px; color: #50655c; font-size: .98rem; }
.hero .searchbox { display: block; width: min(100%, 560px); min-height: 0; padding: 0; background: none; box-shadow: none; border: 0; border-radius: 0; }
.hero .searchbox label { display: block; margin-bottom: 8px; color: var(--deep); font-size: .84rem; font-weight: 700; }
.searchbox-row { display: flex; gap: 5px; padding: 5px; background: white; border: 1px solid #adc5bb; border-radius: 9px; box-shadow: 0 8px 20px rgba(28, 69, 52, .06); }
.searchbox-row input { padding-left: 14px; }
.searchbox-row .btn { min-height: 47px; }
.hero-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 18px; color: #61766b; font-size: .78rem; }
.hero-hot a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.hero-hot a:hover { color: #0b8970; }
.hero-visual { min-height: 400px; }
.hero-visual img { object-position: center; }
.hero-visual-note { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; gap: 3px; padding: 17px 20px; background: rgba(14, 50, 43, .87); color: white; border-radius: 7px; backdrop-filter: blur(8px); }
.hero-visual-note span { font-size: .67rem; letter-spacing: .14em; opacity: .76; }
.hero-visual-note strong { font-size: 1.08rem; }
.hero-visual-note small { font-size: .69rem; opacity: .8; }

.quick-nav { padding: 46px 0 76px; }
.section-heading { align-items: end; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 6px 0 0; }
.section-heading p { color: var(--muted); margin: 8px 0 0; font-size: .89rem; }
.section-index { color: #779086; font-size: .9rem; letter-spacing: .14em; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: white; }
.category-item { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 69px; padding: 12px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.category-item:hover { background: #e8f2ed; }
.category-number { color: #3d8371; font-weight: 750; font-size: .8rem; font-variant-numeric: tabular-nums; }
.category-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; font-weight: 650; }
.category-arrow { margin-left: auto; color: #8ca79c; transition: transform .2s; }
.category-item:hover .category-arrow { transform: translate(2px, -2px); color: var(--deep); }
.category-note { margin: 13px 0 0; color: var(--muted); font-size: .77rem; }

.featured { background: #e9f0ed; padding: 65px 0 78px; }
.featured .section-heading { margin-bottom: 25px; }
.editorial-note { padding: 75px 0; }
.editorial-note-inner { border-top: 1px solid #acc8bc; }
.editorial-note h2 { max-width: 13ch; font-size: clamp(2rem, 3vw, 3rem); }

.page-top { padding: 42px 0 31px; }
.catalog-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 600px); column-gap: 34px; align-items: end; }
.catalog-top .eyebrow { grid-column: 1; grid-row: 1; }
.page-top h1 { font-size: clamp(2.6rem, 4.2vw, 4.4rem); margin: 8px 0 7px; }
.catalog-top h1 { grid-column: 1; grid-row: 2; }
.page-top p { max-width: 49ch; margin-bottom: 0; font-size: .88rem; }
.catalog-top p { grid-column: 1; grid-row: 3; }
.catalog-search { grid-column: 2; grid-row: 1 / 4; margin-top: 0; padding-bottom: 3px; }
.catalog-search label { color: var(--ink); font-size: .83rem; }
.catalog-search .searchbox { width: min(100%, 680px); border-radius: 9px; box-shadow: none; }
.catalog-search .searchbox input { padding-left: 0; }
.catalog-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 27px; }
.class-filter { top: 100px; padding: 17px; border-radius: 9px; background: white; }
.class-filter .filter-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.class-list { display: grid; grid-template-columns: 1fr; gap: 1px; max-height: min(70vh, 700px); overflow-y: auto; }
.class-list a, .class-list a:first-child { display: flex; align-items: center; gap: 11px; grid-column: auto; padding: 9px 10px; border-radius: 5px; font-size: .83rem; }
.class-list a span { color: #6c9887; font-variant-numeric: tabular-nums; }
.class-list a:first-child { justify-content: space-between; margin-bottom: 5px; font-weight: 700; }
.class-list a:hover, .class-list a.selected { background: #e7f1eb; color: var(--deep); }
.catalog-toolbar { border-bottom: 1px solid var(--line); padding-bottom: 13px; min-height: 0; }
#result-title { margin: 0; font-size: 1.13rem; font-weight: 720; }

.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; border-color: #d8e2dd; border-radius: 9px; box-shadow: none; }
.product-card:hover { transform: translateY(-2px); border-color: #90b7a6; box-shadow: 0 10px 24px rgba(28, 75, 59, .07); }
.card-visual { display: block; aspect-ratio: 1.42; border-bottom: 1px solid #e7ebe8; background: #fff; }
.card-visual.formal-image img { padding: 25px; object-fit: contain; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 17px 17px; }
.card-kicker { color: #39806e; font-size: .75rem; font-weight: 680; }
.card-title-row { margin: 5px 0 11px; align-items: center; }
.card-title-row h3 { font-size: 1.2rem; line-height: 1.3; }
.card-title-row h3 a:hover { color: var(--deep); }
.fav-button { color: #527968; padding: 5px; border-radius: 5px; }
.fav-button:hover { background: #e8f2ed; }
.card-facts { display: grid; gap: 2px; min-height: 46px; color: var(--muted); font-size: .75rem; }
.card-price { margin-top: 13px; padding-top: 12px; border-top: 1px solid #e8eeeb; align-items: center; }
.price { color: var(--ink); font-size: .82rem; font-weight: 650; }
.card-link { font-size: .78rem; }
.card-link:hover { text-decoration: underline; }
.empty-state { background: #fff; border-color: #aec5b9; }
.product-grid > .empty-state { grid-column: 1 / -1; }

.breadcrumbs { padding: 25px 0; }
.detail-top { align-items: start; gap: clamp(30px, 5vw, 75px); }
.detail-stage { aspect-ratio: 1.08; border: 1px solid #dce5df; background: white; border-radius: 9px; }
.detail-stage.formal-image img { padding: clamp(28px, 5vw, 70px); }
.detail-info { padding: 18px 0; }
.detail-info h1 { font-family: inherit; font-size: clamp(2.8rem, 4.4vw, 4.7rem); font-weight: 720; }
.detail-lead { color: #26715e; font-weight: 650; }
.detail-info dl { border-top: 1px solid var(--line); padding-top: 22px; }
.detail-info dt { color: #73867a; }
.detail-info dd { font-weight: 650; }
.detail-section h2 { font-family: inherit; font-weight: 720; }
.goods-box { border-radius: 9px; }
.goods-list { columns: 2; }
.goods-list li { padding: 8px 0; border-bottom: 1px solid #edf1ee; }
.notice { border-color: #65a58c; background: #eaf3ed; }
.footer { background: #e5eeea; }
.footer .brand { gap: 0; }

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy h1 { font-size: clamp(2.7rem, 5.4vw, 4.4rem); }
}
@media (max-width: 900px) {
  .nav { margin-left: auto; margin-right: 0; gap: 18px; }
  .header-search { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-top { display: block; }
  .catalog-search { margin-top: 22px; }
  .class-filter { position: static; }
  .class-list { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 205px; gap: 4px; }
  .class-list a:first-child { justify-content: start; margin-bottom: 0; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1360px); }
  .site-header .header-inner { min-height: 62px; height: 62px; padding: 0; flex-wrap: nowrap; }
  .brand { font-size: 1.13rem; }
  .brand-symbol { width: 30px; height: 30px; }
  .site-header .nav, .header-actions { display: none; }
  .mobile-bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 59, 41, .06); }
  .mobile-bottom-nav a { display: grid; place-items: center; gap: 1px; min-height: 57px; color: #60766b; font-size: .7rem; }
  .mobile-bottom-nav a span { font-size: 1.4rem; line-height: 1; }
  .mobile-bottom-nav a[aria-current="page"] { color: var(--deep); font-weight: 750; }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .hero { padding: 14px 0 0; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-copy { padding: 35px 25px 28px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 9vw, 4rem); }
  .hero-copy p { font-size: .93rem; }
  .hero-visual { min-height: 255px; max-height: 300px; }
  .hero-visual-note { left: 13px; right: 13px; bottom: 13px; padding: 12px 14px; }
  .hero-visual-note strong { font-size: .94rem; }
  .quick-nav { padding: 45px 0 56px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-item { padding: 9px 12px; min-height: 61px; gap: 9px; }
  .category-name { font-size: .84rem; }
  .category-arrow { font-size: .8rem; }
  .section-index { display: none; }
  .featured { padding: 50px 0 58px; }
  .editorial-note { padding: 55px 0; }
  .editorial-note-inner { grid-template-columns: 1fr; gap: 10px; }
  .page-top { padding: 39px 0 30px; }
  .page-top h1 { font-size: 2.5rem; }
  .catalog-layout { padding-bottom: 65px; }
  .class-filter { padding: 12px; }
  .class-filter .filter-head { margin-bottom: 7px; padding-bottom: 0; border-bottom: 0; }
  .class-list { display: flex; flex-wrap: nowrap; max-height: none; gap: 5px; overflow-x: auto; overflow-y: hidden; padding-bottom: 5px; scrollbar-width: thin; }
  .class-list a, .class-list a:first-child { flex: 0 0 auto; white-space: nowrap; padding: 7px 9px; border: 1px solid var(--line); font-size: .76rem; gap: 6px; }
  .class-list a:first-child { margin-bottom: 0; }
  .catalog-toolbar { display: flex; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-visual { aspect-ratio: 1.05; }
  .card-visual.formal-image img { padding: 16px; }
  .card-body { padding: 12px; }
  .card-title-row h3 { font-size: 1rem; }
  .card-facts { min-height: 0; font-size: .68rem; }
  .card-facts span:last-child { display: none; }
  .card-price { flex-direction: column; align-items: start; gap: 5px; }
  .detail-top { grid-template-columns: 1fr; gap: 10px; padding-bottom: 40px; }
  .detail-stage { aspect-ratio: 1.18; }
  .detail-info { padding: 13px 0; }
  .detail-info h1 { font-size: 2.9rem; }
  .goods-list { columns: 1; }
}
@media (max-width: 420px) {
  .hero-copy { padding: 29px 18px 25px; }
  .searchbox-row input { font-size: .81rem; padding-left: 8px; }
  .searchbox-row .btn { padding: 0 14px; }
  .hero-hot { gap: 8px 12px; }
  .category-item { gap: 7px; }
  .category-name { font-size: .8rem; }
}
