:root {
    --green-50: #ecfdf5;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --surface: #ffffff;
    --page: #f6f8fb;
    --line: #e8eef5;
    --shadow: 0 10px 30px rgba(15, 23, 42, .05);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, .16);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(16, 185, 129, .10), transparent 60%),
        radial-gradient(800px 420px at 92% 4%, rgba(59, 130, 246, .08), transparent 62%),
        var(--page);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(16, 185, 129, .22);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.site-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 20px rgba(5, 150, 105, .28);
}

.site-logo svg {
    width: 22px;
    height: 22px;
}

.site-brand-text {
    min-width: 0;
}

.site-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.site-slogan {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    color: var(--slate-400);
    letter-spacing: .04em;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 500;
    transition: .16s;
}

.site-nav-link svg {
    width: 16px;
    height: 16px;
    opacity: .8;
}

.site-nav-link:hover {
    color: var(--green-700);
    background: var(--green-50);
}

.site-nav-link.active {
    color: var(--green-700);
    font-weight: 600;
    background: var(--green-50);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 15px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: .16s ease;
    background: #fff;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #12b981, #059669);
    border-color: #059669;
    box-shadow: 0 6px 16px rgba(5, 150, 105, .22);
}

.btn-primary:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--slate-700);
    border-color: var(--slate-200);
    background: #fff;
}

.btn-ghost:hover {
    border-color: var(--green-200);
    color: var(--green-700);
    background: var(--green-50);
}

.btn-soft {
    color: var(--green-700);
    background: var(--green-50);
    border-color: var(--green-100);
}

.btn-soft:hover {
    background: var(--green-100);
}

.btn-danger {
    color: #be123c;
    background: #fff1f2;
    border-color: #fecdd3;
}

.btn-danger:hover {
    background: #ffe4e6;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-lg {
    height: 52px;
    padding: 0 22px;
    font-size: 15px;
    border-radius: 12px;
}

/* ------------------------------------------------------------------ */
/* Notice                                                             */
/* ------------------------------------------------------------------ */

.notice-bar {
    margin: 18px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #fde68a;
    background: linear-gradient(90deg, #fffbeb, #fffdf5);
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
}

.notice-bar svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
}

.notice-text {
    flex: 1;
    min-width: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.notice-close {
    border: 0;
    background: transparent;
    color: #b45309;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
}

.notice-close:hover {
    background: rgba(180, 83, 9, .10);
}

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */

.hero {
    padding: 42px 0 8px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--green-200);
    background: rgba(236, 253, 245, .88);
    color: var(--green-700);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

.hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -.035em;
}

.hero h1 .grad {
    background: linear-gradient(100deg, #047857 0%, #10b981 52%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 700px;
    margin: 0 auto;
    color: var(--slate-500);
    font-size: 14.5px;
    line-height: 1.7;
}

.hero-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 26px;
    color: var(--slate-500);
    font-size: 12.5px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta svg {
    width: 15px;
    height: 15px;
    color: var(--green-600);
}

.hero-meta b {
    color: var(--green-700);
    font-weight: 800;
}

/* ------------------------------------------------------------------ */
/* Panels                                                             */
/* ------------------------------------------------------------------ */

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #f4f7fb;
}

.panel-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.panel-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--green-50);
    color: var(--green-700);
    flex: 0 0 34px;
}

.panel-icon svg {
    width: 18px;
    height: 18px;
}

.panel-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.panel-sub {
    margin: 1px 0 0;
    font-size: 11.5px;
    color: var(--slate-400);
}

.panel-body {
    padding: 20px 22px 22px;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 18px;
    align-items: start;
    margin-top: 24px;
}

.records-wrap {
    margin-top: 18px;
}

/* ------------------------------------------------------------------ */
/* Parse panel                                                        */
/* ------------------------------------------------------------------ */

.provider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.provider-label span {
    font-size: 12.5px;
    color: var(--slate-500);
    font-weight: 500;
}

