* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #f4f7fb;
    color: #111827;
}

a {
    text-decoration: none;
}

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

body.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 45%, #eef2ff 100%);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
    padding: 36px 32px;
    backdrop-filter: blur(8px);
}

.auth-logo {
    font-size: 28px;
    margin-bottom: 12px;
}

.auth-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.auth-subtitle {
    margin: 10px 0 26px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #dbe3f0;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus,
.search-form input[type="text"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-tips {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.03);
}

.btn-secondary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-light:hover {
    background: #f9fafb;
}

.btn-block {
    width: 100%;
}

.flash-list {
    margin-bottom: 16px;
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.flash-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.flash-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.flash-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.flash-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.main-page {
    min-height: 100vh;
    background: #f4f7fb;
}

.app-layout {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-top .logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.86);
    transition: all 0.2s ease;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.content {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

.card {
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.topbar {
    margin-bottom: 20px;
}

.topbar h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #0f172a;
}

.topbar p {
    margin: 0;
    color: #64748b;
}

.topbar-drive {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.drive-top-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.actions {
    display: flex;
    gap: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

.badge-admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-user {
    background: #f3f4f6;
    color: #374151;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    width: 260px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    outline: none;
    background: #fff;
}

.btn-search,
.btn-light {
    height: 42px;
}

.breadcrumb {
    margin-bottom: 18px;
    font-size: 14px;
    color: #6b7280;
    word-break: break-all;
}

.crumb {
    color: #2563eb;
}

.crumb.current {
    color: #111827;
    font-weight: 700;
}

.crumb-sep {
    margin: 0 6px;
    color: #9ca3af;
}

.search-result-tip {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
}

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

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th,
.file-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.file-table th {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.file-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    font-size: 22px;
    width: 26px;
    text-align: center;
}

.file-link {
    color: #111827;
    font-weight: 600;
}

.file-link:hover {
    color: #2563eb;
}

.share-url-row {
    margin-top: 6px;
}

.share-label {
    font-size: 12px;
    color: #6b7280;
}

.share-link {
    font-size: 12px;
    color: #2563eb;
    word-break: break-all;
}

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

.link-btn {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.link-btn:hover {
    text-decoration: underline;
}

.danger-text {
    color: #dc2626;
}

.empty-state {
    padding: 50px 20px;
    text-align: center;
    color: #6b7280;
}

.empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: #6b7280;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    outline: none;
    background: #fff;
}

/* viewer */
.viewer-page {
    margin: 0;
    background: #0f172a;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.viewer-header,
.preview-header,
.share-header {
    min-height: 64px;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.viewer-header-left,
.preview-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.viewer-back {
    color: #93c5fd;
    font-size: 14px;
    text-decoration: none;
}

.viewer-title {
    font-size: 16px;
    font-weight: 700;
}

.viewer-role,
.share-sub {
    font-size: 13px;
    color: #cbd5e1;
}

.viewer-container {
    height: calc(100vh - 64px);
    width: 100%;
}

#editor,
#share-editor {
    width: 100%;
    height: 100%;
}

.viewer-status-wrap {
    margin-left: auto;
}

.save-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 13px;
    color: #fff;
}

.save-status.success {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.save-status.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

.save-status.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

/* preview */
.preview-page,
.share-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fb;
}

.preview-main,
.share-body {
    padding: 20px;
}

.preview-shell,
.share-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.preview-frame {
    width: 100%;
    min-height: calc(100vh - 130px);
    border: none;
    background: #fff;
}

.image-preview-wrap {
    padding: 24px;
    text-align: center;
    background: #f8fafc;
}

.image-preview {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.text-preview {
    margin: 0;
    padding: 24px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
    background: #ffffff;
    min-height: calc(100vh - 140px);
    box-sizing: border-box;
}

.share-meta {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.share-meta h2 {
    margin: 0;
    font-size: 18px;
    color: #111827;
}

.share-meta p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.share-actions,
.preview-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-editor-wrap {
    height: calc(100vh - 180px);
    min-height: 620px;
}

.share-empty {
    padding: 60px 20px;
    text-align: center;
}

.share-empty h2 {
    margin-top: 0;
    color: #111827;
}

.share-empty p {
    color: #6b7280;
}

@media (max-width: 960px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-radius: 0 0 20px 20px;
    }

    .content {
        padding: 18px;
    }
}

@media (max-width: 640px) {
    .auth-wrapper {
        padding: 18px;
    }

    .auth-card {
        padding: 26px 20px;
    }

    .search-form input[type="text"] {
        width: 100%;
    }

    .drive-top-actions {
        width: 100%;
    }

    .search-form {
        width: 100%;
    }

    .actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* =======================
   登录页优化版
======================= */
body.auth-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 30%),
        linear-gradient(135deg, #eef4ff 0%, #f8fbff 48%, #eef2ff 100%);
}

.auth-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.55;
    pointer-events: none;
}

.auth-bg-shape-1 {
    width: 260px;
    height: 260px;
    background: rgba(59, 130, 246, 0.14);
    top: -60px;
    left: -40px;
}

.auth-bg-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(125, 211, 252, 0.16);
    right: -60px;
    bottom: -70px;
}

.auth-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-card.auth-card-modern {
    width: 100%;
    max-width: 460px;
    padding: 34px 32px 30px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 25px 60px rgba(37, 99, 235, 0.10),
        0 10px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.auth-brand-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.auth-logo-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
    color: #1d4ed8;
    flex-shrink: 0;
}

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

.auth-title {
    margin: 0;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.auth-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.auth-flash {
    border-radius: 16px;
    padding: 13px 15px;
    margin-bottom: 18px;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.auth-form {
    margin-top: 4px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 9px;
    color: #1e293b;
    font-weight: 700;
    font-size: 15px;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid #d7dfec;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 15px;
    outline: none;
    transition: all 0.22s ease;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.auth-form input[type="text"]::placeholder,
.auth-form input[type="password"]::placeholder {
    color: #94a3b8;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus {
    border-color: #60a5fa;
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12),
        0 10px 24px rgba(37, 99, 235, 0.06);
}

.auth-submit-btn {
    height: 52px;
    margin-top: 8px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .auth-card.auth-card-modern {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .auth-brand-top {
        gap: 12px;
        margin-bottom: 24px;
    }

    .auth-logo-badge {
        width: 48px;
        height: 48px;
        font-size: 24px;
        border-radius: 14px;
    }

    .auth-title {
        font-size: 26px;
    }

    .auth-subtitle {
        font-size: 13px;
    }
}

/* =======================
   主页高级版优化
======================= */
.dashboard-page {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.10), transparent 26%),
        radial-gradient(circle at bottom left, rgba(191, 219, 254, 0.16), transparent 24%),
        linear-gradient(135deg, #f5f8ff 0%, #f8fbff 52%, #f2f6fd 100%);
}

.app-layout-modern {
    min-height: 100vh;
}

.sidebar-modern {
    width: 260px;
    padding: 22px 16px 18px;
    background:
        linear-gradient(180deg, #101827 0%, #0f172a 100%);
    border-right: 1px solid rgba(255,255,255,0.04);
    box-shadow: 8px 0 30px rgba(2, 6, 23, 0.18);
    position: relative;
}

.logo-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    padding: 6px 2px 10px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.16);
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    letter-spacing: 0.3px;
}

.menu-modern {
    margin-top: 18px;
    gap: 10px;
}

.menu-modern .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 13px 14px;
    color: rgba(255,255,255,0.84);
    font-weight: 600;
    transition: all 0.2s ease;
}

.menu-modern .menu-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateX(2px);
}

.menu-modern .menu-item.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(37,99,235,0.16));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.menu-item-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-user-name {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.sidebar-user-role {
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    margin-top: 4px;
}

.content-modern {
    padding: 28px;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 26px 26px 22px;
    border-radius: 26px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.88);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.05),
        0 6px 18px rgba(37, 99, 235, 0.04);
    backdrop-filter: blur(10px);
}

.dashboard-mini-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0edff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.dashboard-hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.6px;
}

