/* style.css - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    background: #f5f7fb;
    color: #2c3e50;
    min-height: 100vh;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #d0d7de; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.app-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f7fb;
}

/* ===== 顶部导航 ===== */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.header .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
}
.header .logo .icon-wrap {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}
.header .logo .icon-wrap .el-icon-document { font-size: 22px; color: #fff; }
.header .logo span { background: linear-gradient(90deg, #fff, #a8b5ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header .user-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.header .user-area .name {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.header .el-button--text { color: rgba(255,255,255,0.7); }
.header .el-button--text:hover { color: #fff; }
.header .el-button--primary.is-plain {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.header .el-button--primary.is-plain:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    width: 100%;
}

.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== 认证页面 ===== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 20px;
}
.auth-box {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.auth-box .auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-box .auth-logo .icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    line-height: 64px;
    text-align: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(102,126,234,0.3);
}
.auth-box .auth-logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.auth-box .auth-logo p {
    color: #909399;
    font-size: 14px;
}
.auth-box .auth-extra {
    text-align: center;
    color: #909399;
    font-size: 14px;
    margin-top: 4px;
}
.auth-box .auth-extra a {
    color: #667eea;
    cursor: pointer;
}
.auth-box .auth-extra a:hover { color: #764ba2; }

/* ===== 卡片 ===== */
.el-card {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04) !important;
}
.el-card__body { padding: 28px !important; }

/* ===== 统计卡片 ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.stat-card .num {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}
.stat-card .label {
    font-size: 13px;
    color: #909399;
}
.stat-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.stat-card .icon-box.blue { background: #e8f0fe; color: #409eff; }
.stat-card .icon-box.green { background: #e8f5e9; color: #67c23a; }
.stat-card .icon-box.orange { background: #fff3e0; color: #e6a23c; }
.stat-card .icon-box.red { background: #fde8e8; color: #f56c6c; }

/* ===== 列表项 ===== */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f0f2f5;
    flex-wrap: wrap;
    gap: 12px;
    transition: background 0.2s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #fafbfc; margin: 0 -12px; padding: 18px 12px; border-radius: 12px; }
.list-item .info { flex: 1; min-width: 200px; }
.list-item .info .title {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.list-item .info .desc {
    font-size: 13px;
    color: #909399;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    align-items: center;
}
.list-item .info .desc .dot { color: #d0d7de; }
.list-item .actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
}
.empty-state .el-icon-document {
    font-size: 64px;
    color: #d0d7de;
}
.empty-state h3 { color: #606266; margin: 16px 0 8px; font-weight: 500; }
.empty-state p { color: #909399; font-size: 14px; }

/* ===== 页面标题 ===== */
.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-title .back-btn {
    cursor: pointer;
    color: #667eea;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.page-title .back-btn:hover { color: #764ba2; }
.page-title .back-btn .el-icon-arrow-left { font-size: 18px; }

/* ===== 按钮 ===== */
.el-button {
    border-radius: 10px !important;
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.2s;
}
.el-button--primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}
.el-button--primary:hover {
    background: linear-gradient(135deg, #7b93f5, #8b5fc7);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}

/* ===== 标签 ===== */
.el-tag {
    border-radius: 20px !important;
    padding: 0 14px !important;
    height: 26px !important;
    line-height: 26px !important;
    font-weight: 500;
    border: none !important;
}
.el-tag--warning { background: #fff3e0; color: #e6a23c; }
.el-tag--success { background: #e8f5e9; color: #43a047; }
.el-tag--danger { background: #fde8e8; color: #e53935; }
.el-tag--info { background: #f0f2f5; color: #78909c; }

/* ===== 步骤条 ===== */
.el-steps { margin-bottom: 32px; }
.el-step__title { font-weight: 500; }
.el-step__head.is-finish .el-step__line { background: linear-gradient(90deg, #667eea, #764ba2); }
.el-step__head.is-finish .el-step__icon { background: linear-gradient(135deg, #667eea, #764ba2); border-color: #667eea; }

/* ===== 描述列表 ===== */
.el-descriptions {
    border-radius: 12px;
    overflow: hidden;
}
.el-descriptions .el-descriptions-item__label {
    background: #f8fafc;
    font-weight: 500;
    color: #4a5568;
}
.el-upload .el-button {
    border-style: dashed;
    border-color: #d0d7de;
    color: #667eea;
}
.el-upload .el-button:hover {
    border-color: #667eea;
    background: #f8faff;
}

/* ===== 工具类 ===== */
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.step-content { padding: 12px 0; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header { padding: 0 16px; height: auto; min-height: 60px; flex-wrap: wrap; gap: 8px; }
    .header .logo { font-size: 17px; }
    .header .logo .icon-wrap { width: 34px; height: 34px; }
    .header .logo .icon-wrap .el-icon-document { font-size: 18px; }
    .main { padding: 16px 12px; }
    .el-card__body { padding: 16px !important; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px 16px; }
    .stat-card .num { font-size: 20px; }
    .stat-card .icon-box { width: 36px; height: 36px; font-size: 18px; }
    .list-item { flex-direction: column; align-items: stretch; }
    .list-item .actions { justify-content: flex-end; }
    .auth-box { padding: 28px 20px; }
}
@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card .num { font-size: 18px; }
    .stat-card .label { font-size: 11px; }
    .el-button { font-size: 13px; padding: 8px 14px; }
    .header .user-area .name { font-size: 12px; padding: 4px 10px; }
    .auth-box .auth-logo h2 { font-size: 20px; }
}