:root {
  --ink: #17150f;
  --ink-soft: #27241d;
  --paper: #f4f0e7;
  --paper-deep: #ebe3d3;
  --card: #fffdf7;
  --line: #e2dacb;
  --gold: #b78b48;
  --gold-deep: #76572d;
  --gold-light: #ead8ad;
  --text: #201e19;
  --muted: #837b6d;
  --danger: #a33c31;
  --success: #356c4b;
  --shadow: 0 24px 70px rgba(43, 34, 20, .11);
  --radius: 22px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(183, 139, 72, .11), transparent 26rem),
    linear-gradient(180deg, #f8f5ee 0, var(--paper) 36rem, #f8f5ee 100%);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.demo-banner {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 48px;
  color: #3d2c10;
  background: linear-gradient(90deg, #ead6a5, #fff0c9, #ead6a5);
  border-bottom: 1px solid rgba(104, 77, 31, .2);
  font-size: 13px;
  text-align: center;
}
.demo-banner button { position: absolute; right: 14px; border: 0; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 14px clamp(20px, 4vw, 68px);
  color: #fff;
  background: rgba(20, 19, 16, .94);
  border-bottom: 1px solid rgba(234, 216, 173, .16);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand img { border: 1px solid rgba(234, 216, 173, .3); border-radius: 50%; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 18px; letter-spacing: .14em; }
.brand small { margin-top: 4px; color: rgba(255,255,255,.43); font-size: 8px; letter-spacing: .22em; }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; letter-spacing: .08em; }
.main-nav a { position: relative; color: rgba(255,255,255,.72); }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--gold-light); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; gap: 10px; }
.icon-button, .button, .text-button {
  border: 0;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, color .2s, opacity .2s;
}
.icon-button { padding: 9px 15px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.17); border-radius: 999px; font-size: 12px; }
.icon-button:hover { background: rgba(255,255,255,.12); }
.icon-button.primary { color: #241b0d; background: var(--gold-light); border-color: var(--gold-light); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: linear-gradient(135deg, #bd9251, #7d5b2c); box-shadow: 0 12px 28px rgba(125, 91, 44, .24); }
.button.ghost { color: inherit; background: transparent; border: 1px solid rgba(126, 96, 48, .42); }
.site-header .button.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.button.compact { min-height: 36px; padding: 0 16px; font-size: 12px; }
.button.danger { color: #fff; background: var(--danger); }
.text-button { padding: 3px 0; color: var(--gold-deep); background: transparent; border-bottom: 1px solid rgba(118,87,45,.35); font-size: 12px; }

main { overflow: hidden; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  min-height: 680px;
  padding: 74px clamp(24px, 7vw, 116px) 80px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(17,16,13,.98) 0%, rgba(22,20,16,.94) 46%, rgba(27,23,17,.82) 100%),
    repeating-linear-gradient(90deg, transparent 0 99px, rgba(255,255,255,.025) 100px);
}
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 44%, rgba(183,139,72,.2), transparent 38%); }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .25em; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(46px, 6.2vw, 92px); font-weight: 500; line-height: 1.13; letter-spacing: -.035em; }
.hero h1 span { color: #e7d2a6; }
.hero-text { max-width: 540px; margin: 25px 0 32px; color: rgba(255,255,255,.68); font-size: 16px; letter-spacing: .08em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button.ghost { color: #f4ead7; border-color: rgba(234,216,173,.45); }
.stats { display: flex; gap: clamp(28px, 5vw, 70px); margin-top: 52px; }
.stats div { display: grid; }
.stats strong { font-family: var(--serif); color: #fff; font-size: 32px; font-weight: 500; line-height: 1; }
.stats span { margin-top: 8px; color: rgba(255,255,255,.44); font-size: 11px; letter-spacing: .16em; }
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; min-height: 500px; }
.hero-visual > img { position: relative; z-index: 2; width: min(100%, 580px); border-radius: 50%; box-shadow: 0 40px 100px rgba(0,0,0,.52); animation: float 6s ease-in-out infinite; }
.orbit { position: absolute; border: 1px solid rgba(234,216,173,.24); border-radius: 50%; }
.orbit-a { width: 480px; height: 480px; }
.orbit-b { width: 590px; height: 590px; border-style: dashed; animation: spin 48s linear infinite; }
.hero-note { position: absolute; z-index: 3; right: 0; bottom: 34px; display: grid; gap: 4px; padding: 15px 20px; color: #221a0e; background: rgba(239,222,184,.93); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.hero-note span { font-size: 10px; letter-spacing: .18em; opacity: .65; }
.hero-note strong { max-width: 210px; font-size: 13px; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-15px) rotate(1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.notice-strip { display: flex; align-items: center; gap: 18px; padding: 13px clamp(24px, 7vw, 116px); color: #47381f; background: #e9dcc1; border-bottom: 1px solid #dac9a7; font-size: 13px; }
.notice-label { flex: 0 0 auto; padding: 2px 8px; color: #fff; background: var(--gold-deep); border-radius: 4px; font-size: 10px; letter-spacing: .15em; }
.notice-strip p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.catalog-section { padding: 90px clamp(20px, 5vw, 76px) 100px; }
.section-heading, .admin-panel-head, .form-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading h2, .contact-dialog h2, .detail-content h2, .admin-header h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -.025em; }
.section-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto auto; gap: 12px; align-items: center; margin-top: 36px; padding: 14px; background: rgba(255,253,247,.78); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 50px rgba(81,62,32,.06); }
.search-box { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.search-box span { color: var(--gold-deep); font-size: 22px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.select-box, .price-filter { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.select-box select { border: 0; outline: 0; background: transparent; color: var(--text); }
.price-filter input { width: 76px; padding: 7px 8px; border: 1px solid #eee5d6; border-radius: 8px; outline: 0; }
.price-filter i { font-style: normal; }
.category-bar { display: flex; gap: 9px; margin: 25px 0 16px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.category-chip, .status-chip { flex: 0 0 auto; padding: 8px 15px; color: #645b4c; background: transparent; border: 1px solid #d9cdb9; border-radius: 999px; cursor: pointer; font-size: 12px; }
.category-chip.active, .status-chip.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.category-chip small { margin-left: 4px; opacity: .55; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.status-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.inventory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.goods-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 36px rgba(72,54,27,.05); transition: transform .32s, box-shadow .32s, border-color .32s; }
.goods-card:hover { transform: translateY(-7px); border-color: #cdbb99; box-shadow: 0 24px 60px rgba(67,48,20,.14); }
.goods-image { position: relative; overflow: hidden; aspect-ratio: 1 / .82; background: #171513; cursor: pointer; }
.goods-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.goods-card:hover .goods-image img { transform: scale(1.045); }
.goods-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 4px 8px; color: #fff; background: rgba(20,19,16,.75); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; backdrop-filter: blur(8px); font-size: 9px; letter-spacing: .08em; }
.badge.gold { color: #2d210d; background: rgba(239,222,184,.92); border-color: transparent; }
.status-pill { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; color: #fff; background: var(--success); border-radius: 999px; font-size: 10px; }
.status-pill.reserved { background: #9a6c28; }
.status-pill.sold { background: #746f66; }
.goods-body { padding: 18px 18px 19px; }
.goods-category { display: flex; justify-content: space-between; color: var(--gold-deep); font-size: 10px; letter-spacing: .16em; }
.goods-category span:last-child { color: var(--muted); letter-spacing: .03em; }
.goods-card h3 { margin: 9px 0 4px; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.goods-meta { min-height: 22px; margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #eee7da; }
.goods-price { color: var(--gold-deep); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.goods-price small { margin-left: 3px; font-family: var(--sans); font-size: 10px; font-weight: 400; }
.goods-actions { display: flex; gap: 7px; }
.round-button { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; color: var(--gold-deep); background: transparent; border: 1px solid #d9c8a8; border-radius: 50%; cursor: pointer; font-size: 16px; }
.round-button:hover { color: #fff; background: var(--gold-deep); border-color: var(--gold-deep); }
.empty-state { padding: 90px 20px; text-align: center; color: var(--muted); }
.empty-state > span { color: var(--gold); font-size: 48px; }
.empty-state h3 { margin: 12px 0 4px; color: var(--text); font-family: var(--serif); font-size: 25px; font-weight: 500; }
.empty-state p { margin: 0 0 22px; }

.trust-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 clamp(20px, 5vw, 76px) 100px; overflow: hidden; background: #d9cfbd; border: 1px solid #d9cfbd; border-radius: 22px; }
.trust-card { min-height: 220px; padding: 28px; background: #faf7f0; }
.trust-card span { color: var(--gold); font-size: 11px; letter-spacing: .18em; }
.trust-card h3 { margin: 32px 0 9px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.trust-card p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 42px clamp(22px, 5vw, 76px); color: rgba(255,255,255,.66); background: #151410; }
.site-footer > div:first-child { display: flex; align-items: center; gap: 12px; }
.site-footer p { margin: 0; font-size: 12px; }
.site-footer strong { color: #fff; font-family: var(--serif); font-size: 16px; }
.site-footer span { opacity: .62; }
.footer-links { display: flex; gap: 22px; font-size: 12px; }
.footer-links button, .footer-links a { color: rgba(255,255,255,.66); background: transparent; border: 0; cursor: pointer; }
.footer-links > *:hover { color: var(--gold-light); }
.footer-meta { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); opacity: .48; }

dialog { width: auto; max-width: none; padding: 0; color: var(--text); background: transparent; border: 0; }
dialog::backdrop { background: rgba(11,10,8,.72); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 5; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: rgba(20,19,16,.72); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; cursor: pointer; font-size: 23px; line-height: 1; }
.dialog-close.inline { position: static; }
.detail-dialog { width: min(1180px, calc(100vw - 34px)); max-height: calc(100vh - 34px); overflow: auto; background: #fbf8f1; border-radius: 24px; box-shadow: 0 40px 110px rgba(0,0,0,.4); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); min-height: 650px; }
.detail-gallery { display: flex; flex-direction: column; padding: 22px; background: #151410; }
.detail-main-image { flex: 1; overflow: hidden; border-radius: 16px; background: #0c0b09; }
.detail-main-image img { width: 100%; height: 100%; min-height: 500px; object-fit: contain; }
.detail-thumbs { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; }
.detail-thumbs button { flex: 0 0 76px; overflow: hidden; padding: 0; background: transparent; border: 2px solid transparent; border-radius: 10px; cursor: pointer; opacity: .55; }
.detail-thumbs button.active { border-color: var(--gold-light); opacity: 1; }
.detail-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-content { padding: 58px 46px 42px; }
.detail-topline { display: flex; gap: 12px; color: var(--gold-deep); font-size: 11px; letter-spacing: .14em; }
.detail-topline span + span { color: var(--success); }
.detail-code { display: flex; align-items: center; gap: 8px; margin: 6px 0 26px; color: var(--muted); font-size: 12px; }
.detail-code button { padding: 2px 7px; color: var(--gold-deep); background: #f0e6d4; border: 0; border-radius: 5px; cursor: pointer; }
.detail-price { margin-bottom: 26px; color: var(--gold-deep); font-family: var(--serif); font-size: 36px; font-weight: 700; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 13px; }
.spec-grid div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.spec-grid strong { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; }
.detail-description { margin: 24px 0 14px; color: #595246; font-size: 13px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tags span { padding: 4px 10px; color: var(--gold-deep); background: #f1e7d5; border-radius: 999px; font-size: 10px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.detail-footnote { margin: 20px 0 0; color: #9b9488; font-size: 10px; }
.contact-dialog, .admin-dialog { box-shadow: 0 40px 110px rgba(0,0,0,.4); }
.contact-dialog { width: min(560px, calc(100vw - 34px)); padding: 48px; background: #fbf8f1; border-radius: 24px; }
.contact-dialog > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.contact-list { display: grid; gap: 1px; margin: 26px 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 14px; }
.contact-list div { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 14px 16px; background: #fff; }
.contact-list span { color: var(--muted); font-size: 11px; }
.contact-list strong { font-size: 13px; font-weight: 500; }
.contact-list button { color: var(--gold-deep); background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.contact-note { margin: 0 !important; font-size: 11px !important; }

.admin-dialog { width: min(1440px, calc(100vw - 28px)); height: min(920px, calc(100vh - 28px)); overflow: hidden; background: #f6f2e9; border-radius: 24px; }
.admin-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100%; }
.admin-header { display: flex; align-items: center; justify-content: space-between; padding: 23px 30px 18px; color: #fff; background: #171510; }
.admin-header h2 { font-size: 29px; }
.admin-header .eyebrow { margin-bottom: 5px; color: var(--gold-light); }
.admin-tabs { display: flex; gap: 4px; padding: 9px 30px 0; background: #171510; }
.admin-tabs button { padding: 10px 18px; color: rgba(255,255,255,.55); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 12px; }
.admin-tabs button.active { color: #fff; border-bottom-color: var(--gold-light); }
.admin-panel { display: none; min-height: 0; padding: 28px 30px; overflow: auto; }
.admin-panel.active { display: block; }
.admin-panel-head { margin-bottom: 20px; }
.admin-panel h3, .form-heading h3 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.admin-panel p, .form-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.admin-goods-list { display: grid; gap: 9px; }
.admin-goods-row { display: grid; grid-template-columns: 66px minmax(180px, 1fr) 100px 110px 90px auto; gap: 13px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.admin-goods-row img { width: 66px; height: 54px; object-fit: cover; border-radius: 9px; }
.admin-goods-row h4 { margin: 0; font-size: 14px; }
.admin-goods-row p { margin: 2px 0 0; }
.admin-goods-row .price { color: var(--gold-deep); font-weight: 700; }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.row-actions button { padding: 6px 9px; background: transparent; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 11px; }
.editor-form { max-width: 1060px; margin: 0 auto; }
.form-heading { margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid label, .single-line { display: grid; gap: 6px; color: #5e574c; font-size: 11px; }
.form-grid label.full { grid-column: 1 / -1; }
.editor-form input, .editor-form select, .editor-form textarea, .single-line input { width: 100%; padding: 11px 13px; color: var(--text); background: #fff; border: 1px solid #ded4c3; border-radius: 10px; outline: 0; }
.editor-form input:focus, .editor-form select:focus, .editor-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183,139,72,.11); }
.form-checks { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0; padding: 14px; background: #eee7d9; border-radius: 12px; }
.form-checks label { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.form-checks input { width: auto; }
.image-editor { margin: 26px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.image-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; min-height: 92px; margin: 15px 0; }
.image-preview-item { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item button { position: absolute; top: 5px; right: 5px; display: grid; width: 24px; height: 24px; place-items: center; color: #fff; background: rgba(0,0,0,.68); border: 0; border-radius: 50%; cursor: pointer; }
.image-preview-item span { position: absolute; right: 5px; bottom: 5px; left: 5px; padding: 3px 5px; color: #fff; background: rgba(0,0,0,.58); border-radius: 5px; font-size: 9px; text-align: center; }
.image-url-row { display: flex; gap: 9px; margin-bottom: 14px; }
.image-url-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.single-line { margin-top: 14px; }
.data-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.data-cards article { position: relative; min-height: 190px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.data-cards h3 { margin: 12px 0 6px; }
.data-cards article > p { font-size: 12px; }
.data-index { color: var(--gold); font-size: 11px; letter-spacing: .18em; }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.data-cards ol { margin: 15px 0 0; padding-left: 19px; color: var(--muted); font-size: 12px; }
.danger-card { border-color: #e8c4bf !important; }
.storage-meter { margin-top: 18px; padding: 20px; background: #eee7d9; border-radius: 16px; }
.storage-meter > div { display: flex; justify-content: space-between; }
.storage-meter span { font-size: 12px; }
.storage-meter progress { width: 100%; height: 7px; margin: 10px 0 6px; accent-color: var(--gold-deep); }
.storage-meter p { font-size: 10px; }
.admin-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 30px; color: rgba(255,255,255,.55); background: #171510; font-size: 11px; }
.admin-footer .button { color: #fff; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 48px)); padding: 12px 17px; color: #fff; background: rgba(23,21,16,.94); border: 1px solid rgba(255,255,255,.13); border-radius: 12px; box-shadow: 0 16px 50px rgba(0,0,0,.28); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .22s, transform .22s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-toolbar { grid-template-columns: 1fr auto auto; }
  .price-filter { display: none; }
}
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav, #headerPriceToggle { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 68px; }
  .hero-visual { position: absolute; right: -170px; bottom: -15px; width: 520px; min-height: 430px; opacity: .34; }
  .hero-copy { max-width: 660px; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-section { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-main-image img { min-height: 420px; }
  .detail-content { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .demo-banner { justify-content: flex-start; padding: 9px 39px 9px 14px; text-align: left; }
  .site-header { padding: 11px 16px; }
  .brand strong { font-size: 15px; }
  .header-actions .icon-button:not(.primary) { display: none; }
  .hero { padding: 54px 20px 60px; }
  .hero h1 { font-size: 43px; }
  .hero-text { font-size: 13px; }
  .stats { gap: 28px; margin-top: 38px; }
  .stats strong { font-size: 25px; }
  .notice-strip { padding: 12px 18px; }
  .catalog-section { padding: 64px 16px 74px; }
  .section-heading { align-items: flex-start; }
  .section-heading .button { display: none; }
  .catalog-toolbar { grid-template-columns: 1fr; padding: 10px; }
  .select-box { justify-content: space-between; }
  .inventory-grid { grid-template-columns: 1fr; gap: 17px; }
  .goods-image { aspect-ratio: 1.16 / .9; }
  .trust-section { grid-template-columns: 1fr; margin: 0 16px 70px; }
  .trust-card { min-height: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .detail-dialog { width: 100vw; max-height: 100vh; border-radius: 0; }
  .detail-gallery { padding: 13px; }
  .detail-main-image img { min-height: 300px; }
  .detail-content { padding: 30px 21px 34px; }
  .spec-grid { grid-template-columns: 1fr; }
  .contact-dialog { width: calc(100vw - 24px); padding: 34px 22px; }
  .contact-list div { grid-template-columns: 50px 1fr auto; }
  .admin-dialog { width: 100vw; height: 100vh; border-radius: 0; }
  .admin-header, .admin-tabs, .admin-panel, .admin-footer { padding-right: 16px; padding-left: 16px; }
  .admin-tabs { overflow-x: auto; }
  .admin-panel { padding-top: 20px; }
  .admin-goods-row { grid-template-columns: 55px 1fr auto; }
  .admin-goods-row > :nth-child(3), .admin-goods-row > :nth-child(4), .admin-goods-row > :nth-child(5) { display: none; }
  .form-grid, .data-cards { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .toast { right: 12px; bottom: 12px; }
}
@media print {
  .site-header, .demo-banner, .hero-actions, .catalog-toolbar, .category-bar, .status-row, .site-footer, .goods-actions, .notice-strip { display: none !important; }
  body { background: #fff; }
  .hero { min-height: auto; padding: 30px; color: #111; background: #fff; }
  .hero-visual { display: none; }
  .hero h1 span, .hero .eyebrow, .stats span { color: #555; }
  .stats strong, .hero-text { color: #222; }
  .catalog-section { padding: 25px; }
  .inventory-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .goods-card { break-inside: avoid; box-shadow: none; }
}
