/**
 * Private Cloud Storage Frontend CSS
 * Version: 16.0.8
 * 基于AI技术分享设计风格
 */

/* 重置和基础样式 */
.pcs-dashboard * {
    box-sizing: border-box;
}

.pcs-dashboard {
    min-height: calc(100vh - 120px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.pcs-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* 主容器 */
.pcs-main-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 顶部导航栏 */
.pcs-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.pcs-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pcs-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pcs-search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.pcs-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.pcs-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.pcs-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.pcs-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pcs-search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pcs-storage-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pcs-storage-usage {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pcs-storage-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pcs-storage-label span {
    color: rgba(255, 255, 255, 0.9);
}

.pcs-storage-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

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

.pcs-storage-percentage {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    min-width: 40px;
}

.pcs-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.pcs-username {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* 主要内容区域 */
.pcs-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 工具栏 */
.pcs-toolbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pcs-toolbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pcs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.pcs-breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pcs-breadcrumb-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pcs-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
}

.pcs-toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pcs-view-controls {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pcs-view-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.pcs-view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

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

.pcs-action-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pcs-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.pcs-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.pcs-btn:hover::before {
    left: 100%;
}

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

.pcs-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.pcs-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pcs-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 内容区域 */
.pcs-content {
    padding: 2rem;
}

/* 文件夹区域 */
.pcs-folders-section {
    margin-bottom: 2.5rem;
}

.pcs-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pcs-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.pcs-folders-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.pcs-folder-item {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pcs-folder-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.pcs-folder-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.pcs-folder-icon {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.pcs-folder-item:hover .pcs-folder-icon {
    transform: scale(1.1) rotate(5deg);
}

.pcs-folder-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文件区域 */
.pcs-files-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pcs-files-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

/* 拖放上传区域 */
.pcs-drop-zone {
    border: 3px dashed rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    position: relative;
    overflow: hidden;
}

.pcs-drop-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.pcs-drop-zone:hover,
.pcs-drop-zone.pcs-drop-zone-active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.2);
}

.pcs-drop-zone:hover::before,
.pcs-drop-zone.pcs-drop-zone-active::before {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

.pcs-drop-zone-content {
    color: #666;
    position: relative;
    z-index: 1;
}

.pcs-drop-zone-content i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.pcs-drop-zone:hover .pcs-drop-zone-content i {
    transform: scale(1.1);
}

.pcs-drop-zone-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
}

.pcs-drop-zone-content p {
    margin: 1rem 0;
    color: #666;
    font-size: 1.1rem;
}

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

/* 上传进度区域 */
.pcs-upload-progress {
    margin: 2rem;
    max-height: 250px;
    overflow-y: auto;
}

.pcs-upload-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.pcs-upload-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pcs-upload-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pcs-upload-filename {
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.pcs-upload-percentage {
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.pcs-upload-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.pcs-upload-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.pcs-upload-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shine 1.5s infinite;
}

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

/* 文件列表 - 网格视图 */
.pcs-files-container {
    padding: 2rem;
}

.pcs-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.pcs-file-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pcs-file-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.pcs-file-preview {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.pcs-file-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.pcs-file-icon {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.pcs-file-item:hover .pcs-file-icon {
    transform: scale(1.1);
}

.pcs-file-info {
    padding: 1.5rem;
}

.pcs-file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem;
}

.pcs-file-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

.pcs-file-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    z-index: 10;
}

.pcs-file-item:hover .pcs-file-actions {
    opacity: 1;
    transform: translateY(0);
}

/* 确保操作按钮始终可见 */
.pcs-file-actions {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.pcs-file-action {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #666;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pcs-file-action:hover {
    background: white;
    color: #667eea;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pcs-action-download:hover {
    color: #28a745;
}

.pcs-action-rename:hover {
    color: #ffc107;
}

.pcs-action-move:hover {
    color: #17a2b8;
}

.pcs-action-delete:hover {
    color: #dc3545;
}

/* 文件列表 - 列表视图 */
.pcs-file-list {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    background: white;
}

.pcs-file-list:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.pcs-file-list:last-child {
    border-bottom: none;
}

.pcs-file-info-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.pcs-file-icon-list {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.pcs-file-list:hover .pcs-file-icon-list {
    transform: scale(1.1);
}

.pcs-file-details {
    flex: 1;
    min-width: 0;
}

.pcs-file-details .pcs-file-name {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pcs-file-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}

.pcs-file-size-list,
.pcs-file-date-list {
    color: #666;
    font-size: 0.95rem;
    margin: 0 2rem;
    white-space: nowrap;
    font-weight: 500;
}

.pcs-file-actions-list {
    display: flex;
    gap: 0.75rem;
}

/* 空状态 */
.pcs-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    margin: 2rem;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.pcs-empty-state i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: rgba(102, 126, 234, 0.3);
}

.pcs-empty-state p {
    margin: 0 0 2rem 0;
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.pcs-empty-folders {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    font-style: italic;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

/* 加载状态 */
.pcs-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.pcs-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 通知系统 */
.pcs-notifications {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    max-width: 450px;
}

.pcs-notification {
    background: white;
    border-left: 5px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    animation: slideIn 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pcs-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.pcs-notification-success {
    border-left-color: #28a745;
}

.pcs-notification-success::before {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.pcs-notification-error {
    border-left-color: #dc3545;
}

.pcs-notification-error::before {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.pcs-notification-warning {
    border-left-color: #ffc107;
}

.pcs-notification-warning::before {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.pcs-notification-info {
    border-left-color: #17a2b8;
}

.pcs-notification-info::before {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.pcs-notification-message {
    flex: 1;
    margin-right: 1.5rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

.pcs-notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pcs-notification-close:hover {
    background: #f8f9fa;
    color: #666;
    transform: scale(1.1);
}

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

/* 模态框 */
.pcs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.pcs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.pcs-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
    animation: scaleIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pcs-modal-header {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px 20px 0 0;
}

.pcs-modal-title {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
    font-weight: 700;
}

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

.pcs-modal-close:hover {
    background: #f8f9fa;
    color: #666;
    transform: scale(1.1);
}

.pcs-modal-body {
    padding: 2rem;
}

.pcs-modal-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 表单样式 */
.pcs-form-group {
    margin-bottom: 2rem;
}

.pcs-form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.pcs-input,
.pcs-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.pcs-input:focus,
.pcs-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.pcs-dialog-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* 文件路径信息 */
.pcs-file-path-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.pcs-file-path-info strong {
    color: #333;
    font-weight: 600;
}

/* 登录提示 */
.pcs-login-required {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin: 2rem;
}

.pcs-login-required p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .pcs-header-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .pcs-search-box {
        max-width: none;
    }
    
    .pcs-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .pcs-toolbar-left,
    .pcs-toolbar-right {
        justify-content: center;
    }
    
    .pcs-main-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pcs-main-container {
        padding: 1rem;
    }
    
    .pcs-header {
        border-radius: 10px;
        margin-bottom: 1.5rem;
    }
    
    .pcs-header-content {
        padding: 0 1rem;
    }
    
    .pcs-logo {
        font-size: 1.3rem;
    }
    
    .pcs-storage-usage {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .pcs-storage-bar {
        width: 100px;
    }
    
    .pcs-content {
        padding: 1.5rem;
    }
    
    .pcs-folders-container,
    .pcs-file-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .pcs-drop-zone {
        padding: 3rem 1rem;
        margin: 1.5rem 1rem;
        border-radius: 10px;
    }
    
    .pcs-drop-zone-content i {
        font-size: 3rem;
    }
    
    .pcs-drop-zone-content h4 {
        font-size: 1.2rem;
    }
    
    .pcs-files-container {
        padding: 1.5rem 1rem;
    }
    
    .pcs-file-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .pcs-file-size-list,
    .pcs-file-date-list {
        margin: 0;
    }
    
    .pcs-file-actions-list {
        width: 100%;
        justify-content: flex-end;
    }
    
    .pcs-notifications {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .pcs-modal-content {
        width: 95%;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .pcs-modal-header,
    .pcs-modal-body {
        padding: 1.5rem;
    }
    
    .pcs-empty-state {
        margin: 1rem;
        padding: 3rem 1rem;
        border-radius: 10px;
    }
    
    .pcs-empty-state i {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .pcs-main-container {
        padding: 0.5rem;
    }
    
    .pcs-folders-container,
    .pcs-file-grid {
        grid-template-columns: 1fr;
    }
    
    .pcs-folder-item,
    .pcs-file-item {
        padding: 1.5rem 1rem;
    }
    
    .pcs-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .pcs-action-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .pcs-action-controls .pcs-btn {
        justify-content: center;
    }
    
    .pcs-breadcrumb {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pcs-breadcrumb-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .pcs-section-title {
        font-size: 1.2rem;
    }
}

/* 图标样式 */
.pcs-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    vertical-align: middle;
}

/* 文件操作图标样式 */
.pcs-icon-download::before { content: "↓"; }
.pcs-icon-rename::before { content: "✎"; }
.pcs-icon-move::before { content: "↕"; }
.pcs-icon-delete::before { content: "🗑"; }
.pcs-icon-search::before { content: "🔍"; }
.pcs-icon-home::before { content: "🏠"; }
.pcs-icon-grid::before { content: "⊞"; }
.pcs-icon-list::before { content: "☰"; }
.pcs-icon-folder-plus::before { content: "📁+"; }
.pcs-icon-refresh::before { content: "🔄"; }
.pcs-icon-logo::before { content: "☁"; }
.pcs-icon-cloud-upload::before { content: "☁↑"; }
.pcs-icon-folder-open::before { content: "📂"; }
.pcs-icon-empty::before { content: "📭"; }

/* 自定义滚动条 */
.pcs-upload-progress::-webkit-scrollbar,
.pcs-modal-content::-webkit-scrollbar {
    width: 8px;
}

.pcs-upload-progress::-webkit-scrollbar-track,
.pcs-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pcs-upload-progress::-webkit-scrollbar-thumb,
.pcs-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pcs-upload-progress::-webkit-scrollbar-thumb:hover,
.pcs-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* 打印样式 */
@media print {
    .pcs-header,
    .pcs-toolbar,
    .pcs-drop-zone,
    .pcs-file-actions,
    .pcs-notifications {
        display: none !important;
    }
    
    .pcs-dashboard {
        background: white;
    }
    
    .pcs-file-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .pcs-header {
        background: #000;
        color: #fff;
    }
    
    .pcs-btn {
        border: 2px solid currentColor;
    }
    
    .pcs-file-item,
    .pcs-folder-item {
        border: 2px solid #000;
    }
    
    .pcs-search-input {
        border-color: #fff;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .pcs-main {
        background: rgba(30, 30, 30, 0.95);
        color: #f8f9fa;
    }
    
    .pcs-files-section,
    .pcs-folder-item,
    .pcs-file-item {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .pcs-section-title,
    .pcs-folder-name,
    .pcs-file-name,
    .pcs-modal-title {
        color: #f8f9fa;
    }
    
    .pcs-file-meta,
    .pcs-empty-state p,
    .pcs-notification-message {
        color: #adb5bd;
    }
    
    .pcs-input,
    .pcs-select {
        background: #3d3d3d;
        border-color: rgba(255, 255, 255, 0.2);
        color: #f8f9fa;
    }
    
    .pcs-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
}