.provider-label small {
    color: var(--slate-400);
    font-size: 11.5px;
}

.provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.provider-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--slate-200);
    background: #fff;
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 500;
    transition: .16s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.provider-chip:hover {
    border-color: var(--green-200);
    background: #fbfefd;
}

.provider-chip.active {
    border-color: #6ee7b7;
    background: var(--green-50);
    color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}

.provider-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: -.02em;
    flex: 0 0 22px;
}

.parse-form {
    margin-top: 18px;
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-shell {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #fbfdff;
    transition: .16s;
}

.input-shell:focus-within {
    border-color: var(--green-400);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
}

.input-shell svg {
    width: 18px;
    height: 18px;
    color: var(--slate-400);
    flex: 0 0 18px;
}

.input-shell input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.input-shell input::placeholder {
    color: var(--slate-400);
}

.passcode-shell {
    flex: 0 0 140px;
    width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 12px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #fbfdff;
    transition: .16s;
}

.passcode-shell:focus-within {
    border-color: var(--green-400);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
}

.passcode-shell svg {
    width: 16px;
    height: 16px;
    color: var(--slate-400);
    flex: 0 0 16px;
}

.passcode-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13.5px;
    letter-spacing: .04em;
}

.parse-btn {
    flex: 0 0 128px;
    width: 128px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #12b981, #059669);
    box-shadow: 0 10px 24px rgba(5, 150, 105, .24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: .16s;
}

.parse-btn svg {
    width: 18px;
    height: 18px;
}

.parse-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(5, 150, 105, .28);
}

.parse-btn:active {
    transform: translateY(0);
}

.parse-btn:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.parse-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--slate-400);
}

.parse-hint .hint-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.parse-hint svg {
    width: 14px;
    height: 14px;
    color: var(--green-600);
    flex: 0 0 14px;
}

.parse-hint a {
    color: var(--green-700);
    font-weight: 600;
    white-space: nowrap;
}

.feature-strip {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--slate-200);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.feature-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--slate-100);
    color: var(--slate-600);
    display: grid;
    place-items: center;
    flex: 0 0 28px;
}

.feature-ico svg {
    width: 15px;
    height: 15px;
}

.feature-item b {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-700);
    line-height: 1.4;
}

.feature-item span {
    display: block;
    font-size: 11px;
    color: var(--slate-400);
    line-height: 1.45;
}

/* ------------------------------------------------------------------ */
/* Quota panel                                                        */
/* ------------------------------------------------------------------ */

.quota-body {
    padding: 16px 18px 18px;
}

.quota-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.quota-stat {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 11px;
    background: linear-gradient(180deg, #fbfdfe, #f5f9f8);
    border: 1px solid #edf3f0;
}

.quota-stat .q-label {
    font-size: 10.5px;
    color: var(--slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quota-stat .q-value {
    margin-top: 2px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--green-700);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: -.03em;
}

.quota-stat .q-value small {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--slate-400);
    margin-left: 2px;
    letter-spacing: 0;
}

.quota-stat .q-foot {
    margin-top: 2px;
    font-size: 10px;
    color: var(--slate-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quota-progress {
    margin-top: 14px;
}

.quota-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--slate-500);
}

.quota-progress-head b {
    color: var(--slate-700);
    font-variant-numeric: tabular-nums;
}

.progress-track {
    margin-top: 6px;
    height: 7px;
    border-radius: 99px;
    background: #eef2f7;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #34d399, #059669);
    transition: width .35s ease;
}

.quota-note {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 11px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 11.5px;
    color: var(--slate-500);
    line-height: 1.6;
}

.quota-note strong {
    color: var(--slate-700);
    font-weight: 600;
}

.quota-link {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--slate-500);
}

.quota-link a {
    color: var(--green-700);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.quota-link svg {
    width: 13px;
    height: 13px;
}

.support-card {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--green-100);
    background: linear-gradient(160deg, #f0fdf9, #ecfdf5 60%, #ffffff);
    box-shadow: var(--shadow);
}

.support-card b {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--green-700);
}

