/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ========== 顶部导航 ========== */
.top-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.top-header .logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}
.top-header .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}
.top-header .logo-text h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}
.top-header .logo-text p {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}
.top-header .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}
.top-header .header-right .date-display {
    opacity: 0.8;
}

/* ========== 主内容区 ========== */
.main-container {
    margin-top: 64px;
    padding: 24px 32px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== 欢迎横幅 ========== */
.welcome-banner {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    border-radius: 16px;
    padding: 32px 40px;
    color: #fff;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3);
}
.welcome-banner .welcome-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}
.welcome-banner .welcome-text p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 600px;
}
.welcome-banner .welcome-decor {
    font-size: 72px;
    opacity: 0.2;
}

/* ========== 统计概览 ========== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.stat-card .stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.stat-card .stat-label {
    font-size: 14px;
    color: #666;
}
.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}
.stat-card .stat-sub {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.stat-card .stat-sub .up { color: #10b981; }
.stat-card .stat-sub .down { color: #ef4444; }

/* ========== 系统卡片 ========== */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 4px solid #4361ee;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}
.system-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}
.system-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.system-card .card-top {
    padding: 28px 24px 20px;
    position: relative;
}
.system-card .card-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.system-card[data-color="blue"] .card-top::before { background: #4361ee; }
.system-card[data-color="purple"] .card-top::before { background: #7209b7; }
.system-card[data-color="pink"] .card-top::before { background: #f72585; }

.system-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}
.system-card[data-color="blue"] .card-icon { background: rgba(67,97,238,0.1); }
.system-card[data-color="purple"] .card-icon { background: rgba(114,9,183,0.1); }
.system-card[data-color="pink"] .card-icon { background: rgba(247,37,133,0.1); }

.system-card .card-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.4;
}
.system-card .card-version {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}
.system-card .card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.system-card .card-stats {
    padding: 16px 24px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 20px;
}
.system-card .card-stats .cs-item {
    flex: 1;
}
.system-card .card-stats .cs-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
.system-card .card-stats .cs-label {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.system-card .card-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
}
.system-card .enter-btn {
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
}
.system-card .enter-btn:hover { opacity: 0.85; }
.system-card[data-color="blue"] .enter-btn { background: #4361ee; }
.system-card[data-color="purple"] .enter-btn { background: #7209b7; }
.system-card[data-color="pink"] .enter-btn { background: #f72585; }

/* ========== 企业信息 ========== */
.company-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}
.company-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}
.company-info-grid .info-block h4 {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 400;
}
.company-info-grid .info-block p {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}
.company-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.company-tags .tag {
    padding: 6px 16px;
    background: rgba(67,97,238,0.08);
    color: #4361ee;
    border-radius: 20px;
    font-size: 13px;
}

/* ========== 最近动态 ========== */
.recent-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}
.recent-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.recent-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.recent-card h3 .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.recent-list {
    list-style: none;
}
.recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.recent-list li:last-child { border-bottom: none; }
.recent-list .r-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}
.recent-list .r-amount {
    margin: 0 16px;
    font-weight: 600;
    color: #1a1a2e;
    min-width: 90px;
    text-align: right;
}
.recent-list .r-date {
    color: #999;
    font-size: 12px;
    min-width: 90px;
    text-align: right;
}
.recent-list .empty-tip {
    text-align: center;
    color: #ccc;
    padding: 30px 0;
    font-size: 14px;
}

/* ========== 底部 ========== */
.footer {
    text-align: center;
    padding: 20px 0 30px;
    color: #999;
    font-size: 13px;
}

/* ========== 加载动画 ========== */
.loading-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}
.loading-mask.hide {
    opacity: 0;
    pointer-events: none;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #4361ee;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .systems-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-overview { grid-template-columns: repeat(2, 1fr); }
    .main-container { padding: 20px 16px; }
}
@media (max-width: 768px) {
    .top-header { padding: 0 16px; }
    .top-header .logo-text h1 { font-size: 15px; }
    .systems-grid { grid-template-columns: 1fr; }
    .stats-overview { grid-template-columns: 1fr 1fr; }
    .welcome-banner { padding: 24px 20px; flex-direction: column; text-align: center; }
    .welcome-banner .welcome-text h2 { font-size: 20px; }
    .company-info-grid { grid-template-columns: 1fr; }
    .recent-section { grid-template-columns: 1fr; }
}
