/*
Theme Name: 樱花古董
Theme URI: http://100.119.108.54:8030/
Author: 樱花古董
Description: 樱花古董（日本古董与工艺品综合站）门户型主题：吸顶顶栏、分类菜单加轮播首屏、品类导读、热门专题、文章列表加侧栏。文字来自选词主表（data/site.json），图片位都可在“外观 → 自定义 → 图片位”替换。不开评论，扁平 sitemap.xml。
Version: 1.1.13
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: sakura-antique
*/

:root {
  --sga-bronze: #8a5a2b;      /* 古铜 */
  --sga-bronze-2: #a8743a;    /* 褐金 */
  --sga-bronze-3: #6e4520;
  --sga-gold: #c9a24a;        /* 暖金 */
  --sga-gold-2: #e2c27a;
  --sga-gold-soft: #f3e6c4;
  --sga-dark: #2e2219;        /* 深褐 */
  --sga-dark-2: #3b2c20;
  --sga-char: #34302c;        /* 炭灰 */
  --sga-paper: #f6f1e9;
  --sga-card: #fffdf9;
  --sga-line: #e7dccb;
  --sga-text: #2b241d;
  --sga-muted: #7b6d5e;
  --sga-radius: 10px;
  --sga-shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 14px rgba(60, 40, 20, .06);
  --sga-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sga-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --sga-top: var(--wp-admin--admin-bar--height, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 140px; }
body { margin: 0; background: var(--sga-paper); color: var(--sga-text); font: 15px/1.75 var(--sga-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sga-bronze); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--sga-serif); line-height: 1.35; margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.sga-skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--sga-dark); color: #fff; padding: 8px 14px; }
.sga-skip:focus { left: 8px; }
.sga-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sga-narrow { max-width: 900px; }

