/**
 * 柏寿集团老年公寓工资计算器系统
 * 自定义样式文件
 * 
 * @version 1.0
 * @created 2026-04
 */

/* 基础样式重置 */
:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1a3d7a;
    --primary-light: #4a7bc5;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --sidebar-bg: linear-gradient(180deg, #2c5aa0 0%, #1a3d7a 100%);
    --sidebar-width: 260px;
    --header-height: 60px;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* ========== 登录页面样式 ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3d7a 50%, #0f2557 100%);
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
}

.login-form .form-label {
    font-weight: 500;
    color: #555;
}

.login-form .form-control {
    height: 45px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.login-btn {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 12px;
}

.login-alert {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

/* ========== 后台框架样式 ========== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand-icon {
    font-size: 28px;
}

.sidebar-brand-text {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-menu {
    padding: 15px 0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin-bottom: 5px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.sidebar-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid white;
}

.sidebar-nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-nav-text {
    font-size: 14px;
    font-weight: 500;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
}

/* 顶部导航 */
.top-navbar {
    background: white;
    height: var(--header-height);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.navbar-breadcrumb .breadcrumb-item a {
    text-decoration: none;
}

.navbar-breadcrumb .breadcrumb-item a:hover {
    text-decoration: none;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-user-name {
    font-weight: 500;
    color: #555;
}

.navbar-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 150px;
    display: none;
    z-index: 1001;
}

.navbar-dropdown:hover .navbar-dropdown-menu {
    display: block;
}

.navbar-dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #555;
    text-decoration: none;
    transition: background 0.2s ease;
}

.navbar-dropdown-item:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}

/* 内容区域 */
.content-wrapper {
    padding: 20px;
}

.page-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.page-desc {
    font-size: 14px;
    color: var(--secondary-color);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    font-weight: 600;
    color: var(--primary-dark);
}

.card-body {
    padding: 20px;
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-icon.primary {
    color: var(--primary-color);
}

.stat-icon.success {
    color: var(--success-color);
}

.stat-icon.warning {
    color: var(--warning-color);
}

.stat-icon.info {
    color: var(--info-color);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--secondary-color);
}

/* 工作台布局 */
.dashboard-main-card {
    min-height: 440px;
    margin-top: 24px;
}

.dashboard-chart-card {
    min-height: 360px;
}

.dashboard-chart-card .card-body {
    position: relative;
}

.chart-empty-static {
    text-align: center;
    color: var(--secondary-color);
    padding: 80px 20px;
    border: 1px dashed #d7deeb;
    border-radius: var(--border-radius);
    background: #f8fafc;
}


.trend-mix-chart {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    border-radius: 14px;
    padding: 18px 24px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.trend-mix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.trend-mix-unit {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.trend-mix-legend {
    display: flex;
    gap: 18px;
}

.trend-mix-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.trend-mix-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.trend-mix-legend-dot-bar {
    background: linear-gradient(135deg, #ffb36b 0%, #ff8a56 100%);
    box-shadow: 0 2px 6px rgba(255, 138, 86, 0.35);
}

.trend-mix-legend-dot-line {
    background: #67c23a;
    box-shadow: 0 2px 6px rgba(103, 194, 58, 0.35);
}

.trend-mix-svg {
    width: 100%;
    height: 320px;
    display: block;
}

.trend-mix-grid line {
    opacity: 0;
    animation: trendFadeInGrid 0.4s ease-out forwards;
}

.trend-mix-grid line:nth-child(1) { animation-delay: 0.05s; }
.trend-mix-grid line:nth-child(2) { animation-delay: 0.1s; }
.trend-mix-grid line:nth-child(3) { animation-delay: 0.15s; }
.trend-mix-grid line:nth-child(4) { animation-delay: 0.2s; }
.trend-mix-grid line:nth-child(5) { animation-delay: 0.25s; }

.trend-mix-yaxis text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    opacity: 0;
    animation: trendFadeInText 0.4s ease-out forwards;
    animation-delay: 0.3s;
}

.trend-mix-bar-group {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: trendBarGrowBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               trendBarBreathGlow 2.5s ease-in-out infinite;
    animation-delay: calc(0.15s + var(--bar-delay, 0s)),
                     calc(1.5s + var(--bar-delay, 0s));
}

.trend-mix-bar {
    transition: filter 0.25s ease;
}

.trend-mix-bar-group:hover .trend-mix-bar {
    filter: brightness(1.15) drop-shadow(0 0 14px rgba(255, 138, 86, 0.65));
}

.trend-mix-bar-highlight {
    pointer-events: none;
}

.trend-mix-bar-highlight {
    pointer-events: none;
}

.trend-mix-xaxis text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    opacity: 0;
    animation: trendFadeInText 0.4s ease-out forwards;
    animation-delay: 0.35s;
}

@keyframes trendBarGrowBounce {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }
    70% {
        transform: scaleY(1.05);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes trendBarBreathGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 10px rgba(255, 138, 86, 0.2)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 4px 22px rgba(255, 138, 86, 0.55)) brightness(1.08);
    }
}

@keyframes trendBarFloat {
    0%, 100% {
        transform: scaleY(1) translateY(0);
    }
    50% {
        transform: scaleY(1.02) translateY(-2px);
    }
}

