* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; 
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 10px; 
    color: #333; 
    min-height: 100vh;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container { 
    max-width: 100%; 
    margin: 0 auto; 
    background: rgba(255, 255, 255, 0.95); 
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header Styles */
header { 
    display: flex; 
    flex-direction: column;
    padding: 15px 20px; 
    background: linear-gradient(90deg, #2c3e50, #1a2a6c);
    color: white;
    position: relative;
    overflow: hidden;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}
.header-left { flex: 1; position: relative; z-index: 1; }

.subtitle { 
    color: rgba(255,255,255,0.85); 
    font-size: 0.9rem; 
    font-weight: 300;
}
/* 公告样式 */
.announcement-bar {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    padding: 6px;
    margin-top: 5px;
    min-height: 24px;
    width: 60%;
    max-width: 100%;
    min-width: 50%;
    align-self: flex-start;
}
.announcement-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: announcement-scroll 36s linear infinite;
}
.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}
.announcement-segment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 48px;
}
.announcement-track i {
    color: #ffdd57;
}
.announcement-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    white-space: nowrap;
    width: 100%;
}
@keyframes announcement-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

@keyframes cardFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes cardSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

.modal-hide {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

/*公告结束*/
.breadcrumb { 
    display: flex; 
    align-items: center; 
    margin-top: 10px; 
    font-size: 0.85rem;
    flex-wrap: wrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}
.breadcrumb a { 
    color: #4da6ff; 
    text-decoration: none; 
    display: flex;
    align-items: center;
    transition: all 0.3s;
}
.breadcrumb a:hover { 
    color: #80c1ff; 
    text-decoration: underline; 
}
.breadcrumb span { 
    margin: 0 5px; 
    color: rgba(255,255,255,0.7); 
}

/* Navigation */
.nav-container { 
    display: flex; 
    gap: 10px; 
    padding: 15px; 
    background: #f8f9fa;
    border-bottom: 1px solid #e1e4e8;
    align-items: center;
    flex-wrap: nowrap;
}
.search-box { 
    flex: 1 1 auto; 
    display: flex; 
    min-width: 150px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}
#search-input { 
    flex: 1; 
    padding: 12px 15px; 
    font-size: 1rem; 
    border: none; 
    background: white;
    outline: none;
}
#search-btn, .upload-btn { 
    color: white; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#search-btn {
    background: #3498db;
    border-radius: 8px;
    padding: 0 20px;
    height: 44px;
    font-size: 1rem;
    flex-shrink: 0;
}

#search-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
.upload-group {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}
.upload-btn {
    background: #9b59b6;
    border-radius: 8px;
    min-width: 120px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 20px;
}
.upload-btn:hover {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 0 15px 15px;
}
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}
.stat-card h3 {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}
.stat-card .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

/* File List */
.file-list { 
    padding: 0 15px 20px;
}
.batch-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: modalFadeIn 0.3s ease;
}
.batch-info {
    font-weight: 600;
    color: #856404;
}

.batch-delete-btn {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.batch-delete-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.batch-delete-btn:active {
    transform: translateY(0);
}
.file-list-header {
    display: flex;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
    gap: 10px;
}

.file-list-header > div:nth-child(1) {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}
.file-list-header > div:nth-child(2) {
    flex: 1.5;
    min-width: 150px;
}
.file-list-header > div:nth-child(3) {
    flex: 1;
    min-width: 100px;
}
.file-list-header > div:nth-child(4) {
    width: 100px;
    flex-shrink: 0;
}
.file-list-header > div:nth-child(5) {
    width: 80px;
    flex-shrink: 0;
}
.file-list-header > div:nth-child(6) {
    width: 400px;
    flex-shrink: 0;
    text-align: right;
}

.sortable-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, background 0.2s;
    padding: 6px 8px;
    border-radius: 4px;
}

.sortable-header:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.sortable-header i {
    font-size: 0.85rem;
    transition: color 0.2s;
}
.file-item { 
    display: flex;
    padding: 15px; 
    border-bottom: 1px solid #eee; 
    align-items: center;
    transition: all 0.3s;
    border-radius: 8px;
    gap: 10px;
    font-size: 16px;
    cursor: pointer;
}

