/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    /* 高端商务色系 - 改为蓝金撞色方案 */
    --primary-color: #002FA7;           /* 主色：蓝 */
    --primary-light: #003CC5;           /* 主色渐变-浅 */
    --accent-gold: #ffcf14;             /* 选中/强调色：金黄 */
    --accent-blue: #002FA7;
    --secondary-color: #e94560;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #0891b2;
    --success-color: #10b981;
    
    /* 文字色系 - 撞色用蓝 */
    --text-primary: #002FA7;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --text-light: #a0aec0;
    
    /* 背景色系 */
    --bg-color: #f7f8fc;
    --bg-secondary: #edf2f7;
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    /* 阴影效果 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #002FA7 0%, #003CC5 100%);
    --gradient-gold: linear-gradient(135deg, #ffcf14 0%, #e6b800 100%);
    --gradient-accent: linear-gradient(135deg, #002FA7 0%, #003CC5 100%);
}

body {
    background: linear-gradient(to bottom, #f7f8fc 0%, #edf2f7 100%);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(to right, #002FA7 0%, #003CC5 100%);
    box-shadow: 0 4px 20px rgba(0, 47, 167, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-gold);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    gap: 32px;
    backdrop-filter: blur(10px);
}

/* LOGO容器 */
.logo-container {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.logo-container:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.company-logo,
.jiangxin-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.jiangxin-fallback {
    background: var(--gradient-primary);
    color: var(--accent-gold);
    font-size: 20px;
    letter-spacing: 2px;
}

/* 标题 */
.app-title-container {
    flex: 1;
    text-align: center;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
    letter-spacing: 0.5px;
}

.user-status {
    font-size: 12px;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
}

/* 菜单栏 */
.menu-container {
    display: flex;
    padding: 0 40px;
    overflow-x: auto;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    scrollbar-width: none;
    backdrop-filter: blur(10px);
}

.menu-container::-webkit-scrollbar {
    display: none;
}

.menu-item {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    letter-spacing: 0.5px;
}

.menu-item i {
    font-size: 16px;
}

.menu-item:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.menu-item.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    background: rgba(255, 207, 20, 0.15);
    font-weight: 600;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.badge-dev {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #aa8a2e 100%);
    color: var(--primary-color);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 32px 40px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.content-panel {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 32px;
    margin-bottom: 24px;
    display: none;
    animation: fadeIn 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.content-panel.active {
    display: block;
}

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

.panel-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, var(--accent-gold), transparent) 1;
    position: relative;
}

.panel-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 2px;
    background: var(--gradient-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.panel-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    letter-spacing: 0.5px;
}

.panel-title i {
    color: var(--accent-gold);
    font-size: 26px;
}

/* 薪资周期选择 */
.salary-period-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.period-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.period-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-selector label {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.period-input {
    padding: 10px 16px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--white);
    transition: all 0.3s ease;
}

.period-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.status-badge {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.status-connected {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #aa8a2e 100%);
    color: var(--primary-color);
}

/* 信息卡片 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.info-card:hover::before {
    opacity: 0.1;
}

.info-card:nth-child(2) {
    background: linear-gradient(135deg, #0f3460 0%, #1a4d7a 100%);
}

.info-card:nth-child(3) {
    background: linear-gradient(135deg, #16213e 0%, #1a3a52 100%);
}

.info-card:nth-child(4) {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d4059 100%);
}

.card-icon {
    font-size: 42px;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.card-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 节 */
.section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, var(--accent-gold), transparent) 1;
    letter-spacing: 0.5px;
}

.section-title i {
    color: var(--accent-gold);
    font-size: 20px;
}

/* 按钮 */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    opacity: 0.8;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--gradient-gold);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    font-weight: 700;
}

.btn-success:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

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

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

.btn-outline {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 13px;
}

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

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 提示框 */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-left: 4px solid;
}

.alert-info {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-color: var(--accent-gold);
    color: var(--primary-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
    border-color: var(--warning-color);
    color: #92400e;
}

/* 同步状态框 */
.sync-status-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 248, 252, 0.9) 100%);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sync-info {
    flex: 1;
}

.sync-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.sync-row:last-child {
    border-bottom: none;
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-primary {
    color: var(--primary-color);
}

/* 导入区域 */
.import-area {
    border: 3px dashed rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(247, 248, 252, 0.8) 100%);
}

.import-area:hover {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(26, 26, 46, 0.02) 100%);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.import-icon {
    font-size: 56px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.import-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 考勤汇总 */
.attendance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 表格 */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.data-table th {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    text-align: left;
    padding: 16px 20px;
    border-bottom: 3px solid var(--accent-gold);
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    color: var(--text-primary);
}

.data-table tr:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, rgba(26, 26, 46, 0.02) 100%);
}

.text-center {
    text-align: center;
}

/* 模板列表 */
.template-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 248, 252, 0.9) 100%);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.template-item:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
    transform: translateX(4px);
}

.template-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding: 0 20px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.5) 100%);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--gradient-primary);
    border-color: var(--accent-gold);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.step.completed .step-circle {
    background: var(--gradient-gold);
    border-color: var(--accent-gold);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.step-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* 公司选择器 */
.company-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* 核算汇总 */
.calc-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
}

/* 表单 */
.report-form {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(247, 248, 252, 0.5);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* BI图表 */
.dimension-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.bi-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.chart-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(247, 248, 252, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, var(--accent-gold), transparent) 1;
    letter-spacing: 0.3px;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* AI开发中 */
.ai-developing {
    text-align: center;
    padding: 80px 40px;
}

.developing-icon {
    font-size: 96px;
    color: var(--accent-gold);
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ai-developing h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ai-developing p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.feature-preview {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.feature-preview h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.feature-preview ul {
    list-style: none;
}

.feature-preview li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.feature-preview li i {
    color: var(--accent-gold);
    font-size: 16px;
}

/* 页脚 */
.footer {
    background: var(--gradient-primary);
    border-top: 2px solid var(--accent-gold);
    padding: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 0.5px;
}

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

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(212, 175, 55, 0.1);
    border-top: 5px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

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

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        padding: 16px 20px;
    }
    
    .logo-container {
        width: 56px;
        height: 56px;
    }
    
    .app-title {
        font-size: 20px;
    }
    
    .app-title-container {
        order: 3;
        flex-basis: 100%;
        margin-top: 16px;
    }
    
    .menu-item {
        padding: 14px 18px;
        font-size: 13px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .content-panel {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .bi-charts {
        grid-template-columns: 1fr;
    }
    
    .sync-status-box {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

/* 高端商务增强效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.content-panel.active {
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 金色光泽效果 */
.app-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.3),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* 卡片悬浮增强 */
.info-card,
.chart-card,
.template-item {
    position: relative;
}

.info-card::after,
.chart-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

.info-card:hover::after,
.chart-card:hover::after {
    box-shadow: 0 0 0 2px var(--accent-gold);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #aa8a2e 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* 表单焦点增强 */
select.form-control,
input.form-control {
    cursor: pointer;
    font-weight: 500;
}

select.form-control:hover,
input.form-control:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

select.period-input {
    font-weight: 600;
    color: var(--primary-color);
    background: var(--white);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

select.period-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* 按钮组增强 */
.action-buttons {
    gap: 16px;
}

/* 细节微光效果 */
.menu-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 8px rgba(212, 175, 55, 0.4);
}
