@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --ink: #282e2b;
  --muted: #73756c;
  --line: #d4d5c9;
  --vermilion: #a34232;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 6px; }
button { cursor: pointer; }
::selection { color: var(--paper); background: var(--vermilion); }

.account-shell { width: min(1320px, calc(100% - 128px)); min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column; }
.account-header { min-height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--line); }
.museum-brand { display: block; width: 365px; max-width: 65%; }
.museum-calligraphy { display: block; position: relative; width: 100%; aspect-ratio: 5.169 / 1; overflow: hidden; mix-blend-mode: multiply; }
.museum-calligraphy img { display: block; position: absolute; width: 113.636%; height: auto; max-width: none; top: -30.77%; left: -7.955%; mix-blend-mode: multiply; }
.header-caption { text-align: right; font-family: var(--serif); font-size: 15px; letter-spacing: .22em; }
.header-caption span { display: block; margin-top: 10px; font-family: Georgia, serif; font-size: 9px; letter-spacing: .19em; color: var(--muted); }
.account-main { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 650px; align-items: center; padding: 64px 0; gap: 11%; }
.archive-intro { position: relative; padding: 10px 0 12px; min-height: 480px; }
.section-kicker { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 11px; font-weight: 400; letter-spacing: .2em; color: var(--muted); }
.vermilion-mark { width: 6px; height: 6px; background: var(--vermilion); }
.archive-intro h2 { position: relative; z-index: 1; margin: 42px 0 24px; font-family: var(--serif); font-size: clamp(44px, 4.2vw, 64px); font-weight: 400; line-height: 1.55; letter-spacing: .12em; }
.archive-description { position: relative; z-index: 1; margin: 0; font-family: var(--serif); font-size: 15px; line-height: 2; letter-spacing: .1em; color: #666b61; }
.woven-field { position: absolute; overflow: hidden; width: 275px; height: 275px; right: -5px; bottom: 20px; opacity: .76; pointer-events: none; }
.woven-disc { display: block; position: absolute; width: 230px; height: 230px; right: 0; bottom: 0; border: 1px solid #d6d8ca; border-radius: 50%; background-image: repeating-linear-gradient(90deg, transparent 0 10px, #cfd2c3 10px 11px, transparent 11px 16px), repeating-linear-gradient(0deg, transparent 0 10px, #d4d7c9 10px 11px, transparent 11px 16px); mask-image: linear-gradient(135deg, transparent 5%, #000 100%); }
.woven-field::before { content: ""; position: absolute; width: 1px; height: 265px; background: #c5cabb; right: 115px; top: 0; }
.woven-field::after { content: ""; position: absolute; width: 265px; height: 1px; background: #c5cabb; bottom: 115px; left: 0; }
.woven-axis { position: absolute; top: 0; right: 126px; color: #909684; font-family: var(--serif); font-size: 10px; writing-mode: vertical-rl; letter-spacing: .25em; }
.archive-footnote { position: absolute; display: flex; align-items: center; gap: 14px; margin: 0; left: 0; bottom: 0; font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.footnote-line { display: block; width: 42px; height: 1px; background: #afb5a4; }
.account-panel { width: 100%; max-width: 380px; justify-self: end; }
.panel-heading { margin-bottom: 36px; }
.panel-heading .section-kicker { font-family: Georgia, serif; font-size: 10px; letter-spacing: .22em; color: var(--vermilion); }
.panel-heading h1 { margin: 17px 0 14px; font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: .14em; line-height: 1.4; }
.panel-description { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.account-form { display: flex; flex-direction: column; gap: 25px; }
.form-field { display: flex; flex-direction: column; gap: 11px; }
.form-field label { display: flex; align-items: baseline; gap: 12px; font-size: 13px; letter-spacing: .07em; }
.form-field label span { font-family: Georgia, serif; font-size: 9px; letter-spacing: .12em; color: #7b8075; }
.form-field input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #c9cdbf; border-radius: 0; background: #ffffff40; color: var(--ink); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-field input::placeholder { color: #85887f; font-size: 12px; }
.form-field input:hover { border-color: #929a88; }
.form-field input:focus { border-color: #636f59; background: #ffffff70; box-shadow: 0 0 0 2px #636f591a; }
.primary-button { display: flex; justify-content: space-between; align-items: center; min-height: 52px; width: 100%; margin-top: 4px; padding: 0 19px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: #f6f4ed; font-size: 13px; letter-spacing: .12em; transition: background .2s, border-color .2s; }
.primary-button > span:last-child { font-family: var(--sans); font-size: 22px; line-height: 1; }
.primary-button:hover { background: #414c40; border-color: #414c40; }
.primary-button:active { background: #151c16; }
.access-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 17px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .03em; }
.access-dot { width: 4px; height: 4px; border-radius: 50%; background: #8d9881; }
.wecom-login { text-decoration: none; }
.wecom-login-note { margin: 14px 0 28px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.wecom-login:focus-visible, .secondary-button:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 4px; }
.visitor-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 12px; }
.visitor-entry p { margin: 0; color: var(--muted); }
.visitor-entry a { display: flex; gap: 18px; align-items: center; padding: 6px 0; }
.visitor-entry a:hover { color: var(--vermilion); }
.visitor-entry a span { font-size: 18px; }
.account-notice { margin: -12px 0 25px; padding: 12px 14px; font-size: 12px; line-height: 1.8; border-left: 2px solid; overflow-wrap: anywhere; }
.account-notice--error { color: #923d2f; background: #a3423209; border-color: var(--vermilion); }
.account-notice--success { color: #3e5c46; background: #3e5c460a; border-color: #54715a; }
.secondary-button { display: block; padding: 15px 20px; text-align: center; margin-top: 12px; border: 1px solid #c9cdbf; font-size: 13px; letter-spacing: .08em; }
.secondary-button:hover { border-color: var(--ink); }
.account-main--signout .panel-heading { margin-bottom: 32px; }
.account-footer { display: flex; justify-content: space-between; gap: 24px; min-height: 68px; align-items: center; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .1em; color: var(--muted); }

@media (min-width: 1600px) {
  .account-main { gap: 17%; }
  .account-panel { max-width: 400px; }
  .archive-intro { padding-left: 20px; }
  .archive-footnote { left: 20px; }
}

@media (max-width: 1050px) {
  .account-shell { width: calc(100% - 80px); }
  .account-header { min-height: 132px; }
  .museum-brand { width: 310px; }
  .account-main { gap: 8%; grid-template-columns: 1fr 1fr; }
  .archive-intro h2 { font-size: 45px; }
  .woven-field { right: -8px; width: 215px; height: 215px; }
  .woven-disc { width: 180px; height: 180px; }
  .woven-field::before { right: 90px; height: 215px; }
  .woven-field::after { bottom: 90px; width: 215px; }
  .woven-axis { right: 101px; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .account-header { min-height: 112px; }
  .account-main { min-height: 0; padding-top: 40px; padding-bottom: 40px; }
  .archive-intro { min-height: 420px; }
  .archive-intro h2 { margin-top: 30px; }
  .account-footer { min-height: 56px; }
}

@media (max-width: 760px) {
  .account-shell { width: calc(100% - 48px); }
  .account-header { min-height: 110px; gap: 0; }
  .museum-brand { max-width: 100%; width: 300px; }
  .header-caption { display: none; }
  .account-main { grid-template-columns: 1fr; padding: 34px 0 44px; gap: 33px; min-height: auto; align-items: start; }
  .archive-intro { min-height: 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
  .archive-intro .section-kicker { font-size: 10px; letter-spacing: .12em; }
  .archive-intro h2 { margin: 15px 0 0; font-size: 23px; line-height: 1.7; letter-spacing: .08em; }
  .archive-intro h2 br { display: none; }
  .archive-description, .archive-footnote, .woven-field { display: none; }
  .account-panel { max-width: none; justify-self: stretch; }
  .panel-heading { margin-bottom: 28px; }
  .panel-heading h1 { margin: 12px 0 10px; font-size: 28px; }
  .account-form { gap: 22px; }
  .form-field input { font-size: 16px; }
  .primary-button { min-height: 54px; }
  .visitor-entry { margin-top: 29px; padding-top: 19px; }
  .account-footer { min-height: 64px; font-size: 9px; letter-spacing: .02em; }
  .account-footer > span:last-child { display: none; }
}

@media (max-width: 380px) {
  .account-shell { width: calc(100% - 40px); }
  .museum-brand { width: 265px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
