/* ================================
   荔枝主题 - 媲美客服智能外呼系统
   主色调: #7D535D (熟透荔枝色)
   黄金比例: 1.618
   ================================ */

:root {
    /* 荔枝主题色系 */
    --lychee-primary: #7D535D;
    --lychee-primary-light: #9D737D;
    --lychee-primary-dark: #5D333D;
    --lychee-primary-pale: #FCE4EC;
    --lychee-accent: #9D737D;
    
    /* 辅助色 */
    --lychee-secondary: #9E9E9E;
    --lychee-success: #4CAF50;
    --lychee-warning: #FFC107;
    --lychee-danger: #F44336;
    --lychee-info: #2196F3;
    
    /* 中性色 */
    --lychee-white: #FFFFFF;
    --lychee-black: #212121;
    --lychee-dark: #424242;
    --lychee-gray: #757575;
    --lychee-light: #FAFAFA;
    --lychee-border: #E0E0E0;
    
    /* 渐变色 */
    --lychee-gradient: linear-gradient(135deg, #7D535D 0%, #9D737D 100%);
    --lychee-gradient-soft: linear-gradient(135deg, #FCE4EC 0%, #F8BBD9 100%);
    
    /* 阴影 */
    --lychee-shadow: 0 4px 20px rgba(125, 83, 93, 0.15);
    --lychee-shadow-hover: 0 8px 30px rgba(125, 83, 93, 0.25);
    --lychee-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
    
    /* 字体 */
    --lychee-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* 圆角 - 黄金比例 */
    --lychee-radius: 1.618rem;
    --lychee-radius-sm: 0.618rem;
    --lychee-radius-lg: 2.618rem;
    
    /* 间距 - 黄金比例 */
    --lychee-space-xs: 0.382rem;
    --lychee-space-sm: 0.618rem;
    --lychee-space-md: 1rem;
    --lychee-space-lg: 1.618rem;
    --lychee-space-xl: 2.618rem;
    --lychee-space-2xl: 4.236rem;
}

/* ================================
   基础样式
   ================================ */

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

body {
    font-family: var(--lychee-font);
    background-color: var(--lychee-light);
    color: var(--lychee-dark);
    line-height: 1.618;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   荔枝主题按钮
   ================================ */

.btn-lychee {
    background: var(--lychee-gradient);
    color: var(--lychee-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--lychee-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--lychee-shadow);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lychee:hover {
    transform: translateY(-2px);
    box-shadow: var(--lychee-shadow-hover);
    color: var(--lychee-white);
}

.btn-lychee-outline {
    background: transparent;
    color: var(--lychee-primary);
    border: 2px solid var(--lychee-primary);
    padding: 0.618rem 1.618rem;
    border-radius: var(--lychee-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lychee-outline:hover {
    background: var(--lychee-primary);
    color: var(--lychee-white);
    transform: translateY(-2px);
}

.btn-lychee-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
    border-radius: 1.2rem;
}

.btn-lychee-lg {
    padding: 1rem 2.618rem;
    font-size: 1.125rem;
    border-radius: 2rem;
}

/* ================================
   卡片样式 - 黄金比例
   ================================ */

.lychee-card {
    background: var(--lychee-white);
    border-radius: var(--lychee-radius);
    box-shadow: var(--lychee-shadow-card);
    transition: all 0.3s ease;
    overflow: hidden;
}

.lychee-card:hover {
    box-shadow: var(--lychee-shadow);
    transform: translateY(-4px);
}

.lychee-card-header {
    padding: 1.618rem 1.618rem 1rem;
    border-bottom: 1px solid var(--lychee-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lychee-card-body {
    padding: 1.618rem;
}

.lychee-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lychee-dark);
    margin: 0;
}

/* ================================
   统计卡片
   ================================ */

.lychee-stat-card {
    background: var(--lychee-white);
    border-radius: var(--lychee-radius);
    padding: 1.618rem;
    display: flex;
    align-items: center;
    gap: 1.618rem;
    box-shadow: var(--lychee-shadow-card);
    transition: all 0.3s ease;
}

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

.lychee-stat-icon {
    width: 5rem;
    height: 5rem;
    border-radius: var(--lychee-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

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

.lychee-stat-icon.success {
    background: #E8F5E9;
    color: var(--lychee-success);
}

.lychee-stat-icon.info {
    background: #E3F2FD;
    color: var(--lychee-info);
}

.lychee-stat-icon.warning {
    background: #FFF8E1;
    color: var(--lychee-warning);
}

.lychee-stat-value {
    font-size: 2.618rem;
    font-weight: 800;
    color: var(--lychee-dark);
    line-height: 1;
    margin-bottom: 0.382rem;
}

.lychee-stat-label {
    font-size: 0.938rem;
    color: var(--lychee-gray);
}

/* ================================
   状态标签
   ================================ */

.lychee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.382rem;
    padding: 0.382rem 1rem;
    border-radius: 2rem;
    font-size: 0.812rem;
    font-weight: 600;
}

.lychee-badge.success {
    background: #E8F5E9;
    color: var(--lychee-success);
}

.lychee-badge.warning {
    background: #FFF8E1;
    color: #F57C00;
}

.lychee-badge.danger {
    background: #FFEBEE;
    color: var(--lychee-danger);
}

.lychee-badge.info {
    background: #E3F2FD;
    color: var(--lychee-info);
}

.lychee-badge.primary {
    background: var(--lychee-primary-pale);
    color: var(--lychee-primary);
}

/* ================================
   表格样式
   ================================ */

.lychee-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--lychee-white);
    border-radius: var(--lychee-radius);
    overflow: hidden;
}

.lychee-table thead {
    background: var(--lychee-primary-pale);
}

.lychee-table th {
    padding: 1.2rem 1.618rem;
    text-align: left;
    font-weight: 700;
    color: var(--lychee-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.lychee-table td {
    padding: 1.2rem 1.618rem;
    border-bottom: 1px solid var(--lychee-border);
    color: var(--lychee-dark);
}

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

.lychee-table tbody tr:hover {
    background: var(--lychee-primary-pale);
}

/* ================================
   表单样式
   ================================ */

.lychee-form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--lychee-border);
    border-radius: var(--lychee-radius-sm);
    font-size: 1rem;
    color: var(--lychee-dark);
    background: var(--lychee-white);
    transition: all 0.3s ease;
}

.lychee-form-control:focus {
    outline: none;
    border-color: var(--lychee-primary);
    box-shadow: 0 0 0 4px rgba(125, 83, 93, 0.1);
}

.lychee-form-control::placeholder {
    color: var(--lychee-gray);
}

.lychee-form-label {
    display: block;
    margin-bottom: 0.618rem;
    font-weight: 600;
    color: var(--lychee-dark);
}

/* ================================
   导航栏
   ================================ */

.lychee-navbar {
    background: var(--lychee-gradient);
    padding: 1rem 2rem;
    box-shadow: var(--lychee-shadow);
}

.lychee-navbar-brand {
    color: var(--lychee-white) !important;
    font-weight: 800;
    font-size: 1.618rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.lychee-navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.618rem 1.25rem !important;
    border-radius: var(--lychee-radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.lychee-navbar-nav .nav-link:hover,
.lychee-navbar-nav .nav-link.active {
    color: var(--lychee-white) !important;
    background: rgba(255, 255, 255, 0.2);
}

.lychee-navbar-btn {
    background: var(--lychee-white);
    color: var(--lychee-primary) !important;
    padding: 0.5rem 1.618rem !important;
    border-radius: 2rem;
    font-weight: 700;
}

/* ================================
   侧边栏
   ================================ */

.lychee-sidebar {
    background: var(--lychee-white);
    min-height: calc(100vh - 80px);
    border-right: 1px solid var(--lychee-border);
    padding: 1.618rem 0;
}

.lychee-sidebar .nav-link {
    color: var(--lychee-gray);
    padding: 0.875rem 1.618rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.lychee-sidebar .nav-link:hover {
    color: var(--lychee-primary);
    background: var(--lychee-primary-pale);
}

.lychee-sidebar .nav-link.active {
    color: var(--lychee-primary);
    background: var(--lychee-primary-pale);
    border-left-color: var(--lychee-primary);
    font-weight: 700;
}

.lychee-sidebar-section {
    padding: 0 1.618rem;
    margin-bottom: 1.618rem;
}

.lychee-sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lychee-gray);
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

/* ================================
   主内容区
   ================================ */

.lychee-main-content {
    padding: 2.618rem;
    min-height: calc(100vh - 80px);
    background: var(--lychee-light);
}

.lychee-page-header {
    margin-bottom: 2.618rem;
}

.lychee-page-title {
    font-size: 2.618rem;
    font-weight: 800;
    color: var(--lychee-dark);
    margin-bottom: 0.382rem;
    background: var(--lychee-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lychee-page-subtitle {
    color: var(--lychee-gray);
    font-size: 1.1rem;
}

/* ================================
   进度条
   ================================ */

.lychee-progress {
    height: 8px;
    background: var(--lychee-primary-pale);
    border-radius: 4px;
    overflow: hidden;
}

.lychee-progress-bar {
    height: 100%;
    background: var(--lychee-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ================================
   底部
   ================================ */

.lychee-footer {
    background: var(--lychee-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 2.618rem 0;
    margin-top: 4.236rem;
}

.lychee-footer a {
    color: var(--lychee-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lychee-footer a:hover {
    color: var(--lychee-white);
}

/* ================================
   动画效果
   ================================ */

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

@keyframes lycheePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.lychee-animate-fade-in {
    animation: lycheeFadeInUp 0.6s ease forwards;
}

.lychee-animate-delay-1 { animation-delay: 0.1s; }
.lychee-animate-delay-2 { animation-delay: 0.2s; }
.lychee-animate-delay-3 { animation-delay: 0.3s; }
.lychee-animate-delay-4 { animation-delay: 0.4s; }

/* ================================
   响应式
   ================================ */

@media (max-width: 991.98px) {
    .lychee-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--lychee-border);
    }
    
    .lychee-main-content {
        padding: 1.618rem;
    }
    
    .lychee-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .lychee-stat-icon {
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .lychee-page-title {
        font-size: 2rem;
    }
    
    .lychee-card-body {
        padding: 1rem;
    }
}