.dashboard-hero p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.dashboard-hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-left: auto;
}

.search-form-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input-wrap {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #d8e2f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.search-icon {
    font-size: 15px;
    opacity: 0.7;
}

.search-form-modern input[type="text"] {
    width: 260px;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    padding: 0;
}

.actions-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-modern {
    border-radius: 26px;
    padding: 24px 22px 10px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.86);
    box-shadow:
        0 18px 44px rgba(15, 23, 42, 0.05),
        0 6px 18px rgba(37, 99, 235, 0.03);
    backdrop-filter: blur(10px);
}

.drive-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.drive-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.drive-card-subtitle {
    font-size: 14px;
    color: #64748b;
}

.breadcrumb-modern {
    margin-bottom: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #e7eef8;
}

.file-table-modern thead th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
    background: #f8fbff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.file-table-modern th,
.file-table-modern td {
    padding: 18px 12px;
    border-bottom: 1px solid #edf2f7;
}

.file-table-modern tbody tr {
    transition: all 0.18s ease;
}

.file-table-modern tbody tr:hover {
    background: #f9fbff;
}

.file-name-cell-modern {
    align-items: flex-start;
    gap: 14px;
}

.modern-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fbff;
    border: 1px solid #e7eef8;
    font-size: 20px;
}

.file-main-info {
    min-width: 0;
}

