body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: #1890ff;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 28px;
}

.nav-tabs {
    display: flex;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    overflow-x: auto;
    padding: 0 20px;
}

.nav-tab {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-tab:hover {
    background: #e6f7ff;
}

.nav-tab.active {
    color: #1890ff;
    border-bottom: 3px solid #1890ff;
    background: white;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.chart-page {
    display: none;
}

.chart-page.active {
    display: block;
}

.chart-container {
    height: 500px;
    margin: 20px 0;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.chart-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.chart-wrapper {
    height: 420px;
    width: 100%;
}

.chart-description {
    margin: 20px 0;
    padding: 15px;
    background: #e6f7ff;
    border-radius: 6px;
    border-left: 4px solid #1890ff;
}

.chart-description h3 {
    margin-top: 0;
    color: #1890ff;
}

.chart-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.action-button {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-button:hover {
    background: #40a9ff;
}

.data-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.data-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 10px;
}

.data-api {
    margin-bottom: 20px;
}

.api-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #1890ff;
}

.api-code {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    margin-bottom: 5px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background: #f1f1f1;
    font-weight: bold;
}

.data-table tr:hover {
    background: #f5f5f5;
}

.data-input-section {
    margin-top: 20px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 1px dashed #1890ff;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.input-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-button {
    background: #52c41a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.submit-button:hover {
    background: #73d13d;
}

.excel-upload {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #d9d9d9;
}

.excel-format {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.excel-format ul {
    padding-left: 20px;
    margin-top: 5px;
}

.chart-switch-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.chart-switch-button {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #d9d9d9;
    padding: 6px 12px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-switch-button:hover {
    background: #e6e6e6;
}

.chart-switch-button.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #52c41a;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateX(150%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #ff4d4f;
}

/* ===== 图片资源样式 ===== */
/* Logo样式 */
.logo {
    height: 40px;
    width: 40px;
    margin-right: 12px;
}

/* 头部背景 */
.header {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/backgrounds/header-pattern.svg') center/cover;
    opacity: 0.3;
}

/* 图表容器背景 */
.chart-container {
    background: 
        url('assets/images/backgrounds/chart-grid.svg') repeat,
        linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

/* 图标按钮 */
.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-button:hover {
    border-color: #1890ff;
    background: #f0f8ff;
}

.icon-button img,
.icon-button svg {
    width: 16px;
    height: 16px;
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 成功状态 */
.success-check {
    width: 48px;
    height: 48px;
    margin: 10px auto;
    display: block;
}

/* 导航图标 */
.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    width: 18px;
    height: 18px;
}

/* 插画样式 */
.illustration {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* 响应式图片 */
.responsive-img {
    max-width: 100%;
    height: auto;
}

/* 卡片图标 */
.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: #1890ff;
    background: #f0f8ff;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.7;
}