@charset "UTF-8";

:root {
  --paper: #f4f0e6;
  --paper-deep: #e8e1d3;
  --ink: #183b32;
  --ink-soft: #52635c;
  --line: #cfc8b9;
  --accent: #d65d3b;
  --accent-dark: #a83e24;
  --white: #fffdf8;
  --danger: #a7352b;
  --display: Georgia, "Noto Serif SC", "Songti SC", STSong, serif;
  --body: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(214, 93, 59, .08), transparent 26rem),
    var(--paper);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.2; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(214, 93, 59, .42);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header, .share-header {
  width: min(1400px, calc(100% - 64px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { font-family: var(--display); font-size: 31px; letter-spacing: .12em; }
.brand-subtitle { font-size: 10px; letter-spacing: .22em; color: var(--ink-soft); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a { font-size: 13px; letter-spacing: .08em; }
.main-nav > a:hover { color: var(--accent-dark); }
.main-nav form { margin: 0; }
.page-shell { width: min(1400px, calc(100% - 64px)); min-height: calc(100vh - 190px); margin: 0 auto; padding: 54px 0 80px; }
.site-footer {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 25px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: .08em;
}

.button {
  min-height: 42px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.3;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: #28594b; }
.button-quiet { min-height: 36px; padding: 6px 12px; border-color: var(--line); }
.button-danger { min-height: 36px; padding: 6px 12px; color: var(--danger); border-color: rgba(167, 53, 43, .38); }
.button-small { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.button-wide { width: 100%; }
.button-light { color: var(--white); border-color: rgba(255, 255, 255, .48); }
.button-light:hover { color: var(--ink); background: var(--white); }
.eyebrow, .section-index { margin-bottom: 15px; color: var(--accent-dark); font-size: 10px; font-weight: 700; letter-spacing: .24em; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--ink-soft); font-size: 13px; }
.back-link:hover { color: var(--accent-dark); }

.page-heading { margin-bottom: 45px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.page-heading h1 { max-width: 750px; margin-bottom: 0; font-size: clamp(35px, 4.5vw, 64px); letter-spacing: -.035em; }
.photo-count { margin: 0; display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.photo-count strong { font-family: var(--display); font-size: 42px; font-weight: 400; }
.photo-count span { color: var(--ink-soft); font-size: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 22px; }
.photo-card { min-width: 0; }
.photo-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-deep); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.photo-card:hover .photo-frame img { transform: scale(1.025); }
.photo-number { position: absolute; top: 10px; left: 10px; padding: 3px 7px; color: var(--white); background: rgba(24, 59, 50, .78); font-family: var(--display); font-size: 11px; letter-spacing: .08em; }
.photo-caption { padding-top: 13px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.photo-caption h2 { margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--body); font-size: 13px; font-weight: 600; }
.photo-caption time { color: var(--ink-soft); font-size: 11px; }
.status-dot { width: 8px; height: 8px; margin-top: 7px; flex: 0 0 auto; border-radius: 50%; background: #b38b3e; }
.status-ready, .status-done { background: #43866d; }
.status-dead { background: var(--danger); }
.photo-pending { width: 100%; height: 100%; min-height: 240px; display: grid; place-items: center; color: var(--ink-soft); background: repeating-linear-gradient(-45deg, var(--paper-deep), var(--paper-deep) 12px, #eee8dc 12px, #eee8dc 24px); }
.empty-state { max-width: 600px; margin: 10vh auto; text-align: center; }
.empty-icon { margin-bottom: 12px; color: var(--accent); font-family: var(--display); font-size: 80px; line-height: 1; }
.empty-state h2 { font-size: 36px; }
.empty-state p:last-child { color: var(--ink-soft); }
.pagination { margin-top: 50px; display: flex; align-items: center; justify-content: center; gap: 22px; }

.login-layout { min-height: calc(100vh - 260px); display: grid; grid-template-columns: 1.25fr .75fr; gap: 9vw; align-items: center; }
.login-intro { position: relative; padding: 45px 0 80px; }
.login-intro h1 { margin-bottom: 30px; font-size: clamp(46px, 6.2vw, 84px); letter-spacing: -.05em; }
.login-intro > p:not(.eyebrow) { max-width: 510px; color: var(--ink-soft); font-size: 16px; }
.lens-mark { position: absolute; right: 4%; bottom: -18px; width: 130px; height: 130px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.lens-mark::before, .lens-mark::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.lens-mark::before { width: 86px; height: 86px; }
.lens-mark::after { width: 42px; height: 42px; background: rgba(214, 93, 59, .14); }
.lens-mark span { position: absolute; width: 152px; border-top: 1px solid var(--accent); transform: rotate(-35deg); }
.login-panel { padding: 42px; border-top: 4px solid var(--ink); background: rgba(255, 253, 248, .7); box-shadow: 0 24px 70px rgba(40, 48, 39, .08); }
.login-panel h2 { margin-bottom: 32px; font-size: 37px; }
.stack-form { display: grid; gap: 12px; }
.stack-form label { margin-top: 8px; font-size: 12px; font-weight: 600; }
.stack-form input, .copy-row input {
  width: 100%;
  min-height: 47px;
  padding: 10px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}
.stack-form .button { margin-top: 17px; }
.form-note { margin: 23px 0 0; color: var(--ink-soft); font-size: 11px; }
.form-error { padding: 10px 13px; color: var(--danger); border-left: 3px solid var(--danger); background: rgba(167, 53, 43, .07); font-size: 13px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 46px; align-items: start; }
.detail-image { min-height: 480px; background: var(--paper-deep); }
.detail-image img { width: 100%; max-height: 78vh; object-fit: contain; }
.detail-sidebar { padding-top: 16px; }
.detail-sidebar h1 { overflow-wrap: anywhere; font-size: clamp(30px, 3.5vw, 48px); }
.status-badge { display: inline-flex; padding: 3px 9px; border-radius: 20px; color: #655224; background: #ece0ba; font-size: 11px; white-space: nowrap; }
.status-bg-ready, .status-bg-done { color: #255d48; background: #d7e8dd; }
.status-bg-dead { color: #842e27; background: #f0d6ce; }
.metadata-list { margin: 30px 0; border-top: 1px solid var(--line); }
.metadata-list > div { padding: 11px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.metadata-list dt { color: var(--ink-soft); font-size: 12px; }
.metadata-list dd { margin: 0; text-align: right; font-size: 12px; }
.share-manager { margin-top: 80px; padding-top: 45px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; }
.section-heading h2 { margin: 0; font-size: 36px; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--ink-soft); font-size: 12px; }
.share-form { padding: 24px; display: flex; align-items: flex-end; gap: 25px; background: var(--paper-deep); }
.share-form label { display: grid; gap: 7px; font-size: 12px; }
.share-form select { min-height: 42px; padding: 7px 35px 7px 12px; color: var(--ink); border: 1px solid var(--line); background: var(--white); }
.share-form .checkbox-label { min-height: 42px; display: flex; align-items: center; gap: 8px; }
.share-form input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--ink); }
.created-share { margin-bottom: 22px; padding: 22px; border-left: 4px solid var(--accent); background: var(--white); }
.created-share > p { margin: 5px 0 15px; color: var(--ink-soft); font-size: 12px; }
.copy-row { display: flex; gap: 10px; }
.copy-row input { font-size: 12px; }
.copy-row .button { flex: 0 0 auto; }
.share-history { margin-top: 32px; }
.share-history h3 { font-family: var(--display); font-size: 23px; font-weight: 500; }
.share-record { padding: 17px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.share-record p, .share-record small { margin: 0; color: var(--ink-soft); font-size: 12px; }

.live-label { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.live-label i { width: 8px; height: 8px; border-radius: 50%; background: #43866d; box-shadow: 0 0 0 5px rgba(67, 134, 109, .12); }
.stat-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat-grid article { min-height: 130px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(255, 253, 248, .45); }
.stat-grid article:last-child { border-right: 0; }
.stat-grid span { color: var(--ink-soft); font-size: 11px; }
.stat-grid strong { margin-top: 8px; font-family: var(--display); font-size: 35px; font-weight: 400; }
.stat-grid small { margin-top: auto; color: var(--ink-soft); }
.stat-grid .stat-alert { color: var(--danger); background: rgba(167, 53, 43, .05); }
.cloud-note { margin-bottom: 50px; padding: 14px 18px; display: flex; justify-content: space-between; gap: 18px; color: var(--ink-soft); border-left: 3px solid #9a9488; background: var(--paper-deep); font-size: 12px; }
.cloud-note.enabled { border-color: #43866d; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.jobs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.jobs-table th { padding: 13px 12px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.jobs-table td { max-width: 300px; padding: 16px 12px; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.jobs-table td > strong, .jobs-table td > small, .jobs-table td > time { display: block; }
.jobs-table td > small, .jobs-table td > time { color: var(--ink-soft); }
.jobs-table a { text-decoration: underline; text-underline-offset: 3px; }
.job-error { margin: 6px 0 0; color: var(--danger); font-size: 11px; }
.table-empty { padding: 40px !important; text-align: center; color: var(--ink-soft); }

.public-share-page { color: var(--white); background: radial-gradient(circle at 85% 10%, #315b4e, transparent 35rem), #142b24; }
.public-share-page .share-header { border-color: rgba(255, 255, 255, .2); }
.share-header > span:last-child { color: rgba(255, 255, 255, .65); font-family: var(--display); font-size: 13px; letter-spacing: .12em; }
.public-share-page .page-shell { width: min(850px, calc(100% - 40px)); padding-top: 45px; }
.public-photo-heading { text-align: center; }
.public-photo-heading h1 { margin-bottom: 10px; overflow-wrap: anywhere; font-size: clamp(29px, 5vw, 47px); }
.public-photo-heading > p:last-child { color: rgba(255, 255, 255, .65); font-size: 12px; }
.public-photo .eyebrow { color: #e99a7f; }
.public-preview { width: 100%; max-height: 72vh; margin: 30px 0 22px; object-fit: contain; }
.public-actions { display: flex; justify-content: center; gap: 12px; }
.public-share-url { position: absolute; width: 1px; height: 1px; opacity: .01; pointer-events: none; }
.share-expiry { margin: 22px 0 0; text-align: center; color: rgba(255, 255, 255, .55); font-size: 11px; }
.share-footer { padding: 25px 20px; text-align: center; color: rgba(255, 255, 255, .45); border-top: 1px solid rgba(255, 255, 255, .15); font-size: 10px; }

.reveal { animation: reveal .55s both; }
.photo-grid .reveal:nth-child(2), .photo-grid .reveal:nth-child(6) { animation-delay: .05s; }
.photo-grid .reveal:nth-child(3), .photo-grid .reveal:nth-child(7) { animation-delay: .1s; }
.photo-grid .reveal:nth-child(4), .photo-grid .reveal:nth-child(8) { animation-delay: .15s; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { gap: 28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid article:nth-child(2) { border-right: 0; }
  .stat-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .site-header, .share-header, .site-footer { width: calc(100% - 36px); }
  .site-header { min-height: 78px; }
  .brand-mark { font-size: 26px; }
  .brand-subtitle { display: none; }
  .main-nav { gap: 13px; }
  .main-nav > a { font-size: 12px; }
  .main-nav .button { min-height: 32px; padding: 5px 8px; }
  .page-shell { width: calc(100% - 36px); padding: 35px 0 55px; }
  .site-footer { flex-direction: column; gap: 3px; }
  .page-heading { margin-bottom: 30px; align-items: flex-start; }
  .page-heading h1 { font-size: 38px; }
  .photo-count strong { font-size: 30px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 12px; }
  .photo-caption h2 { font-size: 12px; }
  .photo-caption time { font-size: 10px; }
  .login-layout { min-height: auto; grid-template-columns: 1fr; gap: 15px; }
  .login-intro { padding: 15px 0 30px; }
  .login-intro h1 { font-size: 48px; }
  .login-intro > p:not(.eyebrow) { font-size: 14px; }
  .lens-mark { display: none; }
  .login-panel { padding: 27px 22px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-image { min-height: 260px; }
  .detail-sidebar { padding-top: 0; }
  .share-manager { margin-top: 50px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .share-form { align-items: stretch; flex-direction: column; gap: 14px; }
  .share-form .button { width: 100%; }
  .copy-row { flex-direction: column; }
  .share-record { align-items: flex-start; }
  .stat-grid article { min-height: 115px; padding: 17px 13px; }
  .stat-grid strong { font-size: 27px; }
  .cloud-note { flex-direction: column; gap: 2px; }
  .jobs-table, .jobs-table tbody, .jobs-table tr, .jobs-table td { display: block; }
  .jobs-table thead { display: none; }
  .jobs-table tr { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .jobs-table td { max-width: none; padding: 4px 0; border: 0; }
  .jobs-table td::before { content: attr(data-label); }
  .table-wrap { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