.support-card b svg {
    width: 15px;
    height: 15px;
}

.support-card p {
    margin: 7px 0 0;
    font-size: 11.5px;
    color: var(--slate-500);
    line-height: 1.65;
}

.support-card .qq-btn {
    margin-top: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 9px;
    padding: 8px 12px;
}

.support-card .qq-btn svg {
    width: 14px;
    height: 14px;
}

/* ------------------------------------------------------------------ */
/* Records                                                            */
/* ------------------------------------------------------------------ */

.records-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
}

.data-table th {
    padding: 11px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-500);
    background: #fbfcfe;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

.data-table th:first-child {
    padding-left: 22px;
}

.data-table th:nth-child(1) {
    width: 46%;
}

.data-table th:nth-child(2) {
    width: 12%;
}

.data-table th:nth-child(3) {
    width: 20%;
}

.data-table th:nth-child(4) {
    width: 22%;
}

.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f4f7fb;
    font-size: 13px;
    vertical-align: middle;
}

.data-table td:first-child {
    padding-left: 22px;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fbfdfc;
}

.res-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.res-mark {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.02em;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .12);
}

.res-title {
    min-width: 0;
    flex: 1;
}

.res-title > b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.res-title > span {
    display: block;
    margin-top: 1px;
    font-size: 10.5px;
    color: var(--slate-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.demo-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 5px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 9.5px;
    font-weight: 600;
    margin-left: 0;
    margin-right: 5px;
    vertical-align: 1px;
    letter-spacing: .02em;
}

.res-size {
    color: var(--slate-600);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.res-time {
    color: var(--slate-500);
    font-size: 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.row-actions .btn {
    height: 30px;
    padding: 0 9px;
    font-size: 11.5px;
    border-radius: 7px;
    gap: 4px;
}

.row-actions svg {
    width: 13px;
    height: 13px;
}

.empty-state {
    padding: 46px 20px 52px;
    text-align: center;
}

.empty-ico {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--green-600);
    background: var(--green-50);
    border: 1px solid var(--green-100);
}

.empty-ico svg {
    width: 26px;
    height: 26px;
}

.empty-state b {
    display: block;
    font-size: 14px;
    color: var(--slate-700);
    font-weight: 600;
}

.empty-state p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--slate-400);
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.site-footer {
    margin-top: 46px;
    padding: 26px 0 40px;
    border-top: 1px solid rgba(15, 23, 42, .06);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--slate-400);
    font-size: 12px;
}

.footer-inner .footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-500);
    font-weight: 600;
}

.footer-brand svg {
    width: 16px;
    height: 16px;
    color: var(--green-600);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a:hover {
    color: var(--green-700);
}

/* ------------------------------------------------------------------ */
/* Modal                                                              */
/* ------------------------------------------------------------------ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .34);
    overflow: hidden;
    transform: translateY(12px) scale(.985);
    transition: transform .22s ease;
}

.modal-backdrop.show .modal {
    transform: translateY(0) scale(1);
}

.modal-sm {
    width: min(440px, 100%);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.modal-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--slate-400);
    line-height: 1.55;
    word-break: break-all;
}

.modal-close {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 0;
    background: var(--slate-100);
    color: var(--slate-500);
    display: grid;
    place-items: center;
}

.modal-close:hover {
    background: #e9eef5;
    color: var(--slate-800);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fbfcfe;
    flex-wrap: wrap;
}

.modal-foot-info {
    font-size: 12px;
    color: var(--slate-500);
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.link-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--green-700);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.link-tool-btn svg {
    width: 13px;
    height: 13px;
}

.link-tool-btn:hover {
    color: var(--green-600);
    text-decoration: underline;
}

.downloader-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 11px;
    margin-bottom: 13px;
    border: 1px solid #d9f0e5;
    border-radius: 10px;
    background: #f3fbf7;
    color: #3f6a58;
    font-size: 11.5px;
    line-height: 1.65;
}

.downloader-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--green-600);
}

.modal-foot-info.is-error {
    color: #b45309;
    font-weight: 600;
}

.modal-foot-info b {
    color: var(--green-700);
    font-variant-numeric: tabular-nums;
}

.modal-foot-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

/* File list in modal */

.file-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--slate-500);
}

