:root {
    --ink: #242036;
    --muted: #756f87;
    --paper: #fffafe;
    --white: #ffffff;
    --pink: #ec5f9b;
    --pink-soft: #fde8f2;
    --violet: #7966cc;
    --cyan: #54b8c8;
    --gold: #e1ae52;
    --line: #eadfeb;
    --shadow: 0 22px 65px rgba(54, 38, 76, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-page { min-height: 100svh; display: grid; grid-template-columns: minmax(440px, 1.16fr) minmax(420px, .84fr); overflow: hidden; }
.character-scene { position: relative; min-height: 680px; overflow: hidden; background: #30233a; }
.character-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: saturate(.86) contrast(1.03); }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 20, 40, .16), rgba(30, 20, 40, .04) 48%, rgba(30, 20, 40, .32)), linear-gradient(0deg, rgba(28, 17, 36, .88), transparent 54%); }
.scene-copy { position: absolute; z-index: 2; left: clamp(34px, 6vw, 92px); right: 36px; bottom: 58px; color: #fff; }
.scene-kicker, .eyebrow, .section-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.7px; }
.scene-kicker { color: #f4b6d1; }
.scene-copy h1 { margin: 12px 0 14px; font-size: clamp(46px, 5.2vw, 76px); line-height: 1.09; font-weight: 700; }
.scene-copy h1 em { color: #ffd0e4; font-style: normal; }
.scene-copy p { margin: 0; color: rgba(255,255,255,.76); font-size: 15px; }
.petal { position: absolute; z-index: 3; width: 13px; height: 8px; border-radius: 80% 20% 70% 30%; background: #ffc5df; box-shadow: 0 0 16px rgba(255, 168, 207, .55); animation: petal-fall 8s linear infinite; }
.petal-a { top: 11%; left: 14%; }
.petal-b { top: -3%; left: 61%; animation-delay: -3s; animation-duration: 10s; }
.petal-c { top: 30%; left: 82%; animation-delay: -6s; animation-duration: 12s; }

.login-panel { min-height: 680px; display: grid; align-items: center; padding: 54px clamp(42px, 6vw, 94px); background: #fffafd; position: relative; }
.login-panel::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: radial-gradient(#dcb8cc 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 58%); pointer-events: none; }
.login-inner { position: relative; width: min(100%, 440px); margin: auto; }
.brand, .app-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 10px 26px rgba(142, 77, 154, .22); }
.brand-icon svg { width: 20px; height: 20px; }
.login-heading { margin: 74px 0 36px; }
.eyebrow { color: var(--pink); }
.login-heading h2 { margin: 8px 0 10px; font-size: 40px; line-height: 1.2; }
.login-heading p { margin: 0; color: var(--muted); font-size: 14px; }
#login-form label { display: block; margin-bottom: 9px; color: #514a62; font-size: 13px; font-weight: 600; }
.password-control { height: 54px; display: flex; align-items: center; gap: 11px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 9px 26px rgba(76, 52, 90, .05); transition: border-color .2s, box-shadow .2s; }
.password-control:focus-within { border-color: #d785ab; box-shadow: 0 0 0 4px rgba(236, 95, 155, .1); }
.password-control > svg { width: 18px; color: #a094ac; }
.password-control input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.password-control input::placeholder { color: #b7afbd; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: #80778e; border: 0; border-radius: 7px; background: transparent; transition: color .2s, background .2s; }
.icon-button:hover { color: var(--pink); background: var(--pink-soft); }
.icon-button svg { width: 18px; height: 18px; }
.form-error { min-height: 22px; margin: 8px 0 4px; color: #c83f63; font-size: 12px; }
.primary-button, .search-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; border: 0; border-radius: 8px; background: linear-gradient(110deg, #df4f8d, #8a68d1); box-shadow: 0 14px 30px rgba(177, 72, 139, .22); font-weight: 700; transition: transform .2s, box-shadow .2s, opacity .2s; }
.primary-button { width: 100%; height: 54px; }
.primary-button:hover, .search-button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(177, 72, 139, .3); }
.primary-button:disabled, .search-button:disabled { opacity: .62; cursor: wait; transform: none; }
.primary-button svg, .search-button svg { width: 18px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; color: #948b9c; font-size: 11px; }
.security-note svg { width: 15px; color: var(--cyan); }

.app-shell { min-height: 100vh; background: #fbf8fc; }
.app-header { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.app-brand strong, .app-brand small { display: block; }
.app-brand strong { font-size: 15px; }
.app-brand small { margin-top: 1px; color: #9f95a6; font-size: 9px; letter-spacing: 1.4px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.secure-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #438a8e; background: #e7f7f6; border-radius: 6px; font-size: 11px; }
.secure-status svg { width: 14px; }
.logout-button { border: 1px solid var(--line); background: #fff; }
.workspace { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 62px; }
.search-band { position: relative; overflow: hidden; padding: 42px clamp(28px, 5vw, 72px) 34px; border: 1px solid #e4d9e7; border-radius: 8px; background: linear-gradient(115deg, #fff 0 56%, #f4eaf6 100%); box-shadow: var(--shadow); }
.search-band::after { content: "✦  ·  ✧  ·  ✦"; position: absolute; right: 18%; top: 24px; color: #d9b7cc; font-size: 13px; letter-spacing: 8px; }
.search-copy { position: relative; z-index: 2; max-width: 660px; }
.search-copy h1 { margin: 7px 0 9px; font-size: clamp(30px, 4vw, 50px); line-height: 1.18; }
.search-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.mini-character { position: absolute; right: clamp(20px, 7vw, 90px); bottom: 0; width: 190px; height: 214px; overflow: hidden; border-radius: 94px 94px 0 0; border: 1px solid rgba(181, 132, 171, .3); border-bottom: 0; background: #eadfeb; }
.mini-character img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 15%; }
.online-dot { position: absolute; right: 28px; bottom: 22px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: #48bcae; }
.search-form { position: relative; z-index: 3; width: min(760px, calc(100% - 200px)); height: 62px; display: flex; align-items: center; gap: 13px; margin-top: 32px; padding: 7px 7px 7px 19px; border: 1px solid #dfd3e3; border-radius: 8px; background: #fff; box-shadow: 0 16px 36px rgba(61, 42, 76, .1); }
.search-form > svg { width: 20px; color: #a68eaa; }
.search-form input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-form input::placeholder { color: #aaa0af; }
.search-button { height: 46px; padding: 0 20px; }
.quick-tips { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 19px; color: #887f91; font-size: 11px; }
.quick-tips span { display: inline-flex; align-items: center; gap: 6px; }
.quick-tips svg { width: 14px; color: var(--violet); }

.results-section { margin-top: 36px; }
.results-toolbar { min-height: 58px; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.section-label { color: var(--pink); }
.results-toolbar h2 { margin: 3px 0 0; font-size: 24px; }
.result-meta { color: var(--muted); font-size: 12px; }
.empty-state { min-height: 330px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #decfe0; border-radius: 8px; background: rgba(255,255,255,.72); }
.empty-state h3 { margin: 16px 0 4px; font-size: 18px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.empty-illustration { position: relative; width: 74px; height: 74px; display: grid; place-items: center; color: var(--pink); border: 1px solid #eac7d8; border-radius: 50%; background: var(--pink-soft); }
.empty-illustration svg { width: 29px; }
.empty-illustration span { position: absolute; right: -3px; top: 4px; width: 13px; height: 13px; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); background: var(--gold); }
.loading-state { min-height: 280px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.loading-state span { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: bounce 1s ease-in-out infinite; }
.loading-state span:nth-child(2) { animation-delay: .15s; background: var(--violet); }
.loading-state span:nth-child(3) { animation-delay: .3s; background: var(--cyan); }
.loading-state p { margin-left: 8px; color: var(--muted); font-size: 12px; }
.table-wrap { overflow: auto; max-height: 610px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 34px rgba(58, 41, 70, .07); scrollbar-color: #d5bfd0 transparent; }
.results-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.results-table th { position: sticky; top: 0; z-index: 3; height: 47px; padding: 0 14px; color: #665d70; border-bottom: 1px solid var(--line); background: #fbf5f9; text-align: left; white-space: nowrap; font-weight: 700; }
.results-table td { height: 48px; max-width: 260px; padding: 8px 14px; overflow: hidden; color: #514a5b; border-bottom: 1px solid #f0e9f1; white-space: nowrap; text-overflow: ellipsis; }
.results-table tbody tr { cursor: pointer; transition: background .15s; }
.results-table tbody tr:hover { background: #fff5fa; }
.results-table tbody tr:last-child td { border-bottom: 0; }
.results-table th:nth-child(11), .results-table td:nth-child(11) { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 #eadfeb; font-weight: 700; color: var(--violet); }
.results-table th:nth-child(11) { z-index: 5; background: #fbf5f9; }
.results-table th:nth-child(13), .results-table td:nth-child(13) { position: sticky; left: 92px; z-index: 2; background: #fff; box-shadow: 1px 0 #eadfeb; font-weight: 700; color: #c44479; }
.results-table th:nth-child(13) { z-index: 5; background: #fbf5f9; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.page-button { height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; color: #645c70; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.page-button:hover:not(:disabled) { color: var(--pink); border-color: #e6b0c8; background: var(--pink-soft); }
.page-button:disabled { opacity: .4; cursor: not-allowed; }
.page-button svg { width: 15px; }
#page-info { min-width: 100px; color: var(--muted); text-align: center; font-size: 12px; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px clamp(20px, 4vw, 64px); color: #948c99; border-top: 1px solid var(--line); font-size: 10px; }

.detail-drawer { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 1fr minmax(390px, 520px); }
.drawer-backdrop { grid-column: 1; grid-row: 1; border: 0; background: rgba(27, 21, 37, .38); backdrop-filter: blur(3px); }
.drawer-panel { grid-column: 2; grid-row: 1; overflow-y: auto; padding: 28px; background: #fffafd; box-shadow: -20px 0 70px rgba(35, 24, 47, .22); animation: drawer-in .24s ease-out; }
.drawer-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.drawer-header h2 { margin: 4px 0 0; font-size: 24px; }
.profile-summary { display: flex; align-items: center; gap: 15px; margin: 27px 0 22px; padding: 18px; border: 1px solid #ead8e4; border-radius: 8px; background: linear-gradient(105deg, #fff, #f9eaf2); }
.profile-avatar { width: 52px; height: 52px; display: grid; place-items: center; flex: none; color: #fff; border-radius: 50%; background: linear-gradient(140deg, var(--pink), var(--violet)); font-size: 19px; font-weight: 700; }
.profile-summary strong, .profile-summary span { display: block; }
.profile-summary strong { font-size: 20px; }
.profile-summary span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.detail-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.detail-item { min-width: 0; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.detail-item:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-item dt { margin-bottom: 5px; color: #9a90a0; font-size: 10px; }
.detail-item dd { margin: 0; overflow-wrap: anywhere; color: #433c4d; font-size: 12px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translateX(-50%); padding: 11px 16px; color: #fff; border-radius: 7px; background: #332c3e; box-shadow: 0 12px 32px rgba(31, 24, 38, .24); font-size: 12px; }

@keyframes petal-fall { from { transform: translate3d(0,-20px,0) rotate(0); } to { transform: translate3d(80px,760px,0) rotate(420deg); } }
@keyframes bounce { 50% { transform: translateY(-7px); } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

@media (max-width: 980px) {
    .login-page { grid-template-columns: .92fr 1.08fr; }
    .mini-character { opacity: .46; right: 20px; }
    .search-form { width: calc(100% - 80px); }
}
@media (max-width: 720px) {
    .login-page { display: block; min-height: 100svh; background: #30233a; }
    .character-scene { min-height: 42svh; }
    .scene-copy { left: 24px; bottom: 28px; }
    .scene-copy h1 { font-size: 36px; }
    .scene-copy p { display: none; }
    .login-panel { min-height: 58svh; padding: 34px 22px 42px; border-radius: 8px 8px 0 0; }
    .login-inner { width: 100%; }
    .login-heading { margin: 38px 0 28px; }
    .login-heading h2 { font-size: 32px; }
    .app-header { height: 64px; padding: 0 14px; }
    .secure-status { display: none; }
    .workspace { width: calc(100% - 24px); padding: 18px 0 40px; }
    .search-band { padding: 28px 18px 24px; }
    .search-copy h1 { font-size: 30px; max-width: 290px; }
    .search-copy p { max-width: 310px; }
    .mini-character { width: 104px; height: 126px; right: 8px; opacity: .3; }
    .search-form { width: 100%; height: auto; min-height: 56px; margin-top: 26px; flex-wrap: wrap; padding: 7px 7px 7px 14px; }
    .search-form input { min-width: 180px; }
    .search-button { width: 100%; }
    .quick-tips { max-width: calc(100% - 48px); gap: 10px 14px; }
    .results-toolbar { align-items: start; }
    .result-meta { max-width: 130px; text-align: right; }
    .table-wrap { max-height: 530px; }
    .detail-drawer { grid-template-columns: 1fr; }
    .drawer-backdrop { grid-column: 1; }
    .drawer-panel { grid-column: 1; width: min(92%, 520px); margin-left: auto; padding: 22px 18px; }
    .app-footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
