@charset "UTF-8";

:root {
  --paper: #f4f2ec;
  --paper-deep: #eae9e2;
  --paper-light: #faf9f5;
  --ink: #183c35;
  --ink-deep: #102c26;
  --text: #34443e;
  --muted: #5e6962;
  --gold: #765f3c;
  --gold-light: #c3a878;
  --line: #cfd0c7;
  --white: #fff;
  /* 标题：霞鹜文楷，笔画圆润、收笔带弧，替代原先回退到宋体的尖锐衬线 */
  --display: "LXGW WenKai", "LXGW WenKai Screen", "Source Han Serif SC", "Songti SC", serif;
  /* 正文：思源黑体（可变字重），比微软雅黑更瘦、字面更透气 */
  --sans: "Noto Sans SC Variable", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --shell: 1280px;
  --pad: clamp(22px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 400; font-synthesis-weight: none; }
h1 { font-size: clamp(38px, 3.72vw, 52px); line-height: 1.42; letter-spacing: .012em; text-wrap: balance; }
h2 { font-size: clamp(30px, 2.85vw, 40px); line-height: 1.5; letter-spacing: .016em; text-wrap: balance; }
h3 { line-height: 1.6; letter-spacing: .012em; }
p { max-width: 68ch; }
:focus-visible { outline: 3px solid #a07b38; outline-offset: 4px; }
::selection { background: #c8d5ca; color: var(--ink-deep); }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.section-shell { width: min(100%, var(--shell)); margin-inline: auto; }
.section-pad { padding: clamp(72px, 8vw, 112px) var(--pad); }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.section-heading { display: grid; gap: 18px; margin-bottom: 44px; }
.section-heading > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.9; }
.section-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.section-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.95; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 94px;
  padding: 12px var(--pad);
  border-bottom: 1px solid rgb(24 60 53 / 10%);
  background: rgb(244 242 236 / 94%);
  backdrop-filter: blur(14px);
}
.brand { display: flex; flex-direction: column; width: max-content; line-height: 1.35; }
.brand-name { color: var(--ink); font-family: var(--display); font-size: 25px; font-weight: 400; letter-spacing: .02em; }
.brand-subtitle { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .24em; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(22px, 3vw, 42px); }
.desktop-nav a { position: relative; padding: 12px 2px; font-size: 14px; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: var(--ink); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
.menu-button, .mobile-nav { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { border-color: #28594f; background: #28594f; }
.button-small { min-height: 44px; padding: 10px 21px; }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--white); }
.button-light { border-color: var(--paper-light); background: var(--paper-light); color: var(--ink); }
.button-light:hover { border-color: var(--gold-light); background: var(--gold-light); color: var(--ink-deep); }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(44px, 6vw, 82px);
  min-height: 650px;
  padding: 52px var(--pad) 72px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 27px; animation: hero-enter .65s ease-out both; }
.hero-intro { color: var(--muted); font-size: 16px; line-height: 2; }
.hero-visual { min-width: 0; animation: hero-enter .65s .1s ease-out both; }
.hero-visual picture { display: block; overflow: hidden; background: var(--ink); }
.hero-visual img { width: 100%; aspect-ratio: 1.18; object-fit: cover; }
.hero-visual figcaption { margin-top: 13px; color: var(--muted); font-size: 11px; text-align: right; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  text-align: center;
}
.principles p { max-width: none; }
.principles p + p { border-left: 1px solid var(--line); }

.about, .jewelry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: center; gap: clamp(48px, 7vw, 92px); }
.about { background: var(--paper-deep); }
.image-frame { overflow: hidden; background: #d8d4c9; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-image img { aspect-ratio: .96; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; width: 100%; margin-top: 8px; }
.fact-grid > div { padding-top: 16px; border-top: 1px solid #bfc3b9; }
.fact-grid h3 { margin-bottom: 6px; font-size: 16px; }
.fact-grid p { font-size: 13px; line-height: 1.86; }

.categories { background: var(--paper); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-height: 240px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-light);
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease;
}
.category-card:hover { border-color: var(--ink); background: #f0f2eb; }
.category-card > span:nth-child(2) { color: var(--muted); font-size: 14px; line-height: 1.9; }
.category-name { color: var(--ink); font-family: var(--display); font-size: 25px; font-weight: 400; }
.text-link { margin-top: auto; color: var(--gold); font-size: 13px; font-weight: 600; }

.works { background: var(--paper-deep); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 32px; }
.filter-bar button { min-height: 44px; padding: 7px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: 14px; }
.filter-bar button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { overflow: hidden; border: 1px solid rgb(24 60 53 / 8%); background: var(--paper-light); }
.work-card > button { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 18px; border: 0; background: transparent; text-align: left; }
.work-card picture { display: block; overflow: hidden; margin: -18px -18px 4px; background: #ddd8cc; }
.work-card img { width: 100%; aspect-ratio: 1.08; object-fit: cover; transition: transform .35s ease; }
.work-card button:hover img { transform: scale(1.018); }
.work-card h3 { margin-top: 12px; font-size: 21px; }
.work-card .work-summary { margin: 12px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.92; }
.work-card .work-link { margin-top: auto; color: var(--gold); font-size: 13px; font-weight: 600; }
.work-empty { grid-column: 1 / -1; padding: 44px; border: 1px solid var(--line); text-align: center; }

.jewelry { background: var(--paper); }
.jewelry-image img { aspect-ratio: 1.22; }
.inline-tags { display: flex; flex-wrap: wrap; gap: 12px 26px; color: var(--ink); font-size: 14px; font-weight: 600; }

.custom { background: var(--ink); color: #c2cec6; }
.custom h2, .custom h3 { color: var(--paper-light); }
.custom .eyebrow { color: var(--gold-light); }
.custom .section-heading > p:last-child { color: #bdc9c1; }
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; margin-top: 0; margin-bottom: 0; padding: 0; list-style: none; }
.process-list li { padding-top: 17px; border-top: 1px solid rgb(195 168 120 / 45%); }
.process-list li > span { color: var(--gold-light); font-size: 12px; }
.process-list h3 { margin: 12px 0 10px; font-size: 19px; }
.process-list p { font-size: 13px; line-height: 1.9; }
.custom-action { margin-top: 40px; }

.knowledge { background: var(--paper); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 280px; padding: 27px 24px; border: 1px solid var(--line); background: var(--paper-light); text-align: left; }
.article-card:hover { border-color: var(--ink); }
.article-category { color: var(--gold); font-size: 12px; font-weight: 600; }
.article-card h3 { margin: 18px 0 14px; font-size: 23px; }
.article-card p { color: var(--muted); font-size: 14px; line-height: 1.92; }
.article-card .text-link { margin-top: 22px; }

.contact { background: #e2e7df; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: start; gap: clamp(48px, 8vw, 104px); }
.contact-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact-copy > p:not(.eyebrow, .fine-print) { color: var(--muted); line-height: 1.9; }
.visit-list { width: 100%; }
.visit-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgb(24 60 53 / 12%); font-size: 14px; }
.visit-list dt { color: var(--muted); }
.visit-list dd { color: var(--ink); }
.copy-button { min-height: 30px; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--line); background: transparent; font-size: 12px; }
.fine-print { color: #68736c; font-size: 12px; line-height: 1.75; }
.inquiry-form { display: flex; flex-direction: column; gap: 17px; padding: clamp(24px, 4vw, 36px); background: var(--paper-light); }
.inquiry-form h3 { font-size: 27px; }
.inquiry-form > p:not(.fine-print) { color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 7px; }
.field label, .inquiry-result label { color: var(--ink); font-size: 13px; font-weight: 600; }
.field input, .field textarea, .inquiry-result textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #bdc3b9;
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  resize: vertical;
}
.field textarea { min-height: 112px; }
.inquiry-result { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }

.site-footer { padding: 54px var(--pad) 36px; background: var(--ink-deep); color: #aebcb4; }
.footer-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgb(255 255 255 / 14%); }
.footer-brand { display: flex; flex-direction: column; color: var(--paper-light); font-family: var(--display); font-size: 27px; }
.footer-brand small { margin-top: 8px; color: #aebcb4; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 13px; }
.footer-main nav a { padding-block: 8px; }
.footer-main nav a:hover { color: var(--white); }
.footer-meta { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; font-size: 11px; }
.footer-meta p { max-width: none; }
.admin-link { margin-left: 10px; color: #d5ded8; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
/* 备案信息：置于页面最底部，文字常显、可点击跳转工信部查询 */
.footer-record { margin-top: 4px; padding-top: 18px; }
.footer-record-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; width: 100%; max-width: none; font-size: 12.5px; line-height: 1.9; color: #b9c6be; text-align: center; }
.record-link { color: #cfdad3; border-bottom: 1px solid rgb(207 218 211 / 38%); transition: color .18s ease, border-color .18s ease; }
.record-link:hover, .record-link:focus-visible { color: #fff; border-bottom-color: #fff; }
.record-query { color: #b9c6be; }
.record-divider { color: rgb(255 255 255 / 26%); }
.record-psb[hidden] { display: none; }
/* 原有网站入口：独立于站内锚点，带外链指示 */
.legacy-entry { display: inline-flex; align-items: center; gap: 4px; }
.legacy-entry[hidden] { display: none; }
.legacy-entry svg { width: 12px; height: 12px; opacity: .7; }
.desktop-nav .legacy-entry { margin-left: 6px; padding-left: 18px; border-left: 1px solid var(--line); }
.mobile-consult { display: none; }

.detail-dialog, .article-dialog {
  width: min(calc(100% - 40px), 980px);
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper-light);
  color: var(--text);
  box-shadow: 0 28px 90px rgb(0 0 0 / 30%);
}
.article-dialog { width: min(calc(100% - 40px), 740px); }
.detail-dialog::backdrop, .article-dialog::backdrop { background: rgb(9 30 25 / 72%); backdrop-filter: blur(4px); }
.dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-light);
}
.dialog-close svg { width: 22px; height: 22px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; }
.product-layout > picture { background: #ddd8cc; }
.product-layout > picture img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { padding: 56px 38px 38px; }
.product-copy h2 { margin: 10px 0 18px; font-size: 31px; }
.product-copy > p { color: var(--muted); font-size: 14px; }
.product-list { margin: 24px 0; border-top: 1px solid var(--line); }
.product-list > div { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.product-list dt { color: var(--muted); }
.product-list dd { color: var(--ink); }
.article-dialog article { padding: 58px clamp(24px, 6vw, 62px) 54px; }
.article-dialog h2 { margin: 12px 0 26px; font-size: 34px; }
.article-dialog article p:not(.eyebrow) { margin-top: 20px; color: var(--muted); line-height: 2; }
.toast { position: fixed; z-index: 300; right: 24px; bottom: 24px; max-width: min(360px, calc(100% - 48px)); padding: 12px 18px; background: var(--ink-deep); color: var(--white); font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .desktop-nav { gap: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 38px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 210px; }
  .process-list { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .work-card h3 { font-size: 19px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  body { padding-bottom: 62px; }
  h1 { font-size: clamp(30px, 8.4vw, 36px); line-height: 1.5; }
  h2 { font-size: 27px; line-height: 1.55; }
  .section-pad { padding-block: 64px; }
  .section-heading { margin-bottom: 30px; }
  .site-header { grid-template-columns: 1fr auto; min-height: 76px; padding-block: 10px; }
  .brand-name { font-size: 21px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: grid; width: 46px; height: 46px; padding: 10px; place-items: center; border: 0; background: transparent; }
  .menu-button svg { width: 25px; height: 25px; }
  .mobile-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; padding: 12px var(--pad) 22px; border-bottom: 1px solid var(--line); background: var(--paper-light); }
  .mobile-nav a { min-height: 48px; padding: 11px 0; border-bottom: 1px solid rgb(24 60 53 / 8%); }
  .hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-top: 42px; padding-bottom: 52px; }
  .hero-copy { gap: 23px; }
  .hero-intro { font-size: 14px; }
  .hero-visual { width: 100%; }
  .hero-visual img { aspect-ratio: 1.1; }
  .button-row { width: 100%; }
  .button-row .button { flex: 1; padding-inline: 14px; }
  .principles { padding-inline: 12px; font-size: 12px; }
  .about, .jewelry, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-image img { aspect-ratio: 1.16; }
  .fact-grid { gap: 20px 16px; }
  .category-grid, .work-grid, .article-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 0; }
  .filter-bar { gap: 6px 24px; margin-bottom: 24px; }
  .work-card img { aspect-ratio: 1.08; }
  .jewelry-image { grid-row: 1; }
  .jewelry-image img { aspect-ratio: 1.08; }
  .process-list { grid-template-columns: 1fr; gap: 26px; }
  .process-list li { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; }
  .process-list li > span { grid-row: 1 / 3; padding-top: 3px; }
  .process-list h3 { margin: 0 0 6px; }
  .process-list p { grid-column: 2; }
  .article-card { min-height: 0; }
  .visit-list > div { grid-template-columns: 76px 1fr; gap: 12px; }
  .inquiry-form { margin-inline: -4px; }
  .footer-main, .footer-meta { align-items: flex-start; flex-direction: column; }
  .footer-main { gap: 26px; }
  .footer-main nav { gap: 10px 22px; }
  .footer-meta { gap: 12px; }
  /* 底部固定咨询条会遮住页脚，留出安全距离，保证备案号完整可见 */
  .site-footer { padding-bottom: 96px; }
  .footer-record-line { flex-direction: column; gap: 2px; font-size: 12px; }
  .record-divider { display: none; }
  .mobile-consult { position: fixed; z-index: 90; right: 12px; bottom: 10px; left: 12px; display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid rgb(255 255 255 / 30%); background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgb(16 44 38 / 20%); }
  .product-layout { grid-template-columns: 1fr; }
  .product-layout > picture img { aspect-ratio: 1.25; }
  .product-copy { padding: 30px 24px; }
  .product-copy h2 { padding-right: 30px; font-size: 27px; }
  .article-dialog h2 { padding-right: 22px; font-size: 29px; }
  .toast { right: 16px; bottom: 70px; left: 16px; max-width: none; }
}

@media (max-width: 390px) {
  .fact-grid { grid-template-columns: 1fr; }
  .button-row { flex-direction: column; }
  .button-row .button { width: 100%; }
  .principles { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .mobile-consult, .filter-bar, .button, .inquiry-form { display: none !important; }
  body { background: #fff; color: #000; }
  .section-pad { padding: 32px 0; }
}