.file-link,
.file-link-like {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
}

.file-sub-info {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.share-url-row-modern {
    margin-top: 10px;
    margin-left: 56px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.share-url-row-modern .share-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.share-url-row-modern .share-link {
    font-size: 12px;
    color: #2563eb;
    word-break: break-all;
}

.type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
}

.type-folder {
    background: #fff7ed;
    color: #c2410c;
}

.row-actions-modern {
    gap: 8px;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #dce8f8;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.18s ease;
    text-decoration: none;
}

.action-chip:hover {
    background: #eef4ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.chip-btn {
    cursor: pointer;
}

.action-chip.danger-text {
    color: #dc2626;
    border-color: #fee2e2;
    background: #fff5f5;
}

.action-chip.danger-text:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.drive-card .empty-state {
    padding: 70px 20px;
}

@media (max-width: 1100px) {
    .dashboard-hero {
        flex-direction: column;
    }

    .dashboard-hero-right {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 960px) {
    .sidebar-modern {
        width: 100%;
    }

    .content-modern {
        padding: 18px;
    }

    .dashboard-hero {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .card-modern {
        border-radius: 22px;
    }
}

@media (max-width: 640px) {
    .dashboard-hero h1 {
        font-size: 28px;
    }

    .search-input-wrap {
        width: 100%;
    }

    .search-form-modern input[type="text"] {
        width: 100%;
    }

    .search-form-modern,
    .actions-modern {
        width: 100%;
    }

    .share-url-row-modern {
        margin-left: 0;
    }
}

/* =======================
   左侧栏柔和高级版
======================= */
.sidebar-modern {
    width: 260px;
    padding: 22px 16px 18px;
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.94) 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.sidebar-modern::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, rgba(96, 165, 250, 0.02) 70%, transparent 100%);
    pointer-events: none;
}

.sidebar-modern::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.02) 72%, transparent 100%);
    pointer-events: none;
}

.logo-modern {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px 12px;
    color: #ffffff;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(59, 130, 246, 0.14));
    border: 1px solid rgba(147, 197, 253, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    font-size: 18px;
    backdrop-filter: blur(10px);
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #f8fafc;
}

.menu-modern {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    gap: 12px;
}

.menu-modern .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    padding: 14px 16px;
    color: rgba(226, 232, 240, 0.88);
    font-weight: 600;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.menu-modern .menu-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.menu-modern .menu-item:hover::before,
.menu-modern .menu-item.active::before {
    opacity: 1;
}

.menu-modern .menu-item:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    transform: translateX(2px);
}

.menu-modern .menu-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(96, 165, 250, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 8px 18px rgba(30, 64, 175, 0.12);
}

.menu-item-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.menu-modern .menu-item span:last-child {
    position: relative;
    z-index: 1;
}

.sidebar-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 20px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
}

.sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.sidebar-user-name {
    color: #f8fafc;
    font-weight: 700;
    font-size: 14px;
}

.sidebar-user-role {
    color: rgba(203, 213, 225, 0.72);
    font-size: 12px;
    margin-top: 4px;
}

/* =======================
   左侧栏浅蓝/浅白高级版
======================= */
.sidebar-modern {
    width: 260px;
    padding: 22px 16px 18px;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
    border-right: 1px solid rgba(203, 213, 225, 0.75);
    box-shadow: 8px 0 24px rgba(148, 163, 184, 0.10);
    position: relative;
    overflow: hidden;
}

.sidebar-modern::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.16) 0%, rgba(96, 165, 250, 0.04) 65%, transparent 100%);
    pointer-events: none;
}

.sidebar-modern::after {
    content: "";
    position: absolute;
    bottom: -90px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.20) 0%, rgba(191, 219, 254, 0.05) 68%, transparent 100%);
    pointer-events: none;
}

.logo-modern {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px 12px;
    color: #0f172a;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border: 1px solid rgba(147, 197, 253, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.92),
        0 8px 18px rgba(37, 99, 235, 0.08);
    font-size: 18px;
    color: #2563eb;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #0f172a;
}

.menu-modern {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    gap: 12px;
}

.menu-modern .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    padding: 14px 16px;
    color: #334155;
    font-weight: 700;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.menu-modern .menu-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(219,234,254,0.18));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.menu-modern .menu-item:hover::before,
