/* 
 * Fresh Style - 小清新素雅简约风格样式表
 * TLBB Platform Unified Stylesheet
 * Requirements: 1.1, 1.2, 1.3
 */

/* ========================================
   自定义字体 - Custom Font
   ======================================== */
@font-face {
    font-family: 'TLBBFont';
    src: url('/ziti/custom_font_20251124112440.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   配色方案 - 小清新淡雅色系
   ======================================== */
:root {
    /* 主色调 */
    --primary: #7FB3D5;        /* 天蓝色 */
    --primary-light: #AED6F1;  /* 浅天蓝 */
    --primary-dark: #5499C7;   /* 深天蓝 */
    
    /* 辅助色 */
    --secondary: #A9DFBF;      /* 薄荷绿 */
    --accent: #F8C471;         /* 暖杏黄 */
    --rose: #F1948A;           /* 玫瑰粉 */
    --lavender: #BB8FCE;       /* 薰衣草紫 */
    
    /* 背景色 */
    --bg-light: #F8F9FA;       /* 浅灰白 */
    --bg-medium: #E8E8E8;      /* 中灰 */
    
    /* 文字色 */
    --text-dark: #2C3E50;      /* 深灰蓝文字 */
    --text-light: #7F8C8D;     /* 浅灰文字 */
    
    /* 边框和阴影 */
    --border: #D5D8DC;         /* 边框色 */
    --shadow: rgba(0,0,0,0.08);
}

/* ========================================
   全局样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TLBBFont', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #F0F4F8 0%, #E8EEF2 50%, #F5F8FA 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}


/* ========================================
   卡片组件 - Card Components
   ======================================== */
.card-fresh {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-fresh::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 179, 213, 0.1), transparent);
    transition: left 0.6s ease;
}

