:root {
    --paper: #f7f2e8;
    --paper-2: #efe8da;
    --card: #fffdf8;
    --ink: #1b1712;
    --ink-soft: #4b4338;
    --muted: #837a6b;
    --line: #ded3bf;
    --line-strong: #c9bca4;
    --accent: #a8342a;
    --accent-dark: #8d2a22;
    --accent-soft: #f0ddd7;
    --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.35; margin: 0; }
p { margin: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.serif { font-family: var(--serif); }
.accent { color: var(--accent); }
.right { text-align: right; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247,242,232,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.seal { width: 40px; height: 40px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 8px; font-family: var(--serif); font-size: 15px; letter-spacing: .06em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); letter-spacing: .18em; font-size: 18px; }
.brand-text small { color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-top: 5px; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-soft); flex-wrap: wrap; }
.nav a:hover { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who { font-size: 12px; color: var(--muted); margin-right: 6px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; cursor: pointer; background: transparent; color: var(--ink); transition: .18s ease; white-space: nowrap; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(27,23,18,.05); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12px; }
.btn-block { width: 100%; }

.hero { padding: 66px 0 52px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .24em; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); margin: 18px 0 20px; }
.hero p.lead { color: var(--ink-soft); font-size: 15px; max-width: 560px; }
.hero-art { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.hero-frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 24px 60px -40px rgba(50,38,20,.5); }
.hero-frame.tall { grid-row: span 2; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { min-height: 170px; display: grid; place-items: center; background: var(--paper-2); font-family: var(--serif); font-size: 58px; color: var(--ink); }

.searchbar { display: flex; gap: 8px; align-items: center; margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 540px; }
.searchbar input { flex: 1; border: 0; background: transparent; height: 40px; font-size: 14px; outline: none; color: var(--ink); min-width: 0; }
.searchbar button { flex: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.stat { padding: 22px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.stat span { color: var(--muted); font-size: 11px; letter-spacing: .12em; }

.section { padding: 54px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 28px; }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.link { color: var(--accent); font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 12px; color: var(--ink-soft); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work-card { display: block; }
.work-cover { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover .work-cover img { transform: scale(1.03); }
.work-cover .tag { position: absolute; top: 10px; left: 10px; background: rgba(247,242,232,.9); border: 1px solid var(--line); border-radius: 999px; font-size: 10px; padding: 3px 9px; letter-spacing: .08em; }
.fallback { height: 100%; display: grid; place-items: center; background: var(--paper-2); position: relative; }
.fallback .glyph { font-family: var(--serif); font-size: 72px; color: var(--ink); }
.fallback .stamp { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 4px; font-size: 12px; }
.work-info { padding-top: 12px; }
.work-info h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-info .meta { color: var(--muted); font-size: 11px; letter-spacing: .06em; margin-top: 3px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.price-row strong { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.price-row span { font-size: 11px; color: var(--muted); }

.page-head { padding: 36px 0 26px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 36px; margin-top: 10px; }
.breadcrumb { font-size: 11px; color: var(--muted); letter-spacing: .08em; display: flex; gap: 8px; flex-wrap: wrap; }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 36px 0; }
.detail-cover { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); aspect-ratio: 1 / 1; }
.detail-cover img { width: 100%; height: 100%; object-fit: contain; background: var(--paper-2); }
.detail-cover .fallback .glyph { font-size: 150px; }
.detail h1 { font-size: 34px; margin: 12px 0 10px; }
.meta-line { color: var(--muted); font-size: 12px; letter-spacing: .06em; display: flex; gap: 12px; flex-wrap: wrap; }
.price-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 22px 0; }
.price-box .amount { font-family: var(--serif); color: var(--accent); font-size: 42px; line-height: 1; }
.price-box .fee-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
.snapshot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.snapshot div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--card); }
.snapshot span { display: block; font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.snapshot strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.panel h3 { font-size: 16px; margin: 20px 0 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label.field-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 0 12px; font-size: 14px; color: var(--ink); }
select.field { appearance: none; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-soft); margin: 10px 0; }
.checkline input { margin-top: 4px; accent-color: var(--accent); }
.notice { background: var(--paper-2); border-left: 3px solid var(--accent); padding: 12px 16px; font-size: 12px; color: var(--ink-soft); border-radius: 0 8px 8px 0; }
.alert { border: 1px solid #e2b8b0; background: var(--accent-soft); color: var(--accent-dark); padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 11px; color: var(--ink-soft); }
.badge.red { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.breakdown { border-top: 1px solid var(--line); margin-top: 18px; }
.breakdown div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.breakdown div.total { font-size: 17px; font-weight: 600; border-bottom: 0; padding-top: 16px; }
.breakdown .free { color: var(--muted); font-size: 12px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .08em; padding: 10px 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: rgba(239,232,218,.35); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 20px 22px; border-left: 1px solid var(--line-strong); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline strong { font-size: 14px; }
.timeline span { display: block; color: var(--muted); font-size: 11px; }

.order-summary { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); }

.auth-wrap { max-width: 440px; margin: 60px auto; }
.auth-wrap h1 { font-size: 30px; margin-bottom: 8px; }
.auth-wrap p.sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.error-list { color: var(--accent); font-size: 12px; margin: 4px 0 0; padding-left: 16px; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: 70px; padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.footer-inner .brand.small .seal { width: 32px; height: 32px; font-size: 12px; }
.footer-meta p { margin: 2px 0; }

@media (max-width: 1000px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .hero { grid-template-columns: 1fr; }
    .detail { grid-template-columns: 1fr; }
    .order-summary { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .container { padding: 0 16px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat { border-bottom: 1px solid var(--line); }
    .nav { order: 3; width: 100%; gap: 14px; font-size: 13px; }
    .header-actions { margin-left: auto; }
    .hero { padding-top: 40px; }
    .form-grid { grid-template-columns: 1fr; }
    .snapshot { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 28px; }
    .detail h1 { font-size: 26px; }
    .table { display: block; overflow-x: auto; }
}

.demo-banner {
    background: #8d2a22;
    color: #fff;
    text-align: center;
    font-size: 12px;
    letter-spacing: .04em;
    padding: 8px 16px;
}
