:root { --editor-scale: 1; --editor-font: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; --editor-columns: 3; --editor-gap: 24px; --editor-radius: 22px; }
body { font-family: var(--editor-font); }
.button-primary { background: linear-gradient(120deg,var(--fire),color-mix(in srgb,var(--fire),#8f39ff 45%)); }
.cta-inner { background: linear-gradient(120deg,color-mix(in srgb,var(--fire),#000 18%),var(--fire),color-mix(in srgb,var(--fire),#8f39ff 40%)); }
.hero h1 { font-family: var(--editor-font); }
.hero h1 { font-size: calc(clamp(68px, 8vw, 126px) * var(--editor-scale)); }
.hero-lead, .about-copy > p { font-size: calc(18px * var(--editor-scale)); }
.section-heading h2, .about-copy h2, .cta h2 { font-size: calc(clamp(44px, 5vw, 78px) * var(--editor-scale)); }
.works-grid { grid-template-columns: repeat(var(--editor-columns), minmax(0, 1fr)); gap: var(--editor-gap); }
.work-card { grid-column: auto; border-radius: var(--editor-radius); }
.hero.has-custom-cover { background-size: cover; background-position: center; }
.hero.has-custom-cover::before { background: linear-gradient(90deg, rgba(9,7,13,.85), rgba(9,7,13,.25)); }
.hero.has-custom-cover .phoenix-stage { display: none; }
[hidden] { display: none !important; }
.editor-launch { position: fixed; right: 22px; bottom: 22px; z-index: 55; min-height: 50px; padding: 0 22px; border: 1px solid #ffc87980; border-radius: 100px; background: #201421; color: #ffdbad; font-weight: 800; box-shadow: 0 8px 40px #0008; cursor: pointer; }
.editor-launch:hover { background: #352039; }
.editor-launch:focus-visible, .studio button:focus-visible { outline: 2px solid #ffc879; outline-offset: 3px; }
.studio { position: fixed; z-index: 54; top: 100px; right: 16px; bottom: 86px; width: 328px; display: flex; flex-direction: column; border: 1px solid #ffffff20; border-radius: 22px; background: rgba(22,16,29,.98); box-shadow: 0 20px 80px #0009; color: #f8f4f1; font: 13px/1.6 "Microsoft YaHei UI", system-ui, sans-serif; }
.studio-head { padding: 20px 20px 15px; border-bottom: 1px solid #ffffff15; }
.studio-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio h2 { margin: 0; font-size: 19px; }
.studio .save-status { margin: 5px 0 0; color: #aea2b5; font-size: 11px; }
.studio-scroll { overflow: auto; padding: 0 20px 20px; }
.studio details { border-bottom: 1px solid #ffffff12; padding: 15px 0; }
.studio summary { font-weight: 800; cursor: pointer; font-size: 14px; }
.studio details > div { padding-top: 15px; }
.studio label { display: block; margin: 0 0 13px; color: #b8aebe; }
.studio label > span { display: flex; justify-content: space-between; margin-bottom: 6px; }
.studio input:not([type=checkbox]), .studio select { width: 100%; min-height: 36px; padding: 6px 9px; color: #fff; background: #ffffff08; border: 1px solid #ffffff20; border-radius: 8px; }
.studio select option { background: #201725; }
.studio input[type=color] { height: 38px; padding: 3px; cursor: pointer; }
.studio input[type=range] { padding: 0; accent-color: #ff8350; }
.studio input[type=file] { font-size: 11px; }
.studio .studio-tip { margin: 0 0 13px; color: #8f8399; font-size: 11px; }
.studio-row { display: flex; gap: 8px; margin-bottom: 10px; }
.studio-row > * { flex: 1; min-width: 0; }
.studio button { min-height: 34px; padding: 6px 10px; color: #d9cddb; background: #ffffff08; border: 1px solid #ffffff20; border-radius: 8px; font-size: 12px; cursor: pointer; }
.studio button:hover { border-color: #ffb77980; color: white; }
.studio button:disabled { opacity: .35; cursor: default; }
.studio .studio-primary { color: #1c0d0d; background: linear-gradient(120deg,#ffd199,#ff9155); border: 0; font-weight: 800; }
.studio .studio-danger { color: #ff9485; }
.studio .full-button { display: block; width: 100%; margin-top: 10px; }
.studio .section-row { display: flex; align-items: center; gap: 5px; padding: 8px 0; }
.studio .section-row label { flex: 1; margin: 0; color: #ece1ef; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio .section-row button { flex: none; padding: 3px 7px; min-height: 29px; }
.studio-foot { padding: 14px 20px; margin-top: auto; border-top: 1px solid #ffffff15; }
.studio-foot .studio-row { margin: 0; }
.editing [data-edit-id] { outline: 1px dashed #ffc87960; outline-offset: 5px; cursor: text; min-width: 10px; }
.editing [data-edit-id]:hover, .editing [data-edit-id]:focus { outline: 2px solid #ffc879; background-color: #ffac4a0c; }
.editing [data-edit-id].edit-selected { outline: 2px solid #ff8855; }
.editing [data-edit-id] { white-space: pre-wrap; overflow-wrap: anywhere; }
.editing .work-card { cursor: grab; }
.editing .work-card.dragging { opacity: .4; }
.editing .work-card.drag-over { outline: 2px solid #ffc879; }
.work-edit-tools { padding: 10px 14px; display: flex; gap: 7px; border-top: 1px solid #ffffff18; background: #211628; }
.work-edit-tools button { flex: 1; min-height: 32px; color: #ffd6a1; border: 1px solid #ffffff20; border-radius: 8px; background: #ffffff08; cursor: pointer; }
.custom-section { padding-top: 70px; padding-bottom: 70px; }
.custom-section article { padding: clamp(28px,5vw,65px); border: 1px solid var(--line); border-radius: var(--editor-radius); background: var(--card); }
.custom-section h2 { margin: 0 0 22px; font-size: calc(42px * var(--editor-scale)); line-height: 1.25; }
.custom-section p { color: var(--muted); font-size: calc(18px * var(--editor-scale)); white-space: pre-wrap; }
.custom-section img { max-width: 100%; max-height: 520px; border-radius: 16px; object-fit: contain; display: block; margin: 25px auto 0; }
.studio-mobile-note { display: none; }
.edit-work-cover { display: flex; align-items: center; gap: 12px; }
.edit-work-cover img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; }
@media(min-width:1100px) { body.editing { padding-right: 360px; } .editing .topbar { right: 360px; } .editing .hero-content { width: 65%; } .editing .hero h1 { font-size: calc(clamp(60px, 7vw, 95px) * var(--editor-scale)); } .editing .phoenix-stage { right: -20%; } }
@media(max-width:760px) { .hero h1 { font-size: calc(clamp(60px,19vw,92px) * var(--editor-scale)); } .section-heading h2,.about-copy h2,.cta h2 { font-size: calc(44px * var(--editor-scale)); } .works-grid { grid-template-columns: 1fr; } .studio { top: auto; bottom: 82px; right: 10px; width: min(328px,calc(100vw - 20px)); max-height: 48svh; } .studio-head { padding: 12px 16px; } .studio-foot { padding: 10px 16px; } .studio-mobile-note { display: block; font-size: 10px; color: #96899e; margin: 4px 0 0; } .editor-launch { right: 14px; bottom: 18px; } .topbar { gap: 8px; } .brand { max-width: 65%; min-width: 0; } .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .header-actions { flex-shrink: 0; } }
@media(min-width:761px) and (max-width:1050px) { .works-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media print { .studio,.editor-launch,.work-edit-tools { display: none !important; } body.editing { padding: 0; } }
.footer-right { flex-wrap: wrap; }
.footer-right #adminButton { display: inline-block; color: var(--gold); }
.footer-right #footerShare { display: inline-block; }
.admin-panel { width: min(1180px,100%); }
.admin-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.admin-notice { display: flex; flex-direction: column; gap: 5px; padding: 16px 20px; border: 1px solid #ffc87935; border-radius: 14px; background: #ffc87907; font-size: 12px; color: var(--muted); }
.admin-notice strong { color: var(--gold); font-size: 13px; }
.admin-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.admin-stats article { display: flex; flex-direction: column; padding: 20px; background: #ffffff04; border: 1px solid var(--line); border-radius: 16px; }
.admin-stats article > span { color: var(--muted); font-size: 12px; }
.admin-stats strong { font-size: 29px; line-height: 1.4; margin: 9px 0; color: var(--text); }
.admin-stats small { font-size: 10px; color: var(--muted); }
.admin-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.admin-panel h3 { margin: 0 0 15px; font-size: 16px; }
.admin-overview p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 25px; }
.admin-category { display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: 12px; }
.admin-category > span:first-child { color: var(--muted); }
.admin-bar { grid-column: 1/-1; height: 4px; background: #ffffff0c; border-radius: 10px; overflow: hidden; }
.admin-bar i { display: block; height: 100%; border-radius: 10px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 20px; }
.admin-toolbar h3 { margin: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-panel button:not(.modal-close) { border: 1px solid var(--line); border-radius: 9px; background: #ffffff07; color: var(--text); cursor: pointer; padding: 8px 12px; font-size: 12px; }
.admin-panel button:hover { border-color: var(--gold); }
.admin-panel button:disabled { opacity: .5; cursor: wait; }
.admin-panel button[data-admin=upload] { color: var(--gold); border-color: #ffc87950; }
.admin-filters { display: flex; align-items: end; gap: 15px; margin: 0 0 18px; }
.admin-filters label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; }
.admin-filters label:first-child { flex: 1; }
.admin-filters input,.admin-filters select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--card); min-width: 0; width: 100%; }
.admin-filters > span { color: var(--muted); font-size: 11px; padding-bottom: 12px; white-space: nowrap; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.admin-table { border-collapse: collapse; width: 100%; min-width: 720px; text-align: left; font-size: 12px; }
.admin-table th { color: var(--muted); font-weight: 600; background: #ffffff04; }
.admin-table th,.admin-table td { padding: 15px; border-bottom: 1px solid var(--line); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td:first-child { max-width: 250px; overflow-wrap: anywhere; }
.admin-table td strong { font-size: 13px; }
.admin-table td small { display: block; font-size: 10px; margin-top: 5px; color: var(--muted); }
.admin-row-actions { min-width: 230px; }
.admin-row-actions button { margin: 2px; }
.admin-panel .admin-delete { color: #ff9c8e !important; }
.admin-empty { height: 130px; text-align: center; color: var(--muted); }
.admin-muted { color: var(--muted); font-size: 11px; }
.admin-endnote { margin: 18px 0 0; }
.server-viewer [data-open-upload], .server-viewer #editProfileButton, .server-viewer .more-button, .server-viewer .work-edit-tools { display: none !important; }
.auth-panel { width: min(470px,100%); }
.auth-panel > p { color: var(--muted); font-size: 14px; }
.auth-panel .field { margin: 18px 0; }
.auth-panel .auth-error { color: #ff9c8e; min-height: 24px; }
.server-banner { position: fixed; z-index: 53; bottom: 82px; left: 18px; max-width: min(440px,calc(100vw - 36px)); display:flex; flex-direction:column; gap:10px; padding:22px; border:1px solid #ffc87960; border-radius:18px; background:#1d1325; box-shadow:0 12px 50px #0009; font-size:13px; }
.server-banner strong { color:var(--gold);font-size:16px; }
.server-banner span { color:var(--muted); }
.server-banner button,.server-banner a { padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:#ffffff08; color:var(--gold);cursor:pointer; }
.server-import { border:1px solid var(--line);padding:8px 12px;border-radius:9px;font-size:12px;cursor:pointer; }
@media(max-width:760px) { .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .admin-stats article { padding: 14px; } .admin-stats strong { font-size: 24px; } .admin-overview { grid-template-columns: 1fr; padding: 16px; } .admin-filters { flex-wrap: wrap; } .admin-filters label:first-child { flex-basis: 100%; } .admin-panel .modal-header h2 { font-size: 26px; } .footer-right { gap: 16px; } }