.card-fresh:hover {
    box-shadow: 0 8px 30px rgba(127, 179, 213, 0.2);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.card-fresh:hover::before {
    left: 100%;
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.stat-card.secondary {
    border-left-color: var(--secondary);
}

.stat-card.accent {
    border-left-color: var(--accent);
}

.stat-card.rose {
    border-left-color: var(--rose);
}

.stat-card.lavender {
    border-left-color: var(--lavender);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ========================================
   按钮组件 - Button Components
   ======================================== */
.btn-fresh {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-fresh::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-fresh:hover::before {
    width: 300px;
    height: 300px;
}

.btn-fresh:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(127, 179, 213, 0.5);
    filter: brightness(1.1);
    color: white;
    text-decoration: none;
}

.btn-fresh:active {
    transform: translateY(0) scale(0.98);
}

.btn-fresh-secondary {
    background: linear-gradient(135deg, var(--secondary), #82E0AA);
}

.btn-fresh-secondary:hover {
    box-shadow: 0 6px 20px rgba(169, 223, 191, 0.5);
}

.btn-fresh-rose {
    background: linear-gradient(135deg, var(--rose), #E59866);
}

.btn-fresh-rose:hover {
    box-shadow: 0 6px 20px rgba(241, 148, 138, 0.5);
}

.btn-fresh-lavender {
    background: linear-gradient(135deg, var(--lavender), #9B59B6);
}

.btn-fresh-lavender:hover {
    box-shadow: 0 6px 20px rgba(187, 143, 206, 0.5);
}

.btn-fresh-accent {
    background: linear-gradient(135deg, var(--accent), #F39C12);
}

.btn-fresh-accent:hover {
    box-shadow: 0 6px 20px rgba(248, 196, 113, 0.5);
}

/* 小尺寸按钮 */
.btn-fresh-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* 大尺寸按钮 */
.btn-fresh-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 全宽按钮 */
.btn-fresh-block {
    display: block;
    width: 100%;
    text-align: center;
}


/* ========================================
   输入框组件 - Input Components
   ======================================== */
.input-fresh {
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.input-fresh:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(127, 179, 213, 0.1);
}

.input-fresh::placeholder {
    color: var(--text-light);
}

.input-fresh:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

/* 输入框组 */
.input-group-fresh {
    margin-bottom: 1rem;
}

.input-group-fresh label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Select 下拉框 */
select.input-fresh {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237F8C8D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Textarea */
textarea.input-fresh {
    min-height: 100px;
    resize: vertical;
}

/* ========================================
   导航栏组件 - Navigation Components
   ======================================== */
.nav-fresh {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-fresh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-fresh-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
}

.nav-fresh-brand:hover {
    color: var(--primary);
}

.nav-fresh-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-fresh-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-fresh-link:hover,
.nav-fresh-link.active {
    color: var(--primary);
}

/* ========================================
   表格组件 - Table Components
   ======================================== */
.table-fresh {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.table-fresh thead th {
    background: linear-gradient(135deg, var(--bg-light), #E8EEF2);
    color: var(--text-dark);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.table-fresh tbody td {
    padding: 1rem;
    border-bottom: 1px solid #E8E8E8;
    vertical-align: middle;
}

.table-fresh tbody tr:last-child td {
    border-bottom: none;
}

.table-fresh tbody tr {
    transition: background 0.2s ease;
}

.table-fresh tbody tr:hover {
    background: var(--bg-light);
}

/* 紧凑表格 */
.table-fresh-compact thead th,
.table-fresh-compact tbody td {
    padding: 0.75rem;
}


/* ========================================
   提示框组件 - Alert Components
   ======================================== */
.alert-fresh {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    background: white;
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 1rem;
}

.alert-info {
    border-left-color: var(--primary);
    background: #EBF5FB;
}

.alert-success {
    border-left-color: var(--secondary);
    background: #EAFAF1;
}

.alert-warning {
    border-left-color: var(--accent);
    background: #FEF9E7;
}

.alert-danger {
    border-left-color: var(--rose);
    background: #FDEDEC;
}

/* ========================================
   徽章组件 - Badge Components
   ======================================== */
.badge-fresh {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: var(--secondary);
    color: #27AE60;
}

.badge-warning {
    background: #FCF3CF;
    color: #E67E22;
}

.badge-danger {
    background: #FADBD8;
    color: #E74C3C;
}

.badge-lavender {
    background: #E8DAEF;
    color: #8E44AD;
}

/* ========================================
   标签页组件 - Tabs Components
   ======================================== */
.tabs-fresh {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-fresh {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-fresh:hover {
    color: var(--primary);
}

.tab-fresh.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========================================
   图标容器 - Icon Box
   ======================================== */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.icon-box-sm {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
    border-radius: 8px;
}

.icon-box-lg {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    border-radius: 16px;
}

.icon-box-secondary {
    background: var(--secondary);
    color: #27AE60;
}

.icon-box-accent {
    background: #FCF3CF;
    color: #E67E22;
}

.icon-box-rose {
    background: #FADBD8;
    color: #E74C3C;
}

.icon-box-lavender {
    background: #E8DAEF;
    color: #8E44AD;
}

/* ========================================
   标题样式 - Title Styles
   ======================================== */
.title-fresh {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.subtitle-fresh {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ========================================
   分隔线 - Divider
   ======================================== */
.divider-fresh {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 1.5rem 0;
}


/* ========================================
   动画效果 - Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 动画类 */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* 延迟动画 */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ========================================
   布局容器 - Layout Containers
   ======================================== */
.container-fresh {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fresh-sm {
    max-width: 600px;
}

.container-fresh-md {
    max-width: 800px;
}

.container-fresh-lg {
    max-width: 1400px;
}

/* 页面内容区 */
.page-content {
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 80px);
    max-width: 1200px;
    margin: 0 auto;
}

/* 主容器居中 */
main, .main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 容器居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 居中卡片布局（用于登录等页面） */
.center-card-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* 网格布局 */
.grid-fresh {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   工具类 - Utility Classes
   ======================================== */

/* 文字颜色 */
.text-primary { color: var(--primary); }
.text-primary-dark { color: var(--primary-dark); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-rose { color: var(--rose); }
.text-lavender { color: var(--lavender); }
.text-muted { color: var(--text-light); }
.text-dark { color: var(--text-dark); }
.text-white { color: white; }

/* 背景颜色 */
.bg-primary { background: var(--primary); }
.bg-primary-light { background: var(--primary-light); }
.bg-secondary { background: var(--secondary); }
.bg-accent { background: var(--accent); }
.bg-rose { background: var(--rose); }
.bg-lavender { background: var(--lavender); }
.bg-light { background: var(--bg-light); }
.bg-white { background: white; }

/* 圆角 */
.rounded { border-radius: 8px; }
.rounded-sm { border-radius: 4px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

/* 阴影 */
.shadow-sm { box-shadow: 0 1px 3px var(--shadow); }
.shadow { box-shadow: 0 2px 8px var(--shadow); }
.shadow-md { box-shadow: 0 4px 12px var(--shadow); }
.shadow-lg { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.shadow-xl { box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

/* 间距 */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* 文字对齐 */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* 字体大小 */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* 字体粗细 */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* 显示 */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

/* 宽度 */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* 溢出 */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* 光标 */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ========================================
   响应式设计 - Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .card-fresh {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .title-fresh {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .nav-fresh-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-fresh-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-fresh {
        padding: 0.625rem 1.25rem;
    }
    
    .table-fresh {
        font-size: 0.875rem;
    }
    
    .table-fresh thead th,
    .table-fresh tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    /* 移动端隐藏 */
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    /* 桌面端隐藏 */
    .hide-desktop {
        display: none;
    }
}

/* ========================================
   打印样式 - Print Styles
   ======================================== */
@media print {
    body {
        background: white;
    }
    
    .nav-fresh,
    .btn-fresh {
        display: none;
    }
    
    .card-fresh {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
