* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #4299e1;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.breadcrumb a:hover {
    background: #e6f3ff;
    color: #2b6cb0;
}

.separator {
    color: #a0aec0;
}

.bucket-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.bucket-selector label {
    color: #4a5568;
    font-weight: 500;
}

.bucket-selector select {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 150px;
}

.bucket-selector select:hover {
    border-color: #4299e1;
}

.bucket-selector select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-link {
    display: flex;
    align-items: center;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.admin-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    color: #c53030;
    font-weight: 500;
}

.error-message img {
    width: 20px;
    height: 20px;
}

.file-list {
    overflow-x: auto;
}

.list-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px 180px 120px;
    gap: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 8px;
}

.file-item {
    display: grid;
    grid-template-columns: 60px 1fr 120px 180px 120px;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
    align-items: center;
}

.file-item:hover {
    background: #f7fafc;
    border-color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.folder-item {
    background: #f0fff4;
    border-color: #c6f6d5;
}

.folder-item:hover {
    background: #e6fffa;
    border-color: #9ae6b4;
}

.col-number {
    font-weight: 500;
    color: #718096;
    text-align: center;
}

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

.file-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.file-link {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    transition: color 0.2s;
}

a.file-link:hover {
    color: #4299e1;
}

.col-size {
    font-weight: 500;
    color: #718096;
    text-align: right;
}

.col-modified {
    font-size: 13px;
    color: #718096;
}

.col-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-copy,
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-copy {
    background: #e6f3ff;
    color: #2b6cb0;
}

.btn-copy:hover {
    background: #bee3f8;
    transform: scale(1.05);
}

.btn-download {
    background: #e6fffa;
    color: #2c7a7b;
}

.btn-download:hover {
    background: #b2f5ea;
    transform: scale(1.05);
}

.btn-copy img,
.btn-download img {
    width: 16px;
    height: 16px;
}

.empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
    color: #718096;
    font-size: 16px;
}

.empty-message img {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

/* 通知弹窗 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notification-content span {
    font-weight: 500;
    color: #2d3748;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-header,
    .file-item {
        grid-template-columns: 40px 1fr 80px 100px;
        gap: 8px;
        padding: 12px;
    }
    
    .col-modified {
        display: none;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .list-header,
    .file-item {
        grid-template-columns: 1fr 60px;
        gap: 8px;
    }
    
    .col-number,
    .col-size {
        display: none;
    }
    
    .col-name {
        grid-column: 1;
    }
    
    .col-actions {
        grid-column: 2;
    }
}

/* README区域样式 */
.readme-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.readme-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.readme-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.readme-header h3::before {
    content: "📖";
    font-size: 16px;
}

.readme-content {
    padding: 20px;
    line-height: 1.6;
    color: #333;
    max-height: 500px;
    overflow-y: auto;
}

.readme-content h1,
.readme-content h2,
.readme-content h3,
.readme-content h4,
.readme-content h5,
.readme-content h6 {
    margin: 1em 0 0.5em 0;
    color: #2c3e50;
}

.readme-content h1:first-child,
.readme-content h2:first-child,
.readme-content h3:first-child {
    margin-top: 0;
}

.readme-content p {
    margin: 0.8em 0;
}

.readme-content ul,
.readme-content ol {
    margin: 0.8em 0;
    padding-left: 2em;
}

.readme-content li {
    margin: 0.3em 0;
}

.readme-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.readme-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
    border-left: 4px solid #667eea;
}

.readme-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.readme-content blockquote {
    border-left: 4px solid #667eea;
    margin: 1em 0;
    padding: 0.5em 0 0.5em 1em;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.readme-content a {
    color: #667eea;
    text-decoration: none;
}

.readme-content a:hover {
    text-decoration: underline;
}

.readme-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.readme-content th,
.readme-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.readme-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.readme-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5em 0;
}

@media (max-width: 768px) {
    .readme-section {
        margin-top: 15px;
    }
    
    .readme-header {
        padding: 12px 15px;
    }
    
    .readme-content {
        padding: 15px;
        max-height: 400px;
    }
}