@keyframes trendBarPulseGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(255, 138, 86, 0.3));
    }
    50% {
        filter: drop-shadow(0 6px 14px rgba(255, 138, 86, 0.5));
    }
}

@keyframes trendDotRipple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes trendDotScaleIn {
    0% {
        transform: scale(0);
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes trendDotRingExpand {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

@keyframes trendAreaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.15;
        transform: translateY(0);
    }
}

@keyframes trendFadeInGrid {
    to {
        opacity: 1;
    }
}

@keyframes trendFadeInText {
    to {
        opacity: 1;
    }
}

@keyframes trendLineDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes trendDotPopIn {
    to {
        opacity: 1;
    }
}

@keyframes trendDotRipple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes trendDotScaleIn {
    0% {
        transform: scale(0);
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes trendDotRingExpand {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

@keyframes trendAreaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.15;
        transform: translateY(0);
    }
}

@keyframes trendFadeInGrid {
    to {
        opacity: 1;
    }
}

@keyframes trendFadeInText {
    to {
        opacity: 1;
    }
}

/* 图表悬停效果 */
.trend-mix-bar-group {
    cursor: pointer;
}

/* 悬停提示框 */
.trend-mix-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3d7a 100%);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(26, 61, 122, 0.35);
    min-width: 140px;
}

.trend-mix-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.trend-mix-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #1a3d7a;
}

.trend-tooltip-month {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.trend-tooltip-salary {
    font-size: 16px;
    font-weight: 700;
    color: #ffcc6b;
    margin-bottom: 4px;
}

.trend-tooltip-growth {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.trend-tooltip-growth.positive {
    color: #7dff7d;
}

.trend-tooltip-growth.negative {
    color: #ff7d7d;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f5f7fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table .actions {
    white-space: nowrap;
}

.data-table .actions .btn {
    margin-right: 5px;
}

/* 搜索和工具栏 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-search {
    flex: 1;
    max-width: 300px;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-group .form-control,
.search-group .form-select {
    height: 38px;
    flex: 1;
    min-width: 140px;
}

.search-group .btn {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-row .form-control,
.search-row .form-select {
    height: 38px;
    flex: 1;
}

.search-row .btn {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-search {
    max-width: 100%;
}

.history-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.history-search-row .form-select {
    width: 180px;
    max-width: 180px;
    flex: 0 0 180px;
}

.history-search-row .form-control {
    width: 240px;
    max-width: 240px;
    flex: 0 0 240px;
}

.history-search-row .btn {
    white-space: nowrap;
}

.employee-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-search-row .form-control {
    width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
}

.employee-search-row .btn {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

/* 按钮样式 */
.btn {
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* 模态框样式 */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 15px 20px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 15px 20px;
}

/* 分页样式 */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: var(--border-radius);
}

.pagination-info {
    color: var(--secondary-color);
    font-size: 14px;
}

.pagination .page-link {
    border-radius: var(--border-radius);
    color: var(--primary-color);
    border: 1px solid #ddd;
    margin: 0 2px;
    padding: 8px 12px;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 工资计算卡片 */
.calc-result-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-lg);
}

.calc-result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.calc-result-item:last-child {
    border-bottom: none;
}

.calc-result-label {
    font-size: 14px;
}

.calc-result-value {
    font-size: 16px;
    font-weight: 600;
}

.calc-result-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.calc-result-total-value {
    font-size: 28px;
    font-weight: 700;
}

/* 状态标签 */
.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* 响应式适配 - 手机端 */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }
    
    .sidebar {
        transform: translateX(-260px);
        width: 260px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-breadcrumb {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-search {
        max-width: 100%;
    }

    .history-search-row {
        flex-wrap: wrap;
    }

    .history-search-row .form-control {
        min-width: 160px;
        max-width: 100%;
        flex: 1;
    }

    .history-search-row .form-select {
        flex: 1;
        max-width: 100%;
    }

    .employee-search-row {
        flex-wrap: wrap;
    }

    .employee-search-row .form-control {
        min-width: 160px;
        max-width: 100%;
        flex: 1;
    }
    
    .toolbar-actions {
        flex-wrap: wrap;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .card-header,
    .card-body {
        padding: 15px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .stat-card {
        padding: 15px;
    }

    .dashboard-main-card,
    .dashboard-chart-card {
        min-height: auto;
    }

    .trend-mix-svg {
        height: 260px;
    }

    .trend-mix-legend {
        gap: 14px;
    }

    .trend-mix-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .chart-empty-static {
        padding: 55px 14px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .calc-result-card {
        padding: 20px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* 打印样式 */
@media print {
    .sidebar,
    .top-navbar,
    .toolbar,
    .pagination-wrapper,
    .actions {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card,
    .table-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast提示 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 空数据提示 */
.empty-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary-color);
}

.empty-data-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-data-text {
    font-size: 16px;
}

/* 详情列表 */
.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.detail-list-item:last-child {
    border-bottom: none;
}

.detail-list-label {
    width: 150px;
    color: var(--secondary-color);
    font-weight: 500;
}

.detail-list-value {
    flex: 1;
    color: #555;
}

.data-table .table-summary td {
    background: #f5f7fa;
    font-weight: 600;
    border-top: 2px solid var(--primary-light);
}
