/* 云上阵列 - 主样式文件 */

/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d8cf0;
    --primary-hover: #5cadff;
    --primary-dark: #2b85e4;
    --success-color: #19be6b;
    --danger-color: #ed4014;
    --warning-color: #ff9900;
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #17233d;
    --text-secondary: #808695;
    --border-color: #dcdee2;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #2d8cf0 0%, #5cadff 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

/* ========== 头部导航 ========== */
.site-header {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #2c7eff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.header-nav a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 20px 0;
    position: relative;
}

.header-nav a:hover {
    color: var(--primary-color);
}

.header-nav a.admin-link {
    color: var(--danger-color);
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.username {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-color);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    min-width: 150px;
    margin-top: 8px;
    overflow: hidden;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
}

.user-dropdown a:hover {
    background: var(--bg-color);
}

/* ========== 容器和布局 ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(45, 140, 240, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(45, 140, 240, 0.4);
    color: white;
}

.btn-upload {
    font-size: 15px;
    padding: 12px 24px;
}

.btn-new-folder {
    background: var(--card-bg);
    color: var(--primary-color);
}

.btn-new-folder:hover {
    background: #f0f9ff;
    color: var(--primary-color);
}

.btn-cancel {
    background: var(--bg-color);
    color: var(--text-secondary);
}

.btn-cancel:hover {
    background: #e8eaec;
}

.btn-secondary {
    background: var(--bg-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
    border: none;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* ========== 工具栏 ========== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.toolbar-left {
    display: flex;
    gap: 12px;
}

.icon {
    margin-right: 6px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-form input {
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 280px;
    transition: all 0.3s;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 140, 240, 0.1);
}

.btn-search {
    padding: 10px 20px;
}

/* ========== 存储信息 ========== */
.storage-info {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.storage-bar-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.storage-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}

