@charset "UTF-8";
/**
 * 自定义样式 - 绿色主题
 * 用于增强网站的绿色主题视觉效果
 */

/* 绿色渐变背景 */
.gradient-green {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

/* 绿色边框光晕效果 */
.green-glow {
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
}

/* 进度条绿色渐变 */
.progress-value {
    background: linear-gradient(90deg, #059669 0%, #10B981 100%);
}

/* 按钮悬停效果增强 */
.btn-hover:hover {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

/* 卡片悬停效果 */
.card-hover:hover {
    box-shadow: 0 10px 40px rgba(5, 150, 105, 0.2);
    transform: translateY(-4px);
}

/* 输入框焦点绿色光晕 */
.input-focus:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* 导航链接下划线动画 */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 图标旋转动画 */
.icon-spin:hover {
    animation: spin 1s ease-in-out;
}

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

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* 脉冲动画（用于重要提示） */
.pulse-green {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(5, 150, 105, 0);
    }
}

/* 徽章样式 */
.badge-green {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

/* 成功提示框 */
.success-box {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-left: 4px solid #059669;
    color: #065F46;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

/* 警告提示框 */
.warning-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-left: 4px solid #F59E0B;
    color: #92400E;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

/* 危险提示框 */
.danger-box {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-left: 4px solid #EF4444;
    color: #991B1B;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

/* 表格行悬停效果 */
.table-row-hover:hover {
    background-color: #D1FAE5;
    transition: background-color 0.2s ease;
}

/* 标签页激活状态 */
.tab-active {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: white;
    border-color: #059669;
}

/* 选择框美化 */
select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* 单选框和复选框美化 */
input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: #059669;
    border-color: #059669;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .card-shadow {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    
    .btn-hover:active {
        transform: translateY(-2px);
    }
}
/* 通用表格美化 + 手机端滑动 */

/* 1. 基础样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    background-color: #fff;
    display: table; /* 电脑端保持表格布局 */
}

/* 2. 边框和间距 */
table th,
table td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
}

table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

/* 3. 手机端：强制表格独立滚动 */
@media (max-width: 768px) {
    table {
        display: block;           /* 变成块级元素，不再受父级宽度限制 */
        overflow-x: auto;         /* 超出宽度自动出现横向滚动条 */
        white-space: nowrap;      /* 强制不换行，撑开宽度 */
        -webkit-overflow-scrolling: touch; /* 手机端丝滑滚动 */
    }
}