:root {
  --ink: #1a1917;
  --ink-soft: #5c584f;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --line: #ded9cd;
  --accent: #9a6b3f;
  --white: #fff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 20px 0; transition: background .35s, padding .35s, box-shadow .35s; }
.site-header.scrolled { background: rgba(247,245,240,.96); padding: 12px 0; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--serif); font-size: 26px; letter-spacing: .02em; font-weight: 500; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--ink); transition: width .3s; }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-btn { font-size: 12px; letter-spacing: .06em; border: 1px solid var(--line); padding: 6px 12px; border-radius: 2px; transition: background .2s; }
.lang-btn:hover { background: var(--paper-2); }
.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.menu-btn span { width: 22px; height: 1px; background: var(--ink); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,18,22,.82) 0%, rgba(15,18,22,.55) 55%, rgba(15,18,22,.35) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 120px 0 80px; max-width: 720px; }
.hero-badge { display: inline-block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.5); padding: 8px 16px; margin-bottom: 28px; }
.hero-title { font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); font-weight: 400; line-height: 1.05; margin-bottom: 24px; }
.hero-sub { font-size: 17px; font-weight: 300; max-width: 540px; color: rgba(255,255,255,.85); margin-bottom: 40px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: all .25s; border: 1px solid transparent; }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; width: 24px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; }
.scroll-hint span { display: block; width: 2px; height: 8px; background: #fff; margin: 8px auto 0; border-radius: 1px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

.section { padding: 110px 0; }
.section-head { margin-bottom: 50px; }
.section-head.center { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 400; line-height: 1.1; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter { font-size: 12px; letter-spacing: .06em; padding: 8px 18px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft); transition: all .2s; }
.filter:hover, .filter.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.card { cursor: pointer; }
.card-hidden { display: none; }
/* 正方形占位固定；图片等比缩放居中，留白用背景色填充。换任何尺寸的画都不影响布局 */
.card-img { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 1/1; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: filter .3s; }
.card:hover .card-img img { filter: brightness(1.05); }
.card-info { padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title { font-family: var(--serif); font-size: 22px; }
.card-price { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.card-meta { font-size: 12px; color: var(--ink-soft); letter-spacing: .03em; margin-top: 2px; }

.about { background: var(--paper-2); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-art img { width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.14); }
.bio { font-size: 16px; color: var(--ink-soft); margin: 26px 0 30px; max-width: 500px; }
.about-meta { display: flex; gap: 50px; margin-bottom: 30px; }
.about-meta > div { display: flex; flex-direction: column; }
.meta-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.link-arrow::after { content: '\2192'; }

.contact-lead { color: var(--ink-soft); margin-top: 16px; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; margin-top: 50px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form input, .contact-form textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 15px; font-family: inherit; color: var(--ink); outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-note { font-size: 12px; color: var(--ink-soft); }
.contact-info h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 18px; }
.contact-info > p { color: var(--ink-soft); font-size: 14px; margin-bottom: 30px; }
.info-block { display: flex; flex-direction: column; padding: 18px 0; border-top: 1px solid var(--line); }
.info-block a { font-size: 15px; word-break: break-all; }
.info-block a:hover { color: var(--accent); }
.info-block small { color: var(--ink-soft); font-size: 12px; margin-top: 6px; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 50px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.footer-brand { color: var(--white); font-size: 30px; margin-bottom: 10px; }
.site-footer p { font-size: 12px; }
.back-top { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 3px; }

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.85); }
.modal-panel { position: relative; background: var(--paper); width: min(1000px, 96vw); max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; top: 14px; right: 18px; font-size: 34px; line-height: 1; z-index: 2; color: var(--ink); }
.modal-body { display: grid; grid-template-columns: 1.1fr .9fr; }
.modal-image { background: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.modal-image img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; }
.modal-detail { padding: 60px 46px; display: flex; flex-direction: column; }
.modal-detail h3 { font-family: var(--serif); font-size: 42px; font-weight: 400; line-height: 1.1; margin-bottom: 8px; }
.modal-detail .modal-year { color: var(--accent); font-size: 13px; letter-spacing: .1em; margin-bottom: 24px; }
.modal-detail .modal-desc { color: var(--ink-soft); margin-bottom: 30px; flex: 1; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.spec-row span:first-child { color: var(--accent); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.modal-price { font-family: var(--serif); font-size: 32px; margin: 24px 0 18px; }
.modal-detail .btn { align-self: flex-start; }

@media (max-width: 900px) {
  .nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: center; gap: 20px; padding: 30px; transform: translateY(-150%); transition: transform .3s; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
  .nav.open { transform: translateY(0); }
  .menu-btn { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-image img { max-height: 60vh; }
  .modal-detail { padding: 36px 28px; }
}
@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .gallery { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 46px; }
  .about-meta { gap: 30px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