.file-item > .checkbox-col {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-item > .checkbox-col input[type="checkbox"],
#select-all-checkbox,
#header-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}
.file-item > .file-icon {
    width: 40px;
    flex-shrink: 0;
}
.file-item > .file-name {
    flex: 1.5;
    min-width: 150px;
}
.file-item > .file-date {
    flex: 1;
    min-width: 100px;
}
.file-item > .file-size {
    width: 120px;
    flex-shrink: 0;
}
.file-item > .file-type {
    width: 80px;
    flex-shrink: 0;
}
.file-item > .file-actions {
    width: 400px;
    flex-shrink: 0;
}
.file-item:hover { 
    background-color: #f1f8ff; 
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.file-item:last-child { border-bottom: none; }
.file-icon { 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 15px;
    font-size: 1.2rem;
    border-radius: 10px;
    background: rgba(52, 152, 219, 0.1);
}

.file-name { 
    font-weight: 600; 
    font-size: 1.1rem; 
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-name a { 
    color: inherit; 
    text-decoration: none;
    flex: 1;
}
.file-name a:hover { 
    color: #3498db;
    text-decoration: underline; 
}
.file-date,
.file-size,
.file-type { 
    color: #7f8c8d; 
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.file-actions { 
    display: flex; 
    gap: 8px;
    flex-shrink: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.action-btn { 
    padding: 8px 12px; 
    border-radius: 6px; 
    font-weight: 500; 
    cursor: pointer;
    background: white;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.action-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.action-btn.download { 
    background: #27ae60; 
    color: white; 
    border: none;
}
.action-btn.download:hover { background: #219653; }
.action-btn.view { 
    background: #3498db; 
    color: white; 
    border: none;
}
.action-btn.view:hover { background: #2980b9; }
.action-btn.delete { 
    background: #e74c3c; 
    color: white; 
    border: none;
}
.action-btn.delete:hover { background: #c0392b; }

/* Preview Modal */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.95); 
    z-index: 1000; 
    overflow: auto;
    padding: 0;
}
.modal.show {
    display: block;
}
.modal-content { 
    background: white; 
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0; 
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-header { 
    padding: 15px; 
    background: linear-gradient(90deg, #2c3e50, #1a2a6c);
    color: white; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
}
.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-title { 
    font-weight: 600; 
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.close-modal { 
    background: none; 
    border: none; 
    color: white; 
    font-size: 1.5rem; 
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}
.close-modal:hover { background: rgba(255,255,255,0.2); }
.modal-body-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.modal-body { 
    padding: 0;
    overflow: auto; 
    flex: 1;
    height: 100%;
}
.qrcode-sidebar {
    width: 0;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    transition: width 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}
.qrcode-sidebar.active {
    width: 220px;
}
.qrcode-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1rem;
    text-align: center;
}
#qrcode {
    display: none;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#qrcode.active {
    display: block;
}
.qrcode-share-btn {
    padding: 8px 15px;
    background: #9b59b6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.qrcode-share-btn:hover {
    background: #8e44ad;
}

/* Media Player */
.media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    flex-direction: column;
}
.media-player { 
    max-width: 100%;
    max-height: 80%;
    display: block;
}

/* PDF 预览器样式 */
.document-viewer {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 移动端触控优化 */
@media (max-width: 768px) {
    .modal-body, .modal-body-container, .document-viewer {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
}

/* Markdown Preview */
.markdown-preview {
    padding: 20px;
    line-height: 1.7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    overflow: auto;
}
.markdown-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
    color: #2c3e50;
}
.markdown-preview h1 { font-size: 1.8rem; }
.markdown-preview h2 { font-size: 1.5rem; }
.markdown-preview h3 { font-size: 1.3rem; }
.markdown-preview p {
    margin-bottom: 1em;
    font-size: 1rem;
    color: #34495e;
}
.markdown-preview pre {
    background: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    margin: 1.2em 0;
    color: #ecf0f1;
}
.markdown-preview code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(44, 62, 80, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 90%;
    color: #c0392b;
}

/* Empty State */
.empty-state { 
    text-align: center; 
    padding: 40px 15px; 
    color: #7f8c8d;
}
.empty-state i { 
    font-size: 3rem; 
    margin-bottom: 20px; 
    color: #bdc3c7;
}
.empty-state h3 { 
    font-size: 1.3rem; 
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Folder Intro */
.folder-intro {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.folder-intro:empty {
    display: none;
}
.folder-intro-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #1565c0;
}
.folder-intro-header i {
    font-size: 1.5rem;
    margin-right: 10px;
}
.folder-intro-content {
    font-size: 1rem;
    line-height: 1.6;
}

/* Document Viewer */
.document-viewer {
    width: 100%;
    height: 100%;
    border: none;
}


/* Responsive - 移动端 */
@media (max-width: 767px) {
    .nav-container {
        padding: 8px;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .search-box {
        flex: 1 1 auto;
        min-width: 100px;
        border-radius: 8px;
    }
    .upload-group {
        flex: 0 0 auto;
        display: flex;
        gap: 6px;
    }
    .upload-btn {
        height: 34px;
        padding: 0 10px;
        font-size: 0.75rem;
        min-width: 80px;
        border-radius: 6px;
        gap: 4px;
    }
    .upload-btn i {
        font-size: 0.75rem;
    }
    #search-input {
        padding: 9px 12px;
        font-size: 0.85rem;
    }
    #search-btn {
        height: 36px;
        padding: 0 10px;
        font-size: 0.75rem;
        min-width: 80px;
        border-radius: 6px;
        gap: 4px;
    }
    #search-btn i {
        font-size: 0.75rem;
    }
    
    /* 移动端简化文件列表 */
    .file-list-header {
        padding: 10px;
        font-size: 0.85rem;
    }
    .file-list-header > div:nth-child(1) {
        width: 40px;
    }
    .file-list-header > div:nth-child(2) {
        flex: 1;
        min-width: 0;
    }
    .file-list-header > div:nth-child(3),
    .file-list-header > div:nth-child(4),
    .file-list-header > div:nth-child(5) {
        display: none;
    }
    .file-list-header > div:nth-child(6) {
        width: auto;
        min-width: 60px;
    }
    .file-item {
        padding: 10px;
        gap: 8px;
    }
    .file-item > .file-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .file-item > .file-name {
        flex: 1;
        min-width: 0;
        font-size: 0.9rem;
    }
    .file-item > .file-date,
    .file-item > .file-size,
    .file-item > .file-type {
        display: none;
    }
    .file-item > .file-actions {
        width: auto;
        min-width: 0;
        flex-shrink: 0;
        gap: 4px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
    .file-item > .file-actions .share-btn,
    .file-item > .file-actions .qr-btn {
        display: none !important;
    }
    .action-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-width: 0;
        white-space: nowrap;
        display: flex !important; /* 强制显示所有按钮 */
        flex-shrink: 0; /* 防止按钮被挤压变形 */
    }
    .action-btn i {
        font-size: 0.85rem;
    }
    /* 移动端不再强制隐藏按钮，允许换行显示 */
    .action-btn.share,
    .qr-btn {
        display: flex !important;
    }
}

/* PC端平板适配 */
@media (min-width: 768px) {
    header {
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
    }
    .breadcrumb {
        margin-top: 15px;
        font-size: 1rem;
    }
    .nav-container {
        padding: 20px;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .search-box {
        flex: 1 1 auto;
        min-width: 200px;
    }
    .file-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .file-name {
        font-size: 1.2rem;
    }
    .file-actions {
        gap: 6px;
        flex-wrap: nowrap;
    }
    .action-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 1;
    }
    .modal-header {
        padding: 20px;
    }
    .modal-title {
        font-size: 1.3rem;
    }
    .folder-intro {
        padding: 25px;
    }
}

/* File Type Colors */
.file-icon.folder { background: rgba(243, 156, 18, 0.1); color: #f39c12; }
.file-icon.image { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.file-icon.video { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }
.file-icon.audio { background: rgba(26, 188, 156, 0.1); color: #1abc9c; }
.file-icon.document { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.file-icon.markdown { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.file-icon.spreadsheet { background: rgba(22, 160, 133, 0.1); color: #16a085; }
.file-icon.presentation { background: rgba(211, 84, 0, 0.1); color: #d35400; }
.file-icon.archive { background: rgba(127, 140, 141, 0.1); color: #7f8c8d; }
.file-icon.other { background: rgba(149, 165, 166, 0.1); color: #95a5a6; }

footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-top: 20px;
}
footer a {
    color: #4da6ff;
    text-decoration: none;
}

/* PDF Viewer */
#pdf-viewer {
    width: 100%;
    height: 100%;
}

/* 悬浮按钮组样式 */
.floating-button-group {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}

.floating-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #2c3e50, #c0392b);
}

/* 修复顶部返回按钮显示问题 */
#back-btn {
    display: flex !important;
}
/* 修复文件类型识别 */
.file-icon[class*="file-icon."] {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* 文件类型图标修正 */
.file-icon.folder { background: rgba(243, 156, 18, 0.1); color: #f39c12; }
.file-icon.image { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.file-icon.video { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }
.file-icon.audio { background: rgba(26, 188, 156, 0.1); color: #1abc9c; }
.file-icon.document { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.file-icon.markdown { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.file-icon.spreadsheet { background: rgba(22, 160, 133, 0.1); color: #16a085; }
.file-icon.presentation { background: rgba(211, 84, 0, 0.1); color: #d35400; }
.file-icon.archive { background: rgba(127, 140, 141, 0.1); color: #7f8c8d; }
.file-icon.other { background: rgba(149, 165, 166, 0.1); color: #95a5a6; }

/* 上传进度条容器 */
.progress-container {
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

/* 上传进度条 */
.progress-bar {
    height: 12px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    width: 0%;
    border-radius: 6px;
    transition: width 0.3s ease;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 上传进度信息 */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

/* 取消上传按钮 */
.cancel-upload-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.3s;
}

.cancel-upload-btn:hover {
    background: #c0392b;
}
.announcement-track i {
    font-size: 0.9rem;
}
.announcement-bar,
.announcement-track,
.announcement-message {
    transition: all 1ms ease;
}
@media (max-width: 992px) {
    .announcement-track {
        animation-duration: 42s;
    }
    .announcement-segment {
        padding-right: 36px;
    }
    .announcement-message {
        font-size: 1.5rem;
    }
}
@media (max-width: 600px) {
    .announcement-bar {
        padding: 2px 6px;
        min-height: 22px;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    .announcement-track {
        animation-duration: 52s;
    }
    .announcement-segment {
        padding-right: 28px;
    }
    .announcement-track i {
        font-size: 0.8rem;
    }
    .announcement-message {
        font-size: 0.75rem;
    }
}

/* ===== 通知样式 ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 450px;
    z-index: 9999;
    animation: notification-slide-in 0.3s ease;
}

@keyframes notification-slide-in {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-hide {
    animation: notification-slide-out 0.3s ease forwards;
}

@keyframes notification-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.notification-success {
    border-left: 4px solid #27ae60;
}

.notification-success .notification-icon {
    color: #27ae60;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-error .notification-icon {
    color: #e74c3c;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.notification-message {
    color: #7f8c8d;
    font-size: 13px;
    word-break: break-word;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #bdc3c7;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #7f8c8d;
}

@media (max-width: 640px) {
    .notification {
        min-width: 280px;
        right: 10px;
        left: 10px;
    }
}

/* ===== 版本更新通知样式 ===== */
.update-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.update-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.update-notification-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.update-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: rotate-pulse 2s ease-in-out infinite;
}

.update-icon i {
    font-size: 36px;
    color: white;
}

@keyframes rotate-pulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.05);
    }
    75% {
        transform: rotate(10deg) scale(1.05);
    }
}

.update-text h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.update-text p {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0 0 25px 0;
}

.update-actions {
    display: flex;
    gap: 15px;
    width: 100%;
}

.update-btn-primary,
.update-btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.update-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.update-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.update-btn-secondary {
    background: #f8f9fa;
    color: #7f8c8d;
    border: 2px solid #e1e4e8;
}

.update-btn-secondary:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .update-notification {
        width: 95%;
    }
    
    .update-notification-content {
        padding: 20px;
    }
    
    .update-icon {
        width: 60px;
        height: 60px;
    }
    
    .update-icon i {
        font-size: 28px;
    }
    
    .update-text h4 {
        font-size: 1.2rem;
    }
    
    .update-text p {
        font-size: 0.9rem;
    }
    
    .update-actions {
        flex-direction: column;
    }
    
    .update-btn-primary,
    .update-btn-secondary {
        width: 100%;
    }
}

/* ==================== 上传 Modal 样式 ==================== */
.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-modal.show {
    display: flex;
}

.upload-modal-content {
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.upload-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.upload-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-modal-close:hover {
    color: #333;
}

.upload-modal-body {
    padding: 20px;
}

.upload-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.upload-cancel-btn,
.upload-start-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.upload-cancel-btn {
    background: #e0e0e0;
    color: #333;
}

.upload-cancel-btn:hover {
    background: #d0d0d0;
}

.upload-start-btn {
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-start-btn:hover:not(:disabled) {
    background: #1a2a3e;
}

.upload-start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 动画 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 上传类型选择器 */
.upload-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.upload-type-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-type-btn:hover {
    border-color: #2c3e50;
    background: #f5f5f5;
}

.upload-type-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* 拖拽区域 */
.upload-drop-zone {
    border: 2px dashed #2c3e50;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
    border-color: #1a5490;
    background: #e3f2fd;
    transform: scale(1.02);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-content i {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

.drop-zone-content p {
    margin: 8px 0;
    color: #666;
}

.drop-zone-hint {
    font-size: 0.85rem;
    color: #999;
}

/* 上传按钮组 */
.upload-button-group {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    justify-content: center;
}

.upload-action-btn {
    flex: 0 1 auto;
    min-width: 150px;
    padding: 10px 24px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.upload-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

/* 上传队列 */
.upload-queue-section {
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.queue-header {
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.queue-stats {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.queue-stats span {
    color: #666;
}

.queue-stats strong {
    color: #2c3e50;
    font-weight: 600;
}

.queue-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

#total-progress {
    min-width: 40px;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.upload-queue {
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.queue-title {
    padding: 12px 15px;
    background: #f5f5f5;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.queue-items {
    max-height: 300px;
    overflow-y: auto;
}

.queue-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-item.done {
    background: #f0f9ff;
    opacity: 0.7;
}

.queue-item.error {
    background: #fef2f2;
}

.queue-item.uploading {
    background: #fffbf0;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-name {
    display: block;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.queue-item-size {
    font-size: 0.85rem;
    color: #999;
    margin-left: 8px;
}

.queue-item-status {
    font-size: 0.85rem;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e8e8e8;
    color: #666;
}

.queue-item.done .queue-item-status {
    background: #d4edda;
    color: #155724;
}

.queue-item.error .queue-item-status {
    background: #f8d7da;
    color: #721c24;
}

.queue-item-progress {
    flex: 0 0 150px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
    min-width: 35px;
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.remove-btn:hover {
    color: #e74c3c;
}

/* 上传统计 */
.upload-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat span:first-child {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.stat span:last-child {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 总进度条 */
.upload-progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Modal 底部按钮 */
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.btn-cancel {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: #999;
    background: #f5f5f5;
}

.btn-start-upload {
    padding: 10px 30px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-start-upload:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-start-upload:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .upload-modal-content {
        width: 95%;
        max-width: 100%;
    }

    .upload-button-group {
        flex-direction: column;
    }

    .upload-type-selector {
        flex-direction: column;
    }

    .upload-type-btn {
        width: 100%;
    }

    .queue-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .queue-item-progress {
        width: 100%;
        margin-top: 8px;
    }

    .upload-stats {
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-start-upload {
        width: 100%;
    }
}
