diff --git a/src/main/resources/static/assets/css/main.css b/src/main/resources/static/assets/css/main.css index 24285c3..a11fe24 100644 --- a/src/main/resources/static/assets/css/main.css +++ b/src/main/resources/static/assets/css/main.css @@ -141,96 +141,9 @@ body { /* 内容区域 */ .content-wrapper { - padding: 25px; + padding: 0; } -/* 欢迎卡片 */ -.welcome-card { - background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); - color: white; - border-radius: 16px; - padding: 35px; - margin-bottom: 25px; - box-shadow: 0 10px 30px rgba(91, 95, 222, 0.2); - position: relative; - overflow: hidden; -} - -.welcome-card::before { - content: ''; - position: absolute; - width: 250px; - height: 250px; - background: rgba(255, 255, 255, 0.1); - border-radius: 50%; - top: -80px; - right: -80px; -} - -.welcome-card h2 { - font-size: 26px; - font-weight: 700; - margin-bottom: 10px; - position: relative; - z-index: 1; -} - -.welcome-card p { - font-size: 15px; - opacity: 0.95; - position: relative; - z-index: 1; -} - -/* 统计卡片 */ -.stat-card { - background: white; - border-radius: 12px; - padding: 25px; - box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); - transition: all 0.3s; - border: 1px solid #E5E7EB; -} - -.stat-card:hover { - transform: translateY(-5px); - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); -} - -.stat-card i { - font-size: 40px; - opacity: 0.9; - margin-bottom: 12px; -} - -.stat-card h3 { - font-size: 30px; - font-weight: 700; - margin: 12px 0 6px; - color: #1F2937; -} - -.stat-card p { - color: #6B7280; - font-size: 13px; - margin: 0; -} - -.stat-card.primary i { - color: var(--primary-color); -} - -.stat-card.success i { - color: var(--success-color); -} - -.stat-card.warning i { - color: var(--warning-color); -} - -.stat-card.info i { - color: var(--info-color); -} /* 页面标题 */ .page-title { @@ -252,6 +165,24 @@ body { padding: 25px; } +/* iframe样式 */ +.page-iframe { + width: 100%; + height: calc(100vh - 72px); /* 减去导航栏高度 */ + border: none; + transition: opacity 0.3s ease; + border-radius: 8px; +} + +/* 加载状态 */ +.loading-state { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + text-align: center; +} + /* 响应式 */ @media (max-width: 768px) { .sidebar { @@ -278,6 +209,9 @@ body { } .content-wrapper { - padding: 20px; + padding: 0; + min-height: calc(100vh - 72px); } + + } \ No newline at end of file diff --git a/src/main/resources/templates/admin/main.html b/src/main/resources/templates/admin/main.html index 6c9a7d7..ded7a16 100644 --- a/src/main/resources/templates/admin/main.html +++ b/src/main/resources/templates/admin/main.html @@ -14,213 +14,209 @@ -
- -