/* 小店、开源、付费软件三页，以及所有子页面左上角的返回键。基础样式在 roster.css。 */

/* —— 左上角返回键 —— */
.back-top { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, color .2s, gap .3s var(--ease); }
.back-top:hover { border-color: var(--ink); color: var(--ink); gap: 10px; }
.back-top b { font-weight: 400; font-size: 15px; line-height: 1; }

/* —— 每页自己的主色 —— */
body[data-page="shop"] { --c: #e58aa3; }
body[data-page="opensource"] { --c: #59b89a; }
body[data-page="software"] { --c: #d9a441; }
.banner.plain .wrap { grid-template-columns: 1fr; min-height: 300px; }
.banner.plain .info { padding: 40px 0 56px; }
.banner.plain .ghost { font-size: clamp(160px, 24vw, 340px); }
a.inline { color: var(--ink); border-bottom: 1px solid var(--c); }

/* —— 小店 —— */
.shop-hero { position:relative; background:#f1edf0; color:#493c48; }
.shop-hero-art { display:block; width:100%; height:clamp(240px, 22vw, 360px); object-fit:contain; object-position:right center; }
.shop-hero > .wrap { position:absolute; inset:0; width:calc(100% - 96px); display:flex; align-items:center; }
.shop-hero-copy { width:34%; max-width:420px; padding:20px 0; }
.shop-hero .eyebrow { color:#73556b; letter-spacing:0; }
.shop-hero h1 { font:700 48px/1.3 var(--serif); margin:10px 0 16px; letter-spacing:0; }
.shop-hero p { font-size:17px; line-height:1.85; margin:0; text-wrap:pretty; }
.shop-hero .linkbtn { color:#493c48; border-color:#9f8b9a; }
@media(max-width:1100px) {
  .shop-hero > .wrap { width:calc(100% - 48px); }
  .shop-hero h1 { font-size:36px; }
  .shop-hero p { font-size:15px; }
}
@media(max-width:760px) {
  .shop-hero-art { height:auto; aspect-ratio:2161 / 728; }
  .shop-hero > .wrap { position:static; display:block; }
  .shop-hero-copy { width:100%; max-width:none; padding:20px 0 26px; }
  .shop-hero h1 { font-size:30px; margin:6px 0 10px; }
}
/* —— 小店：定制表情包板块（2026-11-09，仅本地）。颜色全部走主题变量，日夜都能看 —— */
.shop-sub { font: 600 22px/1.4 var(--serif); margin: 0 0 18px; }
.stk { --chk-a: #ffffff; --chk-b: #ebe7ea; /* 表情的文字是深色，深色主题下也用浅色格子，才看得清 */ padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.stk-head { max-width: 46em; }
.stk-head h2 { font: 700 34px/1.3 var(--serif); margin: 8px 0 6px; letter-spacing: 0; }
.stk-tag { font: 600 18px/1.7 var(--serif); margin: 0 0 6px; color: var(--ink); }
.stk-head p { margin: 0; color: var(--ink-2); }
.stk-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.stk-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.stk-filter button { padding: 5px 16px; border: 1px solid var(--line-2); background: none; font-size: 14px; color: var(--ink-2); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background-color .25s, color .25s; }
.stk-filter button:hover { color: var(--ink); border-color: var(--ink); }
.stk-filter button[aria-pressed="true"] { background: var(--c); color: #fff; border-color: var(--c); }
.stk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stk-cell { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; display: flex; flex-direction: column; background: var(--bg-2); font: inherit; color: inherit; text-align: center;
  transition: transform .35s var(--ease), border-color .3s; }
.stk-cell:hover, .stk-cell:focus-visible { transform: translateY(-4px); border-color: var(--c); }
.stk-cell img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block;
  background-color: var(--chk-a); background-image: conic-gradient(var(--chk-b) 25%, transparent 0 50%, var(--chk-b) 0 75%, transparent 0); background-size: 16px 16px; }
.stk-cell span { display: block; padding: 8px 6px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
.stk-cell[hidden] { display: none; }
.stk-group + .stk-group { margin-top: 26px; }
.stk-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 0 0 10px 14px; margin-bottom: 14px; border-bottom: 2px solid var(--c); border-left: 5px solid var(--c); }
.stk-group-head h3 { margin: 0; font: 700 22px/1.3 var(--serif); }
.stk-tagbox { font: italic 300 20px var(--latin); color: var(--c); }
.stk-group-note { font-size: 13.5px; color: var(--ink-3); }
.stk-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.stk-order { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); position: sticky; top: 76px; }
.stk-order h3 { margin: 0; font: 600 20px/1.4 var(--serif); }
.stk-pkgs { display: grid; gap: 8px; }
.stk-pkg, .stk-styles label { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 8px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.stk-pkg:has(input:checked), .stk-styles label:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.stk-pkg input, .stk-styles input { accent-color: var(--c); flex: none; }
.stk-pkg > span, .stk-styles label > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stk-pkg small, .stk-styles small { color: var(--ink-3); font-size: 12.5px; }
.stk-pkg strong { font: 700 18px var(--serif); white-space: nowrap; }
.stk-styles { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.stk-styles legend { font-size: 13px; color: var(--ink-3); padding: 0; margin-bottom: 8px; }
.stk-both { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--bg-3); color: var(--ink-2); font-size: 13.5px; }
.stk-sum { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.stk-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.stk-sum dt { color: var(--ink-3); }
.stk-sum dd { margin: 0; text-align: right; }
.stk-sum > div:last-child dd { font: 700 20px var(--serif); }
.stk-order .links .linkbtn { width: 100%; justify-content: center; }
.stk-pkg em { font-style: normal; font-size: 11.5px; font-weight: 400; padding: 1px 8px; border-radius: 999px; background: var(--c); color: #fff; margin-left: 6px; vertical-align: 1px; }
.stk-upload { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: 8px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.stk-upload:hover, .stk-upload:focus-within { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.stk-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stk-pv { width: 64px; height: 64px; flex: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background-color: var(--chk-a); background-image: conic-gradient(var(--chk-b) 25%, transparent 0 50%, var(--chk-b) 0 75%, transparent 0); background-size: 12px 12px; }
.stk-pv img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stk-up-txt { display: flex; flex-direction: column; min-width: 0; }
.stk-up-txt b { overflow-wrap: anywhere; }
.stk-up-txt small { color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
.stk-err { margin: 0; color: #c2415a; font-size: 13px; }
:root[data-theme="dark"] .stk-err { color: #ff9aa8; }
.stk-caps summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.stk-caps p { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.stk-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stk-steps li { padding: 20px 22px; border-right: 1px solid var(--line); }
.stk-steps li:last-child { border-right: 0; }
.stk-steps b { font-family: var(--latin); font-style: italic; font-weight: 300; font-size: 28px; color: var(--ink-3); }
.stk-steps h3 { margin: 4px 0; font: 600 17px var(--serif); }
.stk-steps p { margin: 0; color: var(--ink-2); font-size: 14px; }
.stk-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; margin-top: 28px; align-items: start; }
.stk-info h3 { margin: 0 0 10px; font: 600 18px var(--serif); }
.stk-info ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
.stk-dlg { border: 0; border-radius: 12px; padding: 16px; width: min(420px, calc(100vw - 32px)); background: var(--bg-2); color: var(--ink); }
.stk-dlg::backdrop { background: rgba(20, 14, 18, .55); }
.stk-big { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; overflow: hidden;
  background-color: var(--chk-a); background-image: conic-gradient(var(--chk-b) 25%, transparent 0 50%, var(--chk-b) 0 75%, transparent 0); background-size: 20px 20px; }
.stk-big img { width: 100%; height: 100%; object-fit: contain; }
.stk-dlg-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
@media (max-width: 900px) {
  .stk-body, .stk-info { grid-template-columns: minmax(0, 1fr); }
  .stk-order { position: static; }
  .stk-steps { grid-template-columns: 1fr 1fr; }
  .stk-steps li:nth-child(2) { border-right: 0; }
  .stk-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stk { padding-top: 32px; }
  .stk-head h2 { font-size: 28px; }
  .stk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stk-steps { grid-template-columns: minmax(0, 1fr); }
  .stk-steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .stk-steps li:last-child { border-bottom: 0; }
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { padding: 6px 16px; border: 1px solid var(--line-2); background: none; font-size: 14px; color: var(--ink-2); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background-color .25s, color .25s; }
.tabs button:hover { color: var(--ink); border-color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--pc, var(--ink)); color: #fff; border-color: var(--pc, var(--ink)); }
.tabs button[data-p=""][aria-pressed="true"] { color: var(--bg); }
.goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: -26px; }
.good { --gc: var(--c); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-2); transition: transform .45s var(--ease), border-color .3s, opacity .3s; }
.good:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gc) 70%, var(--line-2)); }
.good.dim { opacity: .2; pointer-events: none; }
.good-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 65%, var(--bg-3)), color-mix(in srgb, var(--gc) 18%, var(--bg-3))); }
.good-cover.has-image { aspect-ratio: 1; }
.good-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.good-cover.has-image::after { display: none; }
.good-cover.has-image .kind { top: auto; bottom: 12px; }
.good-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.good:hover .good-cover::after { transform: translateX(100%); }
.good-cover .kind { position: absolute; left: 14px; top: 12px; z-index: 1; font-size: 12px; padding: 2px 12px; background: rgba(20, 14, 18, .72); color: #fff; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.good-cover .glyph { position: absolute; right: -6px; bottom: -36px; font-family: var(--serif); font-weight: 900; font-size: 150px; line-height: 1; color: rgba(255, 255, 255, .35); transition: transform .8s var(--ease); }
.good:hover .glyph { transform: translate(-10px, -8px) rotate(-6deg); }
.good-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.good-body h3 { margin: 0; font-family: var(--serif); font-size: 19px; }
.good-body p { margin: 0; color: var(--ink-2); font-size: 14px; white-space: pre-line; }
.with { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); width: fit-content; border-bottom: 1px solid transparent; transition: border-color .2s; }
.with:hover { border-color: var(--gc); }
.with i { width: 9px; height: 9px; border-radius: 50%; }
.good-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-size: 16px; }
.where { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); transition: background-color .2s, color .2s; }
a.chip:hover { background: var(--ink); color: var(--bg); }
.chip[data-pending] { opacity: .7; cursor: default; }

/* —— 开源 —— */
.skills2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin: 4px 0 18px; }
.skill2 { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-2); transition: transform .45s var(--ease), border-color .3s; }
.skill2:hover { transform: translateY(-5px); border-color: var(--line-2); }
.canvas2 { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0c18; }
.pic2 { position: absolute; inset: 0; filter: blur(22px) saturate(.3) contrast(1.5); transform: scale(1.2); transition: filter 2s steps(10), transform 2s var(--ease); }
.noise2 { position: absolute; inset: 0; mix-blend-mode: screen; opacity: .8; transition: opacity 2s steps(10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.skill2:hover .pic2 { filter: none; transform: none; }
.skill2:hover .noise2 { opacity: 0; }
.hud2 { position: absolute; right: 12px; top: 10px; font-family: var(--mono); font-size: 11px; color: #f3ecdf; text-shadow: 0 1px 6px #000; }
.skill2-body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.skill2-body h3, .tool2 h3 { margin: 0; font-family: var(--serif); font-size: 20px; }
.skill2-body p, .tool2 p { margin: 0; color: var(--ink-2); font-size: 14px; }
.grant { display: flex; flex-wrap: wrap; gap: 6px; }
.grant span { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.grant .yes { border-color: rgba(47, 138, 87, .45); color: #2f8a57; }
.grant .no { border-color: rgba(194, 65, 90, .45); color: #c2415a; }
:root[data-theme="dark"] .grant .yes { color: #9fdcb8; }
:root[data-theme="dark"] .grant .no { color: #ff9aa8; }
.tools2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 4px; }
.tool2 { position: relative; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); display: grid; gap: 10px; align-content: start; overflow: hidden; transition: transform .45s var(--ease), border-color .3s; }
.tool2::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.tool2:hover { transform: translateY(-5px); border-color: var(--line-2); }
.tool2:hover::before { transform: scaleY(1); }
.tool2-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.status { font-size: 12px; padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--ink); white-space: nowrap; }
.tool2 ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--ink-2); font-size: 14px; }
.tool2 li::before { content: "— "; color: var(--c); }

/* Toolbox artwork stays decorative; content and links remain real HTML. */
body[data-page="opensource"] { --c:#60a58e; }
body[data-page="opensource"] * { letter-spacing:0; }
.toolbox-hero { position:relative; isolation:isolate; min-height:380px; display:grid; align-items:center; overflow:hidden; color:#273c36; background:#e5eee7; }
.toolbox-hero-art { position:absolute; inset:0; z-index:-1; width:100%; height:100%; object-fit:cover; object-position:center; }
.toolbox-hero-copy { width:46%; padding:54px 0; }
.toolbox-hero h1 { margin:8px 0 14px; font-family:var(--serif); font-size:48px; line-height:1.3; }
.toolbox-hero .eyebrow { color:#45675b; }
.toolbox-hero p { margin:0; font-size:18px; }
.toolbox-jump { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:30px; }
.toolbox-jump a { display:inline-flex; align-items:center; gap:9px; padding:6px 0; border-bottom:1px solid #637f72; font-size:14px; }
.toolbox-jump a:hover { color:#171e1b; border-bottom-width:2px; padding-bottom:5px; }
.toolbox-section { padding:40px 0 16px; scroll-margin-top:76px; }
.toolbox-section:last-child { padding-bottom:76px; }
.toolbox-section-head { position:relative; isolation:isolate; overflow:hidden; min-height:190px; display:grid; align-items:center; color:#38323b; background:#eef2f3; }
.toolbox-section-head > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:-1; }
.toolbox-section-head .wrap { padding-top:32px; padding-bottom:32px; }
.toolbox-section-head h2 { font-family:var(--serif); font-size:30px; line-height:1.3; margin:0 0 12px; max-width:44%; }
.toolbox-section-head p { margin:0; max-width:44%; font-size:15px; }
.toolbox-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding-top:24px; }
.toolbox-card { display:flex; flex-direction:column; gap:14px; min-width:0; padding:26px; border:1px solid var(--line); border-radius:8px; background:var(--bg-2); }
.toolbox-card h3 { margin:0; font-size:23px; font-family:var(--serif); line-height:1.4; overflow-wrap:anywhere; }
.toolbox-card p { margin:0; color:var(--ink-2); line-height:1.8; }
.toolbox-card .links { margin-top:auto; padding-top:6px; align-items:center; }
.toolbox-tags { display:flex; flex-wrap:wrap; gap:6px 16px; color:var(--ink-3); font-size:12px; }
.toolbox-source { font-family:var(--mono); font-size:12px; overflow-wrap:anywhere; }
.toolbox-card .toolbox-note { font-size:12px; color:var(--ink-3); }
.toolbox-card-heading { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.toolbox-card ul { margin:0; padding-left:20px; color:var(--ink-2); font-size:14px; }
.pending-note { display:inline-block; font-size:13px; color:var(--ink-3); padding:9px 0; }
.toolbox-card .linkbtn { border-radius:6px; }
#fan-skills { --c:#bc7e95; }
#open-tools { --c:#60a58e; }
#creative-resources { --c:#7d9ec5; }
@media(min-width:1600px) {
  .toolbox-hero { min-height:440px; }
  .toolbox-section-head { min-height:230px; }
}
@media(max-width:960px) {
  .toolbox-hero { min-height:320px; }
  .toolbox-hero h1 { font-size:38px; }
  .toolbox-hero-copy { width:49%; }
}
@media(max-width:700px) {
  body[data-page="opensource"] .top .bar { height:auto; min-height:96px; flex-wrap:wrap; gap:4px 10px; padding:8px 0; }
  body[data-page="opensource"] .top .theme { margin-left:auto; }
  body[data-page="opensource"] .top nav { order:2; width:100%; margin:0; justify-content:space-between; }
  body[data-page="opensource"] .top nav a { padding:6px 3px; font-size:12px; }
  .toolbox-hero { display:block; min-height:0; }
  .toolbox-hero-art { position:static; display:block; height:auto; aspect-ratio:3/1; }
  .toolbox-hero-copy { width:100%; padding:26px 0 30px; }
  .toolbox-hero h1 { font-size:32px; }
  .toolbox-hero p { font-size:16px; }
  .toolbox-jump { margin-top:18px; gap:10px 16px; }
  .toolbox-jump a { font-size:13px; }
  .toolbox-section { scroll-margin-top:120px; padding-top:26px; }
  .toolbox-section-head { display:block; min-height:0; }
  .toolbox-section-head > img { position:static; display:block; height:auto; aspect-ratio:3/1; }
  .toolbox-section-head .wrap { padding-top:20px; padding-bottom:20px; }
  .toolbox-section-head h2 { font-size:26px; max-width:none; }
  .toolbox-section-head p { max-width:none; font-size:14px; }
  .toolbox-grid { grid-template-columns:minmax(0,1fr); gap:16px; padding-top:18px; }
  .toolbox-card { padding:20px; }
  .toolbox-card h3 { font-size:21px; }
}

/* —— 付费软件 —— */
[hidden] { display: none !important; }
.software-notice { padding-block: 48px 96px; }
.software-notice h2 { font: 600 30px/1.4 var(--serif); }
.software-notice p { color: var(--ink-2); }
.product { display: grid; gap: 26px; }
.product-head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: end; }
.product-head h2 { margin: 6px 0 10px; font-family: var(--serif); font-weight: 900; font-size: 34px; }
.product-head p { margin: 0; color: var(--ink-2); max-width: 40em; }
.buy { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.buy .price { font-size: 26px; }
.buy .linkbtn { justify-content: center; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.module { position: relative; padding: 24px; border-right: 1px solid var(--line); transition: background-color .35s; }
.module:last-child { border-right: 0; }
.module:hover { background: var(--bg-2); }
.module::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.module:hover::after { transform: scaleX(1); }
.module b { font-family: var(--latin); font-style: italic; font-weight: 300; font-size: 30px; color: var(--ink-3); transition: color .3s; }
.module:hover b { color: var(--c); }
.module h3 { margin: 6px 0 4px; font-family: var(--serif); font-size: 18px; }
.module p { margin: 0; color: var(--ink-2); font-size: 14px; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; background: var(--bg-2); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 16px; }
.faq p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }

@media (max-width: 900px) {
  .back-top { padding: 0 10px 0 8px; height: 30px; font-size: 12.5px; }
  .back-top span { display: none; }
  .product-head { grid-template-columns: 1fr; }
  .module { border-right: 0; border-bottom: 1px solid var(--line); }
  .module:last-child { border-bottom: 0; }
  .goods { margin-top: -20px; }
}

/* 手机上顶栏放不下：只留头像、四个入口和主题按钮 */
@media (max-width: 600px) {
  .top .bar { height:auto; min-height:92px; flex-wrap:wrap; padding-block:8px; }
  .top nav { order:2; flex:0 0 100%; justify-content:space-between; }
  .top .theme { margin-left:auto; }
  .top .bar { gap: 8px; }
  .top .logo span { display: none; }
  .top nav { gap: 0; }
  .top nav a { padding: 6px 7px; font-size: 13px; }
  .top nav a::after { left: 7px; right: 7px; }
  .theme { width: 32px; height: 32px; }
}