.menu-modern .menu-item.active::before {
    opacity: 1;
}

.menu-modern .menu-item:hover {
    color: #1d4ed8;
    background: rgba(255,255,255,0.55);
    transform: translateX(2px);
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.08);
}

.menu-modern .menu-item.active {
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(239, 246, 255, 0.92));
    border: 1px solid rgba(147, 197, 253, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 10px 20px rgba(59, 130, 246, 0.08);
}

.menu-item-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.menu-modern .menu-item span:last-child {
    position: relative;
    z-index: 1;
}

.sidebar-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 20px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(203, 213, 225, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 8px 24px rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(10px);
}

.sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.sidebar-user-name {
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
}

.sidebar-user-role {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

/* =======================
   主页布局二次优化
======================= */

/* 去掉顶部大 hero 后，内容区更紧凑 */
.content-modern {
    padding: 26px 28px;
}

/* 左侧栏允许纵向滚动，避免小屏看不到底部用户信息 */
.sidebar-modern {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 用户卡片不再被挤出屏幕 */
.sidebar-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 6px;
}

/* 主卡片更紧凑 */
.drive-card-compact {
    padding-top: 20px;
}

/* 文件列表头部重新布局 */
.drive-card-top-modern {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.drive-card-left {
    min-width: 220px;
}

.drive-card-right {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: 100%;
}

/* 搜索框现在和文件列表区域同层 */
.search-form-inline {
    justify-content: flex-end;
}

/* 搜索+按钮组更紧凑 */
.search-form-inline + .actions-modern {
    margin-top: -2px;
}

/* 面包屑放最下方，做成小标签 */
.breadcrumb-modern {
    margin-bottom: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #e7eef8;
    font-size: 13px;
}

/* 让 flash 和主卡片过渡更舒服 */
.flash-list {
    margin-bottom: 16px;
}

/* 更适合现在布局的顶部留白 */
.drive-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.drive-card-subtitle {
    font-size: 14px;
    color: #64748b;
}

/* 响应式修正 */
@media (max-width: 1180px) {
    .drive-card-right {
        width: 100%;
        align-items: flex-start;
        margin-left: 0;
    }

    .search-form-inline {
        width: 100%;
        justify-content: flex-start;
    }

    .actions-modern {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-height: 760px) {
    .sidebar-modern {
        padding-bottom: 10px;
    }

    .sidebar-user-card {
        padding: 12px;
    }

    .sidebar-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }
}

/* =======================
   极简主页继续优化
======================= */

/* 左下用户卡片移除后，左侧更简洁 */
.sidebar-footer {
    display: none;
}

/* 主区顶部右上角用户信息 */
.top-userbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.top-userbar-spacer {
    flex: 1;
}

.top-user-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(203, 213, 225, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.92),
        0 8px 22px rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(10px);
}

.top-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
    flex-shrink: 0;
}

