:root { font-family: -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',Arial,sans-serif; color: #342d43; }
* { box-sizing: border-box; }
html,body { margin: 0; min-height: 100%; }
button,input,textarea { font: inherit; }
button { cursor: pointer; }
.public-page { min-height: 100dvh; position: relative; overflow: hidden; background: linear-gradient(155deg,#eee4fb 0%,#f7e6e9 48%,#e8ddfb 100%); }
.public-page::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 10% 5%,#ffffff96,transparent 37%),radial-gradient(circle at 86% 90%,#c4b4f399,transparent 42%); pointer-events: none; }
.photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.84); opacity: .5; }
.photo-bg::after { content: ''; position: absolute; inset: 0; background: #efe6f1a6; }
.ambient { position: absolute; width: 310px; height: 310px; border-radius: 50%; filter: blur(62px); opacity: .32; pointer-events: none; }
.ambient.one { top: -140px; left: -120px; background: #d6a8fd; }
.ambient.two { bottom: -160px; right: -120px; background: #fac0ca; }
.profile-shell { position: relative; width: min(100% - 34px, 520px); margin: auto; padding: 35px 0 31px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid #ffffffa6; border-radius: 100px; background: #ffffff70; color: #816c9f; font-weight: 700; font-size: 10px; letter-spacing: .17em; box-shadow: 0 5px 20px #856ca912; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #b88cdd; }
.profile-head { padding: 31px 15px 21px; }
.avatar-frame { width: 116px; height: 116px; margin: auto; border-radius: 50%; display: grid; place-items: center; padding: 5px; background: linear-gradient(140deg,#fff,#cfaaee); box-shadow: 0 16px 38px #72538933,0 0 0 6px #ffffff5e; }
.avatar-frame img,.avatar-frame span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: linear-gradient(145deg,#fff5fa,#ded1ef); display: grid; place-items: center; color: #9876af; font-size: 56px; }
.profile-head h1 { margin: 21px 0 5px; font-size: clamp(25px,6vw,32px); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.handle { margin: 0; color: #8d77a7; font-size: 13px; font-weight: 700; }
.bio { max-width: 380px; margin: 17px auto 0; color: #716781; font-size: 14px; line-height: 1.8; }
.announcement { display: flex; align-items: center; justify-content: center; gap: 7px; background: #ffffff81; border: 1px solid #ffffffb8; border-radius: 12px; padding: 10px 16px; margin: 0 0 16px; color: #6b5984; box-shadow: 0 8px 22px #7862960e; font-size: 13px; }
.announcement span { color: #a278c9; font-size: 18px; }
.link-list { display: grid; gap: 13px; }
.link-card { display: flex; align-items: center; min-height: 76px; padding: 13px 17px; gap: 15px; text-align: left; text-decoration: none; background: #ffffffda; border: 1px solid #ffffff; border-radius: 18px; box-shadow: 0 8px 24px #66518416, inset 0 1px 0 #fff; color: #3f3450; transition: transform .2s,box-shadow .2s; }
a.link-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #66518428; }
.link-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg,#f6ebff,#fbeef2); color: #9a74bd; font-size: 23px; }
.link-icon img { width: 36px; height: 36px; object-fit: contain; }
.link-copy { min-width: 0; display: grid; gap: 3px; flex: 1; }
.link-copy strong { font-size: 15px; font-weight: 700; }
.link-copy small { color: #91899a; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-arrow { color: #ab9bbb; font-size: 20px; }
.copy-card { width: 100%; cursor: pointer; font: inherit; }
.copy-card .link-arrow { font-size: 12px; font-weight: 700; white-space: nowrap; }
.copy-card .link-copy small { white-space: normal; overflow-wrap: anywhere; }
.copy-toast { position: fixed; z-index: 5; left: 50%; bottom: 25px; transform: translate(-50%,15px); padding: 10px 18px; border-radius: 999px; background: #3f3450; color: white; box-shadow: 0 10px 30px #3f34503b; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; font-size: 13px; }
.copy-toast.show { opacity: 1; transform: translate(-50%,0); }
.danmaku-layer { position: fixed; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.danmaku-item { position: absolute; left: 100%; display: inline-block; width: max-content; max-width: 75vw; padding: 7px 13px; border-radius: 999px; border: 1px solid #ffffffdd; background: #ffffffdf; color: #6c527f; box-shadow: 0 5px 16px #67507820; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: danmaku-fly linear forwards; }
.danmaku-item.own { background: #e9d8f4ee; color: #553875; border-color: #d2b7e8; }
@keyframes danmaku-fly { to { transform: translateX(calc(-100vw - 100%)); } }
.danmaku-form { margin: 23px auto 0; padding: 13px; max-width: 380px; border: 1px solid #ffffffb8; border-radius: 15px; background: #ffffff8a; text-align: left; }
.danmaku-form label { display: block; margin: 0 0 8px; color: #6b5984; font-size: 13px; font-weight: 700; }
.danmaku-form label small { margin-left: 5px; color: #a18eae; font-size: 11px; font-weight: 400; }
.danmaku-form>div { display: flex; gap: 8px; }
.danmaku-form input { min-width: 0; flex: 1; padding: 9px 11px; border: 1px solid #dfd2ea; border-radius: 9px; background: #fff; color: #42344f; outline: none; font-size: 13px; }
.danmaku-form button { flex: 0 0 auto; padding: 9px 14px; border: 0; border-radius: 9px; background: #8660ad; color: white; font-size: 13px; font-weight: 700; }
.danmaku-form button:disabled { opacity: .55; cursor: wait; }
.danmaku-status:not(:empty) { display: block; margin-top: 7px; color: #8b72a0; font-size: 11px; }
.profile-shell footer { padding: 27px 0 5px; color: #9a88ab; font-size: 12px; }
.profile-shell footer span { color: #b79dcb; margin: 0 5px; }
.admin-page { min-height: 100dvh; background: #f7f5f9; color: #392f47; }
.admin-shell { width: min(100% - 32px, 900px); margin: auto; padding: 35px 0 80px; }
.overline { margin: 0 0 7px; color: #9d80b5; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.muted { color: #82798c; font-size: 14px; line-height: 1.6; }
.login-card { width: min(100%,420px); margin: max(8vh,35px) auto; background: white; padding: 32px; border: 1px solid #eee6f2; border-radius: 22px; box-shadow: 0 20px 55px #67507814; }
.login-card h1 { margin: 0; font-size: 27px; }
.login-mark { font-size: 42px; color: #af82ca; margin-bottom: 16px; }
.login-card form { margin-top: 26px; }
.admin-page label { display: block; color: #594d67; font-size: 13px; font-weight: 700; margin: 0 0 16px; }
.admin-page input:not([type=checkbox]):not([type=file]):not([type=hidden]), .admin-page textarea { display: block; width: 100%; padding: 12px 13px; margin-top: 7px; color: #392f47; background: #fff; border: 1px solid #e2dae9; border-radius: 10px; outline: none; font-weight: 400; }
.admin-page input:focus,.admin-page textarea:focus { border-color: #ac80cd!important; box-shadow: 0 0 0 3px #ae80d020; }
.admin-page textarea { resize: vertical; min-height: 88px; }
.admin-page input[type=file] { display: block; margin-top: 10px; width: 100%; font-weight: 400; color: #70667b; }
.button-primary { background: #8660ad; border: 1px solid #8660ad; color: white; padding: 12px 19px; border-radius: 10px; font-weight: 700; }
.button-primary:hover { background: #76519e; }
.login-card .button-primary { width: 100%; }
.back-link { display: inline-block; margin-top: 18px; color: #8c72a3; text-decoration: none; font-size: 13px; }
.admin-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.admin-header h1 { margin: 0; font-size: 28px; }
.admin-header .muted { margin: 6px 0 0; }
.header-actions { display: flex; gap: 14px; align-items: center; }
.header-actions a,.header-actions button { color: #806397; background: none; border: none; text-decoration: none; font-size: 13px; font-weight: 700; }
.edit-panel { background: white; border: 1px solid #eee7f1; border-radius: 19px; padding: 25px; margin-bottom: 17px; box-shadow: 0 9px 30px #6651840a; }
.panel-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 25px; }
.panel-heading>span { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #f3eafa; color: #956db7; font-size: 12px; font-weight: 700; }
.panel-heading h2 { font-size: 18px; margin: 1px 0 2px; }
.panel-heading p { color: #918599; margin: 0; font-size: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field-hint { color: #968c9d; font-size: 12px; margin: 0; }
.check { font-weight: 400!important; margin-top: 10px!important; }
.link-editor-row { padding: 18px; margin-bottom: 12px; border: 1px solid #ede6f1; border-radius: 13px; background: #fdfbfe; }
.link-editor-row label:last-child { margin-bottom: 0; }
.link-row-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.link-row-title strong { font-size: 14px; }
.link-row-title button { background: #f3edf7; border: 0; border-radius: 7px; color: #806a92; margin-left: 6px; padding: 5px 9px; font-size: 12px; }
.icon-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.icon-input-wrap { position: relative; display: block; }
.icon-input-wrap .icon-display { padding-right: 55px!important; }
.icon-current { position: absolute; top: 11px; right: 9px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #f4eafa; color: #8660ad; font-size: 20px; pointer-events: none; }
.icon-current img { width: 30px; height: 30px; object-fit: contain; }
.icon-choice { width: 37px; height: 37px; display: grid; place-items: center; background: #fff; border: 1px solid #e4dce9; border-radius: 9px; font-size: 19px; padding: 0; }
.icon-choice:hover, .icon-choice.selected { border-color: #9d72bf; background: #f6eafa; box-shadow: 0 0 0 2px #b28bcc26; }
.icon-choice img { width: 28px; height: 28px; object-fit: contain; }
.button-outline { color: #8660ad; background: #f9f4fc; border: 1px dashed #c8aeda; padding: 11px 15px; border-radius: 10px; font-weight: 700; }
.save-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 0; color: #8e8495; font-size: 13px; }
.alert { padding: 12px 15px; border-radius: 10px; font-size: 13px; margin: 0 0 17px; }
.alert.error { background: #fff0f0; color: #a33847; }
.alert.success { background: #e9f8ef; color: #287c4b; }
.stat-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.stat-summary>div { padding: 16px; border-radius: 12px; background: #f8f3fb; }
.stat-summary strong { display: block; color: #76519e; font-size: 27px; }
.stat-summary span { color: #82798c; font-size: 12px; }
.stat-card { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-top: 1px solid #eee7f1; color: #594d67; font-size: 13px; }
.stat-card span:last-child { color: #82798c; white-space: nowrap; }
.stats-date-form { display: flex; align-items: end; gap: 10px; margin-bottom: 16px; }
.stats-date-form label { margin: 0; }
.stats-date-form input[type=date] { min-width: 180px; }
.stats-date-form a { color: #806397; font-size: 13px; padding-bottom: 12px; }
.stats-subheading { margin: 18px 0 10px; color: #594d67; font-size: 14px; }
.danmaku-stat-row { display: flex; gap: 12px; padding: 10px 2px; border-top: 1px solid #eee7f1; color: #594d67; font-size: 13px; overflow-wrap: anywhere; }
.danmaku-stat-row time { flex: 0 0 auto; color: #9787a2; font-size: 12px; }
.danmaku-pagination { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 15px 0; color: #82798c; font-size: 13px; }
.danmaku-pagination a { color: #806397; text-decoration: none; font-weight: 700; }
.icon-upload-grid { align-items: end; }
.icon-upload-hint { margin: -4px 0 15px; }
.icon-upload-existing { display: flex; align-items: center; gap: 12px; margin: -2px 0 12px; }
.icon-upload-existing img { width: 38px; height: 38px; object-fit: contain; border-radius: 9px; background: #f3eafa; }
.icon-upload-existing .check { margin: 0!important; }
@media(max-width:620px) { .profile-shell { padding-top: 25px; } .admin-header,.save-bar { align-items: stretch; flex-direction: column; } .field-grid { grid-template-columns: 1fr; gap: 0; } .edit-panel { padding: 19px; } .login-card { padding: 26px 22px; } }