.check-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--slate-600);
}

.check-all input,
.file-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--green-600);
    cursor: pointer;
}

.file-list {
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-bottom: 1px solid #f4f7fb;
    transition: .14s;
}

.file-row:last-child {
    border-bottom: 0;
}

.file-row:hover,
.file-row.selected {
    background: #f8fdfa;
}

.file-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--slate-100);
    color: var(--slate-500);
    display: grid;
    place-items: center;
    flex: 0 0 30px;
}

.file-ico svg {
    width: 16px;
    height: 16px;
}

.file-ico.video {
    background: #eff6ff;
    color: #2563eb;
}

.file-ico.zip {
    background: #fff7ed;
    color: #ea580c;
}

.file-ico.pdf {
    background: #fef2f2;
    color: #dc2626;
}

.file-ico.text {
    background: #f5f3ff;
    color: #7c3aed;
}

.file-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--slate-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--slate-400);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.file-dir-tip {
    font-size: 10px;
    color: var(--slate-400);
    background: var(--slate-100);
    border-radius: 5px;
    padding: 1px 5px;
}

/* Link list */

.link-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eef2f7;
    border-radius: 11px;
    background: #fbfdfe;
}

.link-item .link-meta {
    flex: 1;
    min-width: 0;
}

.link-item .link-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-item .link-url {
    margin-top: 2px;
    font-size: 10.5px;
    color: var(--slate-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.link-item .link-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.link-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    font-size: 11.5px;
}

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-600);
}

.form-field .input-shell {
    height: 48px;
}

.form-field .input-shell input {
    font-size: 13.5px;
}

.form-tip {
    margin-top: 7px;
    font-size: 11.5px;
    color: var(--slate-400);
    line-height: 1.6;
}

.form-tip a {
    color: var(--green-700);
    font-weight: 600;
}

textarea {
    width: 100%;
    min-height: 132px;
    resize: vertical;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dfe6ef;
    background: #fbfdff;
    outline: 0;
    font-size: 13px;
    line-height: 1.7;
    transition: .16s;
    font-family: inherit;
}

textarea:focus {
    border-color: var(--green-400);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
}

textarea::placeholder {
    color: var(--slate-400);
}

.batch-results {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.batch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #eef2f7;
    background: #fbfdfe;
    font-size: 12px;
}

.batch-item.ok .b-ico {
    color: var(--green-700);
    background: var(--green-50);
}

.batch-item.fail .b-ico {
    color: #be123c;
    background: #fff1f2;
}

.b-ico {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
}

.b-ico svg {
    width: 14px;
    height: 14px;
}

.batch-item .b-body {
    flex: 1;
    min-width: 0;
}

