:root { color-scheme: light; --wm-bg: #f1e3d3; --wm-bg-light: #f6ece0; --wm-paper: rgba(255,253,250,.9); --wm-ink: #3a2414; --wm-muted: #7a5638; --wm-accent: #b84a1f; --wm-accent-dark: #9c3c18; --wm-champagne: #edc8a3; --wm-line: rgba(184,74,31,.25); --wm-shadow: 0 16px 50px rgba(90,52,25,.18); font-family: Inter, "Microsoft YaHei", sans-serif; color: var(--wm-ink); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; background: radial-gradient(120% 60% at 50% -10%, rgba(192,125,89,.30), rgba(244,235,224,0) 60%), linear-gradient(180deg, var(--wm-bg-light) 0%, var(--wm-bg) 45%, #ecdcc8 100%); }
main { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 54px; }
h1, h2 { margin: 0 0 8px; color: var(--wm-ink); }
.wordmark { color: var(--wm-accent); font-size: 22px; font-weight: 800; letter-spacing: .14em; }
.brand-block { flex: 1 1 280px; min-width: 0; }
.brand-logo { display: block; width: min(100%, 300px); height: auto; }
.brand-block .muted { margin: 6px 0 0; }
.muted { color: var(--wm-muted); }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.topnav { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.topnav a, .topnav button { width: auto; min-height: 0; padding: 7px 10px; border: 1px solid var(--wm-line); border-radius: 999px; color: var(--wm-muted); background: rgba(255,255,255,.26); text-decoration: none; font-size: .84rem; }
.topnav a:hover, .topnav button:hover { color: var(--wm-accent-dark); border-color: var(--wm-accent); }
.nav-button { cursor: pointer; }
.language { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--wm-muted); white-space: nowrap; }
.language select { width: auto; padding: 7px 9px; }
.hero { text-align: center; margin: 26px 0 16px; }
.hero h1 { font-size: 28px; }
.hero p { margin: 0; color: var(--wm-muted); font-size: 14px; }
.card { margin-top: 20px; padding: 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: var(--wm-paper); box-shadow: var(--wm-shadow); backdrop-filter: blur(8px); }
.upload-card { border-top: 3px solid rgba(184,74,31,.45); }
label { display: block; margin: 14px 0 6px; color: #5a3a22; font-size: .94rem; font-weight: 600; }
input, select, button { width: 100%; padding: 12px 14px; border: 1px solid rgba(154,106,76,.35); border-radius: 10px; background: rgba(255,255,255,.6); color: var(--wm-ink); font: inherit; }
input:focus, select:focus { outline: 2px solid rgba(184,74,31,.35); outline-offset: 1px; }
button { cursor: pointer; font-weight: 700; }
.wm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; border: none; border-radius: 999px; padding: 15px 24px; color: #fff; background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark)); box-shadow: 0 8px 22px rgba(184,74,31,.28); transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease; }
.wm-btn:hover { box-shadow: 0 10px 26px rgba(184,74,31,.38); transform: translateY(-1px); }
.wm-btn.block { display: flex; width: 100%; }
button.secondary { background: rgba(255,255,255,.35); border-color: var(--wm-line); color: var(--wm-muted); }
button.danger { background: #7a3413; border-color: #7a3413; color: #fff; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.choice-field { margin-top: 4px; }
.choice-field > label { margin-bottom: 8px; }
.icon-choice-row { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; padding: 2px 1px 7px; scrollbar-color: var(--wm-accent) transparent; }
.icon-choice { flex: 0 0 54px; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 1px solid rgba(154,106,76,.32); border-radius: 50%; background: rgba(255,255,255,.46); color: var(--wm-muted); }
.icon-choice.social-choice { border-radius: 14px; }
.icon-choice:hover, .icon-choice.selected { border-color: var(--wm-accent); color: var(--wm-accent); background: rgba(237,200,163,.48); box-shadow: 0 5px 14px rgba(184,74,31,.16); }
.social-icon-image { display: block; width: 40px; height: 40px; border-radius: 11px; object-fit: contain; }
.icon-choice.social-x { background: transparent; }
.icon-choice.social-x:hover, .icon-choice.social-x.selected { background: rgba(237,200,163,.48); }
.icon-choice.role-choice { flex-basis: 92px; width: 92px; border-radius: 999px; }
.role-choice-text { font-size: 15px; font-weight: 850; letter-spacing: .08em; }
.store-choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 2px; }
.store-choice { width: 100%; min-height: 54px; padding: 0 14px; border: 1px solid rgba(154,106,76,.32); border-radius: 14px; background: rgba(255,255,255,.46); color: var(--wm-muted); font-weight: 850; letter-spacing: .08em; }
.store-choice:hover, .store-choice.selected { border-color: var(--wm-accent); color: var(--wm-accent); background: rgba(237,200,163,.48); box-shadow: 0 5px 14px rgba(184,74,31,.16); }
.photo-upload-field { margin: 24px 0; padding: 18px; border: 1px dashed rgba(184,74,31,.42); border-radius: 16px; background: rgba(255,255,255,.38); }
.photo-upload-field label { margin-top: 0; }
.photo-upload-field small { display: block; margin-top: 9px; color: var(--wm-muted); line-height: 1.45; }
.photo-file-input { padding: 7px; border: 1px solid rgba(154,106,76,.3); background: rgba(255,255,255,.82); }
.photo-file-input::file-selector-button { margin-right: 12px; padding: 10px 15px; border: 0; border-radius: 9px; background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark)); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.field-invalid { border-color: #d32f2f !important; background: rgba(211,47,47,.07) !important; box-shadow: 0 0 0 2px rgba(211,47,47,.12); }
.field-invalid-control { border-color: #d32f2f !important; outline: 2px solid rgba(211,47,47,.2); outline-offset: 1px; }
.choice-field.field-invalid { margin-inline: -10px; padding: 7px 10px 9px; border: 1px solid #d32f2f; border-radius: 14px; }
.admin-toolbar { display: flex; align-items: end; gap: 12px; }
.admin-toolbar label { flex: 1; margin: 0; }
.admin-search { min-width: 180px; }
.admin-search input { margin-top: 6px; }
.admin-toolbar button { width: auto; }
.guest { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--wm-line); }
.guest img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #e9e1d4; }
.actions { display: flex; gap: 8px; }
.actions button { width: auto; padding: 9px 14px; }
.manage-card { padding: 18px 0; border-bottom: 1px solid var(--wm-line); }
.manage-select { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 0 0 12px; color: var(--wm-muted); font-size: .86rem; cursor: pointer; }
.manage-select input { flex: 0 0 auto; width: 19px; height: 19px; margin: 0; accent-color: var(--wm-accent); }
.manage-heading { display: flex; gap: 14px; align-items: center; min-height: 76px; }
.manage-heading img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; background: #e9e1d4; }
.manage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
.manage-grid label { margin-top: 12px; }
.manage-actions { margin-top: 14px; flex-wrap: wrap; }
body[data-page="wall"] { overflow: hidden; background: radial-gradient(circle at 50% 40%, #21150f 0%, #0b0806 56%, #030201 100%); color: #2a1c14; }
.wall-stage { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; margin: 0; padding: 0; overflow: hidden; }
.waterfall { --wall-columns: 3; --wall-gap: clamp(12px, 1.35vw, 24px); --wall-pad: clamp(12px, 1.4vw, 24px); position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--wall-columns), minmax(0, 1fr)); gap: var(--wall-gap); padding: var(--wall-pad); }
.wall-column { position: relative; height: 100vh; height: 100dvh; overflow: hidden; contain: layout paint style; }
.wall-track { --card-gap: clamp(14px, 1.7vh, 24px); display: flex; flex-direction: column; gap: var(--card-gap); width: 100%; padding-bottom: 0; animation-duration: var(--flow-duration, 50s); animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
.wall-track.qr-scroll-track { padding-bottom: var(--qr-safe-space, 0px); }
.wall-track:not(.is-static) { will-change: transform; }
.wall-track.is-static { animation: none; }
.flow-up .wall-track { animation-name: wall-flow-up; }
.flow-down .wall-track { animation-name: wall-flow-down; }
@keyframes wall-flow-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(-1 * var(--flow-travel, 0px)), 0); } }
@keyframes wall-flow-down { from { transform: translate3d(0, calc(-1 * var(--flow-travel, 0px)), 0); } to { transform: translate3d(0, 0, 0); } }
.wall-card { flex: 0 0 calc((100dvh - 2 * var(--card-gap)) / 3); display: flex; flex-direction: column; width: 100%; height: calc((100dvh - 2 * var(--card-gap)) / 3); min-height: 0; margin: 0; padding: clamp(5px, .55vw, 10px); border-radius: 4px; background: #fffdf9; box-shadow: 0 8px 20px rgba(0,0,0,.34); color: #2a1c14; contain: content; }
.wall-photo { overflow: hidden; background: #e9e1d4; }
.wall-photo { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
.wall-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-card.image-error { display: none; }
.wall-card-entering { animation: wall-card-materialize .76s cubic-bezier(.2,.8,.2,1) both; }
.wall-card-shattering { animation: wall-card-shatter .62s ease-in both; pointer-events: none; }
@keyframes wall-card-materialize { from { opacity: 0; transform: scale(.78) translateY(18px); filter: blur(8px); } to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }
@keyframes wall-card-shatter { from { opacity: 1; transform: scale(1); filter: blur(0); } to { opacity: 0; transform: scale(.88); filter: blur(7px); } }
.particle-layer { position: fixed; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.wall-particle { position: absolute; left: 0; top: 0; width: var(--particle-size, 4px); height: var(--particle-size, 4px); border-radius: 50%; background: #f5c7a5; box-shadow: 0 0 8px rgba(245,199,165,.72); animation-delay: var(--particle-delay, 0ms); }
.wall-particle.gather { animation: wall-particle-gather .76s cubic-bezier(.16,.8,.28,1) both; }
.wall-particle.shatter { background: #fff3df; animation: wall-particle-shatter .62s cubic-bezier(.2,.7,.4,1) both; }
@keyframes wall-particle-gather { from { opacity: 0; transform: translate3d(var(--start-x), var(--start-y), 0) scale(.25); } 15% { opacity: 1; } to { opacity: 0; transform: translate3d(var(--end-x), var(--end-y), 0) scale(1); } }
@keyframes wall-particle-shatter { from { opacity: 1; transform: translate3d(var(--start-x), var(--start-y), 0) scale(1); } to { opacity: 0; transform: translate3d(var(--end-x), var(--end-y), 0) scale(.15) rotate(180deg); } }
.wall-card-info { flex: 0 0 auto; padding: clamp(4px, .55vw, 9px) 2px 0; }
.wall-card-info > strong { display: block; overflow: hidden; color: #2f1e14; font-family: Georgia, "Times New Roman", serif; font-size: clamp(17px, 1.55vw, 29px); line-height: 1.05; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.wall-meta { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 7px; color: #6b4a30; font-family: Georgia, "Times New Roman", serif; font-size: clamp(11px, .9vw, 16px); }
.wall-region { display: inline-flex; align-items: center; gap: 3px; overflow: hidden; min-width: 0; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.role-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 3px 10px; border-radius: 999px; color: #fff; font-family: Inter, sans-serif; font-size: clamp(10px, .72vw, 13px); font-weight: 800; letter-spacing: .04em; }
.role-top { background: #f44336; }
.role-btm { background: #4caf50; }
.role-vers { background: #ffeb3b; color: rgba(0,0,0,.87); }
.wall-social { display: flex; align-items: center; justify-content: center; gap: 5px; overflow: hidden; min-height: 22px; margin-top: 8px; color: #5e3d27; font-size: clamp(11px, .86vw, 16px); text-align: center; white-space: nowrap; }
.wall-social-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 22px; height: 22px; overflow: hidden; border-radius: 6px; }
.wall-social-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wall-social-icon.social-x { background: #050505; }
.wall-social b { overflow: hidden; color: #3f2819; font-weight: 800; text-overflow: ellipsis; }
.qr-panel { position: absolute; z-index: 30; left: clamp(12px, 1.4vw, 24px); bottom: clamp(12px, 1.4vw, 24px); display: flex; flex-direction: column; align-items: center; width: clamp(145px, 13.5vw, 215px); padding: clamp(10px, 1vw, 16px); border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,248,238,.58)); box-shadow: 0 18px 42px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.78); backdrop-filter: blur(18px) saturate(145%); -webkit-backdrop-filter: blur(18px) saturate(145%); }
.qr-brand { width: 100%; margin-bottom: clamp(8px, .8vw, 12px); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.qr-panel img { display: block; width: min(100%, 168px); aspect-ratio: 1; padding: 5px; border-radius: 7px; background: #fff; box-shadow: 0 5px 16px rgba(54,35,24,.12); }
.qr-panel .qr-brand img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: auto; padding: 0; border-radius: 0; background: transparent; box-shadow: none; object-fit: contain; }
.qr-panel strong { margin-top: 9px; color: #4f2c1d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(17px, 1.4vw, 25px); }
.qr-panel span { margin-top: 4px; color: #7a5638; font-size: clamp(10px, .7vw, 12px); text-align: center; }
.crop-card { width: min(620px, 100%); padding: 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 17px; background: #fffdfb; box-shadow: 0 24px 70px rgba(42,28,20,.32); }
.crop-card h2 { margin: 16px 0 8px; font-size: 22px; }
.crop-hint { margin: 0 0 14px; color: #5a3a22; line-height: 1.5; }
.crop-stage { position: relative; width: min(100%, 480px, 41.25vh); width: min(100%, 480px, 41.25dvh); margin-inline: auto; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 10px; background: #241a14; touch-action: none; user-select: none; }
.crop-image { position: absolute; max-width: none; transform: translateZ(0); pointer-events: none; }
.crop-frame { position: absolute; left: 50%; top: 50%; width: 84%; aspect-ratio: 3 / 4; border: 2px solid rgba(255,255,255,.95); box-shadow: 0 0 0 999px rgba(0,0,0,.38); transform: translate(-50%, -50%); pointer-events: none; }
.crop-zoom-label { display: block; margin: 16px 0 4px; color: #5a3a22; }
.crop-zoom { display: block; width: 100%; accent-color: var(--wm-accent); }
.crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.crop-actions button { width: auto; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(58,36,20,.62); backdrop-filter: blur(4px); }
.modal-backdrop:not(.visible) { display: none; }
.is-uploading { overflow: hidden; }
.upload-loading[hidden] { display: none; }
.upload-loading { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(37,23,14,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.upload-loading-card { width: min(360px, 100%); padding: 34px 26px 30px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,246,235,.86)); box-shadow: 0 24px 70px rgba(30,17,10,.38); text-align: center; }
.upload-loading-card strong { display: block; margin-top: 20px; color: var(--wm-ink); font-size: 21px; }
.upload-loading-card p { margin: 9px 0 0; color: var(--wm-muted); line-height: 1.55; }
.upload-spinner { position: relative; width: 64px; height: 64px; margin: 0 auto; }
.upload-spinner span { position: absolute; inset: 0; border: 4px solid transparent; border-radius: 50%; animation: upload-spin 1.35s linear infinite; }
.upload-spinner span:nth-child(1) { border-top-color: var(--wm-accent); }
.upload-spinner span:nth-child(2) { inset: 9px; border-right-color: #e39a6e; animation-duration: 1s; animation-direction: reverse; }
.upload-spinner span:nth-child(3) { inset: 20px; border-bottom-color: var(--wm-accent-dark); animation-duration: .72s; }
@keyframes upload-spin { to { transform: rotate(360deg); } }
.notice-card { width: min(470px, 100%); padding: 28px 24px 22px; border: 1px solid rgba(255,255,255,.7); border-radius: 17px; background: #fffdfb; box-shadow: 0 24px 70px rgba(42,28,20,.32); text-align: center; }
.notice-logo { display: flex; justify-content: center; }
.notice-logo img { display: block; width: min(100%, 280px); height: auto; }
.notice-card h2 { margin: 16px 0 10px; font-size: 22px; }
.notice-card h2 small { display: block; margin-top: 5px; color: #7a5638; font-size: .68em; font-weight: 650; }
.notice-card p { color: #5a3a22; line-height: 1.65; text-align: left; }
.notice-bilingual p { margin: 10px 0; }
.notice-bilingual p + p { padding-top: 10px; border-top: 1px solid var(--wm-line); }
.bilingual-button span, .bilingual-button small { display: block; }
.bilingual-button small { margin-top: 3px; font-size: .76em; opacity: .86; }
.modal-decline { display: block; width: auto; margin: 13px auto 0; padding: 6px 14px; border: none; background: transparent; color: #9a7a5c; font-size: 14px; text-decoration: underline; }
.login-card { width: min(440px, 100%); margin-inline: auto; }
.login-card form button[type="submit"] { margin-top: 16px; }
@media (max-width: 760px) { .page-header { flex-wrap: wrap; } .topnav { order: 3; width: 100%; justify-content: flex-start; } }
@media (max-width: 620px) { main:not(.wall-stage) { width: min(100% - 24px, 560px); padding: 22px 0 42px; } .page-header { align-items: stretch; flex-direction: column; } .brand-block { flex-basis: auto; } .brand-logo { width: min(100%, 320px); } .language { align-self: flex-start; } .grid, .manage-grid { grid-template-columns: 1fr; } .admin-toolbar { align-items: stretch; flex-direction: column; } .admin-toolbar button { width: 100%; } .admin-search { width: 100%; } .guest { grid-template-columns: 72px 1fr; } .guest img { width: 72px; height: 72px; } .guest .actions { grid-column: 1 / -1; } input, select, button { min-height: 46px; } .card { padding: 18px; } .photo-upload-field { margin-block: 22px; padding: 15px; } .notice-card, .crop-card { padding: 24px 18px 18px; } .qr-panel { padding: 9px; border-radius: 16px; } .qr-brand { margin-bottom: 7px; padding: 0; border: 0; border-radius: 0; } .qr-panel strong { margin-top: 7px; } .crop-actions { flex-direction: column-reverse; } .crop-actions button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .wall-track { animation-duration: 90s; } }
