/* 基础重置和字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f6fa;
}

/* 移动端遮罩层 */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    opacity: 1;
}

/* 登录页面样式 */
.login-page {
    background: linear-gradient(135deg, #4A90E2 0%, #5B9BD5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.login-header h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #64748b;
    font-size: 16px;
}

.login-form {
    margin-bottom: 24px;
}

.login-footer {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* 主界面布局 */
.container {
    display: flex;
    min-height: 100vh;
}

/* 移动端菜单控制 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: #357ABD;
    transform: translateY(-1px);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.sidebar {
    width: 240px;
    background: #1e293b;
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
    border-right: 1px solid #334155;
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 1px solid #334155;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    animation: coinFlip 3s ease-in-out infinite;
}

/* 硬币翻转动画 */
@keyframes coinFlip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.header-text {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.sidebar-header p {
    color: #94a3b8;
    font-size: 14px;
}

.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 16px 0;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 0;
}

.menu-item a:hover {
    background-color: #334155;
    color: #ffffff;
}

.menu-item.active a {
    background-color: #4A90E2;
    color: #ffffff;
    box-shadow: inset 3px 0 0 #ffffff;
}

.menu-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.menu-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid #334155;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4A90E2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    font-weight: 600;
}

.user-name {
    font-weight: 500;
    margin-bottom: 2px;
    color: #ffffff;
}

.user-role {
    color: #94a3b8;
    font-size: 12px;
}

.logout-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.content-header {
    background: white;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.content-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.current-time {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.content-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #f5f6fa;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.btn-primary {
    background: #4A90E2;
    color: white;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

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

.btn-secondary:hover {
    background: #4b5563;
}

.btn-outline {
    background: transparent;
    border: 1px solid #4A90E2;
    color: #4A90E2;
}

.btn-outline:hover {
    background: #4A90E2;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

.btn-mini {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #4A90E2;
    color: white;
    margin-right: 8px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-mini:hover {
    background: #357ABD;
    transform: translateY(-1px);
}

.btn-mini:active {
    transform: scale(0.95);
}

.btn-mini.secondary {
    background: #6b7280;
}

.btn-mini.secondary:hover {
    background: #4b5563;
}

/* 警告框样式 */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border-left-color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border-left-color: #16a34a;
}

/* 数据大盘样式 */
.dashboard {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 常用功能区域 */
.function-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.function-section h2 {
    margin-bottom: 24px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    background: #fafbfc;
    -webkit-tap-highlight-color: transparent;
}

.function-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.function-item:active {
    transform: translateY(0);
}

.function-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.function-item span {
    font-size: 14px;
    color: #475569;
    text-align: center;
    font-weight: 500;
}

/* 今日数据统计 */
.today-stats-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.date-info {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
}

.date-info span {
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    font-weight: 500;
}

.date-info span:first-child {
    background: #4A90E2;
    color: white;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.date-info span:hover:not(:first-child) {
    background: #e2e8f0;
    color: #1e293b;
}

.update-time {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    margin-left: 16px;
}

.today-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 28px 24px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card.primary {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
}

.stat-card.secondary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
}

.stat-card.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.stat-card.warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-compare {
    font-size: 13px;
    opacity: 0.8;
}

.growth {
    font-weight: 600;
}

.growth.positive {
    color: #10B981;
}

.growth.negative {
    color: #EF4444;
}

/* 预估数据 */
.estimate-stats-section {
    margin-bottom: 24px;
}

.estimate-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.estimate-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #4A90E2;
}

.estimate-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.estimate-value {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.estimate-compare {
    font-size: 12px;
    color: #10B981;
    font-weight: 500;
}

/* 图表区域 */
.charts-section {
    margin-bottom: 24px;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.chart-card.wide {
    grid-column: span 1;
}

.chart-card h3 {
    margin-bottom: 24px;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

/* 饼图样式 */
.pie-chart-container {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pie-chart {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(#4A90E2 0deg 216deg, #F59E0B 216deg 360deg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.2);
}

.pie-center {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pie-total {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.pie-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.pie-legend {
    flex: 1;
    min-width: 200px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 10px;
}

.legend-line {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    margin-right: 10px;
}

/* 折线图样式 */
.line-chart-container {
    position: relative;
}

.chart-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chart-legend .legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.line-chart {
    height: 240px;
    position: relative;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    background: #fafbfc;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 100%);
}

.trend-line {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #4A90E2, #10B981);
    opacity: 0.6;
}

.chart-points {
    position: relative;
    width: 100%;
    height: 100%;
}

.chart-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #4A90E2;
    border-radius: 50%;
    transform: translate(-50%, 50%);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

/* 门店详情表格 */
.stores-overview-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.stores-overview-section h2 {
    margin-bottom: 24px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.stores-table {
    overflow-x: auto;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 2px solid #f1f5f9;
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f8fafc;
    align-items: center;
    transition: all 0.2s;
}

.table-row:hover {
    background: #f8fafc;
}

.col {
    font-size: 14px;
    word-break: break-word;
}

.col.store-name .store-info .name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 15px;
}

.col.store-name .store-info .address {
    font-size: 12px;
    color: #64748b;
}

.progress-bar.mini {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar.mini .progress-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 600;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.inactive {
    background: #f1f5f9;
    color: #64748b;
}

.revenue {
    font-weight: 600;
    color: #059669;
    font-size: 15px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.close {
    color: #94a3b8;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.close:hover {
    color: #64748b;
    background: #f1f5f9;
}

.modal form {
    padding: 32px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

/* 响应式设计 */

/* 大屏幕优化 (1400px+) */
@media (min-width: 1400px) {
    .function-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .today-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .estimate-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .dashboard {
        padding: 0 40px;
    }
    
    .list-header {
        padding: 14px 40px;
        gap: 20px;
    }
    
    .ranking-item {
        padding: 14px 40px;
        gap: 20px;
    }
    
    .business-data-inline {
        gap: 24px;
        font-size: 15px;
    }
    
    .data-separator {
        margin: 0 10px;
    }
}

/* 超大屏幕优化 (1600px+) */
@media (min-width: 1600px) {
    .dashboard {
        padding: 0 60px;
    }
    
    .list-header {
        grid-template-columns: 100px 4fr 6fr 2.5fr;
        padding: 16px 50px;
        gap: 24px;
    }
    
    .ranking-item {
        grid-template-columns: 100px 4fr 6fr 2.5fr;
        padding: 16px 50px;
        gap: 24px;
    }
    
    .rank-number {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .store-name {
        font-size: 18px;
    }
    
    .business-data-inline {
        gap: 30px;
        font-size: 16px;
    }
    
    .summary-value {
        font-size: 18px;
    }
}

/* 4K屏幕优化 (1920px+) */
@media (min-width: 1920px) {
    .dashboard {
        padding: 0 80px;
    }
    
    .list-header {
        grid-template-columns: 120px 5fr 7fr 3fr;
        padding: 18px 60px;
        gap: 32px;
    }
    
    .ranking-item {
        grid-template-columns: 120px 5fr 7fr 3fr;
        padding: 18px 60px;
        gap: 32px;
    }
    
    .rank-number {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .store-name {
        font-size: 20px;
    }
    
    .business-data-inline {
        gap: 35px;
        font-size: 17px;
    }
    
    .summary-value {
        font-size: 20px;
    }
    
    .summary-label {
        font-size: 14px;
    }
}

/* 平板横屏 (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .content-header {
        padding: 20px 24px;
    }
    
    .content-header h1 {
        font-size: 22px;
    }
    
    .content-body {
        padding: 20px;
    }
    
    .function-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pie-chart-container {
        justify-content: center;
        gap: 24px;
    }
    
    .today-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .estimate-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板竖屏和小屏笔记本 (481px - 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .container {
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        width: 100%;
    }
    
    .content-header {
        padding: 16px 20px;
        padding-left: 60px;
    }
    
    .content-header h1 {
        font-size: 20px;
    }
    
    .content-body {
        padding: 16px;
    }
    
    .function-section,
    .today-stats-section,
    .estimate-stats-section,
    .chart-card,
    .stores-overview-section {
        padding: 24px;
        margin-bottom: 16px;
    }
    
    .function-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .function-item {
        padding: 20px 12px;
    }
    
    .function-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .function-item span {
        font-size: 13px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .today-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px 20px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .estimate-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .estimate-card {
        padding: 20px;
    }
    
    .pie-chart-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .pie-legend {
        min-width: auto;
    }
    
    .table-header,
    .table-row {
        display: none;
    }
    
    .stores-table {
        display: block;
    }
    
    /* 移动端表格卡片样式 */
    .table-row {
        display: block !important;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .table-row .col {
        display: block;
        margin-bottom: 12px;
    }
    
    .table-row .col:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #64748b;
        font-size: 13px;
    }
    
    .col.store-name:before {
        content: "";
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .sales-ranking {
        padding: 15px;
    }
    
    .ranking-list {
        border-radius: 8px;
    }
    
    .list-header {
        display: none;
    }
    
    .ranking-item {
        display: block !important;
        grid-template-columns: none !important;
        padding: 8px;
        gap: 4px;
        margin-bottom: 8px;
        background: white;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .ranking-item:last-child {
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 0;
    }
    
    .rank-number {
        margin: 0 auto 12px auto;
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .store-info {
        margin-bottom: 12px;
    }
    
    .store-name {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .business-data-inline {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .data-inline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .data-separator {
        display: none;
    }
    
    .growth-percent {
        margin-left: 0;
        margin-top: 2px;
    }
    
    .summary-data {
        justify-content: center;
        gap: 24px;
    }
}

/* 手机端 (320px - 480px) */
@media (max-width: 480px) {
    .login-box {
        padding: 32px 24px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .content-header {
        padding: 12px 16px;
        padding-left: 56px;
    }
    
    .content-header h1 {
        font-size: 18px;
    }
    
    .content-body {
        padding: 12px;
    }
    
    .function-section,
    .today-stats-section,
    .estimate-stats-section,
    .chart-card,
    .stores-overview-section {
        padding: 20px;
        margin-bottom: 12px;
    }
    
    .function-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .function-item {
        padding: 16px 10px;
    }
    
    .function-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .function-item span {
        font-size: 12px;
    }
    
    .stat-card {
        padding: 20px 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .pie-chart {
        width: 120px;
        height: 120px;
    }
    
    .pie-center {
        width: 84px;
        height: 84px;
    }
    
    .pie-total {
        font-size: 20px;
    }
    
    .modal form {
        padding: 24px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    /* 销售排行移动端样式 */
    .sales-ranking-section {
        padding: 20px;
    }
    
    .ranking-period {
        flex-direction: column;
        gap: 8px;
    }
    
    .ranking-period span {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .top-store {
        padding: 16px;
    }
    
    .rank-badge {
        width: 36px;
        height: 36px;
        top: -8px;
        right: -8px;
    }
    
    .rank-icon {
        font-size: 20px;
    }
    
    .top-store .store-info h4 {
        font-size: 16px;
    }
    
    .top-store .sales-info .revenue {
        font-size: 18px;
    }
    
    .ranking-item {
        padding: 8px;
        gap: 4px;
    }
    
    .ranking-item .rank-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .ranking-item .store-name {
        font-size: 14px;
    }
    
    .data-value {
        font-size: 13px;
    }
    
    .summary-data {
        gap: 12px;
    }
}

/* 超小屏幕 (小于320px) */
@media (max-width: 320px) {
    .function-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .function-item span {
        font-size: 11px;
    }
    
    .stat-value {
        font-size: 22px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 触摸设备优化 */
@media (hover: none) {
    .function-item:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

/* 触摸设备专用样式 */
.touch-device .function-item:active {
    background: #f1f5f9;
    transform: scale(0.98);
}

.touch-device .btn:active {
    transform: scale(0.96);
}

.touch-device .btn-mini:active {
    transform: scale(0.92);
}

/* 门店销售排行样式 */
.sales-ranking-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.ranking-period {
    display: flex;
    gap: 4px;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
}

.ranking-period span {
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.ranking-period span.active {
    background: #4A90E2;
    color: white;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.ranking-period span:hover:not(.active) {
    background: #e2e8f0;
    color: #1e293b;
}

.ranking-container {
    margin-top: 24px;
    width: 100%;
}

/* 前三名卡片展示 */
.top-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.top-store {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.top-store:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.top-store.rank-1 {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border-color: #f59e0b;
}

.top-store.rank-2 {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    border-color: #9ca3af;
}

.top-store.rank-3 {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border-color: #f87171;
}

.rank-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #e2e8f0;
}

.rank-icon {
    font-size: 24px;
}

.top-store .store-info {
    margin-bottom: 16px;
}

.top-store .store-info h4 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.top-store .store-address {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.top-store .sales-info {
    text-align: center;
}

.top-store .sales-info .revenue {
    color: #059669;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.top-store .sales-info .orders {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* 第四名开始的列表展示 */
.ranking-list {
    flex: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.list-header {
    display: grid;
    grid-template-columns: 80px 3fr 5fr 2fr;
    gap: 16px;
    padding: 12px 32px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.header-col {
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.ranking-item {
    display: grid;
    grid-template-columns: 80px 3fr 5fr 2fr;
    gap: 16px;
    align-items: center;
    padding: 12px 32px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
}

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

.ranking-item:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #4A90E2;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    margin: 0 auto;
}

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

.store-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* 一横条营业数据样式 */
.business-data-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.data-inline {
    color: #666;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.data-inline strong {
    font-weight: 700;
}

/* 不同数据类型的颜色样式 */
.revenue-amount {
    color: #1e40af !important; /* 蓝色 - 总营业额 */
}

.takeout-amount {
    color: #ea580c !important; /* 橙色 - 外卖 */
}

.group-amount {
    color: #16a34a !important; /* 绿色 - 团购 */
}

/* 百分比样式 */
.growth-percent {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 3px;
}

.growth-percent.positive {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.growth-percent.negative {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.data-separator {
    color: #d1d5db;
    font-weight: bold;
    margin: 0 8px;
}

.summary-data {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

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

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.summary-label {
    font-size: 12px;
    color: #64748b;
}

/* 门店管理页面样式 */
.stores-management {
    padding: 24px;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.header-left h1 {
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.header-subtitle {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

/* 门店卡片样式 - 简洁大气风格 */
.store-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #4A90E2;
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.store-title h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.store-id {
    color: #64748b;
    font-size: 13px;
    font-family: 'Consolas', monospace;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    min-width: 60px;
}

.action-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.config-btn {
    background: rgba(74, 144, 226, 0.1) !important;
    border-color: #4A90E2 !important;
    color: #4A90E2 !important;
}

.config-btn:hover {
    background: #4A90E2 !important;
    color: white !important;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* 门店基本信息 */
.store-info {
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 8px 0;
    font-size: 14px;
}

.info-label {
    color: #64748b;
    font-weight: 600;
    min-width: 60px;
    margin-right: 12px;
    flex-shrink: 0;
}

.info-text {
    color: #475569;
    font-size: 14px;
    flex: 1;
    line-height: 1.5;
}

/* 平台绑定状态 */
.platform-status {
    margin-bottom: 24px;
}

.platform-title {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-badge {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.2s;
}

.platform-badge.active {
    background: #dcfce7;
    border-color: #16a34a;
    color: #166534;
}

.platform-badge.inactive {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.platform-name {
    font-size: 12px;
}

/* 营业数据区域优化 */
.business-data {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.business-title {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.business-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.data-label {
    color: #64748b;
    font-weight: 500;
    font-size: 13px;
}

.data-value {
    font-weight: 600;
    font-size: 15px;
}

.data-value.primary {
    color: #1e293b;
}

.data-value.secondary {
    color: #f59e0b;
}

.data-value.success {
    color: #059669;
}

.data-growth {
    color: #059669;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* 汇总信息 */
.summary-data {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

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

.summary-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.summary-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* 进度信息优化 */
.progress-section {
    margin-bottom: 0;
}

.progress-item {
    margin-bottom: 16px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

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

.progress-label {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.progress-value {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.opening {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.progress-fill.training {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .store-card {
        padding: 24px;
    }
    
    .card-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .action-btn {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 50px;
    }
    
    .summary-data {
        gap: 16px;
        padding: 16px;
    }
    
    .business-data {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .stores-management {
        padding: 16px;
    }
    
    .page-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .header-left h1 {
        font-size: 24px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .store-card {
        padding: 20px;
        border-radius: 8px;
    }
    
    .card-header {
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .store-title h3 {
        font-size: 18px;
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .platform-badges {
        gap: 6px;
    }
    
    .platform-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .summary-data {
        gap: 12px;
        padding: 12px;
    }
    
    .summary-value {
        font-size: 16px;
    }
    
    .business-data {
        padding: 12px;
    }
    
    .business-title {
        font-size: 14px;
    }
    
    .data-item {
        padding: 6px 0;
    }
    
    .data-value {
        font-size: 14px;
    }
}

/* 平台配置模态框样式 */
.platform-config-modal .modal-content {
    max-width: 800px;
    width: 95%;
}

.platform-config-content {
    padding: 0;
}

.platform-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    border-radius: 12px 12px 0 0;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.platform-tabs .tab-item {
    flex: 1;
    min-width: 120px;
    padding: 16px 12px;
    text-align: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.platform-tabs .tab-item:hover {
    background-color: #e9ecef;
    color: #4A90E2;
}

.platform-tabs .tab-item.active {
    background-color: #fff;
    color: #4A90E2;
    border-bottom-color: #4A90E2;
    font-weight: 600;
}

.platform-tabs .tab-item:first-child {
    border-radius: 12px 0 0 0;
}

.platform-tabs .tab-item:last-child {
    border-radius: 0 12px 0 0;
}

/* 子平台标签样式（客如云版本选择） */
.sub-platform-tabs {
    display: flex;
    margin-bottom: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.sub-platform-tabs .sub-tab-item {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 500;
    border-radius: 6px;
    font-size: 14px;
}

.sub-platform-tabs .sub-tab-item:hover {
    background-color: #e9ecef;
    color: #4A90E2;
}

.sub-platform-tabs .sub-tab-item.active {
    background-color: #4A90E2;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.platform-content {
    padding: 24px;
}

.platform-form {
    display: none;
}

.platform-form.active {
    display: block;
}

.sub-platform-form {
    display: none;
}

.sub-platform-form.active {
    display: block;
}

.platform-config-form {
    max-width: 600px;
    margin: 0 auto;
}

.platform-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e5e5e5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .platform-tabs {
        flex-direction: column;
    }
    
    .platform-tabs .tab-item {
        border-bottom: 1px solid #e5e5e5;
        border-radius: 0;
        min-width: auto;
    }
    
    .platform-tabs .tab-item:first-child {
        border-radius: 12px 12px 0 0;
    }
    
    .platform-tabs .tab-item:last-child {
        border-radius: 0;
        border-bottom: none;
    }
    
    .platform-tabs .tab-item.active {
        border-bottom-color: transparent;
        border-left: 3px solid #4A90E2;
    }
    
    .platform-content {
        padding: 16px;
    }
    
    .platform-actions {
        padding: 16px;
        flex-direction: column;
    }
    
    .sub-platform-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .sub-platform-tabs .sub-tab-item {
        text-align: left;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .platform-config-modal .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .platform-content {
        padding: 12px;
    }
    
    .platform-actions {
        padding: 12px;
    }
}

/* 门店卡片网格 */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

/* 页面头部按钮 */
.header-actions {
    display: flex;
    gap: 12px;
}

.header-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

/* 门店管理页面Header样式 */
.stores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.stores-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1f2937;
    font-weight: 600;
}

.stores-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.stores-actions .btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.stores-actions .btn-primary {
    background: #3b82f6;
    color: white;
}

.stores-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.stores-actions .btn-secondary {
    background: #10b981;
    color: white;
}

.stores-actions .btn-secondary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.stores-actions .btn-success {
    background: #f59e0b;
    color: white;
}

.stores-actions .btn-success:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 16px;
    line-height: 1;
}

/* 客如云数据来源样式 */
.data-source {
    font-style: italic;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stores-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stores-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .stores-actions .btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
} 