.batch-item .b-title {
    font-weight: 600;
    color: var(--slate-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-item .b-sub {
    font-size: 10.5px;
    color: var(--slate-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* QQ modal */

.qq-card {
    text-align: center;
    padding: 6px 4px 10px;
}

.qq-qrcode {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    background: #fff;
    padding: 6px;
}

.qq-placeholder {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px dashed var(--slate-300);
    display: grid;
    place-items: center;
    color: var(--slate-400);
    font-size: 12px;
    background: #fbfcfe;
}

.qq-card p {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--slate-500);
}

/* Toast */

.toast-wrap {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
    width: min(92vw, 460px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    font-size: 12.5px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .26);
    opacity: 0;
    transform: translateY(-8px);
    transition: .22s ease;
    max-width: 100%;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.toast.ok svg {
    color: #34d399;
}

.toast.err svg {
    color: #fb7185;
}

.toast span {
    word-break: break-word;
}

/* Skeleton / loading */

.loading-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--slate-500);
}

.spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(5, 150, 105, .25);
    border-top-color: var(--green-600);
    animation: spin .7s linear infinite;
    flex: 0 0 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-nav {
        display: none;
    }

    .quota-panel {
        order: 2;
    }

    .support-card {
        display: none;
    }
}

@media (max-width: 720px) {
    .site-header-inner {
        height: 60px;
        padding: 0 14px;
        gap: 10px;
    }

    .site-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .site-title {
        font-size: 16px;
    }

    .site-slogan {
        display: none;
    }

    .site-header-actions .btn span {
        display: none;
    }

    .site-header-actions .btn {
        width: 38px;
        padding: 0;
    }

    .site-header-actions .btn svg {
        width: 17px;
        height: 17px;
    }

    .container {
        padding: 0 14px;
    }

    .notice-bar {
        margin-top: 12px;
        font-size: 12px;
        padding: 10px 11px;
    }

    .hero {
        padding: 28px 0 4px;
    }

    .hero h1 {
        font-size: 27px;
        margin: 14px 0 9px;
    }

    .hero-sub {
        font-size: 13px;
    }

    .hero-meta {
        gap: 6px 14px;
        font-size: 11.5px;
        margin-top: 14px;
    }

    .home-grid {
        margin-top: 18px;
        gap: 14px;
    }

    .panel {
        border-radius: 15px;
    }

    .panel-head {
        padding: 14px 16px;
    }

    .panel-body {
        padding: 16px;
    }

    .panel-title {
        font-size: 14.5px;
    }

    .provider-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .provider-chip {
        justify-content: center;
        padding: 6px 4px;
        gap: 5px;
        font-size: 12px;
        border-radius: 8px;
    }

    .provider-mark {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        font-size: 9px;
        border-radius: 5px;
    }

    .input-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .input-shell {
        flex: 1 1 100%;
        height: 48px;
    }

    .passcode-shell {
        flex: 1 1 calc(50% - 4px);
        width: auto;
        height: 46px;
    }

    .parse-btn {
        flex: 1 1 calc(50% - 4px);
        width: auto;
        height: 46px;
        font-size: 14px;
    }

    .parse-hint {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .feature-strip {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 16px;
        padding-top: 14px;
    }

    .quota-stats {
        gap: 6px;
    }

    .quota-stat {
        padding: 8px 8px;
    }

    .quota-stat .q-value {
        font-size: 19px;
    }

    .records-head-actions .btn span {
        display: none;
    }

    .records-head-actions .btn {
        width: 34px;
        padding: 0;
    }

    /* 资源列表在移动端改为上下两行的卡片式布局，避免表格横向溢出 */
    .data-table {
        display: block;
        min-width: 0;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody {
        display: block;
    }

    .data-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 10px;
        row-gap: 8px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--slate-100);
    }

    .data-table tr:last-child {
        border-bottom: 0;
    }

    .data-table td {
        display: block;
        border: 0;
        padding: 0;
    }

    .data-table td:nth-child(1) {
        flex: 1 1 100%;
        min-width: 0;
    }

    .data-table td:nth-child(2),
    .data-table td:nth-child(3) {
        display: none;
    }

    .data-table td:nth-child(4),
    .data-table td[colspan] {
        flex: 0 0 100%;
    }

    .res-title > b,
    .res-title > span {
        max-width: 100%;
    }

    .row-actions {
        justify-content: flex-end;
    }

    .row-actions .btn {
        width: auto;
        padding: 0 10px;
    }

    .modal-backdrop {
        padding: 10px;
        align-items: flex-end;
    }

    .modal {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .modal-head {
        padding: 16px 16px 13px;
    }

    .modal-body {
        padding: 14px 16px;
    }

    .modal-foot {
        padding: 12px 16px 15px;
    }

    .modal-foot-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .file-row {
        padding: 10px;
        gap: 9px;
    }

    .file-name {
        font-size: 12px;
    }

    .link-item {
        flex-wrap: wrap;
    }

    .link-item .link-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .footer-inner {
        padding: 0 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ------------------------------------------------------------------ */
/* 文档页                                                             */
/* ------------------------------------------------------------------ */

.doc-page {
    padding-top: 18px;
    padding-bottom: 10px;
}

.doc-hero {
    padding: 26px 0 22px;
    text-align: center;
}

.doc-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 900;
    letter-spacing: -.03em;
}

.doc-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--slate-500);
    font-size: 13.5px;
    line-height: 1.7;
}

.doc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
}