.top-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-user-name {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.top-user-role {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.2;
}

/* 文件名减轻，避免太粗 */
.file-link-soft {
    font-size: 15px;
    font-weight: 600 !important;
    color: #1f2937;
    line-height: 1.45;
}

/* 原有文件名样式进一步柔化 */
.file-link,
.file-link-like {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    word-break: break-all;
}

/* 文件副标题更轻更细一点 */
.file-sub-info {
    margin-top: 5px;
    font-size: 13px;
    color: #7b8794;
    font-weight: 400;
}

/* 文件列表行更清爽 */
.file-table-modern th,
.file-table-modern td {
    padding: 16px 12px;
}

/* 顶部用户信息在小屏适配 */
@media (max-width: 640px) {
    .top-userbar {
        justify-content: flex-end;
    }

    .top-user-info {
        width: auto;
        max-width: 100%;
    }
}

/* =======================
   左侧顶部改为用户信息
======================= */

/* 左侧不再滚动，去掉滚动条 */
.sidebar-modern {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

/* 原先 logo 顶部区域改成用户信息头 */
.sidebar-top-user {
    padding: 6px 2px 12px;
}

/* 不再需要 logo */
.logo-modern {
    display: none !important;
}

/* 左侧顶部用户卡片 */
.sidebar-user-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(203, 213, 225, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        0 8px 20px rgba(148, 163, 184, 0.06);
    backdrop-filter: blur(8px);
}

.sidebar-user-card-top .sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
}

.sidebar-user-card-top .sidebar-user-name {
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
}

.sidebar-user-card-top .sidebar-user-role {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* 左下角那块彻底隐藏 */
.sidebar-footer {
    display: none !important;
}

/* 去掉右上角用户信息 */
.top-userbar {
    display: none !important;
}

/* 菜单往上收一点，更紧凑 */
.menu-modern {
    margin-top: 10px;
}

/* 内容区顶部更紧凑 */
.content-modern {
    padding-top: 24px;
}

/* =======================
   工具栏三段式布局优化
======================= */

.drive-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 520px) auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.drive-toolbar-left {
    min-width: 0;
}

.drive-toolbar-center {
    display: flex;
    justify-content: center;
}

.drive-toolbar-right {
    display: flex;
    justify-content: flex-end;
}

.search-form-toolbar {
    width: 100%;
    justify-content: center;
}

.search-form-toolbar .search-input-wrap {
    flex: 1;
    min-width: 260px;
}

.drive-toolbar-path {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.drive-toolbar-right .actions-modern {
    justify-content: flex-end;
}

.breadcrumb-modern {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .drive-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .drive-toolbar-left,
    .drive-toolbar-center,
    .drive-toolbar-right {
        justify-content: flex-start;
    }

    .drive-toolbar-center {
        display: block;
    }

    .search-form-toolbar {
        justify-content: flex-start;
    }

    .drive-toolbar-right .actions-modern {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .search-form-toolbar .search-input-wrap {
        min-width: 100%;
    }
}

/* =======================
   主页 flash 改为顶层浮动提示
======================= */
.dashboard-page .flash-list {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    margin: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: calc(100vw - 32px);
}

.dashboard-page .flash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: min(420px, calc(100vw - 40px));
    min-width: 180px;
    margin: 0 0 10px 0;
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.10),
        0 6px 18px rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.65);
    pointer-events: auto;
    animation: flashSlideDown 0.25s ease;
    white-space: nowrap;
}

@keyframes flashSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
   分享列与复制按钮
======================= */

.share-copy-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #cfe0ff;
    background: #f8fbff;
    color: #2563eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.share-copy-btn:hover {
    background: #eef4ff;
    border-color: #bfd7ff;
    transform: translateY(-1px);
}

.share-empty {
    color: #94a3b8;
    font-size: 14px;
}

.file-table-modern th:nth-child(5),
.file-table-modern td:nth-child(5) {
    width: 84px;
    text-align: center;
}

.file-table-modern th:nth-child(6),
.file-table-modern td:nth-child(6) {
    min-width: 260px;
}

/* 不再显示名称下面的分享链接块 */
.share-url-row-modern {
    display: none !important;
}

/* =======================
   分享状态列
======================= */
.share-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.share-status-badge.shared {
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.share-status-badge.unshared {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.share-status-empty {
    color: #94a3b8;
    font-size: 14px;
}

.file-table-modern th:nth-child(5),
.file-table-modern td:nth-child(5) {
    width: 110px;
    text-align: center;
}

.file-table-modern th:nth-child(6),
.file-table-modern td:nth-child(6) {
    min-width: 300px;
}

/* =======================
   分享管理弹窗
======================= */
.share-modal-content {
    max-width: 460px;
}

.share-panel {
    padding-top: 8px;
}

.share-file-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    margin-bottom: 12px;
    word-break: break-all;
}

.share-status-text {
    margin-bottom: 18px;
}

.share-status-inline {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.share-status-inline.on {
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.share-status-inline.off {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.share-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-actions-group form {
    display: inline-block;
    margin: 0;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    border: none;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.18);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.24);
}

/* =======================
   上传弹窗样式修复
======================= */

.upload-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-dropzone:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.upload-dropzone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.file-input-hidden {
    display: none;
}

.upload-dropzone-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 12px;
}

.upload-dropzone-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.upload-dropzone-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 18px;
}

.upload-trigger-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 44px;
    padding: 0 18px;
    margin: 0 auto;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #2563eb;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.upload-trigger-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.upload-file-list {
    margin-top: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    max-height: 220px;
    overflow-y: auto;
}

.upload-empty {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 10px 6px;
}

.upload-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.upload-file-item + .upload-file-item {
    margin-top: 10px;
}

.upload-file-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.upload-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 18px;
    flex-shrink: 0;
}

.upload-file-meta {
    min-width: 0;
}

.upload-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    word-break: break-all;
}

.upload-file-size {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.upload-submit-wrap {
    margin-top: 18px;
}

.btn-loading {
    opacity: 0.85;
    cursor: not-allowed;
    pointer-events: none;
}

/* 上传弹窗再优化一点 */
#uploadModal .modal-content {
    max-width: 560px;
}

.upload-remove-btn {
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #dc2626;
    min-width: 64px;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.upload-remove-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}