/* ===== 紫砂藏 · 共享样式 (宣纸风) ===== */
:root {
  --paper: #eeebe3;
  --paper-2: #e7e3d8;
  --card: #faf8f1;
  --ink: #2b2b28;
  --ink-soft: #5a5650;
  --muted: #8a8580;
  --cinnabar: #9e2b22;
  --cinnabar-deep: #7e211a;
  --line: #d3ccbc;
  --serif: "Songti SC", "SimSun", "Noto Serif SC", serif;
  --kai: "Kaiti SC", "KaiTi", "STKaiti", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.24 0 0 0 0 0.23 0 0 0 0 0.21 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.09' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.28 0 0 0 0 0.27 0 0 0 0 0.25 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='520' height='520' filter='url(%23f)' opacity='0.13'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 260px 190px at 12% 22%, rgba(43,43,40,.055), transparent 70%),
    radial-gradient(ellipse 320px 240px at 78% 68%, rgba(43,43,40,.05), transparent 70%),
    radial-gradient(ellipse 300px 200px at 45% 92%, rgba(120,110,95,.05), transparent 70%),
    radial-gradient(ellipse 240px 260px at 92% 8%, rgba(158,43,34,.028), transparent 70%);
}
.page { max-width: 1200px; margin: 0 auto; padding: 32px 56px 96px; }

/* 顶栏 */
.topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand img.logo-mark { width: 52px; height: auto; }
.brand-txt h1 { font-family: var(--kai); font-size: 24px; font-weight: 600; letter-spacing: 5px; }
.brand-txt small { display: block; font-size: 10px; letter-spacing: 2.5px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 15px; letter-spacing: 2px; position: relative; padding-bottom: 6px; }
.nav a.on, .nav a:hover { color: var(--cinnabar); }
.nav a.on::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px; background: var(--cinnabar); }

/* 分节 */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 44px 0 26px; }
.sec-head h3 { font-family: var(--kai); font-size: 26px; letter-spacing: 5px; font-weight: 600; }
.sec-head h3 i { font-style: normal; color: var(--cinnabar); margin-right: 10px; font-size: 18px; }
.sec-head a { color: var(--muted); font-size: 13px; letter-spacing: 2px; text-decoration: none; }
.sec-head a:hover { color: var(--cinnabar); }