.doc-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.doc-card .panel-body {
    color: var(--slate-600);
    font-size: 13.5px;
    line-height: 1.8;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-no {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    color: var(--green-700);
    font-weight: 800;
    font-size: 13px;
}

.step-item b {
    display: block;
    color: var(--slate-800);
    font-size: 13.5px;
    margin-bottom: 3px;
}

.step-item p {
    margin: 0;
    font-size: 12.5px;
    color: var(--slate-500);
    line-height: 1.7;
}

.tip-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 11px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 12.5px;
    color: var(--slate-600);
    line-height: 1.7;
}

.tip-box svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: var(--green-600);
    margin-top: 1px;
}

.tip-box.success {
    background: var(--green-50);
    border-color: var(--green-100);
    color: var(--green-700);
}

.tip-box.success svg {
    color: var(--green-700);
}

.tip-box.warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.tip-box.warn svg {
    color: #d97706;
}

.doc-ol,
.doc-list {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--slate-600);
    font-size: 12.5px;
    line-height: 1.9;
}

.doc-list li,
.doc-ol li {
    margin-bottom: 4px;
}

.code-block {
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: 11px;
    background: #0f172a;
    color: #d1fae5;
    font-size: 12px;
    line-height: 1.8;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.inline-code {
    padding: 1px 6px;
    border-radius: 5px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--slate-700);
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.download-item {
    padding: 12px 13px;
    border-radius: 11px;
    border: 1px solid #eef2f7;
    background: #fbfcfe;
}

.download-item b {
    display: block;
    font-size: 12.5px;
    color: var(--slate-800);
    margin-bottom: 4px;
}

.download-item p {
    margin: 0;
    font-size: 11.5px;
    color: var(--slate-500);
    line-height: 1.7;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid #eef2f7;
    border-radius: 11px;
    overflow: hidden;
    background: #fbfcfe;
}

.faq-item summary {
    padding: 11px 14px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-700);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+";
    display: inline-block;
    width: 16px;
    color: var(--green-600);
    font-weight: 800;
}

.faq-item[open] summary::before {
    content: "–";
}

.faq-item p {
    margin: 0;
    padding: 0 14px 12px 30px;
    font-size: 12px;
    color: var(--slate-500);
    line-height: 1.75;
}

.timeline {
    position: relative;
    padding-left: 18px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--green-100);
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -17px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: 0 0 0 3px var(--green-50);
}

.timeline-item b {
    font-size: 12.5px;
    color: var(--slate-800);
}

.timeline-item p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--slate-500);
    line-height: 1.7;
}

.doc-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 86px;
}

.side-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-800);
}

.side-provider-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.side-provider {
    display: flex;
    align-items: center;
    gap: 9px;
}

.side-provider > div {
    min-width: 0;
}

.side-provider b {
    display: block;
    font-size: 12px;
    color: var(--slate-700);
}

.side-provider span {
    display: block;
    font-size: 10px;
    color: var(--slate-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-toc a {
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 12px;
    color: var(--slate-600);
}

.side-toc a:hover {
    background: var(--green-50);
    color: var(--green-700);
}

@media (max-width: 1024px) {
    .doc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .doc-side {
        position: static;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .doc-card .panel-body {
        font-size: 13px;
    }

    .doc-hero {
        padding: 20px 0 16px;
    }
}

