﻿:root {
  color-scheme: light;
  --ink: #18231d;
  --ink-soft: #34463b;
  --forest: #1c3327;
  --forest-2: #294536;
  --tea: #9d7a43;
  --tea-light: #d5bd91;
  --cream: #f4f1e9;
  --paper: #fbfaf6;
  --line: #ded9ce;
  --muted: #7c817b;
  --danger: #a9463d;
  --shadow: 0 22px 70px rgba(27, 39, 31, .12);
  --radius: 20px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* 可被搜索引擎收录的品牌首页 */
.home-page { min-height:100vh; background:#f4f1e9; }
.home-nav { width:min(1180px,calc(100% - 40px)); height:88px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.home-brand { padding:0; }
.home-nav nav { display:flex; align-items:center; gap:28px; font-size:13px; }
.home-nav nav>a:not(.button) { color:var(--ink-soft); }
.home-hero { width:min(1180px,calc(100% - 40px)); min-height:680px; margin:auto; display:grid; grid-template-columns:1.08fr .92fr; align-items:center; gap:7vw; }
.home-hero__copy h1 { margin:10px 0 22px; font:500 clamp(46px,6.3vw,82px)/1.05 "STKaiti","KaiTi",serif; letter-spacing:.02em; }
.home-hero__copy h1 span { color:var(--tea); }
.home-hero__copy>p:not(.eyebrow) { max-width:610px; margin:0; color:var(--muted); font-size:16px; line-height:1.9; }
.home-actions { margin:32px 0 26px; display:flex; flex-wrap:wrap; gap:10px; }
.home-trust { display:flex; flex-wrap:wrap; gap:18px; color:var(--muted); font-size:11px; }
.home-trust span::before { content:"✓"; margin-right:6px; color:var(--tea); }
.home-hero__visual { position:relative; min-height:520px; }
.home-photo { position:absolute; border:1px solid rgba(255,255,255,.55); border-radius:22px; box-shadow:0 30px 70px rgba(22,39,29,.2); background:linear-gradient(145deg,#294536,#15231c); }
.home-photo::after { content:""; position:absolute; inset:16px; border:1px solid rgba(213,189,145,.2); border-radius:14px; }
.home-photo--one { inset:30px 52px 40px 12px; transform:rotate(-4deg); }
.home-photo--two { width:58%; height:61%; right:0; bottom:4px; transform:rotate(5deg); background:linear-gradient(145deg,#d7c49e,#92734a); }
.home-seal { position:absolute; z-index:2; left:0; bottom:42px; width:126px; height:126px; display:grid; place-items:center; border:1px solid rgba(213,189,145,.55); border-radius:50%; color:var(--tea-light); background:var(--forest); box-shadow:0 20px 45px rgba(0,0,0,.22); font:48px "STKaiti",serif; }
.home-seal small { position:absolute; bottom:20px; font:9px sans-serif; letter-spacing:.2em; }
.home-section { padding:110px max(20px,calc((100% - 1180px)/2)); color:#fff; background:var(--forest); }
.home-section>h2,.home-workflow h2 { margin:8px 0 44px; font:500 clamp(34px,4vw,54px) "STKaiti","KaiTi",serif; }
.home-features { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.home-features article { padding:34px; border:1px solid rgba(255,255,255,.1); border-radius:20px; background:rgba(255,255,255,.035); }
.home-features b { color:var(--tea-light); font:16px Georgia,serif; }
.home-features h3 { margin:52px 0 12px; font:500 24px "STKaiti",serif; }
.home-features p { margin:0; color:rgba(255,255,255,.58); font-size:13px; line-height:1.8; }
.home-workflow { width:min(1180px,calc(100% - 40px)); margin:auto; padding:120px 0; display:grid; grid-template-columns:1fr 1fr; gap:10vw; }
.home-workflow>div>p:not(.eyebrow) { max-width:520px; color:var(--muted); line-height:1.8; }
.home-workflow .button { margin-top:20px; }
.home-workflow ol { margin:0; padding:0; list-style:none; display:grid; }
.home-workflow li { padding:22px 0; display:flex; align-items:center; gap:22px; border-bottom:1px solid var(--line); }
.home-workflow li>span { width:48px; height:48px; display:grid; place-items:center; flex:0 0 auto; border:1px solid var(--line); border-radius:50%; color:var(--tea); font:18px Georgia,serif; }
.home-workflow strong,.home-workflow small { display:block; }.home-workflow strong { margin-bottom:6px; }.home-workflow small { color:var(--muted); line-height:1.55; }
.home-footer { padding:34px max(20px,calc((100% - 1180px)/2)); display:flex; align-items:center; justify-content:space-between; gap:25px; color:#fff; background:#101b15; }
.home-footer strong { font:20px "STKaiti",serif; }.home-footer p { margin:5px 0 0; color:rgba(255,255,255,.45); font-size:10px; }.home-footer>div:last-child { display:flex; gap:22px; color:rgba(255,255,255,.58); font-size:11px; }
@media(max-width:760px){.home-nav{height:72px}.home-nav nav>a:not(.button){display:none}.home-nav .button{min-height:40px;padding:0 15px}.home-hero{min-height:0;padding:70px 0 90px;grid-template-columns:1fr}.home-hero__visual{min-height:380px}.home-photo--one{inset:20px 38px 40px 15px}.home-seal{width:96px;height:96px;font-size:37px}.home-section{padding-top:78px;padding-bottom:78px}.home-features{grid-template-columns:1fr}.home-features h3{margin-top:30px}.home-workflow{padding:82px 0;grid-template-columns:1fr}.home-footer{align-items:flex-start;flex-direction:column}.home-footer>div:last-child{flex-direction:column;gap:8px}}

.eyebrow { margin: 0 0 8px; color: var(--tea); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.muted { color: var(--muted); }
.brand-mark {
  display: inline-grid; width: 42px; height: 42px; place-items: center; flex: 0 0 auto;
  border: 1px solid rgba(157, 122, 67, .45); border-radius: 50%; color: var(--tea);
  font-family: "STKaiti", "KaiTi", serif; font-size: 21px; background: rgba(255,255,255,.05);
}
.brand-mark--large { width: 66px; height: 66px; font-size: 30px; }
.button {
  min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-size: 14px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button--primary { color: #fff; background: var(--forest); box-shadow: 0 8px 24px rgba(28,51,39,.18); }
.button--primary:hover { background: var(--forest-2); }
.button--ghost { border-color: var(--line); background: rgba(255,255,255,.72); }
.button--dark { color: #fff; background: #202522; }
.button--wide { width: 100%; }
.icon-button {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent;
  cursor: pointer; font-size: 26px; font-weight: 300; line-height: 1;
}
.field { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.field input, .path-input, .rating-filter select {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; outline: none;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input { padding: 0 14px; }
.field input:focus, .path-input:focus-within, .rating-filter select:focus { border-color: var(--tea); box-shadow: 0 0 0 3px rgba(157,122,67,.12); }
.field small { color: var(--muted); font-size: 12px; font-weight: 400; }
.form-error { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: 13px; }
.toast {
  position: fixed; z-index: 200; left: 50%; bottom: 28px; padding: 12px 18px; border-radius: 999px;
  color: #fff; background: rgba(24,35,29,.94); box-shadow: var(--shadow); opacity: 0;
  transform: translate(-50%, 16px); pointer-events: none; transition: .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 摄影师工作台 */
.admin-body { min-height: 100vh; background: #eceae4; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 28px 20px 22px; display: flex; flex-direction: column;
  color: #f3f0e8; background: var(--forest);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "STKaiti", "KaiTi", serif; font-size: 20px; letter-spacing: .12em; }
.brand small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .22em; }
.side-nav { display: grid; gap: 8px; }
.side-nav__item {
  width: 100%; min-height: 45px; padding: 0 14px; display: flex; align-items: center; gap: 12px;
  border: 0; border-radius: 12px; color: rgba(255,255,255,.64); background: transparent; cursor: pointer; text-align: left;
}
.side-nav__item span { width: 22px; font-size: 18px; text-align: center; }
.side-nav__item:hover, .side-nav__item.is-active { color: #fff; background: rgba(255,255,255,.09); }
.side-note { margin-top: auto; padding: 16px; display: flex; gap: 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.04); }
.side-note strong, .side-note small { display: block; }
.side-note strong { font-size: 12px; }
.side-note small { margin-top: 4px; color: rgba(255,255,255,.45); font-size: 10px; line-height: 1.45; }
.status-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #8abe9b; box-shadow: 0 0 0 4px rgba(138,190,155,.12); }
.side-nav__logout { margin-top: 10px; }
.admin-main { min-width: 0; padding: 38px clamp(24px, 4vw, 68px) 80px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.admin-topbar h1 { margin: 0; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; }
.overview {
  position: relative; overflow: hidden; margin: 34px 0 44px; min-height: 188px; padding: 34px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 24px;
  color: #fff; background: linear-gradient(125deg, #17271e, #2f4a3a); box-shadow: 0 20px 50px rgba(22,39,29,.17);
}
.overview::after { content: "茶"; position: absolute; right: 35%; top: -78px; color: rgba(255,255,255,.035); font-family: serif; font-size: 270px; }
.overview__intro { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; }
.overview__seal { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(213,189,145,.45); border-radius: 50%; color: var(--tea-light); font-family: "STKaiti", serif; font-size: 28px; }
.overview__intro p { margin: 0 0 6px; color: var(--tea-light); font-size: 12px; letter-spacing: .15em; }
.overview__intro h2 { margin: 0 0 8px; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; }
.overview__intro div > span { color: rgba(255,255,255,.55); font-size: 12px; }
.overview__stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(86px,1fr)); }
.overview__stats div { padding: 6px 24px; border-left: 1px solid rgba(255,255,255,.13); }
.overview__stats strong, .overview__stats span { display: block; }
.overview__stats strong { color: var(--tea-light); font-family: Georgia, serif; font-size: 32px; font-weight: 400; }
.overview__stats span { margin-top: 4px; color: rgba(255,255,255,.54); font-size: 11px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-family: "STKaiti", "KaiTi", serif; font-size: 27px; font-weight: 500; }
.project-heading-actions { display: flex; align-items: center; gap: 10px; }
.project-manage-button { min-height: 42px; padding: 0 17px; }
.project-delete-bar { margin: -4px 0 18px; padding: 13px 15px 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #dfd3c0; border-radius: 16px; background: rgba(248,244,235,.86); }
.project-delete-bar[hidden] { display: none; }
.project-delete-bar p { margin: 0; display: flex; align-items: baseline; gap: 5px; color: var(--muted); font-size: 11px; }
.project-delete-bar p strong { color: var(--tea); font: 22px Georgia,serif; }
.project-delete-bar p small { margin-left: 8px; color: #8a7964; }
.project-delete-bar > div { display: flex; align-items: center; gap: 9px; }
.button--danger { color: #fff; border-color: #913e35; background: #913e35; }
.button--danger:hover { background: #7d3029; }
.button--danger:disabled { opacity: .42; cursor: not-allowed; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.58); }
.segmented button { min-height: 34px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); font-size: 12px; }
.segmented button.is-active { color: #fff; background: var(--forest); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(420px,1fr)); gap: 18px; }
.project-card {
  position: relative; overflow: hidden; min-width: 0; padding: 12px; display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 0;
  border: 1px solid rgba(215,210,199,.9); border-radius: var(--radius); background: rgba(251,250,246,.94);
  box-shadow: 0 8px 28px rgba(24,35,29,.04); cursor: pointer; transition: .25s ease;
}
.project-card__thumb { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; align-self: center; display: grid; place-items: center; border: 1px solid rgba(27,52,40,.08); border-radius: 18px; color: rgba(220,202,157,.85); background: linear-gradient(145deg,#19362a,#29483a); font: 54px "STKaiti","KaiTi",serif; }
.project-card__thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.project-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity .35s ease, transform .45s ease; }
.project-card.has-cover .project-card__thumb img { opacity: 1; }
.project-card.has-cover:hover .project-card__thumb img { transform: scale(1.06); }
.project-card__body { min-width: 0; padding: 9px 12px 7px 22px; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-4px); border-color: #cfc4b0; box-shadow: var(--shadow); }
.project-card.is-delete-mode { cursor: pointer; }
.project-card.is-delete-selected { border-color: var(--tea); background: #f8f2e7; box-shadow: 0 0 0 2px rgba(157,122,67,.14), var(--shadow); }
.project-card__check { position: absolute; z-index: 4; top: 21px; left: 21px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #c9c1b3; border-radius: 50%; color: #fff; background: rgba(255,255,255,.92); box-shadow: 0 4px 12px rgba(20,30,24,.12); font-size: 13px; }
.project-card.is-delete-selected .project-card__check { border-color: var(--tea); background: var(--tea); }
.project-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-card__date { color: var(--muted); font: 11px Georgia, serif; letter-spacing: .08em; }
.project-status { padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.project-status--active { color: #356044; background: #e1eee5; }
.project-status--closed { color: #73746f; background: #e9e8e4; }
.project-status--scanning { color: #86652f; background: #f2e8d5; }
.project-card h3 { overflow: hidden; margin: 20px 0 6px; font-family: "STKaiti", "KaiTi", serif; font-size: 23px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.project-card__client { overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-card__progress { margin-top: auto; padding-top: 16px; }
.project-card__numbers { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 11px; color: var(--muted); }
.project-card__numbers strong { color: var(--ink); font-size: 15px; }
.progress { height: 3px; overflow: hidden; border-radius: 999px; background: #e6e3db; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--tea); }
.project-card__footer { margin-top: 13px; padding-top: 12px; display: flex; justify-content: space-between; border-top: 1px solid #ebe7de; color: var(--muted); font-size: 10px; }
.empty-state { padding: 80px 30px; text-align: center; border: 1px dashed #ccc5b8; border-radius: var(--radius); background: rgba(255,255,255,.45); }
.empty-state > span { width: 68px; height: 68px; margin: auto; display: grid; place-items: center; border: 1px solid var(--tea-light); border-radius: 50%; color: var(--tea); font-family: serif; font-size: 28px; }
.empty-state h3 { margin: 20px 0 8px; font-family: "STKaiti", serif; font-size: 24px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.login-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 20%, #334f3d, #15231b 60%); }
.login-card { width: min(420px,100%); padding: 46px; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; color: #fff; background: rgba(15,27,20,.72); box-shadow: var(--shadow); backdrop-filter: blur(16px); text-align: center; }
.login-card .brand-mark { margin: auto; }
.login-card h1 { margin: 12px 0 8px; font-family: "STKaiti", serif; font-size: 30px; font-weight: 500; }
.login-card .muted { margin: 0 0 30px; color: rgba(255,255,255,.5); font-size: 12px; }
.login-card .field { margin-top: 20px; text-align: left; color: rgba(255,255,255,.75); }
.login-card .field input { border-color: rgba(255,255,255,.14); color: #fff; background: rgba(255,255,255,.08); }
.login-card .button { margin-top: 18px; color: var(--forest); background: var(--tea-light); }
.is-locked .admin-shell { visibility: hidden; }
.admin-body:not(.is-locked) .login-gate { display: none; }
.modal { width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 24px; background: transparent; box-shadow: var(--shadow); }
.modal::backdrop, .lightbox::backdrop, .passcode-dialog::backdrop, .submit-dialog::backdrop { background: rgba(14,21,17,.7); backdrop-filter: blur(7px); }
.modal-card { padding: 32px; border-radius: 24px; background: var(--paper); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.modal-head h2 { margin: 0; font-family: "STKaiti", serif; font-size: 28px; }
.form-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field--span { grid-column: 1 / -1; }
.path-input { display: flex; align-items: center; overflow: hidden; }
.path-input > span { height: 100%; padding: 0 0 0 14px; display: inline-flex; align-items: center; color: var(--muted); background: #f4f2ec; font: 12px Consolas, monospace; }
.path-input input { height: 100%; border: 0; box-shadow: none !important; font: 12px Consolas, monospace; }
.source-field { align-items: start; }
.source-mode { width: max-content; }
.expiry-field { align-content: start; }
.expiry-mode { width: 100%; }
.expiry-mode button { flex: 1; }
.expiry-field input { margin-top: 10px; }
.nas-browser { overflow: hidden; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.nas-browser__bar { min-height: 60px; padding: 10px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: #f5f3ed; }
.nas-browser__back { width: 36px; height: 36px; font-size: 24px; }
.nas-browser__bar small, .nas-browser__bar strong { display: block; }
.nas-browser__bar small { color: var(--muted); font-size: 9px; font-weight: 500; }
.nas-browser__bar strong { max-width: 440px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font: 11px Consolas, monospace; white-space: nowrap; }
.nas-browser__bar > span { padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--forest-2); font-size: 9px; white-space: nowrap; }
.nas-browser__list { max-height: 230px; overflow-y: auto; padding: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.nas-browser__list > p { grid-column: 1/-1; padding: 30px; margin: 0; color: var(--muted); text-align: center; font-size: 11px; }
.nas-entry { min-width: 0; min-height: 42px; padding: 7px 9px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.nas-entry:hover { background: #f2efe7; }
.nas-entry__icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: var(--tea); background: #f0eadf; font-size: 13px; }
.nas-entry--photo .nas-entry__icon { color: var(--forest-2); background: #e7eee9; font: 8px Georgia,serif; }
.nas-entry__name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.nas-entry input { width: 16px; height: 16px; accent-color: var(--forest); }
.switch-field { display: flex; align-items: center; gap: 12px; padding-top: 22px; cursor: pointer; }
.switch-field input { position: absolute; opacity: 0; }
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #c9c8c2; transition: .2s; }
.switch::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch-field input:checked + .switch { background: var(--forest-2); }
.switch-field input:checked + .switch::after { transform: translateX(18px); }
.switch-field strong, .switch-field small { display: block; }
.switch-field strong { font-size: 13px; }
.switch-field small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.modal-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.modal--detail { width: min(1100px, calc(100% - 28px)); }
.detail-card { min-height: 70vh; padding: 32px; border-radius: 24px; background: var(--paper); }
.detail-client { margin: 4px 0 0; }
.share-panel { margin-top: 24px; padding: 18px 20px; display: grid; grid-template-columns: 1fr 86px; align-items: center; gap: 24px; border-radius: 16px; color: #fff; background: var(--forest); }
.share-copy > span { color: var(--tea-light); font-size: 11px; }
.share-copy > div { margin: 8px 0 5px; display: flex; gap: 8px; }
.share-copy input { min-width: 0; flex: 1; height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: #fff; background: rgba(255,255,255,.07); font-size: 12px; }
.share-copy .button { color: var(--forest); background: var(--tea-light); }
.share-copy small { color: rgba(255,255,255,.48); font-size: 10px; }
.share-panel img { width: 86px; height: 86px; border-radius: 8px; background: var(--cream); }
.detail-stats { margin: 24px 0; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 14px; }
.detail-stats div { padding: 16px 20px; border-right: 1px solid var(--line); }
.detail-stats div:last-child { border: 0; }
.detail-stats strong, .detail-stats span { display: block; }
.detail-stats strong { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.detail-stats span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.detail-toolbar { display: flex; justify-content: space-between; gap: 15px; }
.detail-actions { display: flex; gap: 8px; }
.admin-photo-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.admin-photo { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: #e9e6df; }
.admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo__badge { position: absolute; right: 6px; top: 6px; padding: 4px 7px; border-radius: 999px; color: #fff; background: rgba(25,35,29,.78); font-size: 9px; }
.admin-photo__name { position: absolute; inset: auto 0 0; padding: 20px 7px 6px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-inline { margin-top: 20px; padding: 40px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }

/* 客户选片 */
.client-body { min-height: 100vh; background: var(--paper); }
.client-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 82px; padding: 0 clamp(18px,4vw,64px); display: flex; align-items: center; justify-content: space-between; }
.client-brand { display: flex; align-items: center; gap: 10px; }
.client-brand strong { font-family: "STKaiti", serif; font-size: 17px; letter-spacing: .08em; }
.save-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: #6e9b7a; }
.save-state.is-saving i { background: var(--tea); animation: pulse 1s infinite; }
.save-state.is-error i { background: var(--danger); }
@keyframes pulse { 50% { opacity: .25; } }
.client-hero {
  min-height: 78vh; padding: 130px 24px 90px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background:
    radial-gradient(circle at 50% 45%, rgba(213,189,145,.16), transparent 32%),
    linear-gradient(180deg, #f0ece1, #faf8f2);
}
.client-hero__ornament { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; color: var(--tea); }
.client-hero__ornament span { width: 42px; height: 1px; background: #c9b993; }
.client-hero__ornament b { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #c9b993; border-radius: 50%; font-family: "STKaiti", serif; font-size: 20px; font-weight: 400; }
.client-hero h1 { max-width: 900px; margin: 4px 0 18px; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(36px,7vw,76px); font-weight: 400; letter-spacing: .04em; line-height: 1.2; }
.client-hero > p:not(.eyebrow) { margin: 0; color: var(--muted); font: 16px/1.8 "STKaiti", "KaiTi", serif; }
.client-hero__meta { margin-top: 28px; display: flex; align-items: center; gap: 12px; color: #8b8d87; font: 11px Georgia, serif; letter-spacing: .08em; }
.client-hero__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--tea); }
.scroll-cue { margin-top: 54px; display: grid; gap: 10px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; letter-spacing: .16em; }
.scroll-cue i { font-size: 17px; font-style: normal; animation: float 1.8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(5px); } }
.gallery-section { max-width: 1600px; margin: auto; padding: 76px clamp(14px,3vw,48px) 130px; }
.gallery-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.gallery-title h2 { margin: 0; font-family: "STKaiti", serif; font-size: clamp(26px,3vw,38px); font-weight: 500; }
.gallery-controls { display: flex; align-items: center; gap: 12px; }
.rating-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.rating-filter select { width: auto; height: 42px; padding: 0 30px 0 12px; }
.segmented--client { background: #f2efe7; }
.batch-bar { margin: 28px 0 18px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.batch-bar p { margin: 0; display: flex; gap: 12px; align-items: center; font-size: 11px; }
.batch-bar p span { color: var(--muted); }
.text-button { padding: 5px 8px; border: 0; color: var(--tea); background: transparent; cursor: pointer; font-size: 11px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(8px,1.4vw,20px); }
.photo-card { min-width: 0; }
.photo-card__image { position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: 3px; background: #e7e4dd; cursor: zoom-in; }
.photo-card__image::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: .2s; pointer-events: none; }
.photo-card.is-selected .photo-card__image::after { border: 3px solid var(--tea); }
.photo-card__image img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .45s, transform .6s; }
.photo-card__image img.is-loaded { opacity: 1; transform: scale(1); }
.photo-card__image:hover img { transform: scale(1.025); }
.photo-card__type { position: absolute; left: 10px; top: 10px; padding: 4px 7px; border-radius: 999px; color: #fff; background: rgba(17,23,19,.48); backdrop-filter: blur(8px); font: 9px Georgia,serif; letter-spacing: .08em; }
.photo-select {
  position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: rgba(17,23,19,.25); backdrop-filter: blur(8px); cursor: pointer; font-size: 17px;
}
.photo-card.is-selected .photo-select { color: var(--forest); border-color: var(--tea-light); background: var(--tea-light); }
.photo-card__info { padding: 10px 2px 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.photo-card__name { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #555c57; font: 10px Georgia, Consolas, serif; }
.stars { display: flex; flex: 0 0 auto; }
.star { padding: 2px; border: 0; color: #c9c6bd; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; }
.star.is-active { color: var(--tea); }
.gallery-empty { padding: 80px 20px; color: var(--muted); text-align: center; }
.gallery-empty span { font-size: 32px; color: var(--tea-light); }
.gallery-empty p { font-family: "STKaiti", serif; font-size: 20px; }
.load-more { margin: 34px auto 0; }
.client-footer { padding: 60px 20px 130px; display: grid; justify-items: center; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); background: #f4f1e9; text-align: center; }
.client-footer p { margin: 5px 0 0; font-size: 10px; }
.client-footer strong { color: var(--ink-soft); font-family: "STKaiti", serif; font-size: 16px; }
.selection-dock {
  position: fixed; z-index: 50; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); width: min(620px, calc(100% - 24px)); min-height: 66px;
  padding: 8px 9px 8px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #fff; background: rgba(24,35,29,.95); box-shadow: 0 20px 50px rgba(20,29,24,.26); backdrop-filter: blur(14px);
  box-sizing: border-box; transform: translateX(-50%);
}
.selection-dock > div { display: flex; align-items: baseline; gap: 4px; color: rgba(255,255,255,.6); font-size: 10px; }
.selection-dock strong { color: var(--tea-light); font: 25px Georgia,serif; }
.selection-dock p { margin: 0; color: rgba(255,255,255,.5); font-size: 10px; }
.selection-dock .button { color: var(--forest); background: var(--tea-light); }
.client-loading, .client-error { position: fixed; z-index: 150; inset: 0; display: grid; place-content: center; justify-items: center; background: var(--cream); text-align: center; }
.tea-loader, .client-error > span { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid var(--tea-light); border-radius: 50%; color: var(--tea); font: 30px "STKaiti",serif; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px rgba(157,122,67,.06); } }
.client-loading p, .client-error p { color: var(--muted); font-size: 12px; }
.client-loading small { min-height: 18px; color: var(--tea); font-size: 11px; }
.client-error .button { margin-top: 14px; }
.client-error h1 { font-family: "STKaiti", serif; font-weight: 500; }
.client-body:not(.is-loading) .client-loading { display: none; }
.passcode-dialog, .submit-dialog { width: min(430px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; background: transparent; }
.passcode-dialog form, .submit-card { padding: 38px; border-radius: 24px; background: var(--paper); text-align: center; }
.passcode-dialog .brand-mark { margin: auto; }
.passcode-dialog h2, .submit-card h2 { margin: 12px 0 8px; font-family: "STKaiti", serif; font-size: 27px; }
.passcode-dialog form > p:not(.eyebrow):not(.form-error), .submit-card > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.passcode-dialog .field { margin: 24px 0 10px; text-align: left; }
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #090c0a; }
.lightbox[open] { display: block; }
.lightbox__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; background: radial-gradient(circle at center,#151b17,#090c0a 72%); }
.lightbox__stage > img { z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; user-select: none; transform-origin: center center; will-change: opacity,transform; }
.lightbox__stage > img.is-zoomed { cursor: grab; }
.lightbox__stage > img.is-zoom-animating { transition: transform .22s cubic-bezier(.22,.75,.25,1); }
.lightbox__stage > img.is-entering-next { animation: lightbox-enter-next .32s cubic-bezier(.22,.75,.25,1) both; }
.lightbox__stage > img.is-entering-prev { animation: lightbox-enter-prev .32s cubic-bezier(.22,.75,.25,1) both; }
@keyframes lightbox-enter-next { from { opacity: 0; transform: translate3d(7vw,0,0) scale(.985); } to { opacity: 1; transform: translate3d(0,0,0) scale(1); } }
@keyframes lightbox-enter-prev { from { opacity: 0; transform: translate3d(-7vw,0,0) scale(.985); } to { opacity: 1; transform: translate3d(0,0,0) scale(1); } }
.lightbox__close { position: absolute; z-index: 8; left: max(16px,env(safe-area-inset-left)); top: max(16px,env(safe-area-inset-top)); width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #fff; background: rgba(12,17,14,.54); backdrop-filter: blur(12px); cursor: pointer; font-size: 25px; }
.lightbox__tap { position: absolute; z-index: 6; top: 50%; width: 42px; height: 58px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #fff; background: rgba(8,12,9,.36); box-shadow: 0 8px 24px rgba(0,0,0,.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(-50%); cursor: pointer; transition: transform .18s ease,background .18s ease,opacity .18s ease; }
.lightbox__tap:focus { outline: none; }
.lightbox__tap:focus-visible span { outline: 2px solid var(--tea-light); outline-offset: 2px; }
.lightbox__tap span { width: 100%; height: 100%; display: grid; place-items: center; opacity: .82; font: 31px/1 Georgia,serif; }
.lightbox__tap:hover { background: rgba(8,12,9,.68); transform: translateY(-50%) scale(1.05); }
.lightbox__tap:active { transform: translateY(-50%) scale(.93); }
.lightbox__tap--prev { left: max(12px,env(safe-area-inset-left)); }
.lightbox__tap--next { right: max(12px,env(safe-area-inset-right)); }
.lightbox__loader { position: absolute; z-index: 3; color: rgba(255,255,255,.62); font-family: "STKaiti", serif; pointer-events: none; }
.lightbox__top { position: absolute; z-index: 7; top: max(16px,env(safe-area-inset-top)); left: 76px; right: max(16px,env(safe-area-inset-right)); display: flex; align-items: start; justify-content: space-between; gap: 20px; color: #fff; pointer-events: none; }
.lightbox__top h2 { margin: 4px 0; overflow-wrap: anywhere; font: 15px Georgia,serif; text-shadow: 0 1px 14px #000; }
.lightbox__top p { margin: 0; color: rgba(255,255,255,.62); font-size: 10px; text-shadow: 0 1px 10px #000; }
.lightbox__download { padding: 10px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; background: rgba(12,17,14,.54); backdrop-filter: blur(12px); font-size: 11px; pointer-events: auto; }
.lightbox__rating { position: absolute; z-index: 7; left: max(18px,env(safe-area-inset-left)); bottom: max(24px,env(safe-area-inset-bottom)); color: #fff; }
.lightbox__rating > span { display: block; margin-bottom: 5px; color: rgba(255,255,255,.5); font-size: 9px; }
.stars--large .star { font-size: 25px; }
.lightbox__hint { position: absolute; z-index: 6; left: 50%; bottom: 92px; margin: 0; color: rgba(255,255,255,.42); transform: translateX(-50%); font-size: 9px; white-space: nowrap; pointer-events: none; }
.lightbox__confirm { position: absolute; z-index: 8; left: 50%; bottom: max(20px,env(safe-area-inset-bottom)); min-width: 154px; height: 54px; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: var(--forest); background: var(--tea-light); box-shadow: 0 14px 34px rgba(0,0,0,.3); transform: translateX(-50%); cursor: pointer; }
.lightbox__confirm span { font-size: 18px; }
.lightbox__confirm.is-selected { color: #fff; border-color: rgba(255,255,255,.3); background: var(--tea); }
.lightbox__selected { position: absolute; z-index: 8; right: max(18px,env(safe-area-inset-right)); bottom: max(24px,env(safe-area-inset-bottom)); min-width: 76px; height: 46px; padding: 0 15px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; background: rgba(12,17,14,.62); backdrop-filter: blur(12px); cursor: pointer; }
.lightbox__selected span { color: rgba(255,255,255,.58); font-size: 10px; }
.lightbox__selected strong { color: var(--tea-light); font: 18px Georgia,serif; }
.selected-dialog { width: min(980px,calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: transparent; }
.selected-dialog::backdrop { background: rgba(7,10,8,.78); backdrop-filter: blur(9px); }
.selected-dialog__card { padding: 28px; border-radius: 24px; background: var(--paper); }
.selected-dialog__card > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.selected-dialog__card h2 { margin: 0; font: 30px "STKaiti",serif; }
.selected-dialog__card header p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.selected-dialog__grid { max-height: 58dvh; margin: 22px 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; overflow: auto; }
.selected-dialog__grid button { min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 8px; color: #fff; background: var(--forest); cursor: pointer; text-align: left; }
.selected-dialog__grid img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; }
.selected-dialog__grid span { padding: 8px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 9px Georgia,serif; }
.selected-dialog__card > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.selected-dialog__card > footer strong { color: var(--tea); font: 21px Georgia,serif; }
.photo-card__error { position: absolute; inset: 0; display: grid; place-content: center; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
html.lightbox-open, html.lightbox-open body { overflow: hidden; }
.submit-seal { width: 58px; height: 58px; margin: auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--forest); font-size: 22px; }
.submit-card > div { margin-top: 24px; display: flex; justify-content: center; gap: 8px; }
.delete-projects-dialog { width: min(470px,calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; background: transparent; }
.delete-projects-dialog::backdrop { background: rgba(7,10,8,.66); backdrop-filter: blur(8px); }
.delete-projects-card { padding: 36px; border-radius: 24px; background: var(--paper); text-align: center; box-shadow: var(--shadow); }
.delete-projects-icon { width: 60px; height: 60px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 50%; color: #913e35; background: #f2dfdc; font: 22px "STKaiti",serif; }
.delete-projects-card h2 { margin: 10px 0; font: 29px "STKaiti",serif; }
.delete-projects-card > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.7; }
.delete-projects-note { margin: 20px 0 24px; padding: 14px; display: grid; gap: 5px; border-radius: 12px; color: #705f4d; background: #f4eee4; font-size: 11px; }
.delete-projects-note strong { color: var(--forest); font-size: 13px; }

@media (max-width: 1100px) {
  .project-grid { grid-template-columns: 1fr; }
  .overview { align-items: stretch; flex-direction: column; }
  .overview__stats { margin-left: 84px; }
  .overview__stats div:first-child { border-left: 0; }
  .admin-photo-grid { grid-template-columns: repeat(5,1fr); }
  .photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .admin-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 15px 18px; flex-direction: row; align-items: center; }
  .brand { padding: 0; }
  .brand small, .side-note, .side-nav__logout { display: none; }
  .side-nav { margin-left: auto; display: flex; }
  .side-nav__item { width: auto; min-height: 38px; padding: 0 12px; font-size: 0; }
  .side-nav__item span { font-size: 19px; }
  .admin-main { padding: 26px 16px 70px; }
  .admin-topbar { align-items: start; }
  .admin-topbar .eyebrow { display: none; }
  .admin-topbar h1 { font-size: 23px; }
  .admin-topbar .button { width: 44px; min-width: 44px; padding: 0; font-size: 0; }
  .admin-topbar .button span { font-size: 18px; }
  .overview { margin: 24px 0 32px; min-height: 0; padding: 24px; }
  .overview__seal { display: none; }
  .overview__intro div > span { display: none; }
  .overview__stats { margin: 0; }
  .overview__stats div { padding: 6px 14px; }
  .overview__stats strong { font-size: 26px; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .project-heading-actions .segmented { width: 100%; }
  .project-heading-actions .segmented button { flex: 1; }
  .project-delete-bar { align-items: stretch; flex-direction: column; }
  .project-delete-bar p { flex-wrap: wrap; }
  .project-delete-bar p small { width: 100%; margin-left: 0; }
  .project-delete-bar > div { justify-content: space-between; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 112px minmax(0,1fr); padding: 10px; border-radius: 18px; }
  .project-card__thumb { border-radius: 14px; font-size: 38px; }
  .project-card__body { padding: 3px 3px 2px 13px; }
  .project-card h3 { margin: 10px 0 3px; font-size: 19px; }
  .project-card__client { font-size: 10px; }
  .project-card__progress { padding-top: 10px; }
  .project-card__numbers { margin-bottom: 6px; font-size: 9px; }
  .project-card__numbers strong { font-size: 13px; }
  .project-card__footer { margin-top: 9px; padding-top: 8px; font-size: 9px; }
  .project-card__check { top: 17px; left: 17px; width: 25px; height: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--span { grid-column: auto; }
  .modal-card, .detail-card { padding: 23px 18px; }
  .nas-browser__list { grid-template-columns: 1fr; }
  .nas-browser__bar { grid-template-columns: auto 1fr; }
  .nas-browser__bar > span { grid-column: 1/-1; width: max-content; margin-left: 48px; }
  .share-panel { grid-template-columns: 1fr; }
  .share-panel img { display: none; }
  .share-copy > div { align-items: stretch; flex-direction: column; }
  .detail-stats { grid-template-columns: repeat(2,1fr); }
  .detail-stats div:nth-child(2) { border-right: 0; }
  .detail-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-toolbar { align-items: stretch; flex-direction: column; }
  .detail-actions { overflow-x: auto; }
  .admin-photo-grid { grid-template-columns: repeat(3,1fr); }
  .client-header { height: 68px; }
  .client-brand strong { font-size: 14px; }
  .client-brand .brand-mark { width: 34px; height: 34px; }
  .save-state span { display: none; }
  .client-hero { min-height: 72vh; padding-top: 110px; }
  .client-hero h1 { font-size: clamp(34px,11vw,52px); }
  .gallery-section { padding-top: 54px; }
  .gallery-toolbar { align-items: stretch; flex-direction: column; }
  .gallery-controls { align-items: stretch; flex-direction: column; }
  .segmented--client { width: 100%; }
  .segmented--client button { flex: 1; }
  .rating-filter { justify-content: flex-end; }
  .batch-bar { gap: 12px; }
  .batch-bar p span { display: none; }
  .batch-bar > div { display: flex; }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .photo-card__info { display: block; }
  .photo-card__name { margin-bottom: 5px; }
  .star { font-size: 14px; }
  .selection-dock {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px); max-width: calc(100vw - 24px); min-height: 66px;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 0;
    border-radius: 18px; padding: 9px 10px 9px 16px;
  }
  .selection-dock > div { grid-column: 1; justify-self: start; white-space: nowrap; }
  .selection-dock p { display: none; }
  .selection-dock .button { grid-column: 2; min-width: clamp(148px,48vw,210px); justify-self: center; white-space: nowrap; }
  .lightbox__top { right: 10px; }
  .lightbox__top p { display: none; }
  .lightbox__download { padding: 9px 11px; }
  .lightbox__tap { width: 34px; height: 48px; opacity: .72; }
  .lightbox__tap span { display: grid; font-size: 27px; }
  .lightbox__tap--prev { left: max(8px,env(safe-area-inset-left)); }
  .lightbox__tap--next { right: max(8px,env(safe-area-inset-right)); }
  .lightbox__rating { left: 12px; bottom: calc(max(14px,env(safe-area-inset-bottom)) + 58px); }
  .lightbox__hint { display: none; }
  .lightbox__confirm { bottom: max(14px,env(safe-area-inset-bottom)); min-width: 132px; height: 48px; padding: 0 17px; }
  .lightbox__selected { right: 10px; bottom: max(15px,env(safe-area-inset-bottom)); min-width: 64px; height: 43px; padding: 0 11px; }
  .selected-dialog__card { padding: 22px 14px; }
  .selected-dialog__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .selected-dialog__card > footer { align-items: stretch; flex-direction: column; }
  .login-card { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.icp-record { margin: 8px 0 0; font-size: 12px; }
.icp-record a { color: inherit; text-decoration: none; }
.icp-record a:hover { text-decoration: underline; }

.site-icp { position: fixed; z-index: 100; left: 50%; bottom: 8px; transform: translateX(-50%); color: #777; font-size: 11px; text-decoration: none; white-space: nowrap; }
.site-icp:hover { text-decoration: underline; }

.local-upload { display:flex; align-items:center; gap:16px; padding:18px; border:1px solid var(--line); border-radius:14px; background:#f8f6f0; }
.local-upload[hidden] { display:none; }
.local-upload > div { display:grid; gap:4px; min-width:0; }
.local-upload strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.local-upload small { color:var(--muted); }
@media (max-width:700px) { .local-upload { align-items:stretch; flex-direction:column; } }

/* Multi-user account experience */
.auth-page{min-height:100vh;margin:0;background:#f3f1ea;color:#18251f;font-family:"Microsoft YaHei UI","PingFang SC",sans-serif}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,46%) 1fr}.auth-story{position:relative;overflow:hidden;padding:48px clamp(36px,6vw,88px);display:flex;flex-direction:column;justify-content:space-between;color:#f8f6ef;background:radial-gradient(circle at 78% 20%,rgba(156,177,137,.32),transparent 32%),linear-gradient(145deg,#102019,#1e3428 58%,#293e31)}.auth-story:after{content:"茶";position:absolute;right:-4vw;bottom:-15vh;font-family:serif;font-size:min(52vw,650px);line-height:1;color:rgba(255,255,255,.025);pointer-events:none}.auth-brand{position:relative;z-index:1;color:#fff}.auth-story>div{position:relative;z-index:1}.auth-story h1{margin:12px 0 22px;font-family:serif;font-size:clamp(42px,5vw,76px);font-weight:500;line-height:1.16}.auth-story p:not(.eyebrow){max-width:570px;color:rgba(255,255,255,.68);font-size:16px;line-height:1.9}.auth-proof{display:flex;gap:10px;flex-wrap:wrap}.auth-proof span{padding:8px 13px;border:1px solid rgba(255,255,255,.14);border-radius:999px;color:rgba(255,255,255,.72);font-size:12px}.auth-panel{display:grid;place-items:center;padding:52px 24px}.auth-card{width:min(100%,450px);padding:42px;border:1px solid rgba(29,49,39,.09);border-radius:24px;background:rgba(255,255,255,.78);box-shadow:0 24px 70px rgba(23,38,30,.09);backdrop-filter:blur(18px)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;margin-bottom:34px;border-radius:12px;background:#eceae3}.auth-tabs button{border:0;border-radius:9px;padding:11px;background:transparent;color:#69736d;cursor:pointer}.auth-tabs button.is-active{background:#fff;color:#17271f;box-shadow:0 4px 15px rgba(25,42,33,.08)}.auth-form{display:grid;gap:18px}.auth-form h2{margin:5px 0;font-family:serif;font-size:34px;font-weight:500}.auth-row{display:flex;justify-content:space-between;align-items:center;color:#778079;font-size:13px}.auth-divider{display:flex;align-items:center;gap:14px;margin:28px 0 16px;color:#929a95;font-size:12px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#deddd7}.social-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px}.social-button{display:flex;align-items:center;justify-content:center;gap:9px;padding:12px;border:1px solid #dddcd6;border-radius:11px;color:#26362e;text-decoration:none;background:#fff}.social-button b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#1e7fe8;color:#fff;font-size:10px}.social-button#wechatLogin b{background:#1aad19}.social-button.is-disabled{opacity:.4;cursor:not-allowed}.social-buttons+small{display:block;margin-top:12px;text-align:center;color:#969d98}.form-success{margin:0;color:#2c7651;font-size:13px}.source-mode-title{padding:12px 15px;border-radius:10px;background:#eff2ed;color:#30493b;font-weight:600}
.admin-login-link{display:block;margin:22px auto 0;padding:2px 5px;border:0;color:#a9aea9;background:transparent;font-size:9px;letter-spacing:.08em;cursor:pointer}.admin-login-link:hover{color:#657069}.admin-login-back{justify-self:center;padding:3px 6px;border:0;color:#89918c;background:transparent;font-size:10px;cursor:pointer}
@media(max-width:840px){.auth-shell{display:block}.auth-story{min-height:260px;padding:28px 24px}.auth-story h1{font-size:38px}.auth-proof{display:none}.auth-panel{padding:20px 14px 70px}.auth-card{box-sizing:border-box;padding:28px 22px;border-radius:18px}.auth-brand{margin-bottom:45px}}
#usersDialog{width:min(1080px,calc(100% - 28px))}.user-admin-card{width:auto}.user-list{display:grid;gap:12px;max-height:68vh;overflow:auto;padding-right:4px}.user-row{display:grid;grid-template-columns:minmax(220px,1.15fr) minmax(230px,1fr) minmax(210px,.8fr);gap:18px;align-items:center;padding:18px;border:1px solid var(--line);border-radius:15px;background:#faf9f5}.user-row strong,.user-row small{display:block}.user-row small{margin-top:4px;color:var(--muted);overflow-wrap:anywhere}.user-storage>div:first-child{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.quota-bar{height:8px;margin:7px 0 9px;border-radius:999px;background:#e5e2da;overflow:hidden}.quota-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#28483a,#6f8b71)}.user-storage label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.user-storage input{width:82px;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff}.user-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.user-row select{min-width:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}.user-controls .button,.user-controls .text-button{width:100%;min-height:36px}.overview__stats{grid-template-columns:repeat(4,minmax(80px,1fr))}@media(max-width:760px){#usersDialog{width:calc(100% - 20px)}.user-row{grid-template-columns:1fr}.user-controls{grid-template-columns:1fr 1fr}.overview__stats{grid-template-columns:repeat(2,1fr)}}
.storage-warning{width:100%;margin:20px 0 0;padding:13px 18px;border:1px solid #d39c6f;border-radius:12px;color:#743c21;background:#fff0df;text-align:left;font-weight:700;cursor:pointer}#storageDialog{width:min(920px,calc(100% - 28px))}.storage-admin-card{width:auto}#storageDialog.is-warning .storage-admin-card{box-shadow:0 0 0 3px rgba(174,73,53,.18),var(--shadow)}.storage-meter{margin:10px 0 24px}.storage-meter__bar{position:relative;height:18px;border-radius:999px;background:#dfe8df;overflow:hidden}.storage-meter__bar span{display:block;height:100%;background:linear-gradient(90deg,#1e382d,#496a55)}.storage-meter__bar i{position:absolute;right:0;top:0;height:100%;background:repeating-linear-gradient(135deg,#b56b55,#b56b55 5px,#d99578 5px,#d99578 10px)}.storage-meter__legend{display:flex;justify-content:space-between;margin-top:8px;color:var(--muted);font-size:10px}.storage-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.storage-stats>div{padding:16px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(145deg,#fff,#f5f3ed)}.storage-stats span,.storage-stats strong{display:block}.storage-stats span{color:var(--muted);font-size:10px}.storage-stats strong{margin-top:5px;font-size:18px}.reserve-setting{margin-top:20px;padding:18px;display:grid;grid-template-columns:1fr auto auto;gap:16px;align-items:center;border:1px solid #dce3d9;border-radius:14px;background:#eef1eb}.reserve-setting strong,.reserve-setting small{display:block}.reserve-setting small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.5}.reserve-setting label{display:flex;align-items:center;gap:6px}.reserve-setting input{width:90px;padding:10px;border:1px solid var(--line);border-radius:9px}@media(max-width:700px){#storageDialog{width:calc(100% - 20px)}.storage-stats{grid-template-columns:repeat(2,1fr)}.reserve-setting{grid-template-columns:1fr}.reserve-setting .button{width:100%}}
/* Invitation management */
.invite-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:8px 0 18px;flex-wrap:wrap}.invite-toolbar>span{color:var(--muted,#6f766f);font-size:13px}.invite-note-create{display:grid;gap:5px;min-width:220px}.invite-note-create span,.invite-note-edit span{color:#687069;font-size:12px}.invite-note-create input,.invite-note-edit input{border:1px solid rgba(23,36,29,.16);border-radius:9px;padding:9px 11px;background:#fff}.invite-list{display:grid;gap:10px;max-height:55vh;overflow:auto}.invite-row{display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px 16px;border:1px solid rgba(23,36,29,.12);border-radius:14px;background:#fff}.invite-code{border:0;border-radius:10px;background:#17241d;color:#fff;font:700 19px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:2px;padding:11px;cursor:pointer}.invite-row>div:nth-child(2){display:grid;gap:4px}.invite-row small{color:#7b827c}.invite-note-edit{display:flex;align-items:center;gap:8px;margin-top:5px}.invite-note-edit input{width:min(280px,100%)}.invite-actions{display:flex;align-items:center;gap:8px}@media(max-width:700px){.invite-row{grid-template-columns:1fr}.invite-actions{justify-content:flex-start}.invite-code{width:110px}.invite-note-edit{align-items:stretch;flex-direction:column}}
.upload-dock{position:fixed;right:24px;bottom:24px;z-index:80;width:min(410px,calc(100vw - 32px));border:1px solid rgba(27,51,39,.16);border-radius:16px;background:#fff;box-shadow:0 18px 55px rgba(16,32,24,.2);overflow:hidden}.upload-dock__head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:0;background:#193528;color:#fff;text-align:left;cursor:pointer}.upload-dock__head>span:first-child{display:flex;flex-direction:column;gap:2px}.upload-dock__head small{color:rgba(255,255,255,.68);font-size:11px}.upload-dock__head>span:last-child{font-size:12px;color:#dce9e2}.upload-dock__tasks{max-height:420px;overflow:auto;padding:8px}.upload-dock.is-collapsed .upload-dock__tasks{display:none}.upload-task{padding:11px 10px;border-bottom:1px solid #edf0ed}.upload-task:last-child{border-bottom:0}.upload-task__line,.upload-task__meta{display:flex;justify-content:space-between;gap:12px}.upload-task__line strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-task__line span{color:#315b46;font-weight:700}.upload-task__bar{height:7px;margin:9px 0 7px;border-radius:99px;background:#e7ece9;overflow:hidden}.upload-task__bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#315b46,#78a68d);transition:width .18s ease}.upload-task__meta{font-size:11px;color:#718078}.upload-task--done .upload-task__bar span{background:#4d916c}.upload-task--error .upload-task__bar span{background:#bd514b}.upload-task--paused .upload-task__bar span{background:#c09855}.upload-task>p{margin:7px 0 0;color:#a63e39;font-size:12px}.upload-task__actions{min-height:30px;margin-top:9px;display:flex;justify-content:flex-end;gap:6px}.upload-task__actions:empty{display:none}.upload-task__actions button{min-height:30px;padding:0 11px;border:1px solid #d8dfda;border-radius:999px;color:#526058;background:#f8faf8;cursor:pointer;font-size:11px;font-weight:700}.upload-task__actions button:hover{background:#eef3ef}.upload-task__actions button.is-primary{color:#fff;border-color:#315b46;background:#315b46}.upload-task__actions button.is-danger{color:#a33f39;border-color:#ead0cd;background:#fff8f7}@media(max-width:640px){.upload-dock{right:16px;bottom:16px}.upload-task__actions button{min-height:34px;padding:0 13px}}
.managed-user-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 18px;padding:16px 20px;border:1px solid #c9d8cf;border-radius:14px;background:#edf4ef;color:#173829}.managed-user-banner>div{display:grid;gap:3px}.managed-user-banner>div>span{color:#668071;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.managed-user-banner strong{font-size:16px}.managed-user-banner strong b{color:#9b6b28}.managed-user-banner small{color:#66756d}.managed-user-banner[hidden]{display:none}
#usersDialog{width:min(1040px,calc(100% - 28px))}.user-list{gap:14px}.user-row{display:block;padding:20px;border-color:#e1ddd3;background:#fff}.user-card-head{display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center}.user-avatar{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;background:#1c3a2c;color:#dbc99f;font-size:18px;font-weight:700}.user-identity strong{font-size:16px}.user-identity strong i{margin-left:7px;padding:3px 7px;border-radius:99px;background:#e7f0ea;color:#37604a;font-size:9px;font-style:normal}.user-counts{display:flex;gap:8px}.user-counts span{padding:7px 10px;border-radius:9px;background:#f4f2ec;color:#667169;font-size:11px}.user-counts b{color:#263c31;font-size:13px}.user-note{display:grid;grid-template-columns:78px 1fr;align-items:center;margin:15px 0 13px;padding:10px 12px;border-radius:10px;background:#f7f6f2;color:#727b75;font-size:11px}.user-note input{width:100%;border:0;background:transparent;color:#27372f;outline:0}.user-storage{margin-bottom:14px}.user-controls{display:grid;grid-template-columns:150px 150px 150px 130px minmax(150px,1fr);gap:9px;align-items:end}.user-controls label{display:grid;gap:5px;color:#7a817c;font-size:10px}.user-controls label>span:last-child{display:flex;align-items:center;gap:5px}.user-controls input,.user-controls select{width:100%;height:38px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff}.user-controls [data-user-quota]{width:88px}.user-controls .button{min-height:38px}.user-controls [data-view-user]{justify-self:stretch}@media(max-width:900px){.user-controls{grid-template-columns:repeat(2,1fr)}.user-controls [data-view-user]{grid-column:1/-1}.user-card-head{grid-template-columns:46px 1fr}.user-counts{grid-column:1/-1}}@media(max-width:600px){.managed-user-banner{align-items:flex-start;flex-direction:column}.user-note{grid-template-columns:1fr}.user-controls{grid-template-columns:1fr}.user-controls [data-view-user]{grid-column:auto}}

/* Personal center */
.profile-nav{align-items:center}.profile-nav__avatar{display:grid!important;width:24px!important;height:24px!important;place-items:center;overflow:hidden;border-radius:8px;background:#dbc99f!important;color:#183427!important;font-size:10px;font-weight:800}.profile-nav__avatar img{width:100%;height:100%;object-fit:cover}.profile-nav__avatar i{font-style:normal}.profile-card{width:min(900px,calc(100vw - 32px));max-height:min(850px,calc(100vh - 32px));overflow:auto}.profile-identity{display:flex;align-items:center;gap:20px;padding:24px;margin:0 0 18px;border-radius:18px;color:#f8f4e9;background:linear-gradient(135deg,#18372a,#244c39);box-shadow:0 16px 36px rgba(22,49,37,.16)}.profile-avatar{position:relative;width:96px;height:96px;flex:0 0 96px;padding:0;overflow:hidden;border:3px solid rgba(255,255,255,.34);border-radius:28px;background:#d8c391;color:#173426;cursor:pointer}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-avatar>span{display:grid;width:100%;height:100%;place-items:center;font:600 38px/1 serif}.profile-avatar i{position:absolute;right:5px;bottom:5px;padding:4px 7px;border-radius:99px;background:rgba(14,30,23,.78);color:#fff;font-size:9px;font-style:normal}.profile-avatar.is-loading:after{content:"处理中";position:absolute;inset:0;display:grid;place-items:center;background:rgba(19,39,30,.72);color:#fff;font-size:12px}.profile-identity>div{display:grid;gap:6px}.profile-identity>div>span{color:#d8c391;font-size:10px;letter-spacing:.18em}.profile-identity strong{font-family:serif;font-size:29px;font-weight:500}.profile-identity small{color:rgba(255,255,255,.64)}.profile-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-section{padding:20px;border:1px solid #e2ddd1;border-radius:16px;background:#fff}.profile-form{grid-column:1/-1}.profile-section__head{display:flex;justify-content:space-between;gap:18px;margin-bottom:17px}.profile-section__head>div{display:grid;gap:3px}.profile-section__head span{color:#a47b39;font-size:9px;letter-spacing:.15em;text-transform:uppercase}.profile-section__head h3{margin:0;font-family:serif;font-size:22px;font-weight:500}.profile-section__head>small{max-width:250px;color:#858d87;font-size:10px;line-height:1.6;text-align:right}.profile-section__actions{display:flex;justify-content:flex-end;margin-top:16px}.social-section{display:grid;align-content:start;gap:10px}.social-section .profile-section__head{margin-bottom:7px}.social-account{display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center;padding:12px;border:1px solid #e8e4dc;border-radius:12px;background:#faf9f5}.social-account__icon{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;color:#fff;font-size:11px;font-weight:800}.social-account__icon--qq{background:#2384df}.social-account__icon--wechat{background:#16a34a}.social-account>div{display:grid;gap:3px}.social-account small{color:#8a918c;font-size:10px}.social-account.is-connected{border-color:#bdd7c6;background:#f4f9f5}.social-account.is-connected small{color:#37704f}.social-account .button{min-width:78px}.password-section{align-self:start}.profile-section .field input[readonly]{color:#7f8781;background:#f3f2ee}.profile-section .field small{margin-top:4px;color:#929892;font-size:9px}.profile-card .form-error{min-height:0}.profile-card .form-error:empty{display:none}@media(max-width:720px){.profile-card{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);padding:20px}.profile-layout{grid-template-columns:1fr}.profile-form{grid-column:auto}.profile-identity{padding:18px}.profile-avatar{width:78px;height:78px;flex-basis:78px;border-radius:22px}.profile-identity strong{font-size:23px}.profile-section{padding:16px}.profile-section__head{display:grid}.profile-section__head>small{text-align:left}.profile-section .form-grid{grid-template-columns:1fr}.profile-section .field--span{grid-column:auto}.social-account{grid-template-columns:38px 1fr auto}.social-account__icon{width:38px;height:38px}.profile-section__actions .button{width:100%}}
.admin-photo{min-width:0;margin:0;content-visibility:auto;contain-intrinsic-size:160px 160px}
@media(max-width:760px){dialog.modal--detail{inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;border-radius:0;box-shadow:none;overflow-x:hidden;overscroll-behavior:contain}.detail-card{box-sizing:border-box;min-height:100vh;min-height:100dvh;padding:calc(18px + env(safe-area-inset-top,0px)) 14px calc(24px + env(safe-area-inset-bottom,0px));border-radius:0}.detail-head{align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line)}.detail-head .eyebrow{display:none}.detail-head h2{max-width:72vw;font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-head .muted{margin-top:3px;font-size:11px}.detail-head .icon-button{flex:0 0 40px}.share-panel{margin-top:14px;padding:15px;border-radius:14px;gap:0}.share-copy>span{font-size:10px}.share-copy>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:7px 0}.share-copy input{grid-column:1/-1;width:100%;height:38px;box-sizing:border-box}.share-copy .button{width:100%;min-width:0;height:40px;padding:0 8px;font-size:12px}.share-copy small{display:block;line-height:1.5}.detail-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0;border-radius:12px}.detail-stats div{min-width:0;padding:12px 8px;border-right:1px solid var(--line);border-bottom:0!important}.detail-stats div:nth-child(2){border-right:1px solid var(--line)}.detail-stats div:last-child{border-right:0}.detail-stats strong{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-stats span{font-size:9px}.detail-toolbar{gap:10px}.detail-toolbar .segmented{display:grid;grid-template-columns:repeat(3,1fr);width:100%;box-sizing:border-box}.detail-toolbar .segmented button{min-width:0;padding:0 7px}.detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}.detail-actions .button{width:100%;min-width:0;min-height:42px;padding:0 8px;font-size:12px}.admin-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.admin-photo{width:100%;border-radius:9px}.admin-photo__name{font-size:10px}.admin-photo__badge{max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:370px){.detail-stats strong{font-size:16px}.detail-stats div{padding:10px 5px}.detail-actions .button{font-size:11px}.admin-photo-grid{gap:7px}}

/* Baidu Netdisk workspace */
#baiduDialog{width:min(960px,calc(100% - 28px));overflow:hidden}#baiduDialog .baidu-card{box-sizing:border-box;width:100%}
.baidu-card{width:min(960px,calc(100vw - 32px));max-height:min(880px,calc(100vh - 32px));overflow:auto}.baidu-account{margin:4px 0 22px;padding:18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;border:1px solid #ded8cc;border-radius:18px;background:linear-gradient(135deg,#f7f3ea,#fff)}.baidu-account__icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(145deg,#1e4b38,#152e24);font:20px "STKaiti",serif;box-shadow:0 9px 22px rgba(25,61,45,.18)}.baidu-account div:nth-child(2){display:grid;gap:5px}.baidu-account strong{color:var(--forest);font-size:14px}.baidu-account small{color:var(--muted);font-size:11px}.baidu-workspace{animation:baiduReveal .32s ease both}@keyframes baiduReveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.baidu-browser-head{padding:13px 15px;display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:15px 15px 0 0;background:#f5f1e8}.baidu-browser-head>div{min-width:0;flex:1;display:grid;gap:3px}.baidu-browser-head span{color:var(--muted);font-size:9px;letter-spacing:.12em;text-transform:uppercase}.baidu-browser-head strong{overflow:hidden;color:var(--forest);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.baidu-file-list{min-height:220px;max-height:330px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:9px;padding:14px;border:solid var(--line);border-width:0 1px 1px;border-radius:0 0 15px 15px;background:rgba(255,255,255,.56)}.baidu-entry{min-width:0;padding:12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;border:1px solid #e6e0d5;border-radius:13px;color:var(--ink);background:#fbfaf6;text-align:left;transition:.2s ease}button.baidu-entry{cursor:pointer}button.baidu-entry:hover{transform:translateY(-2px);border-color:#b7aa94;box-shadow:0 8px 22px rgba(23,36,29,.08)}.baidu-entry__icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#917144;background:#eee5d5;font-size:10px;font-style:normal;font-weight:800}.baidu-entry--folder .baidu-entry__icon{color:#fff;background:var(--forest);font:16px "STKaiti",serif}.baidu-entry>span:nth-child(2){min-width:0;display:grid;gap:4px}.baidu-entry strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.baidu-entry small,.baidu-entry i{color:var(--muted);font-size:9px;font-style:normal}.baidu-entry b{color:#a18d6e;font-size:18px}.baidu-loading,.baidu-empty{padding:38px 18px;color:var(--muted);text-align:center;font-size:12px}.baidu-loading span{width:28px;height:28px;margin:0 auto 9px;display:block;border:2px solid #d8d0c2;border-top-color:var(--forest);border-radius:50%;animation:baiduSpin .75s linear infinite}@keyframes baiduSpin{to{transform:rotate(360deg)}}.baidu-create{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#f9f6ef}.baidu-selected{margin-bottom:17px;display:grid;gap:4px}.baidu-selected span{color:#9b7a48;font-size:9px;font-weight:800;letter-spacing:.14em}.baidu-selected strong{color:var(--forest);font-size:14px}.baidu-selected small{color:var(--muted);font-size:10px}@media(max-width:700px){.baidu-card{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);padding:20px}.baidu-account{grid-template-columns:auto 1fr}.baidu-account .button{grid-column:1/-1;width:100%}.baidu-file-list{grid-template-columns:1fr;max-height:300px}}

/* Baidu Netdisk browser v2 */
.has-baidu-dialog{overflow:hidden!important}
#baiduDialog .baidu-card{position:relative;overflow:hidden;display:flex;flex-direction:column}.baidu-account{position:relative;flex:0 0 auto;padding:10px 12px;display:flex;gap:10px}.baidu-profile{min-width:0;flex:1;padding:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;border:0;color:inherit;background:transparent;text-align:left;cursor:pointer}.baidu-profile:disabled{cursor:default}.baidu-profile>span:nth-child(2){min-width:0;display:grid;gap:4px}.baidu-profile strong,.baidu-profile small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.baidu-profile>b{padding:7px;color:#8a938d;font-size:15px}.baidu-profile:disabled>b{display:none}.baidu-account__icon{overflow:hidden;position:relative;width:50px;height:50px;border-radius:50%;box-shadow:0 7px 18px rgba(25,61,45,.15)}.baidu-account__icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.baidu-account__icon i{font-style:normal}.baidu-account-menu{position:absolute;z-index:8;right:12px;top:calc(100% - 5px);min-width:170px;padding:6px;border:1px solid #ddd7cc;border-radius:12px;background:#fff;box-shadow:0 16px 40px rgba(20,34,27,.16)}.baidu-account-menu button{width:100%;padding:10px 12px;border:0;border-radius:8px;color:#9b443d;background:transparent;text-align:left;cursor:pointer}.baidu-account-menu button:hover{background:#fbefed}.baidu-workspace{min-height:0;display:flex;flex-direction:column}.baidu-browser-head{flex:0 0 auto}.baidu-breadcrumbs{min-width:0;flex:1;display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none}.baidu-breadcrumbs::-webkit-scrollbar{display:none}.baidu-breadcrumbs span{flex:0 0 auto;color:#ac9d86;font-size:13px}.baidu-breadcrumbs button{flex:0 0 auto;max-width:190px;padding:6px 8px;border:0;border-radius:7px;overflow:hidden;color:#53645b;background:transparent;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;font-size:11px}.baidu-breadcrumbs button:last-child{color:var(--forest);background:#e8ece7;font-weight:700}.baidu-breadcrumbs button:hover{background:#ece8df}.baidu-toolbar{padding:10px 12px;display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:8px;border:solid var(--line);border-width:0 1px;background:#fff}.baidu-search{height:40px;padding:0 8px 0 12px;display:flex;align-items:center;gap:8px;border:1px solid #dfdbd1;border-radius:10px;background:#f8f7f3}.baidu-search>span{color:#8a958e;font-size:18px}.baidu-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:12px}.baidu-search button{width:26px;height:26px;border:0;border-radius:50%;color:#7c867f;background:#e9e8e3;cursor:pointer}.baidu-toolbar>.button{min-height:40px;padding:0 14px}.baidu-sort{height:40px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #dfdbd1;border-radius:10px;background:#fff}.baidu-sort span{color:#879089;font-size:9px}.baidu-sort select{border:0;outline:0;color:#33493d;background:transparent;font-size:11px}.baidu-result-note{padding:8px 14px;border:solid var(--line);border-width:0 1px;color:#52665a;background:#eef2ed;font-size:10px}.baidu-browser-error{margin:0;padding:0 14px}.baidu-file-list{min-height:250px;max-height:min(470px,50vh);border-radius:0 0 15px 15px}.baidu-entry--folder{padding:0;grid-template-columns:minmax(0,1fr) 46px;gap:0;overflow:hidden}.baidu-entry__open{min-width:0;padding:10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;border:0;color:inherit;background:transparent;text-align:left;cursor:pointer}.baidu-entry__open>span:nth-child(2),.baidu-entry--photo>span:nth-child(2){min-width:0;display:grid;gap:4px}.baidu-entry__open:hover{background:#f4f2ec}.baidu-entry__icon{overflow:hidden;position:relative;width:46px;height:46px}.baidu-entry__icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.baidu-entry__icon i{position:relative;color:inherit;font-style:normal}.baidu-entry--folder.has-cover .baidu-entry__icon{background:#d9ddd9}.baidu-entry__share{align-self:stretch;width:46px;display:grid;place-items:center;border:0;border-left:1px solid #ece7dd;color:#557064;background:#f8f6f0;cursor:pointer}.baidu-entry__share:hover{color:#fff;background:var(--forest)}.baidu-entry__share svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.baidu-entry--photo{grid-template-columns:auto minmax(0,1fr) auto}.baidu-share-backdrop{position:absolute;z-index:10;inset:0;background:rgba(14,23,18,.35);backdrop-filter:blur(4px)}.baidu-share-drawer{position:absolute;z-index:11;inset:0 0 0 auto;width:min(520px,100%);padding:28px;box-sizing:border-box;overflow:auto;color:var(--ink);background:#fbfaf6;box-shadow:-24px 0 60px rgba(16,27,21,.2);transform:translateX(104%);transition:transform .28s cubic-bezier(.2,.75,.25,1)}.baidu-card.is-sharing .baidu-share-drawer{transform:none}.baidu-share-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.baidu-share-head h3{margin:4px 0 0;font:28px "STKaiti","KaiTi",serif}.baidu-share-drawer .baidu-create{margin-top:24px;padding:0;border:0;background:transparent}.baidu-share-drawer .form-grid{grid-template-columns:1fr}.baidu-share-drawer .modal-actions{justify-content:flex-end}.baidu-share-backdrop[hidden],.baidu-share-drawer[hidden],.baidu-account-menu[hidden]{display:none!important}
@media(max-width:700px){#baiduDialog{width:calc(100% - 12px)}#baiduDialog .baidu-card{width:100%;max-height:calc(100dvh - 12px);padding:18px 14px}.baidu-account{align-items:stretch;flex-direction:column}.baidu-profile{width:100%}.baidu-account>.button{width:100%}.baidu-account-menu{left:12px;right:12px;top:68px}.baidu-browser-head{padding:10px}.baidu-breadcrumbs button{max-width:125px}.baidu-toolbar{grid-template-columns:minmax(0,1fr) auto}.baidu-toolbar>.button{padding:0 12px}.baidu-sort{grid-column:1/-1;justify-content:space-between}.baidu-file-list{max-height:min(470px,52dvh);padding:10px}.baidu-share-drawer{padding:22px 18px}.baidu-share-head h3{font-size:24px}}

/* Baidu Netdisk browser v3: stable folder rows and explicit recovery controls */
.baidu-file-list{border-radius:0;min-height:250px}
.baidu-entry--folder{display:flex!important;align-items:stretch;min-height:68px;padding:0!important;gap:0!important;overflow:hidden}
.baidu-entry--folder>.baidu-entry__open{display:grid!important;flex:1 1 auto;width:auto;min-width:0;min-height:68px;box-sizing:border-box;visibility:visible!important;opacity:1!important}
.baidu-entry--folder>.baidu-entry__share{display:grid!important;flex:0 0 46px;width:46px;min-height:68px;box-sizing:border-box;visibility:visible!important;opacity:1!important}
.baidu-browser-footer{min-height:48px;padding:8px 12px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;border:solid var(--line);border-width:0 1px 1px;border-radius:0 0 15px 15px;background:#f5f1e8}
.baidu-browser-footer>span{color:var(--muted);font-size:10px}
.baidu-browser-footer .button{min-height:34px;padding:0 13px;font-size:11px}
.baidu-load-error{grid-column:1/-1;align-self:center;justify-self:center;max-width:420px;padding:30px 20px;display:grid;justify-items:center;gap:9px;text-align:center}
.baidu-load-error strong{color:var(--forest);font-size:14px}.baidu-load-error span{color:var(--muted);font-size:11px;line-height:1.6}.baidu-load-error .button{margin-top:7px}
@media(max-width:700px){.baidu-browser-footer{align-items:flex-start;flex-direction:column}.baidu-browser-footer .button{width:100%}}

/* Baidu Netdisk photo selection */
.baidu-selection-bar{padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:solid var(--line);border-width:0 1px;background:linear-gradient(90deg,#edf2ed,#f7f4ec)}
.baidu-selection-bar[hidden]{display:none!important}.baidu-selection-bar>div:first-child{min-width:0;display:grid;gap:3px}.baidu-selection-bar strong{color:var(--forest);font-size:13px}.baidu-selection-bar strong span{font-size:18px}.baidu-selection-bar small{color:var(--muted);font-size:9px}.baidu-selection-bar>div:last-child{display:flex;align-items:center;gap:7px}.baidu-selection-bar .button{min-height:36px;padding:0 12px;font-size:10px;white-space:nowrap}
button.baidu-entry--photo{position:relative;width:100%;box-sizing:border-box;cursor:pointer;font:inherit}
button.baidu-entry--photo:hover{transform:translateY(-2px);border-color:#b7aa94;box-shadow:0 8px 22px rgba(23,36,29,.08)}
button.baidu-entry--photo:focus-visible{outline:3px solid rgba(42,91,65,.22);outline-offset:2px}
button.baidu-entry--photo.is-selected{border-color:#315b46;background:#edf3ee;box-shadow:inset 0 0 0 1px #315b46,0 7px 18px rgba(31,67,49,.10)}
button.baidu-entry--photo.is-selected .baidu-entry__icon{box-shadow:0 0 0 2px #315b46}
.baidu-photo-check{min-width:50px;padding:5px 8px;border:1px solid #d9d6cc;border-radius:999px;color:#758078;background:#fff;text-align:center;font-size:9px;font-weight:700;white-space:nowrap}
.baidu-entry--photo.is-selected .baidu-photo-check{border-color:var(--forest);color:#fff;background:var(--forest)}
@media(max-width:700px){.baidu-selection-bar{align-items:stretch;flex-direction:column}.baidu-selection-bar>div:last-child{display:grid;grid-template-columns:1fr 1fr}.baidu-selection-bar #shareBaiduPhotos{grid-column:1/-1}.baidu-selection-bar .button{width:100%}.baidu-photo-check{min-width:42px;padding:5px 6px}}
#profileDialog{width:min(900px,calc(100% - 28px));max-width:none;overflow:hidden}
#profileDialog .profile-card{width:100%;max-height:min(850px,calc(100vh - 32px));overflow-x:hidden;overflow-y:auto}
@media(max-width:720px){#profileDialog{width:calc(100% - 12px);margin:6px}#profileDialog .profile-card{max-height:calc(100dvh - 12px)}}

/* Invitation gate after a first successful social authorization */
.social-invite-form{text-align:center}
.social-invite-form .field{text-align:left}
.social-invite-icon{width:58px;height:58px;margin:0 auto 2px;display:grid;place-items:center;border-radius:19px;color:#fff;background:#1e7fe8;box-shadow:0 12px 28px rgba(30,127,232,.22);font-size:15px;font-weight:800}
.social-invite-icon.is-wechat{background:#1aad19;box-shadow:0 12px 28px rgba(26,173,25,.2)}
.social-invite-form .muted{line-height:1.75}
.social-invite-form input{text-align:center;text-transform:uppercase;letter-spacing:.26em;font:700 19px/1 ui-monospace,SFMono-Regular,Consolas,monospace}
.social-invite-form .button{margin-top:0}
