* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: #f0f0f0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(30, 30, 40, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    min-height: 90vh;
}

header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle, .back-button, .forward-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-toggle:hover, .back-button:hover, .forward-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.back-button, .forward-button {
    display: none;
}

.back-button.active, .forward-button.active {
    display: block;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.main-content {
    display: flex;
    min-height: calc(100vh - 120px);
    position: relative;
}

.sidebar {
    width: 250px;
    background: rgba(20, 20, 30, 0.9);
    padding: 20px;
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 15px;
}

.nav-link {
    color: #ddd;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.author-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #4CAF50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.author-details {
    flex: 1;
    min-width: 300px;
}

.author-name {
    font-size: 32px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.author-description {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}

.creation-date {
    font-style: italic;
    color: #aaa;
    margin-bottom: 20px;
}

.contact-info {
    background: rgba(76, 175, 80, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.folder-container {
    margin-top: 30px;
}

.folder-link {
    text-decoration: none;
    display: inline-block;
}

.folder {
    display: inline-block;
    width: 120px;
    text-align: center;
    margin: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.folder:hover {
    transform: translateY(-5px);
}

.folder-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/></svg>') no-repeat center;
    background-size: contain;
}

.folder-name {
    word-wrap: break-word;
    font-size: 14px;
    color: #ddd;
}

.private-folder-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFC107"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM15.1 8H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>') no-repeat center;
    background-size: contain;
}

.search-container {
    margin: 20px 0;
    display: flex;
    justify-content: flex-end;
}

.search-icon {
    background: rgba(76, 175, 80, 0.2);
    border: none;
    color: #4CAF50;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-icon:hover {
    background: rgba(76, 175, 80, 0.4);
}

.search-bar {
    display: none;
    width: 300px;
    margin-left: 10px;
    position: relative;
}

.search-bar.active {
    display: block;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 8px;
    background: rgba(20, 20, 30, 0.9);
    color: #fff;
    font-size: 16px;
}

.search-input::placeholder {
    color: #aaa;
}

.search-results {
    margin-top: 20px;
    display: none;
}

.search-results.active {
    display: block;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.file-item {
    background: rgba(30, 30, 40, 0.8);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.file-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23667eea"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/></svg>') no-repeat center;
    background-size: contain;
}

.file-name {
    word-wrap: break-word;
    font-size: 14px;
    color: #ddd;
}

.file-details {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}

.download-link {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.breadcrumb {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #4CAF50;
    margin-right: 10px;
}

.breadcrumb-item:after {
    content: " > ";
    margin-left: 10px;
    color: #aaa;
}

.breadcrumb-item:last-child:after {
    content: "";
}

.warning-message {
    background: rgba(255, 87, 34, 0.2);
    border: 1px solid rgba(255, 87, 34, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #ffccbc;
}

.empty-folder {
    text-align: center;
    padding: 40px;
    color: #aaa;
    font-style: italic;
}

.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.password-modal.active {
    display: flex;
}

.password-box {
    background: rgba(30, 30, 40, 0.95);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #4CAF50;
}

.password-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #4CAF50;
    text-align: center;
}

.password-input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 8px;
    background: rgba(20, 20, 30, 0.9);
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.password-buttons {
    display: flex;
    gap: 10px;
}

.password-submit, .password-cancel {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.password-submit {
    background: rgba(76, 175, 80, 0.8);
    color: white;
}

.password-submit:hover {
    background: rgba(76, 175, 80, 1);
}

.password-cancel {
    background: rgba(255, 87, 34, 0.8);
    color: white;
}

.password-cancel:hover {
    background: rgba(255, 87, 34, 1);
}

.password-error {
    color: #ff5722;
    text-align: center;
    margin-top: 10px;
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .file-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .password-box {
        width: 95%;
        padding: 20px;
    }
}
/* ========== 多选功能新增样式 ========== */

/* 临时消息提示 */
.temp-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    font-weight: 600;
    max-width: 300px;
}

.temp-message.error {
    background: #ff5252;
}

.temp-message.success {
    background: #4CAF50;
}

.temp-message.info {
    background: #2196F3;
}

/* 选中计数徽章 */
.selected-count {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
}

/* 进度条相关 */
.download-progress {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(30, 30, 40, 0.95);
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    display: none;
}

.download-progress.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

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

.progress-title {
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-text {
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

/* 动画关键帧 */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

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

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== 移动端优化补充样式 ========== */
@media (max-width: 768px) {
    .download-progress {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .temp-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        text-align: center;
    }
}

/* ========== 批量操作按钮状态 ========== */
.batch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.batch-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ========== 选中状态增强 ========== */
.select-mode .file-item.selectable.selected .file-icon {
    filter: brightness(1.2);
}

.select-mode .file-item.selectable.selected .file-name {
    color: #4CAF50;
    font-weight: bold;
}

/* ========== 弹窗背景锁定 ========== */
body.modal-open {
    overflow: hidden;
}

/* ========== 滚动条美化 ========== */
.batch-modal-content::-webkit-scrollbar,
.selected-list::-webkit-scrollbar {
    width: 6px;
}

.batch-modal-content::-webkit-scrollbar-track,
.selected-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.batch-modal-content::-webkit-scrollbar-thumb,
.selected-list::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 3px;
}

.batch-modal-content::-webkit-scrollbar-thumb:hover,
.selected-list::-webkit-scrollbar-thumb:hover {
    background: #2E7D32;
}

/* ========== 工具栏响应式 ========== */
@media (max-width: 480px) {
    .batch-toolbar {
        padding: 15px !important;
    }
    
    .batch-actions {
        gap: 5px !important;
    }
    
    .batch-btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
}

/* ========== 文件项选中动画 ========== */
@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.select-mode .file-item.selectable.selected::after {
    animation: checkmark 0.3s ease-out;
}

/* ========== 加载状态 ========== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========== 文件统计样式增强 ========== */
.file-stats i {
    animation: pulse 2s infinite;
}

.file-stats strong {
    color: #4CAF50;
}

.file-stats span {
    transition: all 0.3s;
}

.file-stats:hover span {
    color: #4CAF50;
}

/* ========== 面包屑导航增强 ========== */
.breadcrumb-item a:hover {
    background: rgba(76, 175, 80, 0.2);
}

.breadcrumb-item.active a {
    background: rgba(76, 175, 80, 0.3);
}

/* ========== 搜索框优化 ========== */
.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* ========== 文件图标选中状态 ========== */
.select-mode .file-item.selectable.selected .file-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 5px;
}

/* ========== 按钮组间距优化 ========== */
.batch-controls button:not(:last-child) {
    margin-right: 0;
}

/* ========== 工具提示 ========== */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.8);
    margin-bottom: -5px;
    z-index: 1000;
}

/* ========== 文件列表悬停效果 ========== */
.file-item:not(.selected):hover .file-name {
    color: #4CAF50;
}

/* ========== 批量下载按钮悬停 ========== */
.batch-btn.warning:hover .selected-count {
    background: #F57C00;
}

/* ========== 响应式文件网格 ========== */
@media (max-width: 600px) {
    .file-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 400px) {
    .file-list {
        grid-template-columns: 1fr;
    }
}

/* ========== 键盘焦点样式 ========== */
.batch-btn:focus,
.search-input:focus,
.file-item.selectable:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* ========== 禁用状态 ========== */
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== 成功/错误状态 ========== */
.state-success {
    color: #4CAF50;
    border-color: #4CAF50;
}

.state-error {
    color: #f44336;
    border-color: #f44336;
}

.state-warning {
    color: #ff9800;
    border-color: #ff9800;
}

/* ========== 过渡动画 ========== */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms;
}