/* 简约扁平化风格 - 现代化网盘系统 */ :root { --primary-color: #1677ff; --primary-hover: #4096ff; --success-color: #52c41a; --warning-color: #faad14; --error-color: #ff4d4f; --text-primary: #262626; --text-secondary: #595959; --text-tertiary: #8c8c8c; --border-color: #d9d9d9; --background-primary: #ffffff; --background-secondary: #fafafa; --background-tertiary: #f5f5f5; --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06); --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12); --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15); --border-radius-sm: 6px; --border-radius-md: 8px; --border-radius-lg: 12px; --transition-fast: 0.2s ease; --transition-normal: 0.3s ease; } * { box-sizing: border-box; } body { font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif; margin: 0; background: linear-gradient(135deg, #f0f2f5 0%, #e6f7ff 100%); min-height: 100vh; color: var(--text-primary); } .container { max-width: 1200px; margin: 0 auto; background: var(--background-primary); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-medium); overflow: hidden; min-height: calc(100vh - 40px); margin-top: 20px; margin-bottom: 20px; } /* 头部样式 */ .header { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%); color: white; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; } .header h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.5px; } .header-info { font-size: 14px; opacity: 0.9; } /* 主要内容区域 */ .main-content { padding: 32px; } /* 登录/初始化区域 */ .auth-section { max-width: 400px; margin: 60px auto; text-align: center; } .auth-section h2 { color: var(--text-primary); font-size: 24px; margin-bottom: 24px; font-weight: 600; } /* 表单控件样式 */ .form-group { margin-bottom: 20px; text-align: left; } .form-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-secondary); font-size: 14px; } input, select, button { transition: all var(--transition-fast); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); padding: 12px 16px; font-size: 14px; outline: none; width: 100%; margin-bottom: 12px; } input:focus, select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1); transform: translateY(-1px); } /* 按钮样式 */ button { background: var(--primary-color); color: white; border: none; cursor: pointer; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; font-size: 14px; padding: 14px 24px; border-radius: var(--border-radius-md); transition: all var(--transition-fast); position: relative; overflow: hidden; } button:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-medium); } button:active { transform: translateY(0); } button:disabled { background: var(--text-tertiary); cursor: not-allowed; transform: none; } /* 工具条样式 */ .toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding: 20px; background: var(--background-secondary); border-radius: var(--border-radius-md); flex-wrap: wrap; gap: 16px; } .toolbar-group { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .toolbar input, .toolbar select, .toolbar button { width: auto; margin-bottom: 0; } /* 文件表格样式 */ table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 0; background: var(--background-primary); border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-light); } th { background: var(--background-secondary); padding: 16px 12px; text-align: left; font-weight: 600; color: var(--text-secondary); font-size: 14px; border-bottom: 1px solid var(--border-color); } td { padding: 16px 12px; border-bottom: 1px solid var(--border-color); transition: background-color var(--transition-fast); } tr:hover td { background: var(--background-tertiary); } tr:last-child td { border-bottom: none; } .tooltip { position: absolute; background: rgba(0,0,0,0.75); color: #fff; font-size: 12px; padding: 6px 8px; border-radius: 6px; pointer-events: none; box-shadow: var(--shadow-light); z-index: 10001 } .tooltip.hidden { display: none } td button { width: auto; display: inline-flex; align-items: center; justify-content: center; padding: 6px 8px; margin: 2px } button.icon-btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px } .share-page .container { max-width: 560px; min-height: auto; } .share-page .main-content { padding: 20px; } .share-page h2 { margin: 0 0 12px 0; font-size: 20px; } .share-page input, .share-page button { font-size: 14px; padding: 10px 12px; margin-bottom: 10px; text-transform: none; letter-spacing: 0; } .share-page .row { display: flex; gap: 10px; align-items: center; } .share-page .row input { flex: 1; margin-bottom: 0; } .share-page .row button { width: auto; margin-bottom: 0; padding-left: 14px; padding-right: 14px; } .share-page #info { margin-top: 12px; } .share-page #info > div { margin: 8px 0; } .share-page .row-actions { justify-content: flex-end; } /* 隐藏类 */ .hidden { display: none } /* 状态提示 */ #status { margin: 16px 0; padding: 12px 16px; border-radius: var(--border-radius-sm); background: var(--background-secondary); color: var(--text-secondary); font-size: 14px; } #statusTop { background: var(--background-secondary); padding: 8px 32px; font-size: 12px; color: var(--text-tertiary); border-bottom: 1px solid var(--border-color); } /* 模态框样式 */ .modal { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 10000; backdrop-filter: blur(4px); } .modal.hidden { display: none } .modal-content { background: var(--background-primary); padding: 24px; border-radius: var(--border-radius-lg); min-width: 400px; max-width: 90vw; max-height: 80vh; overflow: auto; box-shadow: var(--shadow-heavy); animation: modalSlideIn 0.3s ease; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } /* 其他组件样式 */ .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; } .chip { padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 20px; cursor: pointer; user-select: none; transition: all var(--transition-fast); font-size: 14px; } .chip:hover { border-color: var(--primary-color); color: var(--primary-color); } .chip.active { background: var(--primary-color); color: white; border-color: var(--primary-color); } /* 加载动画 */ .loading { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-top: 2px solid white; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 8px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 按钮悬停动画 */ button:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-medium); } button:active { transform: translateY(0); } /* 文件项悬停效果 */ .file-item:hover { background: var(--background-tertiary); transform: translateX(4px); transition: all var(--transition-fast); } /* 进度条动画 */ .progress-bar { transition: width 0.3s ease; background: linear-gradient(90deg, var(--primary-color), var(--primary-hover)); } /* 淡入淡出动画 */ .fade-in { animation: fadeIn 0.3s ease; } .fade-out { animation: fadeOut 0.3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } } /* 卡片悬停效果 */ .card { transition: all var(--transition-fast); cursor: pointer; } .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-heavy); } /* 空状态样式 */ .empty-state { text-align: center; padding: 60px 20px; color: var(--text-tertiary); } .empty-state-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.3; } .empty-state h3 { margin: 0 0 8px 0; font-size: 18px; font-weight: 500; } .empty-state p { margin: 0; font-size: 14px; } /* 移动端响应式 */ @media (max-width: 768px) { .container { margin: 0; border-radius: 0; min-height: 100vh; box-shadow: none; } .header { padding: 16px 20px; flex-direction: column; gap: 8px; text-align: center; } .header h1 { font-size: 24px; } .main-content { padding: 16px; } .auth-section { margin: 40px auto; max-width: 100%; } .toolbar { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; } .toolbar-group { justify-content: center; flex-wrap: wrap; } .toolbar input, .toolbar select, .toolbar button { width: 100%; margin-bottom: 8px; } .modal-content { min-width: 90vw; padding: 16px; margin: 16px; } table { font-size: 14px; display: block; overflow-x: auto; } th, td { padding: 12px 8px; white-space: nowrap; } /* 移动端按钮优化 */ button { padding: 16px 20px; font-size: 16px; /* 防止iOS缩放 */ } input, select { padding: 16px 12px; font-size: 16px; /* 防止iOS缩放 */ } /* 文件操作按钮优化 */ td button { padding: 8px 12px; margin: 2px; font-size: 12px; } /* 空状态优化 */ .empty-state { padding: 40px 20px; } .empty-state-icon { font-size: 48px; } } @media (max-width: 480px) { .header { padding: 12px 16px; } .header h1 { font-size: 20px; } .main-content { padding: 12px; } .auth-section h2 { font-size: 20px; } .toolbar { padding: 12px; gap: 8px; } .modal-content { padding: 12px; margin: 8px; } /* 更小的屏幕优化 */ th, td { padding: 8px 4px; font-size: 12px; } td button { padding: 6px 8px; font-size: 10px; } /* 隐藏部分列在小屏幕上 */ @media (max-width: 360px) { th:nth-child(3), td:nth-child(3), /* 大小列 */ th:nth-child(4), td:nth-child(4) /* 修改时间列 */ { display: none; } } } /* 触摸设备优化 */ @media (hover: none) and (pointer: coarse) { button:hover { transform: none; } tr:hover td { background: var(--background-primary); } .chip:hover { border-color: var(--border-color); color: var(--text-primary); } }