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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 登录界面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 25px;
    z-index: -1;
}

.login-box h2 {
    color: #2c3e50;
    margin-bottom: 35px;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.role-selector h3 {
    color: #555;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.role-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.role-btn {
    padding: 18px 25px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.role-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.role-btn:hover::before {
    left: 100%;
}

.role-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.role-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 主界面样式 */
.main-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf4 100%);
}

.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 20px 35px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.teacher-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher-selector label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.teacher-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 150px;
}

.teacher-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.teacher-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.user-role {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.user-role::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.user-role:hover::before {
    left: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.current-time {
    color: #555;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.logout-btn {
    padding: 10px 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 30px;
    background: white;
    border-bottom: 1px solid #eee;
}

.breadcrumb-item {
    color: #666;
    cursor: pointer;
    margin-right: 10px;
}

.breadcrumb-item.active {
    color: #667eea;
    font-weight: bold;
}

.breadcrumb-item:not(:last-child)::after {
    content: ' > ';
    margin-left: 10px;
}

/* 主内容区域 */
.main-content {
    padding: 30px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-left: 15px;
    position: relative;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.franchise-count {
    font-size: 14px;
    font-weight: 500;
    color: #667eea;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #667eea30;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .card-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .franchise-count {
        font-size: 12px;
        padding: 4px 8px;
    }
}

.card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.card-title::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 12px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 1px;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* 指标卡片 */
.metric-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

.metric-value {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-label {
    color: #555;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.metric-change {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 0.3px;
}

.metric-change.positive {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.metric-change.negative {
    background: linear-gradient(135deg, #ffeaea 0%, #f8d7da 100%);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.3) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.3) 75%);
    background-size: 15px 15px;
    animation: progress-shine 2s linear infinite;
    border-radius: 10px;
}

@keyframes progress-shine {
    0% { background-position: 0 0; }
    100% { background-position: 30px 0; }
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
}

.table td {
    color: #495057;
    font-weight: 500;
}

.table tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #fafbff 100%);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:nth-child(even) {
    background: rgba(102, 126, 234, 0.02);
}

/* 图表容器 */
.chart-container {
    height: 300px;
    margin: 20px 0;
}

/* 状态标签 */
.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.status-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid rgba(21, 87, 36, 0.2);
}

.status-success::before {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.status-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid rgba(133, 100, 4, 0.2);
}

.status-warning::before {
    background: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.status-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid rgba(114, 28, 36, 0.2);
}

.status-danger::before {
    background: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.status-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 新增动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 应用动画到各个组件 */
.metric-card:nth-child(1) { animation: slideInUp 0.6s ease-out 0.1s both; }
.metric-card:nth-child(2) { animation: slideInUp 0.6s ease-out 0.2s both; }
.metric-card:nth-child(3) { animation: slideInUp 0.6s ease-out 0.3s both; }
.metric-card:nth-child(4) { animation: slideInUp 0.6s ease-out 0.4s both; }

.card:nth-child(odd) { animation: slideInLeft 0.6s ease-out 0.2s both; }
.card:nth-child(even) { animation: slideInRight 0.6s ease-out 0.3s both; }

.chart-container { animation: scaleIn 0.8s ease-out 0.4s both; }

/* 响应式设计 */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .metric-card {
        padding: 25px 20px;
    }
    
    .metric-value {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 24px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .role-buttons {
        grid-template-columns: 1fr;
    }
    
    .login-box {
        min-width: 320px;
        margin: 20px;
        padding: 40px 30px;
    }
    
    .metric-card {
        padding: 20px 15px;
    }
    
    .metric-value {
        font-size: 32px;
    }
    
    .card {
        padding: 20px;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .chart-container {
        height: 280px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-box {
        min-width: 280px;
        padding: 30px 20px;
    }
    
    .login-box h2 {
        font-size: 24px;
    }
    
    .role-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .metric-value {
        font-size: 28px;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
    
    .chart-container {
        height: 250px;
        padding: 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 风险预警样式 */
.risk-alerts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.risk-item {
    padding: 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 5px solid;
    backdrop-filter: blur(10px);
}

.risk-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: -1;
}

.risk-高 {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(248, 215, 218, 0.3) 100%);
    border-left-color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.risk-高::before {
    background: radial-gradient(circle at top right, #dc3545, transparent);
}

.risk-高:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 20px rgba(220, 53, 69, 0.2);
}

.risk-中 {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 243, 205, 0.3) 100%);
    border-left-color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.risk-中::before {
    background: radial-gradient(circle at top right, #ffc107, transparent);
}

.risk-中:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 20px rgba(255, 193, 7, 0.2);
}

.risk-低 {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(212, 237, 218, 0.3) 100%);
    border-left-color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.risk-低::before {
    background: radial-gradient(circle at top right, #28a745, transparent);
}

.risk-低:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 20px rgba(40, 167, 69, 0.2);
}

.risk-level {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.risk-level::before {
    content: '⚠';
    font-size: 16px;
}

.risk-高 .risk-level {
    color: #721c24;
}

.risk-中 .risk-level {
    color: #856404;
}

.risk-低 .risk-level {
    color: #155724;
}

.risk-content {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.risk-impact {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    line-height: 1.3;
}

/* 数据表格增强样式 */
.data-table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* 排名样式 */
.ranking-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.ranking-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #856404;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.ranking-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #495057;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.ranking-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.ranking-badge.rank-other {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 成交情况样式 - 微信小程序适配 */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 8px;
}

.transaction-list::-webkit-scrollbar {
    width: 4px;
}

.transaction-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.transaction-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.transaction-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.transaction-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.transaction-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.transaction-store {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.transaction-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.transaction-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-product {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.product-category {
    font-size: 12px;
    color: #6c757d;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.transaction-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-date {
    font-size: 12px;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    padding: 3px 8px;
    border-radius: 8px;
}

.transaction-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* 月份选择器和门店汇总样式 */
.month-selector {
    float: right;
    margin-top: -5px;
}

.month-select {
    padding: 6px 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.store-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    margin: 0 -10px;
}

.store-summary-list::-webkit-scrollbar {
    width: 6px;
}

.store-summary-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.store-summary-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.store-summary-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.store-summary-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    margin-bottom: 10px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.store-summary-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px 0 0 2px;
}

.store-summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.store-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.store-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    flex: 1;
    margin-right: 10px;
    line-height: 1.2;
}

.monthly-total {
    font-weight: 700;
    color: #28a745;
    font-size: 14px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.store-summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin-top: 5px;
}

.last-transaction {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.transaction-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    flex: 1;
}

.last-transaction .label {
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}

.last-transaction .date {
    font-size: 11px;
    color: #495057;
    font-weight: 500;
    line-height: 1.2;
}

.last-transaction .amount {
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

.view-details-btn {
    flex-shrink: 0;
}

.details-btn {
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 弹窗样式 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

/* 打卡按钮样式 */
.checkin-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    margin-right: 8px;
}

.checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.view-visits-btn {
    padding: 6px 12px;
    background: white;
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-visits-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* 打卡弹窗样式 */
.checkin-form {
    padding: 20px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-control select {
    cursor: pointer;
}

.form-control textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* 拜访记录列表样式 */
.visit-record-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.visit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.visit-date {
    font-weight: 500;
    color: #333;
}

.visit-time {
    color: #666;
    font-size: 12px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.visit-type {
    color: #007bff;
    font-weight: 500;
    font-size: 14px;
}

.visit-notes {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.no-data, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error-message {
    color: #dc3545;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* 拜访记录样式 */
.visit-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.visit-tab {
    padding: 8px 15px;
    background: #f8f9ff;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visit-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.visit-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.visit-date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.visit-time {
    color: #6c757d;
    font-size: 13px;
}

.visit-notes {
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #667eea;
}

.no-visits {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* 单元格更新动画 */
.updated-cell {
    animation: cellUpdate 2s ease;
}

@keyframes cellUpdate {
    0% { background-color: rgba(102, 126, 234, 0.3); }
    100% { background-color: transparent; }
}

/* Toast提示样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 80%;
    text-align: center;
}

.toast-success {
    background: rgba(40, 167, 69, 0.9);
}

.toast-warning {
    background: rgba(255, 193, 7, 0.9);
}

.toast-error {
    background: rgba(220, 53, 69, 0.9);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 打卡弹窗样式 */
.checkin-modal-content {
    max-width: 500px;
    max-height: 80vh;
}

.checkin-options h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.quick-note-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-note-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.quick-note-btn:hover::before {
    left: 100%;
}

.quick-note-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.custom-note-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.custom-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#custom-note-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

#custom-note-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#custom-note-input::placeholder {
    color: #999;
}

.save-custom-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    white-space: nowrap;
}

.save-custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* 金蝶销售模块样式 */
.kingdee-sales-card {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.data-source-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.kingdee-summary {
    margin: 15px 0;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-stats .stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-stats .stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.summary-stats .stat-label {
    font-size: 12px;
    color: #6c757d;
}

.kingdee-orders-list h4 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 16px;
}

.org-item {
    background: white;
    margin: 10px 0;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.org-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.org-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.org-amount {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

.org-details {
    font-size: 12px;
    color: #6c757d;
}

.view-details-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
}

.view-details-btn:hover {
    background: #218838;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .checkin-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .quick-notes {
        grid-template-columns: 1fr;
    }
    
    .custom-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    #custom-note-input {
        width: 100%;
    }
    
    .save-custom-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quick-note-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    #custom-note-input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .save-custom-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* 门店行样式 */
.store-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-row:hover {
    background: rgba(102, 126, 234, 0.05);
}

.store-name-cell {
    font-weight: 600;
    color: #2c3e50;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.order-item {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.order-date {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.order-number {
    font-size: 12px;
    color: #4f46e5;
    font-weight: 500;
    margin-bottom: 2px;
}

.customer-info {
    margin-bottom: 4px;
}

.customer-name {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.license-name {
    font-size: 12px;
    color: #6c757d;
    margin-left: 4px;
}

.order-product {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.organization {
    font-size: 11px;
    color: #28a745;
    margin-bottom: 4px;
}

.materials-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px;
    margin-top: 6px;
}

.materials-title {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding: 2px 0;
}

.material-name {
    color: #2c3e50;
    font-weight: 500;
}

.material-spec {
    color: #6c757d;
    margin-left: 4px;
}

.material-amount {
    color: #28a745;
    font-weight: 600;
}

.order-note {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    padding: 4px 6px;
    background: #e9ecef;
    border-radius: 4px;
}

.order-amount {
    font-size: 16px;
    color: #28a745;
    font-weight: 700;
    margin-left: 12px;
}

/* 响应式设计优化 */
@media (max-width: 1200px) {
    .store-summary-item {
        padding: 16px;
    }
    
    .store-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .monthly-total {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .store-summary-list {
        padding: 5px;
        margin: 0 -5px;
    }
    
    .store-summary-item {
        padding: 15px;
        min-height: 140px;
    }
    
    .store-summary-header {
        margin-bottom: 12px;
    }
    
    .store-name {
        font-size: 15px;
        margin-right: 10px;
    }
    
    .monthly-total {
        font-size: 15px;
        padding: 6px 10px;
    }
    
    .store-summary-details {
        gap: 12px;
    }
}

/* 微信小程序专用响应式优化 */
@media (max-width: 480px) {
    .store-summary-item {
        padding: 10px 12px;
        min-height: 80px; /* 进一步减小高度 */
        margin-bottom: 8px;
    }
    
    .store-summary-header {
        margin-bottom: 6px;
        gap: 6px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .store-name {
        font-size: 13px;
        margin-right: 0;
        flex: 1;
    }
    
    .monthly-total {
        font-size: 12px;
        padding: 3px 8px;
        align-self: center;
    }
    
    .store-summary-details {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }
    
    .last-transaction {
        flex: 1;
    }
    
    .transaction-info {
        flex-direction: row;
        align-items: center;
        gap: 3px;
    }
    
    .last-transaction .label {
        font-size: 10px;
    }
    
    .last-transaction .date {
        font-size: 10px;
    }
    
    .last-transaction .amount {
        font-size: 11px;
    }
    
    .details-btn {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 12px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .order-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* 业绩汇报按钮样式 */
.generate-report-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.generate-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.generate-report-btn:active {
    transform: translateY(0);
}

/* 业绩汇报弹窗样式 */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.report-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.report-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.report-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.report-subtitle {
    font-size: 16px;
    color: #666;
}

.report-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.report-table th,
.report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.report-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

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

.close-report-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-report-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.report-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.copy-btn, .export-btn, .export-pdf-btn, .export-image-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.export-pdf-btn {
    background: #dc3545;
}

.export-image-btn {
    background: #007bff;
}

.copy-btn:hover, .export-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.export-pdf-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.export-image-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.status-normal { color: #28a745; }
.status-warning { color: #ffc107; }
.status-danger { color: #dc3545; }

/* 角色选择界面样式 */
.role-selection-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.role-selection-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.role-selection-card h2 {
    color: #2d3748;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.role-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.role-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.role-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.role-option h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.role-option p {
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 角色选择器样式 */
.role-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.role-selector label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.role-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 120px;
}

.role-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-content {
        margin: 20px;
        padding: 20px;
        max-width: none;
        max-height: 90vh;
    }
    
    .report-stats {
        grid-template-columns: 1fr;
    }
    
    .generate-report-btn {
        padding: 8px 16px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .role-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .role-selection-card {
        padding: 30px 20px;
    }
    
    .role-selection-card h2 {
        font-size: 24px;
    }
    
    .header-left {
        flex-wrap: wrap;
    }
    
    .role-selector {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 总裁面板样式 */
.president-dashboard {
    padding: 20px 0;
}

/* 董事长面板样式 */
.chairman-dashboard {
    padding: 20px 0;
}

/* 风险预警样式 */
.risk-alerts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.risk-alert-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
    background: #f8f9fa;
}

.risk-alert-item.high-risk {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.risk-alert-item.medium-risk {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.risk-alert-item.low-risk {
    border-left-color: #28a745;
    background: #d4edda;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.risk-level {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.high-risk .risk-level {
    background: #dc3545;
}

.medium-risk .risk-level {
    background: #ffc107;
    color: #000;
}

.low-risk .risk-level {
    background: #28a745;
}

.risk-content {
    font-weight: 500;
    color: #333;
}

.risk-impact {
    font-size: 14px;
    color: #666;
    margin-left: 20px;
}

/* 趋势标识样式 */
.trend-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.trend-up {
    background: #d4edda;
    color: #155724;
}

.trend-down {
    background: #f8d7da;
    color: #721c24;
}

.trend-stable {
    background: #fff3cd;
    color: #856404;
}

/* 状态徽章样式 */
.status-badge.status-success {
    background: #d4edda;
    color: #155724;
}

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

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

/* 总监选择器样式 */
.supervisor-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.supervisor-selector label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.supervisor-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 180px;
}

.supervisor-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.supervisor-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* 默认隐藏总监选择器 */
.supervisor-selector {
    display: none;
}

/* 金蝶销售订单样式 */
.kingdee-sales-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 1px solid #e1e8ff;
}

.kingdee-sales-card .card-title {
    color: #4f46e5;
    border-bottom: 2px solid #e1e8ff;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.kingdee-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-selector {
    background: #ffffff;
    border: 2px solid #e1e8ff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #4f46e5;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 140px;
}

.month-selector:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.month-selector:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.month-selector option {
    padding: 8px;
    background: #ffffff;
    color: #333;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.loading::before {
    content: "⏳";
    margin-right: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* 数据来源标识样式 */
.data-source-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 6px;
    background: #6c757d;
    color: white;
}

.data-source-badge.success {
    background: #28a745;
}

.data-source-badge.warning {
    background: #ffc107;
    color: #212529;
}

.refresh-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.refresh-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.1);
}

.kingdee-summary {
    margin-bottom: 25px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.kingdee-orders-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.orders-header h4 {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.status-filter {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.status-filter:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* 金蝶数据源状态样式 */
.data-source-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.data-source-badge.success {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.data-source-badge.warning {
    background: rgba(237, 137, 54, 0.1);
    color: #ed8936;
    border: 1px solid rgba(237, 137, 54, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.query-time {
    font-size: 0.8rem;
    opacity: 0.7;
    color: #6b7280;
}

.no-data.error {
    color: #dc2626;
    background: rgba(254, 226, 226, 0.5);
    border: 1px solid rgba(254, 226, 226, 0.8);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

/* 物料明细样式优化 */
.item-info {
    flex: 1;
}

.item-spec {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 2px;
}

.item-details {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.9rem;
}

.item-qty, .item-price {
    color: #6b7280;
}

.item-amount {
    color: #dc2626;
    font-weight: 600;
}

.orders-list {
    max-height: 500px;
    overflow-y: auto;
}

.order-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 15px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.order-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #4f46e5;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order-header:hover {
    background: rgba(79, 70, 229, 0.02);
}

.order-basic-info {
    flex: 1;
}

.order-number {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.customer-name {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 3px;
}

.license-name {
    font-size: 12px;
    color: #6b7280;
    background: rgba(79, 70, 229, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 3px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-amount {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
}

.status-已审核 {
    background: #d1fae5;
    color: #065f46;
}

.status-待审核 {
    background: #fef3c7;
    color: #92400e;
}

.status-已完成 {
    background: #dbeafe;
    color: #1e40af;
}

.expand-icon {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.order-details {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
}

.detail-item label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    min-width: 80px;
    margin-right: 10px;
}

.detail-item span {
    font-size: 13px;
    color: #374151;
    font-weight: 400;
}

.order-items-section {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.order-items-section h5 {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #4f46e5;
}

.item-name {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.item-amount {
    font-size: 14px;
    color: #059669;
    font-weight: 600;
}

.order-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: #4f46e5;
    color: white;
}

.action-btn.primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.action-btn.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-summary {
        align-self: flex-end;
    }
}

/* �ɹ�������ʽ - �������񲼾� */
.orders-grid {
    display: grid;
    gap: 25px;
}

.order-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #4299e1;
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.order-card .order-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
}

.order-card .order-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.order-card .order-basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.order-card .detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-card .detail-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-card .detail-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 500;
}

.order-card .detail-value.amount {
    color: #e53e3e;
    font-weight: 700;
    font-size: 1.2rem;
}

.order-card .license-name {
    color: #2d3748 !important;
    font-size: 0.9rem !important;
    background: #f7fafc !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    border-left: 3px solid #4299e1 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.order-card .status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 5px;
}

.order-card .status.confirmed {
    background: #c6f6d5;
    color: #22543d;
}

.order-card .status.approved {
    background: #bee3f8;
    color: #2a4365;
}

.order-card .note {
    margin-top: 15px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
    border-left: 3px solid #cbd5e0;
}

/* 订单操作按钮样式 */
.order-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.feedback-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.feedback-btn:active {
    transform: translateY(0);
}

/* 优化后的反馈弹窗样式 */
.feedback-modal {
    max-width: 600px;
    width: 95%;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feedback-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-modal .header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-modal .header-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feedback-modal .modal-header h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.feedback-modal .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
}

.feedback-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 信息卡片样式 */
.feedback-info-card, .feedback-input-card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-small {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

/* 信息网格布局 */
.info-grid {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.info-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-content label {
    font-weight: 600;
    color: #4a5568;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-number {
    color: #667eea;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.customer-name, .teacher-info {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.teacher-phone {
    color: #718096;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

/* 输入区域样式 */
.input-wrapper {
    padding: 20px;
    position: relative;
}

.input-wrapper textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 140px;
    transition: all 0.3s ease;
    background: #fafafa;
    line-height: 1.6;
}

.input-wrapper textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

.char-count {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #718096;
    backdrop-filter: blur(4px);
    border: 1px solid #e2e8f0;
}

.char-count #char-counter {
    font-weight: 600;
    color: #667eea;
}

.char-limit {
    color: #a0aec0;
}

/* 提示信息样式 */
.input-tips {
    padding: 0 20px 20px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid #0ea5e9;
    font-size: 13px;
    color: #0369a1;
}

.tip-icon {
    font-size: 14px;
}

/* 按钮样式优化 */
.feedback-modal .modal-footer {
    padding: 20px 25px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.feedback-modal .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
    justify-content: center;
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feedback-modal {
        width: 95%;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .feedback-modal .modal-header {
        padding: 15px 20px;
    }
    
    .feedback-modal .header-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .feedback-modal .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .info-grid {
        padding: 15px;
        gap: 12px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    .input-wrapper {
        padding: 15px;
    }
    
    .input-wrapper textarea {
        padding: 12px;
        min-height: 120px;
    }
    
    .char-count {
        bottom: 20px;
        right: 20px;
    }
    
    .feedback-modal .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .feedback-modal .btn {
        min-width: auto;
        width: 100%;
    }
    
    .order-actions {
        text-align: center;
    }
    
    .feedback-btn {
        width: 100%;
    }
}

/* 动画效果 */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.feedback-modal {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* 字符计数器动态颜色 */
.char-count.warning #char-counter {
    color: #f59e0b;
}

.char-count.danger #char-counter {
    color: #ef4444;
}

/* 加载状态按钮 */
.btn-submit.loading {
    opacity: 0.7;
    cursor: wait;
}

.btn-submit.loading .btn-icon::before {
    content: "⏳";
}