/* ---------- 按钮 ---------- */
.sga-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 6px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.sga-btn--gold { background: linear-gradient(180deg, #d6b25c, var(--sga-gold)); color: #3a2612; border: 1px solid #b88f37; }
.sga-btn--gold:hover { background: var(--sga-gold-2); color: #2e1d0d; }
.sga-btn--line { border: 1px solid var(--sga-bronze-2); color: var(--sga-bronze); background: #fff; }
.sga-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ---------- AI 示意图图注（图上角小标签） ---------- */
.sga-ai { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.sga-ai > img { width: 100%; height: 100%; object-fit: cover; }
.sga-ai__tag { position: absolute; right: 6px; bottom: 6px; z-index: 1; padding: 1px 7px; border-radius: 3px; background: rgba(30, 20, 12, .62); color: #f3e6c4; font-size: 11px; line-height: 1.6; letter-spacing: .5px; pointer-events: none; }
.sga-carousel .sga-ai__tag { right: 14px; bottom: 14px; }

/* ---------- 吸顶顶栏 ---------- */
.sga-header { position: sticky; top: var(--sga-top); z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--sga-line); }
.sga-header.is-stuck { box-shadow: 0 4px 18px rgba(46, 34, 25, .14); }
.sga-topbar__in { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 10px; transition: padding .2s; }
.sga-brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--sga-bronze); }
.sga-logo-mark { width: 52px; height: 52px; color: var(--sga-bronze); flex: none; }
.sga-brand__img { width: auto; max-height: 52px; }
.sga-brand__text { display: flex; flex-direction: column; }
.sga-brand__name { font-family: var(--sga-serif); font-size: 30px; font-weight: 700; letter-spacing: 2px; line-height: 1.15; color: var(--sga-dark); }
.sga-brand__tag { font-size: 12px; color: var(--sga-muted); letter-spacing: .5px; }
.sga-search { flex: 1; min-width: 0; }
.sga-search__form { display: flex; height: 42px; border: 2px solid var(--sga-bronze-2); border-radius: 6px; overflow: hidden; background: #fff; }
.sga-search__form input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font: inherit; font-size: 14px; outline: none; background: transparent; }
.sga-search__form button { border: 0; background: var(--sga-bronze-2); color: #fff; font: inherit; font-weight: 600; padding: 0 26px; cursor: pointer; }
.sga-search__form button:hover { background: var(--sga-bronze); }
.sga-search__hot { margin: 4px 0 0; font-size: 12px; color: var(--sga-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sga-search__hot a { margin-right: 10px; }
.sga-topbar__cta { flex: none; }
.sga-navtoggle { display: none; }

.sga-nav { background: linear-gradient(180deg, var(--sga-dark-2), var(--sga-dark)); }
.sga-nav__list { list-style: none; display: flex; justify-content: space-between; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.sga-nav__list li { flex: none; }
.sga-nav__list a { display: block; padding: 11px 10px; color: #f2e6cf; font-size: 14.5px; letter-spacing: .5px; position: relative; }
.sga-nav__list a:hover { color: var(--sga-gold-2); }
.sga-nav__list .is-current a { color: var(--sga-gold-2); font-weight: 600; }
.sga-nav__list .is-current a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--sga-gold); border-radius: 2px 2px 0 0; }

/* ---------- 首屏：分类菜单 + 加宽轮播 ---------- */
.sga-main { padding-bottom: 36px; }
.sga-hero { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.sga-catmenu { background: var(--sga-card); border: 1px solid var(--sga-line); border-radius: var(--sga-radius); box-shadow: var(--sga-shadow); position: relative; z-index: 5; }
.sga-catmenu__title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; font-family: var(--sga-serif); font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--sga-line); color: var(--sga-dark); }
.sga-catmenu__title .sga-logo-mark { width: 20px; height: 20px; }
.sga-catmenu ul { list-style: none; margin: 0; padding: 4px 0; }
.sga-catmenu__link { display: flex; align-items: center; gap: 10px; padding: 6px 14px; position: relative; }
.sga-catmenu__link::after { content: "›"; position: absolute; right: 12px; color: #b9a98f; }
.sga-catmenu__icon { width: 34px; height: 34px; border-radius: 6px; overflow: hidden; flex: none; background: var(--sga-gold-soft); }
.sga-catmenu__icon img { width: 100%; height: 100%; object-fit: cover; }
.sga-catmenu__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sga-catmenu__txt strong { font-size: 14px; color: var(--sga-dark); }
.sga-catmenu__txt small { font-size: 11.5px; color: var(--sga-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.sga-catmenu__fly { display: none; position: absolute; left: 100%; top: 0; width: 420px; min-height: 100%; margin-left: -1px; padding: 16px 18px; background: #fff; border: 1px solid var(--sga-line); border-radius: 0 var(--sga-radius) var(--sga-radius) 0; box-shadow: 8px 6px 20px rgba(46, 34, 25, .12); }
.sga-catmenu__item:hover .sga-catmenu__link, .sga-catmenu__item:focus-within .sga-catmenu__link { background: var(--sga-gold-soft); }
.sga-catmenu__item:hover .sga-catmenu__fly, .sga-catmenu__item:focus-within .sga-catmenu__fly { display: block; }
.sga-catmenu__flyhead { margin: 0 0 10px; font-family: var(--sga-serif); font-weight: 700; font-size: 16px; color: var(--sga-bronze); }

.sga-carousel { position: relative; border-radius: var(--sga-radius); overflow: hidden; min-height: 420px; background: var(--sga-dark); box-shadow: var(--sga-shadow); }
.sga-carousel__track, .sga-carousel__slide { position: absolute; inset: 0; }
.sga-carousel__slide { opacity: 0; transition: opacity .7s ease; }
.sga-carousel__slide.is-active { opacity: 1; }
.sga-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.sga-carousel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 20, 12, .66) 0%, rgba(30, 20, 12, .34) 42%, rgba(30, 20, 12, 0) 66%); pointer-events: none; }
.sga-carousel__slide img { object-position: left center; } /* 保住左侧留白，右边器物略裁 */
/* 轮播图左侧约 40% 是留给文字的空位，标题靠左放 */
.sga-carousel__caption { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 2; width: 48%; text-align: left; color: #fff; padding: 0 0 0 64px; }
.sga-carousel__caption h1 { font-size: 28px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.sga-h1__a, .sga-h1__b { display: block; }
.sga-h1__sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.sga-h1__b { font-size: 21px; font-weight: 500; letter-spacing: 3px; margin-top: 8px; color: #f6e8c8; }
.sga-carousel__caption .sga-btn { margin-top: 16px; }
.sga-carousel__arrow { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(30, 22, 14, .55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.sga-carousel__arrow:hover { background: rgba(30, 22, 14, .8); }
.sga-carousel__arrow--prev { left: 14px; }
.sga-carousel__arrow--next { right: 14px; }
.sga-carousel__dots { position: absolute; z-index: 3; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.sga-carousel__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; }
.sga-carousel__dots button.is-active { background: var(--sga-gold); width: 22px; border-radius: 5px; }

/* ---------- 平台卡 ---------- */
.sga-platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.sga-platforms--2 { grid-template-columns: repeat(2, 1fr); }
.sga-platforms--1 { grid-template-columns: 1fr; }
.sga-platform { display: flex; align-items: stretch; min-height: 116px; background: var(--sga-card); border: 1px solid var(--sga-line); border-radius: var(--sga-radius); overflow: hidden; box-shadow: var(--sga-shadow); transition: transform .15s, box-shadow .15s; }
.sga-platform:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(60, 40, 20, .12); color: inherit; }
.sga-platform__txt { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; }
.sga-platform__txt strong { font-family: var(--sga-serif); font-size: 24px; color: var(--sga-dark); }
.sga-platform__txt small { color: var(--sga-muted); font-size: 13px; }
.sga-platform__txt em { font-style: normal; margin-top: 8px; color: var(--sga-bronze); font-size: 13px; font-weight: 600; }
.sga-platform__img { width: 44%; flex: none; }
.sga-platform__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 区块标题 ---------- */
.sga-block { margin-top: 18px; }
.sga-block > .sga-sectitle, .sga-sectitle { position: relative; margin: 0 0 12px; padding-left: 14px; font-family: var(--sga-serif); font-size: 20px; font-weight: 700; color: var(--sga-dark); }
.sga-sectitle::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--sga-gold), var(--sga-bronze)); }

/* ---------- 品类导读 8 卡 ---------- */
.sga-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sga-guide__card { display: flex; gap: 12px; padding: 12px; background: var(--sga-card); border: 1px solid var(--sga-line); border-radius: var(--sga-radius); box-shadow: var(--sga-shadow); }
.sga-guide__img { width: 42%; flex: none; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sga-gold-soft); }
.sga-guide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sga-guide__card:hover .sga-guide__img img { transform: scale(1.04); }
.sga-guide__body { min-width: 0; }
.sga-guide__name { margin: 2px 0 6px; font-family: var(--sga-serif); font-size: 17px; font-weight: 700; color: var(--sga-dark); }
.sga-guide__body ul { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.95; }
.sga-guide__body li::before { content: "◆"; color: var(--sga-gold); font-size: 8px; margin-right: 6px; vertical-align: 2px; }

/* ---------- 热门专题 6 卡 ---------- */
.sga-hot { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sga-hot__card { background: var(--sga-card); border: 1px solid var(--sga-line); border-radius: var(--sga-radius); overflow: hidden; box-shadow: var(--sga-shadow); text-align: center; }
.sga-hot__card img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; transition: transform .3s; }
.sga-hot__card:hover img { transform: scale(1.04); }
.sga-hot__label { display: block; padding: 9px 6px; font-size: 14px; font-weight: 600; }

/* ---------- 列表 + 侧栏 ---------- */
.sga-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 18px; align-items: start; }
.sga-panel { background: var(--sga-card); border: 1px solid var(--sga-line); border-radius: var(--sga-radius); box-shadow: var(--sga-shadow); padding: 18px 20px; margin-bottom: 18px; }
.sga-h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--sga-line); font-size: 20px; color: var(--sga-dark); }
.sga-h2::before { content: ""; width: 8px; height: 8px; flex: none; transform: rotate(45deg) translateY(-2px); background: var(--sga-gold); }
.sga-h2 small { font-family: var(--sga-sans); font-size: 13px; color: var(--sga-muted); font-weight: 400; }
.sga-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--sga-line); }
.sga-row:last-of-type { border-bottom: 0; }
.sga-row__img { width: 160px; flex: none; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sga-gold-soft); }
.sga-row__img img { width: 100%; height: 100%; object-fit: cover; }
.sga-row__body { min-width: 0; }
.sga-row__title { font-size: 17px; margin: 0 0 4px; }
.sga-row__ex { margin: 0 0 6px; font-size: 13.5px; color: var(--sga-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sga-row__meta { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12.5px; color: var(--sga-muted); }
.sga-badge { display: inline-block; padding: 1px 10px; border-radius: 4px; background: var(--sga-gold-soft); color: var(--sga-bronze-3); font-size: 12px; border: 1px solid #e6d29f; }
.sga-empty { color: var(--sga-muted); }
.sga-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.sga-chips a { display: inline-block; padding: 3px 12px; border: 1px solid var(--sga-line); border-radius: 999px; background: #fff; font-size: 13px; }
.sga-chips a:hover { border-color: var(--sga-gold); color: var(--sga-bronze); }
.sga-chips--lead { margin-top: 0; }
.sga-chips--light a { background: rgba(255, 255, 255, .1); border-color: rgba(243, 230, 196, .4); color: #f3e6c4; }
.sga-chips--light a:hover { color: #fff; border-color: var(--sga-gold); }
.sga-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.sga-pager .page-numbers { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sga-line); border-radius: 5px; background: #fff; font-size: 13px; }
.sga-pager .current { background: var(--sga-bronze-2); border-color: var(--sga-bronze-2); color: #fff; }

.sga-side { padding: 14px 16px; }
.sga-side__eyebrow { margin: 0; font-size: 12px; letter-spacing: 2px; color: var(--sga-bronze-2); font-weight: 700; }
.sga-side__h { margin: 2px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--sga-line); font-family: var(--sga-serif); font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--sga-dark); }
.sga-ranks { list-style: none; margin: 0; padding: 0; }
.sga-ranks li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--sga-line); font-size: 13.5px; }
.sga-ranks li:last-child { border-bottom: 0; }
.sga-ranks span { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: #efe7da; color: var(--sga-muted); font-size: 12px; font-weight: 700; }
.sga-ranks li:nth-child(-n+3) span { background: var(--sga-bronze-2); color: #fff; }
.sga-ranks a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sga-kilns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sga-kilns a { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--sga-line); border-radius: 6px; background: #fff; font-size: 13px; }
.sga-kilns img { width: 38px; height: 38px; border-radius: 4px; object-fit: cover; flex: none; }
.sga-kilns .sga-ai { width: 38px; height: 38px; flex: none; border-radius: 4px; }  /* 1.1.9：水印层跟 38px 小图一样大，SAMPLE 不再溢出到旁边的文字上 */
.sga-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.sga-tags a { padding: 5px 4px; text-align: center; border: 1px solid var(--sga-line); border-radius: 5px; background: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sga-tags a:hover { border-color: var(--sga-gold); color: var(--sga-bronze); }

/* ---------- 内页头 ---------- */
.sga-pagehead { background: linear-gradient(135deg, var(--sga-dark) 0%, var(--sga-dark-2) 55%, #5a3b20 100%); color: #f3e6c4; padding: 22px 0 26px; margin-bottom: 18px; position: relative; overflow: hidden; }
.sga-pagehead::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 30px solid rgba(201, 162, 74, .08); }
.sga-pagehead h1 { font-size: 30px; color: #fff; margin: 4px 0 8px; }
.sga-pagehead__eyebrow { margin: 6px 0 0; font-size: 13px; letter-spacing: 2px; color: var(--sga-gold-2); }
.sga-pagehead__lead { max-width: 820px; margin: 0 0 8px; color: #e8dcc2; }
.sga-pagehead__lead .sga-btn { margin-left: 8px; }
.sga-crumbs { font-size: 12.5px; color: #cdb98f; }
.sga-crumbs a { color: #cdb98f; }
.sga-crumbs span { margin: 0 6px; }
.sga-crumbs--dark, .sga-crumbs--dark a { color: var(--sga-muted); }

/* ---------- 文章 ---------- */
.sga-article { padding: 24px 30px; }
.sga-article__title { font-size: 28px; margin: 10px 0 8px; }
.sga-article__hero { margin: 16px 0; }
.sga-article__hero img { border-radius: 8px; width: 100%; }
.sga-article__hero figcaption, .sga-prose figcaption { font-size: 12.5px; color: var(--sga-muted); margin-top: 6px; }
.sga-prose { font-size: 16px; line-height: 1.9; }
.sga-prose h2 { font-size: 21px; margin: 1.6em 0 .6em; padding-left: 12px; border-left: 4px solid var(--sga-gold); }
.sga-prose h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.sga-prose p { margin: 0 0 1em; }
.sga-prose a { color: var(--sga-bronze); text-decoration: underline; text-underline-offset: 3px; }
.sga-prose img { border-radius: 6px; }
.sga-prose ul, .sga-prose ol { padding-left: 1.4em; }
.sga-prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--sga-gold); background: #faf4e6; color: var(--sga-char); }
.sga-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 8px; padding: 16px 20px; border-radius: 8px; background: linear-gradient(135deg, #3b2a1c, #5e3f22); color: #f3e6c4; }
.sga-cta p { margin: 0; }
.sga-cta strong { color: #fff; }
.sga-related { margin-top: 22px; }

/* ---------- 专题页 ---------- */
.sga-topic__intro { font-size: 15.5px; }
.sga-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sga-entry { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--sga-line); border-radius: 8px; background: #fff; scroll-margin-top: 150px; }
.sga-entry:target { border-color: var(--sga-gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .25); }
.sga-entry__name { margin: 0; font-family: var(--sga-serif); font-size: 18px; font-weight: 700; color: var(--sga-dark); }
.sga-entry__jp { margin: 0; font-size: 12.5px; color: var(--sga-muted); }
.sga-entry__links { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; font-size: 13px; }
.sga-entry__links a:not(.sga-badge) { color: var(--sga-bronze); }
.sga-entry .sga-btn { align-self: flex-start; margin-top: auto; }

/* ---------- 站点地图、图片来源 ---------- */
.sga-sitemap ul { margin: 0 0 18px; padding-left: 1.2em; }
.sga-sitemap li { margin: 4px 0; }
.sga-date { color: var(--sga-muted); font-size: 12.5px; }
.sga-credits table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sga-credits th, .sga-credits td { padding: 8px 10px; border-bottom: 1px solid var(--sga-line); text-align: left; vertical-align: top; }
.sga-credits th { background: #f4ecdd; }

/* ---------- 页脚（深褐） ---------- */
.sga-footer { background: var(--sga-dark); color: #d9c9a8; margin-top: 10px; }
.sga-footer a:hover { color: var(--sga-gold-2); }
.sga-footer__top { display: grid; grid-template-columns: 320px 1fr 340px; gap: 30px; padding-top: 28px; padding-bottom: 22px; align-items: center; }
.sga-brand--footer .sga-logo-mark { color: var(--sga-gold); }
.sga-brand--footer .sga-brand__name { color: #fff; font-size: 26px; }
.sga-brand--footer .sga-brand__tag { color: #c2ae86; }
.sga-footer__note { margin: 10px 0 0; font-size: 12.5px; color: #b9a582; }
.sga-footer__cats { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-left: 26px; border-left: 1px solid rgba(243, 230, 196, .2); font-size: 14px; }
.sga-footer__wx { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sga-footer__wx p { margin: 0; }
.sga-footer__wx strong { color: #fff; }
/* 二维码按 160px 显示：实测 140px 以下就扫不出来 */
.sga-footer__qr { width: 160px; height: 160px; flex: none; padding: 0; border-radius: 4px; background: #fff; object-fit: contain; }
.sga-footer__dir { border-top: 1px solid rgba(243, 230, 196, .12); padding: 18px 0 8px; }
.sga-footer__dir-title { margin: 0 0 10px; font-family: var(--sga-serif); font-weight: 700; color: #fff; }
.sga-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 30px; margin: 0; }
.sga-footer__grid > div { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(243, 230, 196, .1); font-size: 13px; }
.sga-footer__grid dt { flex: none; width: 76px; color: var(--sga-gold-2); }
.sga-footer__grid dd { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; color: #c9b893; }
.sga-footer__bottom { background: #241a13; padding: 12px 0; font-size: 12.5px; color: #a8957a; }
.sga-footer__bottom .sga-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sga-footer__bottom p { margin: 0; }
.sga-footer__links { display: flex; gap: 18px; }
.sga-totop { position: fixed; right: 18px; bottom: 22px; z-index: 40; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sga-bronze-2); color: #fff; font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--sga-shadow); }
.sga-totop.is-on { opacity: 1; pointer-events: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .sga-nav__list { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .sga-nav__list::-webkit-scrollbar { display: none; }
  .sga-guide { grid-template-columns: repeat(2, 1fr); }
  .sga-hot { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .sga-hero { grid-template-columns: 1fr; }
  .sga-catmenu { display: none; }
  .sga-cols { grid-template-columns: 1fr; }
  .sga-entries { grid-template-columns: repeat(2, 1fr); }
  .sga-footer__top { grid-template-columns: 1fr; gap: 16px; }
  .sga-footer__cats { padding-left: 0; border-left: 0; }
  .sga-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  html { scroll-padding-top: 110px; }
  .sga-topbar__in { flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .sga-logo-mark { width: 38px; height: 38px; }
  .sga-brand__name { font-size: 22px; }
  .sga-brand__tag { display: none; }
  .sga-topbar__cta { height: 34px; padding: 0 12px; font-size: 13px; margin-left: auto; }
  .sga-search { order: 3; flex-basis: 100%; }
  .sga-search__hot { display: none; }
  .sga-search__form { height: 38px; }
  .sga-search__form button { padding: 0 16px; }
  .sga-nav__list a { padding: 9px 10px; font-size: 14px; }
  .sga-carousel { min-height: 260px; }
  .sga-carousel::after { background: linear-gradient(180deg, rgba(30, 20, 12, .66) 0%, rgba(30, 20, 12, .2) 55%, rgba(30, 20, 12, 0) 80%); }
  .sga-carousel__slide img { object-position: 70% center; }
  .sga-carousel__caption { top: 18px; transform: none; width: auto; right: 0; text-align: center; padding: 0 44px; }
  .sga-carousel__caption h1 { font-size: 20px; letter-spacing: 0; }
  .sga-h1__b { font-size: 13px; letter-spacing: 1px; margin-top: 4px; }
  .sga-carousel__caption .sga-btn { height: 34px; margin-top: 10px; }
  .sga-carousel__arrow { width: 32px; height: 32px; margin-top: -16px; font-size: 20px; }
  .sga-platforms, .sga-platforms--2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sga-platforms--1 { grid-template-columns: 1fr; }
  .sga-platform { min-height: 0; }
  .sga-platform__img { display: none; }
  .sga-platform__txt { padding: 12px 14px; }
  .sga-platform__txt strong { font-size: 19px; }
  .sga-guide { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sga-guide__card { flex-direction: column; gap: 8px; padding: 8px; }
  .sga-guide__img { width: 100%; aspect-ratio: 4 / 3; }
  .sga-guide__name { font-size: 16px; margin: 0 0 2px; }
  .sga-guide__body ul { font-size: 12.5px; line-height: 1.8; }
  .sga-hot { grid-template-columns: repeat(2, 1fr); }
  .sga-row__img { width: 110px; }
  .sga-row__title { font-size: 15.5px; }
  .sga-entries { grid-template-columns: 1fr; }
  .sga-pagehead h1 { font-size: 23px; }
  .sga-article { padding: 18px 16px; }
  .sga-cta { flex-direction: column; align-items: flex-start; }
  .sga-footer__grid { grid-template-columns: 1fr; }
  .sga-footer__bottom .sga-wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .sga-carousel__slide { transition: none; }
}

/* ===== 1.1.0 分类细分：18 个一级 + 悬停展开二级/三级 ===== */
.sga-catmenu ul { padding: 2px 0; }
.sga-catmenu__link { padding: 4.5px 26px 4.5px 14px; gap: 8px; align-items: baseline; }
.sga-catmenu__link strong { flex: none; font-size: 14px; color: var(--sga-dark); }
.sga-catmenu__link small { font-size: 11.5px; color: var(--sga-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sga-catmenu__link::after { top: 50%; transform: translateY(-50%); }
.sga-catmenu__all { border-top: 1px solid var(--sga-line); }
.sga-catmenu__all .sga-catmenu__link strong { color: var(--sga-bronze); }
.sga-catmenu__fly { width: 640px; max-height: 100%; overflow-y: auto; z-index: 6; }
.sga-catmenu__flyhead { display: flex; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--sga-line); }
.sga-catmenu__flyhead span { font-family: var(--sga-sans, inherit); font-weight: 400; font-size: 12.5px; color: var(--sga-muted); }
.sga-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.sga-group { min-width: 0; }
.sga-group__head { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; }
.sga-group__head a, .sga-group__head span { color: var(--sga-dark); }
.sga-group__head a::after { content: " ›"; color: var(--sga-gold); }
.sga-group__items { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; line-height: 1.7; }
.sga-group__items a { color: #5f4c39; }
.sga-group a:hover { color: var(--sga-bronze); }
a.is-tag::before { content: "#"; color: var(--sga-gold); margin-right: 1px; }
.sga-groups--all { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; }
.sga-alltree { display: grid; gap: 16px; margin: 18px 0 30px; }
.sga-alltree__l1 .sga-h2 a { color: inherit; }
.sga-subnav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 13.5px; }
.sga-subnav__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.sga-subnav__head { font-weight: 700; }
.sga-subnav__items { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12.5px; }
.sga-subnav__items::before { content: "："; color: var(--sga-muted); }
.sga-pagehead__also { margin-top: 10px; font-size: 13px; color: var(--sga-muted); }
.sga-pagehead__also p { margin: 4px 0 0; }
.sga-guide { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sga-guide__card { flex-direction: column; gap: 8px; padding: 8px; }
.sga-guide__img { width: 100%; aspect-ratio: 4 / 3; }
.sga-guide__name { font-size: 16px; margin: 0 0 2px; }
.sga-guide__body ul { font-size: 12.5px; line-height: 1.75; }
.sga-guide__body li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sga-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sga-footer__grid dt a { color: var(--sga-gold-2); }
.sga-footer__grid dd a { color: #c9b893; }
@media (max-width: 1100px) {
  .sga-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sga-groups--all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sga-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sga-groups--all { grid-template-columns: 1fr; }
  .sga-footer__grid { grid-template-columns: 1fr; }
}

/* ===== 1.1.2 左侧分类菜单：每行图标 + 2–3 个门类；展开面板盖到页面右边，一行一个二级 ===== */
.sga-catmenu ul { padding: 6px 0; }
.sga-catmenu__item { position: static; }
.sga-catmenu__row { display: flex; align-items: center; gap: 8px; padding: 10.5px 26px 10.5px 14px; position: relative; line-height: 1.4; }
.sga-catmenu__row::after { content: "›"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #b9a98f; }
.sga-catmenu__all .sga-catmenu__row::after { content: none; }
.sga-mi { flex: none; color: var(--sga-bronze-2); }
.sga-catmenu__names { display: flex; flex-wrap: nowrap; gap: 0 12px; min-width: 0; font-size: 14px; }
.sga-catmenu__names a, .sga-catmenu__lbl { color: var(--sga-dark); white-space: nowrap; }
.sga-catmenu__names a:hover { color: var(--sga-bronze); }
.sga-catmenu__all .sga-catmenu__names a { color: var(--sga-bronze); font-weight: 600; }
.sga-catmenu__item:hover .sga-catmenu__row, .sga-catmenu__item:focus-within .sga-catmenu__row { background: var(--sga-gold-soft); }
.sga-catmenu__item:hover .sga-mi, .sga-catmenu__item:focus-within .sga-mi { color: var(--sga-bronze); }
.sga-hero { position: relative; }
.sga-hero .sga-catmenu { position: static; }
.sga-catmenu__fly { display: none; position: absolute; left: 255px; right: 20px; top: 0; z-index: 6; box-sizing: border-box;
  width: auto; min-height: 100%; max-height: calc(100vh - 176px); overflow-y: auto; overscroll-behavior: contain; margin-left: 0;
  padding: 14px 26px 16px; background: #fff; border: 1px solid var(--sga-line); border-radius: 0 var(--sga-radius) var(--sga-radius) 0;
  box-shadow: 8px 6px 20px rgba(46, 34, 25, .12); }
.sga-catmenu__item:hover .sga-catmenu__fly, .sga-catmenu__item:focus-within .sga-catmenu__fly { display: block; }
.sga-fly__sec + .sga-fly__sec { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--sga-line); }
.sga-fly__line { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 18px; padding: 4px 0; font-size: 13.5px; line-height: 1.75; }
.sga-fly__label { font-weight: 700; color: var(--sga-dark); }
.sga-fly__label a { color: var(--sga-dark); }
.sga-fly__items { display: flex; flex-wrap: wrap; gap: 0 18px; }
.sga-fly__items a { color: #5f4c39; white-space: nowrap; }
.sga-fly__line a:hover { color: var(--sga-bronze); }
.sga-fly__line--head .sga-fly__label a { font-family: var(--sga-serif); font-size: 15px; color: var(--sga-bronze); }
.sga-catmenu a.is-tag::before { content: none; }

/* ===== 1.1.3 首页门类分段（照东山堂首页的分段式，通栏）：门类标题 + 4 张大图卡片 + 段尾“查看全部” ===== */
.sga-home-secs { margin-top: 18px; }
.sga-sec { background: var(--sga-card); border: 1px solid var(--sga-line); border-radius: var(--sga-radius); box-shadow: var(--sga-shadow); padding: 18px 20px 20px; margin-bottom: 18px; }
.sga-sec__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 14px; }
.sga-sec__title { position: relative; margin: 0; padding-left: 14px; font-family: var(--sga-serif); font-size: 21px; font-weight: 700; }
.sga-sec__title::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--sga-gold), var(--sga-bronze)); }
.sga-sec__title a { color: var(--sga-dark); }
.sga-sec__lead { margin: 0; font-size: 13px; color: var(--sga-muted); }
.sga-sec__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sga-sec__card { display: flex; flex-direction: column; gap: 8px; color: var(--sga-dark); }
.sga-sec__pic { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sga-gold-soft); }
.sga-sec__pic .sga-ai { display: block; height: 100%; }
.sga-sec__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.sga-sec__card:hover .sga-sec__pic img { transform: scale(1.04); }
.sga-sec__name { font-size: 15px; text-align: center; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sga-sec__card:hover .sga-sec__name { color: var(--sga-bronze); }
.sga-sec__more { margin: 16px 0 0; text-align: center; }
.sga-sec__more .sga-btn { min-width: 120px; justify-content: center; border-radius: 999px; }
@media (max-width: 720px) {
  .sga-sec { padding: 14px 12px 16px; }
  .sga-sec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* 1.1.5 首页排行榜：一屏 6 张、左右箭头翻页；手机端横向滑动 */
.sga-rank { margin-top: 14px; }
.sga-rank__box { background: var(--sga-card); border: 1px solid var(--sga-line); border-radius: var(--sga-radius); box-shadow: var(--sga-shadow); padding: 16px 20px 12px; }
.sga-rank__head { display: flex; align-items: center; gap: 22px; margin: 0 0 12px; border-bottom: 1px solid var(--sga-line); padding-bottom: 10px; }
.sga-rank__title { margin: 0; font-family: var(--sga-serif); font-size: 21px; font-weight: 700; color: var(--sga-dark); }
.sga-rank__tabs { display: flex; gap: 18px; }
.sga-rank__tab { appearance: none; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 16px; color: var(--sga-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.sga-rank__tab.is-active { color: #b8322a; font-weight: 600; border-bottom-color: #b8322a; }
.sga-rank__pane { position: relative; }
.sga-rank__list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.sga-rank__list::-webkit-scrollbar { display: none; }
.sga-rank__item { scroll-snap-align: start; min-width: 0; }
.sga-rank__card { display: flex; flex-direction: column; gap: 4px; color: var(--sga-dark); }
.sga-rank__pic { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--sga-gold-soft); }
.sga-rank__pic .sga-ai { display: block; height: 100%; }
.sga-rank__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.sga-rank__card:hover .sga-rank__pic img { transform: scale(1.04); }
.sga-rank__card:hover .sga-rank__name { color: var(--sga-bronze); }
.sga-rank__no { position: absolute; left: 0; top: 0; z-index: 2; min-width: 26px; height: 26px; padding: 0 6px; display: flex; align-items: center; justify-content: center; border-radius: 6px 0 8px 0; background: rgba(110, 69, 32, .82); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.sga-rank__no--1 { background: #c8312a; }
.sga-rank__no--2 { background: #e0782a; }
.sga-rank__no--3 { background: #d4a72c; }
.sga-rank__name { margin-top: 4px; font-size: 15px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sga-rank__price { font-size: 13px; color: var(--sga-muted); }
.sga-rank__price b { color: #b8322a; font-size: 16px; font-weight: 700; }
.sga-rank__count { font-size: 12px; color: var(--sga-muted); }
.sga-rank__arrow { position: absolute; top: calc((100% - 70px) / 2 - 22px); z-index: 3; width: 28px; height: 52px; border: 0; border-radius: 4px; background: rgba(46, 34, 25, .45); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: none; }
.sga-rank.is-js .sga-rank__arrow { display: block; }
.sga-rank__arrow--prev { left: -8px; }
.sga-rank__arrow--next { right: -8px; }
.sga-rank__arrow:disabled { opacity: .25; cursor: default; }
.sga-rank__arrow:not(:disabled):hover { background: rgba(46, 34, 25, .7); }
.sga-rank__note { margin: 10px 0 0; font-size: 12px; color: var(--sga-muted); }
@media (max-width: 960px) {
  .sga-rank__list { grid-auto-columns: calc((100% - 3 * 12px) / 4); gap: 12px; }
}
@media (max-width: 720px) {
  .sga-rank__box { padding: 12px 12px 10px; }
  .sga-rank__head { gap: 16px; }
  .sga-rank__list { grid-auto-columns: 38%; gap: 10px; scroll-snap-type: x proximity; padding-bottom: 2px; }
  .sga-rank.is-js .sga-rank__arrow { display: none; }
}

/* ===== 1.1.6 白底（用户：更干净、更像真实门户站，参考 smzdm 白底）：页面、区块、卡片都用白色或接近白色；青铜色只留给标题、角标、按钮、分隔线这些点缀 ===== */
:root {
  --sga-paper: #f5f5f5;
  --sga-card: #fff;
  --sga-line: #ebebeb;
  --sga-gold-soft: #f6f3ee;
  --sga-text: #222;
  --sga-muted: #777;
  --sga-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.sga-header { box-shadow: 0 1px 0 var(--sga-line); }
.sga-header.is-stuck { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
/* 主导航：白底深色字，当前项青铜色下划线 */
.sga-nav { background: #fff; border-top: 1px solid var(--sga-line); border-bottom: 2px solid var(--sga-bronze-2); }
.sga-nav__list a { color: #333; }
.sga-nav__list a:hover, .sga-nav__list .is-current a { color: var(--sga-bronze); }
.sga-nav__list .is-current a::after { background: var(--sga-bronze-2); }
/* 顶栏：搜索框和按钮同一行、垂直居中、同高 */
.sga-search__row { display: flex; align-items: center; gap: 14px; }
.sga-search__row .sga-search__form { flex: 1; min-width: 0; height: 42px; }
.sga-search__row .sga-topbar__cta { flex: none; height: 42px; box-sizing: border-box; }
/* 内页头：白底 */
.sga-pagehead { background: #fff; color: var(--sga-text); border-bottom: 1px solid var(--sga-line); }
.sga-pagehead::after { display: none; }
.sga-pagehead h1 { color: var(--sga-dark); }
.sga-pagehead__eyebrow { color: var(--sga-bronze); }
.sga-pagehead__lead { color: #555; }
.sga-crumbs, .sga-crumbs a { color: var(--sga-muted); }
.sga-crumbs a:hover { color: var(--sga-bronze); }
.sga-chips--light a { background: #fff; border-color: var(--sga-line); color: #444; }
.sga-chips--light a:hover { color: var(--sga-bronze); border-color: var(--sga-gold); }
/* 分类页底部去日本拍卖的提示条：浅底 */
.sga-cta { background: #faf8f5; border: 1px solid var(--sga-line); color: #555; }
.sga-cta strong { color: var(--sga-dark); }
.sga-prose blockquote { background: #f8f8f8; }
.sga-credits th { background: #f7f7f7; }
.sga-badge { background: #fff; border-color: #e6d29f; }
.sga-ranks span { background: #f0f0f0; }
/* 页脚：浅灰底深色字 */
.sga-footer { background: #f7f7f7; color: #555; border-top: 1px solid var(--sga-line); }
.sga-footer a { color: #444; }
.sga-footer a:hover { color: var(--sga-bronze); }
.sga-brand--footer .sga-logo-mark { color: var(--sga-bronze); }
.sga-brand--footer .sga-brand__name { color: var(--sga-dark); }
.sga-brand--footer .sga-brand__tag, .sga-footer__note { color: var(--sga-muted); }
.sga-footer__cats { border-left-color: var(--sga-line); }
.sga-footer__wx strong, .sga-footer__dir-title { color: var(--sga-dark); }
.sga-footer__qr { border: 1px solid var(--sga-line); }
.sga-footer__dir { border-top-color: var(--sga-line); }
.sga-footer__grid > div { border-bottom-color: var(--sga-line); }
.sga-footer__grid dt, .sga-footer__grid dt a { color: var(--sga-bronze); }
.sga-footer__grid dd, .sga-footer__grid dd a { color: #555; }
.sga-footer__bottom { background: #efefef; color: #888; }
.sga-footer__bottom a { color: #777; }
@media (max-width: 720px) {
  .sga-search__row { gap: 8px; }
  .sga-search__row .sga-search__form, .sga-search__row .sga-topbar__cta { height: 38px; }
  .sga-search__row .sga-topbar__cta { margin-left: 0; padding: 0 12px; font-size: 13px; }
}

/* ===== 1.1.7 分类页四块：介绍、特点、图片、常见问题 ===== */
.sga-prof { padding-top: 10px; }
.sga-prof__tabs { display: flex; gap: 6px; margin: 0 -20px 6px; padding: 8px 20px; background: #fff; border-bottom: 1px solid var(--sga-line); }
.sga-prof__tabs a { padding: 3px 14px; border: 1px solid var(--sga-line); border-radius: 999px; font-size: 13.5px; color: #444; }
.sga-prof__tabs a:hover { color: var(--sga-bronze); border-color: var(--sga-gold); }
.sga-prof__block { padding: 14px 0 6px; scroll-margin-top: 170px; }
.sga-prof__block + .sga-prof__block { border-top: 1px dashed var(--sga-line); }
.sga-prof__block .sga-prose p:last-child { margin-bottom: 0; }
/* 1.1.8 特点：简单表格（序号｜要点｜说明），只用细横线分隔，表头浅灰底；不要竖条、阴影、圆角和彩色装饰 */
.sga-prof__feats { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; color: #333; }
.sga-prof__feats thead th { background: #f4f4f4; color: #555; font-weight: 600; font-size: 13px; text-align: left; }
.sga-prof__feats th, .sga-prof__feats td { padding: 9px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.sga-prof__feats thead th { border-top: 1px solid #e5e5e5; }
.sga-prof__feats tbody th { font-weight: 700; color: #222; white-space: nowrap; width: 9em; }
.sga-prof__feats .sga-prof__no { width: 3.5em; color: #666; text-align: center; white-space: nowrap; }
.sga-prof__dot, .sga-prof__colon { display: none; }
.sga-prof__gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sga-prof__gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sga-prof__fig { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sga-prof__zoom { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--sga-line); border-radius: 6px; overflow: hidden; background: #f5f5f5; cursor: zoom-in; }
.sga-prof__zoom img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sga-prof__fig figcaption { font-size: 12px; line-height: 1.5; color: var(--sga-muted); }
.sga-prof__note { color: #444; margin-right: 6px; }
.sga-prof__faq { display: flex; flex-direction: column; gap: 8px; }
.sga-prof__qa { border: 1px solid var(--sga-line); border-radius: 6px; background: #fff; }
.sga-prof__qa summary { list-style: none; cursor: pointer; padding: 11px 40px 11px 14px; position: relative; font-weight: 600; color: var(--sga-dark); }
.sga-prof__qa summary::-webkit-details-marker { display: none; }
.sga-prof__qa summary::before { content: "问"; display: inline-block; margin-right: 8px; padding: 0 5px; border-radius: 3px; background: var(--sga-bronze-2); color: #fff; font-size: 12px; font-weight: 600; }
.sga-prof__qa summary::after { content: "+"; position: absolute; right: 14px; top: 8px; font-size: 20px; color: var(--sga-bronze); }
.sga-prof__qa[open] summary::after { content: "−"; }
.sga-prof__a { padding: 0 14px 12px 14px; color: #444; line-height: 1.8; }
.sga-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: rgba(0, 0, 0, .82); }
.sga-lightbox[hidden] { display: none; }
.sga-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; background: #fff; }
.sga-lightbox p { margin: 0; color: #eee; font-size: 13px; }
.sga-lightbox button { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; cursor: pointer; }
.sga-seller .sga-ai__tag { background: rgba(255, 255, 255, .88); color: #444; }
@media (max-width: 720px) {
  .sga-prof__tabs { margin: 0 -12px 6px; padding: 8px 12px; overflow-x: auto; }
  .sga-prof__tabs a { flex: none; }
  .sga-prof__feats thead { display: none; }
  .sga-prof__feats, .sga-prof__feats tbody { display: block; }
  .sga-prof__feats tr { display: block; padding: 9px 2px; border-bottom: 1px solid #e5e5e5; }
  .sga-prof__feats tbody tr:first-child { border-top: 1px solid #e5e5e5; }
  .sga-prof__feats th, .sga-prof__feats td { display: inline; padding: 0; border: 0; width: auto; white-space: normal; }
  .sga-prof__feats .sga-prof__no { color: #222; font-weight: 700; text-align: left; }
  .sga-prof__dot { display: inline; margin-right: 4px; }
  .sga-prof__colon { display: inline; }
  .sga-prof__gallery, .sga-prof__gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ===== 1.1.7 顶栏不跳（用户反馈）：去掉搜索框下面的“常搜”行；吸顶前后顶栏高度不变（不改内边距、不收起任何一行）。
   常搜词改成：输入框占位提示轮流显示，点进输入框下拉常搜列表。下拉是浮层，不占位置。 ===== */
.sga-topbar__in { padding-top: 12px; padding-bottom: 12px; transition: none; }
.sga-search__form { position: relative; overflow: visible; }
.sga-search__form input { border-radius: 4px 0 0 4px; }
.sga-search__form button { border-radius: 0 3px 3px 0; }
.sga-search__suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 2px); z-index: 60; padding: 8px 0 6px; background: #fff; border: 1px solid var(--sga-line); border-radius: 0 0 6px 6px; box-shadow: 0 8px 18px rgba(0, 0, 0, .1); }
.sga-search__suggest[hidden] { display: none; }
.sga-search__suggest p { margin: 0 14px 4px; font-size: 12px; color: var(--sga-muted); }
.sga-search__suggest ul { list-style: none; margin: 0; padding: 0; }
.sga-search__suggest a { display: block; padding: 6px 14px; font-size: 14px; color: #333; }
.sga-search__suggest a:hover, .sga-search__suggest a:focus { background: var(--sga-gold-soft); color: var(--sga-bronze); outline: none; }
@media (max-width: 720px) {
  .sga-topbar__in { padding-top: 8px; padding-bottom: 8px; }
}

/* 1.1.8 首页“分类浏览”：标签切换 + 卡片网格（换掉 8 段门类卡） */
.sga-browse { margin-top: 18px; margin-bottom: 18px; background: var(--sga-card); border: 1px solid var(--sga-line); border-radius: var(--sga-radius); box-shadow: var(--sga-shadow); padding: 18px 20px 14px; }
.sga-browse__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.sga-browse__title { position: relative; margin: 0; padding-left: 14px; font-family: var(--sga-serif); font-size: 21px; font-weight: 700; color: var(--sga-dark); }
.sga-browse__title::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--sga-gold), var(--sga-bronze)); }
.sga-browse__all { font-size: 13px; color: var(--sga-muted); }
.sga-browse__tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0 0 16px; padding: 4px 0 12px; border-bottom: 1px solid var(--sga-line); }
.sga-browse__tab { font-size: 15px; color: #555; line-height: 1.9; white-space: nowrap; }
.sga-browse__tab:hover { color: var(--sga-bronze); }
.sga-browse__tab.is-active { color: var(--sga-bronze); font-weight: 700; }
.sga-browse__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.sga-bcard { display: flex; flex-direction: column; min-width: 0; color: var(--sga-dark); }
.sga-bcard[hidden] { display: none; }
.sga-bcard__pic { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--sga-gold-soft); }
.sga-bcard__pic .sga-ai { display: block; height: 100%; }
.sga-bcard__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.sga-bcard:hover .sga-bcard__pic img { transform: scale(1.04); }
.sga-bcard__pic .sga-ai__tag { right: 4px; bottom: 4px; padding: 0 5px; font-size: 10.5px; letter-spacing: 0; }
.sga-bcard__name { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sga-bcard:hover .sga-bcard__name { color: var(--sga-bronze); }
.sga-bcard__sub { margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--sga-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sga-browse__rest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--sga-line); font-size: 13px; }
.sga-browse__rest span { color: var(--sga-muted); margin-right: 2px; }
.sga-browse__rest a { padding: 2px 12px; border: 1px solid var(--sga-line); border-radius: 999px; background: #fff; color: #555; }
.sga-browse__rest a:hover { border-color: var(--sga-gold); color: var(--sga-bronze); }
.sga-browse__foot { margin: 14px 0 0; text-align: center; }
/* 1.1.12 页码：卡片下面居中，当前页高亮；只有 1 页的标签不出页码 */
.sga-browse__pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 18px 0 0; }
.sga-browse__pager[hidden] { display: none; }
.sga-browse__pg { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--sga-line); border-radius: 6px; background: #fff; color: #555; font: inherit; font-size: 14px; line-height: 32px; cursor: pointer; }
.sga-browse__pg:hover:not(:disabled) { border-color: var(--sga-gold); color: var(--sga-bronze); }
.sga-browse__pg.is-current, .sga-browse__pg.is-current:hover:not(:disabled) { border-color: var(--sga-bronze); background: var(--sga-bronze); color: #fff; font-weight: 700; cursor: default; }
/* 电脑上卡片区锁成第 1 页的高度（JS 设 min-height）：行从上往下排，不把行距撑开 */
.sga-browse__grid { align-content: start; }
.sga-browse__pg:disabled { color: #bbb; cursor: default; }
.sga-browse__pg:focus-visible { outline: 2px solid var(--sga-gold); outline-offset: 2px; }
.sga-browse__more { display: inline-block; padding: 4px 18px; font-size: 14px; color: var(--sga-muted); }
.sga-browse__more:hover { color: var(--sga-bronze); }
@media (max-width: 1100px) { .sga-browse__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .sga-browse { padding: 14px 12px 10px; }
  .sga-browse__tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sga-browse__tabs::-webkit-scrollbar { display: none; }
  .sga-browse__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}

/* 1.1.8 AI 图标识：去掉“AI 示意图”角标，图中央叠 SAMPLE 水印（大写、常规字重无衬线、水平、宽约 75%，半透明灰 rgba(90,90,90,.65)，无描边；11-02 加深）。
   CSS 叠加，不改图片文件；水印宽度按图片框宽度等比缩放。卖家实拍图不加。 */
.sga-sample { position: relative; }
.sga-sample::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20600%20120'%3E%3Ctext%20x='300'%20y='96'%20text-anchor='middle'%20textLength='600'%20lengthAdjust='spacingAndGlyphs'%20font-family='Helvetica%20Neue,Helvetica,Arial,sans-serif'%20font-weight='400'%20font-size='120'%20fill='%235a5a5a'%20fill-opacity='.65'%3ESAMPLE%3C/text%3E%3C/svg%3E") center / 75% auto no-repeat; }
.sga-lightbox__pic { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