.storage-used {
    height: 100%;
    background: linear-gradient(90deg, #2c7eff 0%, #667eea 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.storage-text {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

/* ========== 文件列表 ========== */
.file-list {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table thead {
    background: var(--bg-color);
}

.file-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.file-table td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.file-table tbody tr {
    transition: background 0.2s;
}

.file-table tbody tr:hover {
    background: var(--bg-color);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 24px;
}

.file-icon-new {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.file-icon-new.folder {
    color: #ffa940;
}

.file-icon-new.image {
    color: #52c41a;
}

.file-icon-new.video {
    color: #fa541c;
}

.file-icon-new.audio {
    color: #722ed1;
}

.file-icon-new.pdf {
    color: #f5222d;
}

.file-icon-new.word {
    color: #2f54eb;
}

.file-icon-new.excel {
    color: #237804;
}

.file-icon-new.ppt {
    color: #d46b08;
}

.file-icon-new.archive {
    color: #8c8c8c;
}

.file-icon-new.text {
    color: #595959;
}

.file-icon-new.code {
    color: #13c2c2;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
}

.action-btn:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

.action-btn.download {
    color: var(--primary-color);
}

.action-btn.download:hover {
    background: #e6f7ff;
    color: var(--primary-color);
}

.action-btn.share {
    color: var(--success-color);
}

.action-btn.share:hover {
    background: #f6ffed;
    color: var(--success-color);
}

.action-btn.rename {
    color: var(--warning-color);
}

.action-btn.rename:hover {
    background: #fff7e6;
    color: var(--warning-color);
}

.action-btn.delete {
    color: var(--danger-color);
}

.action-btn.delete:hover {
    background: #fff2f0;
    color: var(--danger-color);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

/* ========== 认证页面 ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 32px;
    background: linear-gradient(135deg, #2c7eff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

/* ========== 提示框 ========== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.alert-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

/* ========== 个人中心 ========== */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-top: 24px;
}

.profile-card,
.storage-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    background: var(--bg-color);
}

.avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.member-badge.free {
    background: #e8e8e8;
    color: #666;
}

.member-badge.basic {
    background: #e6f7ff;
    color: #1890ff;
}

.member-badge.pro {
    background: #fff0f6;
    color: #eb2f96;
}

.member-badge.premium {
    background: #fff7e6;
    color: #fa8c16;
}

.storage-card {
    margin-top: 24px;
}

.storage-card h3 {
    margin-bottom: 16px;
}

.btn-upgrade {
    margin-top: 16px;
}

.card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.card h2,
.card h3 {
    margin-bottom: 20px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

/* ========== 会员中心 ========== */
.membership-container h1 {
    margin-bottom: 32px;
}

.current-member {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.member-status {
    margin-top: 16px;
}

.member-badge-large {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.plan-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.plan-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 24px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    margin-bottom: 24px;
}

.plan-features li {
    padding: 8px 0;
    color: var(--text-secondary);
}

/* ========== 分享页面 ========== */
.share-container {
    max-width: 700px;
    margin: 0 auto;
}

.file-info-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.share-file-icon {
    font-size: 48px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-color);
}

.share-file-icon.image { color: #52c41a; }
.share-file-icon.video { color: #fa541c; }
.share-file-icon.audio { color: #722ed1; }
.share-file-icon.pdf { color: #f5222d; }
.share-file-icon.word { color: #2f54eb; }
.share-file-icon.excel { color: #237804; }
.share-file-icon.archive { color: #8c8c8c; }

/* 成功横幅 */
.success-banner {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    padding: 28px 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(82, 196, 26, 0.3);
    color: white;
}

.success-icon {
    font-size: 48px;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.success-text p {
    font-size: 14px;
    opacity: 0.95;
    margin: 0;
}

/* 分享卡片通用样式 */
.share-link-card,
.share-code-card,
.quick-share-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.share-link-card:hover,
.share-code-card:hover,
.quick-share-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(45, 140, 240, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    border-bottom: 2px solid #e0e0e0;
}

.card-header i {
    color: var(--primary-color);
    font-size: 18px;
}

.card-body {
    padding: 28px 24px;
}

/* 链接显示 */
.link-display {
    background: #f8f9fa;
    padding: 18px 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary-color);
    word-break: break-all;
    margin-bottom: 16px;
    border: 2px dashed #d0d7de;
    line-height: 1.8;
}

/* 提取码显示 */
.code-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 18px 24px;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    color: white;
    font-family: 'Arial Black', sans-serif;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* 复制按钮 */
.copy-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn.primary {
    background: linear-gradient(135deg, #2d8cf0 0%, #5cadff 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 140, 240, 0.3);
}

.copy-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(45, 140, 240, 0.4);
    transform: translateY(-2px);
}

.copy-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.copy-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.copy-btn:not(.primary):not(.secondary) {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.copy-btn:not(.primary):not(.secondary):hover {
    box-shadow: 0 6px 20px rgba(82, 196, 26, 0.4);
    transform: translateY(-2px);
}

/* 分享预览 */
.share-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-color);
}

.preview-line {
    padding: 10px 0;
    display: flex;
    gap: 12px;
}

.preview-line:not(:last-child) {
    border-bottom: 1px dashed #e0e0e0;
}

.preview-line .label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 70px;
}

.preview-line .value {
    flex: 1;
    color: var(--text-primary);
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.preview-line .value.code {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 140, 240, 0.3);
}

/* 旧样式保留（兼容） */
.share-result {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.share-info-box {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.share-info-item {
    margin-bottom: 20px;
}

.share-info-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.copy-box {
    display: flex;
    gap: 8px;
}

.copy-box input,
.copy-box textarea {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.share-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.share-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    margin: 20px;
}

.share-header {
    text-align: center;
    margin-bottom: 32px;
}

.file-preview {
    text-align: center;
    margin: 24px 0;
}

.file-icon-large {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.file-icon-large-new {
    font-size: 80px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--bg-color);
    margin: 0 auto 24px;
}

.file-icon-large-new.image { color: #52c41a; }
.file-icon-large-new.video { color: #fa541c; }
.file-icon-large-new.audio { color: #722ed1; }
.file-icon-large-new.pdf { color: #f5222d; }
.file-icon-large-new.archive { color: #8c8c8c; }

.extract-form {
    margin-top: 24px;
}

.share-link-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
}

/* ========== 状态标签 ========== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: #f6ffed;
    color: #52c41a;
}

.status-badge.inactive {
    background: #fff2f0;
    color: #ff4d4f;
}

.status-badge.pending {
    background: #fffbe6;
    color: #faad14;
}

.status-badge.expired {
    background: #f5f5f5;
    color: #999;
}

/* ========== 模态框 ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    padding: 0;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.upload-modal h2 {
    padding: 24px 32px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

.upload-modal form {
    padding: 32px;
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 24px;
    font-weight: normal;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
    background: var(--bg-color);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

.upload-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-area input[type="file"] {
    display: none;
}

.file-list-preview {
    margin-bottom: 24px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.file-preview-icon {
    font-size: 32px;
    color: var(--primary-color);
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.file-preview-size {
    font-size: 13px;
    color: var(--text-secondary);
}

.file-preview-check {
    color: var(--success-color);
    font-size: 24px;
}

.upload-progress {
    margin-bottom: 24px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-blue);
    width: 0%;
    transition: width 0.3s;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.upload-actions .btn {
    min-width: 120px;
}

/* ========== 通知提示 ========== */
.notification {
    position: fixed;
    top: 80px;
    right: -400px;
    background: var(--card-bg);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    right: 24px;
}

.notification i {
    font-size: 20px;
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-success i {
    color: var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-error i {
    color: var(--danger-color);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-nav {
        order: 3;
        width: 100%;
        padding-top: 16px;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 12px;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }
}