/* 卡片 */
.teapot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teapot {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 16px 14px 18px; text-align: center; position: relative;
  transition: transform .18s ease, box-shadow .18s ease; display: block; text-decoration: none; color: inherit;
}
.teapot:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43,43,40,.10); }
.teapot .shot {
  height: 180px; border-radius: 3px; margin-bottom: 14px; overflow: hidden;
  background: linear-gradient(180deg, #26221f 0%, #3a332e 62%, #57504a 82%, #6e675f 100%);
  display: flex; align-items: center; justify-content: center;
}
.teapot .shot.light { background: linear-gradient(180deg, #efece4 0%, #e2ddd2 70%, #cfcbc0 100%); }
.teapot .shot::after {
  content: "壶"; font-family: var(--kai); font-size: 60px; color: rgba(158,43,34,.75);
  text-shadow: 0 10px 18px rgba(0,0,0,.45);
}
.teapot .shot.light::after { color: rgba(158,43,34,.5); text-shadow: 0 10px 14px rgba(0,0,0,.18); }
.teapot h4 { color: var(--cinnabar); font-size: 16px; letter-spacing: 2px; margin-bottom: 7px; }
.teapot .desc { color: var(--ink-soft); font-size: 12.5px; margin-bottom: 8px; }
.teapot .award { color: var(--cinnabar); font-size: 11.5px; opacity: .92; }
.teapot .tag {
  position: absolute; top: 10px; left: 10px; background: rgba(158,43,34,.92); color: #f8f2e6;
  font-size: 11px; letter-spacing: 2px; padding: 3px 9px; border-radius: 2px; z-index: 1;
}
.teapot .tag.out { background: rgba(90,86,80,.9); }

/* 分类 + 搜索工具行 */
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.cats { display: flex; gap: 10px; flex-wrap: wrap; }
.cat {
  padding: 8px 20px; font-size: 14px; letter-spacing: 2px; text-decoration: none;
  color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  transition: all .15s ease;
}
.cat:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.cat.on { background: var(--cinnabar); border-color: var(--cinnabar); color: #f8f2e6; }
.searchbox { margin-left: auto; position: relative; }
.searchbox input {
  width: 250px; padding: 9px 14px 9px 38px; font-size: 14px; font-family: var(--serif);
  color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 3px; outline: none;
}
.searchbox input:focus { border-color: var(--cinnabar); }
.searchbox .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.result-hint { margin: -10px 0 18px; font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }

/* 详情 */
.detail {
  margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  display: flex; overflow: hidden;
}
.detail .shot {
  width: 340px; min-height: 320px; background: linear-gradient(180deg,#26221f,#3a332e 62%,#57504a 82%,#6e675f);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.detail .shot::after { content: "壶"; font-family: var(--kai); font-size: 96px; color: rgba(158,43,34,.75); text-shadow: 0 12px 22px rgba(0,0,0,.45); }
.detail .info { padding: 32px 36px; flex: 1; }
.detail .info h4 { font-family: var(--kai); font-size: 27px; letter-spacing: 3px; }
.detail .info h4 b { color: var(--cinnabar); font-weight: 600; }
.detail .meta { margin: 14px 0 18px; display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.detail .meta b { color: var(--ink-soft); font-weight: 500; }
.detail .prose { color: var(--ink-soft); font-size: 14px; line-height: 2.05; max-width: 38em; }
.detail .awardline { margin-top: 16px; color: var(--cinnabar); font-size: 13px; }
.detail .price { margin-top: 20px; font-size: 13px; color: var(--muted); }
.detail .price b { font-size: 25px; color: var(--cinnabar); font-family: var(--kai); margin-right: 6px; }

/* 作者卡 */
.author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.author {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
}
.author .photo { height: 300px; background: #dcd7cb center/cover; }
.author .body { padding: 22px 26px 26px; }
.author .body h4 { font-family: var(--kai); font-size: 24px; letter-spacing: 4px; color: var(--ink); }
.author .body h4 b { color: var(--cinnabar); font-weight: 600; }
.author .titles { margin: 10px 0 14px; display: flex; flex-direction: column; gap: 3px; }
.author .titles span { font-size: 13px; color: var(--cinnabar); letter-spacing: 1.5px; }
.author .body p { font-size: 13.5px; line-height: 2; color: var(--ink-soft); text-align: justify; }

/* 简介 / 馆窗 */
.intro {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 36px 42px; display: flex; gap: 40px; align-items: center;
}
.intro .mark { width: 190px; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(43,43,40,.12)); }
.intro .txt h4 { font-family: var(--kai); font-size: 24px; letter-spacing: 3px; margin-bottom: 12px; }
.intro .txt h4 b { color: var(--cinnabar); }
.intro .txt p { font-size: 14px; line-height: 2.1; color: var(--ink-soft); text-align: justify; }
.intro .motto { margin-top: 14px; font-family: var(--kai); color: var(--cinnabar); letter-spacing: 4px; font-size: 15px; }

/* 轮播图 */
.carousel {
  position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--card); height: 420px;
}
.carousel .slides { display: flex; height: 100%; transition: transform .55s ease; }
.carousel .slide { min-width: 100%; height: 100%; position: relative; overflow: hidden; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel .slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 36px 22px;
  background: linear-gradient(180deg, transparent, rgba(43,43,40,.55));
  color: #f6f3ec; font-family: var(--kai); font-size: 22px; letter-spacing: 6px; text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.carousel .dots { position: absolute; bottom: 14px; right: 22px; display: flex; gap: 8px; }
.carousel .dot-i { width: 9px; height: 9px; border-radius: 50%; background: rgba(246,243,236,.45); cursor: pointer; transition: background .2s; }
.carousel .dot-i.on { background: var(--cinnabar); }
.carousel .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border-radius: 50%; background: rgba(250,248,241,.82); color: var(--cinnabar);
  font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  user-select: none; transition: background .15s; border: 1px solid var(--line);
}
.carousel .arrow:hover { background: var(--cinnabar); color: #f8f2e6; }
.carousel .arrow.prev { left: 14px; }
.carousel .arrow.next { right: 14px; }

/* 画廊大图 (gallery.html) */
.gallery-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.gallery-hero .big {
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card);
  height: 560px; display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(180deg,#26221f,#3a332e 62%,#57504a 82%,#6e675f);
}
.gallery-hero .big::after { content: "壶"; font-family: var(--kai); font-size: 170px; color: rgba(158,43,34,.7); text-shadow: 0 18px 34px rgba(0,0,0,.5); }
.gallery-hero .big .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 34px 24px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(43,43,40,.6)); color: #f6f3ec;
}
.gallery-hero .big .cap b { font-family: var(--kai); font-size: 26px; letter-spacing: 5px; display: block; }
.gallery-hero .big .cap span { font-size: 13px; letter-spacing: 2px; opacity: .85; }
.gallery-side { display: flex; flex-direction: column; gap: 20px; }
.gallery-side .side-card {
  flex: 1; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg,#efece4,#d9d4c8); height: 270px; position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gallery-side .side-card::after { content: "壶"; font-family: var(--kai); font-size: 74px; color: rgba(158,43,34,.45); }
.gallery-side .side-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(43,43,40,.5)); color: #f6f3ec;
  font-family: var(--kai); font-size: 17px; letter-spacing: 3px;
}
.gallery-side .side-card:hover .cap b { color: #ffd9d4; }
.gallery-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-mosaic .m {
  aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; position: relative;
  background: linear-gradient(180deg,#efece4,#d9d4c8); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-mosaic .m:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43,43,40,.12); }
.gallery-mosaic .m::after { content: "壶"; font-family: var(--kai); font-size: 56px; color: rgba(158,43,34,.4); }
.gallery-mosaic .m .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(43,43,40,.5));
  color: #f6f3ec; font-size: 12.5px; letter-spacing: 2px;
}
.gallery-mosaic .m .cap b { font-family: var(--kai); font-size: 15px; display: block; }

/* 横幅图 */
.banner-wrap { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card); }
.banner-wrap img { display: block; width: 100%; height: auto; }

/* 图库 */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery-grid .ph {
  aspect-ratio: 1; border-radius: 3px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #efece4, #d9d4c8); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gallery-grid .ph::after { content: "图"; font-family: var(--kai); font-size: 30px; color: rgba(158,43,34,.28); }
.gallery-more { margin-top: 22px; text-align: center; }
.gallery-more .hint { color: var(--muted); font-size: 13px; letter-spacing: 1px; margin-bottom: 14px; }

/* 按钮 */
.btn {
  display: inline-block; padding: 12px 32px; font-size: 15px; letter-spacing: 3px;
  text-decoration: none; border-radius: 3px; transition: all .18s ease; cursor: pointer; font-family: var(--serif);
}
.btn-primary { background: var(--cinnabar); color: #f8f2e6 !important; border: 1px solid var(--cinnabar); box-shadow: 0 6px 18px rgba(158,43,34,.22); }
.btn-primary:hover { background: var(--cinnabar-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-soft) !important; background: transparent; }
.btn-ghost:hover { border-color: var(--cinnabar); color: var(--cinnabar) !important; }

/* 页脚 */
footer { margin-top: 84px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; letter-spacing: 2px; }

/* 手机版式预览 (375px 画在小屏, 或缩在框里) */
.phone-stage { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; }
.phone {
  width: 300px; height: 620px; border: 1px solid var(--line); border-radius: 26px;
  background: var(--paper); box-shadow: 0 18px 44px rgba(43,43,40,.16); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.phone .p-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.phone .p-head b { font-family: var(--kai); font-size: 17px; letter-spacing: 3px; }
.phone .p-head span { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.phone .p-body { flex: 1; overflow: hidden; padding: 14px 16px; }
.phone .p-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.phone .p-tabs a { font-size: 11.5px; padding: 5px 12px; border-radius: 3px; text-decoration: none; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); }
.phone .p-tabs a.on { background: var(--cinnabar); color: #f8f2e6; border-color: var(--cinnabar); }
.phone .p-search { margin-bottom: 12px; position: relative; }
.phone .p-search input {
  width: 100%; padding: 8px 12px 8px 32px; font-size: 12.5px; background: var(--card);
  border: 1px solid var(--line); border-radius: 3px; outline: none; font-family: var(--serif); color: var(--ink);
}
.phone .p-search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); }
.phone .p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone .p-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 8px; text-align: center; }
.phone .p-card .ph { height: 92px; border-radius: 3px; background: linear-gradient(180deg,#26221f,#3a332e 62%,#57504a 82%,#6e675f); display: flex; align-items: center; justify-content: center; margin-bottom: 7px; }
.phone .p-card .ph::after { content: "壶"; font-family: var(--kai); font-size: 30px; color: rgba(158,43,34,.7); }
.phone .p-card h5 { font-size: 12px; color: var(--cinnabar); letter-spacing: 1px; }
.phone .p-card p { font-size: 10px; color: var(--muted); margin-top: 3px; }
.phone .p-nav { display: flex; border-top: 1px solid var(--line); }
.phone .p-nav a { flex: 1; text-align: center; padding: 11px 0 13px; font-size: 11px; letter-spacing: 2px; text-decoration: none; color: var(--muted); }
.phone .p-nav a.on { color: var(--cinnabar); font-weight: 600; }

@media (max-width: 900px) {
  .page { padding: 24px 20px 72px; }
  .teapot-grid, .author-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .detail, .intro { flex-direction: column; }
  .detail .shot { width: 100%; }
  .nav { gap: 16px; }
}
