/* 全局重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "Roboto", sans-serif;
}

/* 高端科技主题色 */
:root {
    --primary: #00f3ff;       /* 主色调（霓虹蓝） */
    --primary-dark: #0099ff;  /* 深蓝渐变 */
    --secondary: #0a1628;     /* 深邃蓝黑背景 */
    --card-bg: rgba(10, 22, 40, 0.85);  /* 半透明卡片 */
    --bg: #00040f;            /* 深邃宇宙背景 */
    --border: #1a3a6e;        /* 边框色 */
    --text: #ffffff;          /* 纯白文字 */
    --text-light: #64b5f6;    /* 浅蓝文字 */
    --warning: #ff9500;       /* 橙色警告 */
    --doing: #ffd700;         /* 金色进行中 */
    --done: #00ff88;          /* 荧光绿完成 */
    --danger: #ff3366;        /* 霓虹红 */
    --profit: #00ff88;        /* 荧光绿盘盈 */
    --loss: #ff3366;          /* 霓虹红盘亏 */
    --no-diff: #64b5f6;       /* 浅蓝无差异 */
    --gradient-1: linear-gradient(135deg, #00f3ff 0%, #0066ff 100%);
    --gradient-2: linear-gradient(135deg, #00ff88 0%, #00f3ff 100%);
    --gradient-3: linear-gradient(135deg, #ff3366 0%, #ff9500 100%);
    --glow-blue: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3), 0 0 30px rgba(0, 243, 255, 0.1);
    --glow-green: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 136, 0.3);
    --glow-red: 0 0 10px rgba(255, 51, 102, 0.5), 0 0 20px rgba(255, 51, 102, 0.3);
}

/* 页面基础样式 */
body {
    background: radial-gradient(ellipse at top, #0a1628 0%, #00040f 100%);
    color: var(--text);
    padding: 85px 15px 15px 15px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* 卡片样式（高端科技风） */
.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow:
        0 0 30px rgba(0, 243, 255, 0.1),
        inset 0 0 20px rgba(0, 243, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    animation: shimmer 3s ease-in-out infinite;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 40px rgba(0, 243, 255, 0.2),
        inset 0 0 30px rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.4);
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

/* 统计看板卡片 */
.stat-card {
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(0, 4, 15, 0.95) 100%);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
    box-shadow: var(--glow-blue);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.stat-card .num {
    font-size: 42px;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

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

.stat-card .label {
    color: var(--text-light);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 表单样式 */
/* 表单容器样式优化 */
.add-form, .task-form {
    position: relative;
    padding: 25px !important;
}

.add-form h3, .task-form h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 20px !important;
    font-size: 20px !important;
    letter-spacing: 1px;
    color: var(--primary) !important;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5) !important;
}

/* 表单字段样式优化 - 增大输入框 */
.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    white-space: nowrap;
}

/* 主表单行 - 所有字段在一行，输入框加宽 */
.form-row-main {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-end;
    width: 100%;
}

.form-row-main .form-group {
    flex: 0 0 auto;
    width: 180px;
    display: flex;
    flex-direction: column;
}

/* 物料描述字段稍宽一些 */
.form-row-main .form-group:nth-child(5) {
    width: 220px;
}

/* 确保输入框占满整个单元格宽度 */
.form-row-main .form-group input,
.form-row-main .form-group select,
.form-row-main .form-group textarea {
    width: 100%;
    min-width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(0, 4, 15, 0.7);
    color: var(--text);
    border: 1.5px solid rgba(0, 243, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 243, 255, 0.05);
    min-height: 48px;
}

/* 按钮组样式 */
.form-row-main .form-btn-group {
    flex: 0 0 auto;
    width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.form-row-main .btn-add {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-top: auto;
    min-height: 48px;
    background: var(--gradient-1);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.form-row-main .btn-add:hover {
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.6);
    transform: translateY(-3px);
}

/* 导入区域样式 */
.import-area {
    margin-top: 25px !important;
    padding: 25px;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 12px;
    border: 1.5px solid rgba(0, 243, 255, 0.15);
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.05);
}

.import-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.import-label {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    white-space: nowrap;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.import-file {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(0, 4, 15, 0.7);
    color: var(--text);
    border: 1.5px solid rgba(0, 243, 255, 0.2);
    font-size: 14px;
    min-height: 48px;
    transition: all 0.3s ease;
}

.import-file::-webkit-file-upload-button {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2) 0%, rgba(0, 102, 255, 0.2) 100%);
    color: var(--primary);
    border: 1.5px solid rgba(0, 243, 255, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.btn-import {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    min-height: 48px;
    background: var(--gradient-2);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.btn-import:hover {
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .form-row-main {
        flex-wrap: wrap;
    }

    .form-row-main .form-group {
        width: calc((100% - 155px - 75px) / 4);
    }

    .form-row-main .form-group:nth-child(5) {
        width: calc((100% - 155px - 75px) / 4);
    }

    .form-row-main .form-btn-group {
        width: 155px;
    }
}

@media (max-width: 992px) {
    .form-row-main .form-group {
        width: calc((100% - 75px) / 2);
    }

    .form-row-main .form-group:nth-child(5) {
        width: calc((100% - 75px) / 2);
    }

    .form-row-main .form-btn-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row-main .form-group,
    .form-row-main .form-btn-group {
        width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 50px;
    }

    .import-row {
        flex-direction: column;
        align-items: stretch;
    }

    .import-file,
    .btn-import {
        width: 100%;
    }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .form-row .form-group {
        min-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        padding: 15px;
    }

    .form-row .form-group {
        min-width: 100%;
    }

    .import-area input[type="file"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    box-shadow:
        0 6px 25px rgba(0, 243, 255, 0.5),
        0 0 30px rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--gradient-3);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-danger:hover {
    box-shadow:
        0 6px 25px rgba(255, 51, 102, 0.5),
        0 0 30px rgba(255, 51, 102, 0.3);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-success:hover {
    box-shadow:
        0 6px 25px rgba(0, 255, 136, 0.5),
        0 0 30px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

/* 物料卡片网格布局 */
.material-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.material-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 243, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: all 0.3s ease;
}

.material-card:hover {
    transform: translateX(10px);
    box-shadow:
        0 10px 40px rgba(0, 243, 255, 0.25),
        inset 0 0 20px rgba(0, 243, 255, 0.05);
    border-color: rgba(0, 243, 255, 0.4);
}

.material-card:hover::before {
    height: 4px;
    box-shadow: var(--glow-blue);
}

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
}

.material-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    margin: 0;
}

.material-no {
    background: var(--gradient-1);
    color: #fff;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 15px rgba(0, 243, 255, 0.4);
}

.material-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.material-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: rgba(0, 4, 15, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
}

.material-item:hover {
    background: rgba(0, 4, 15, 0.8);
    border-color: rgba(0, 243, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.2);
}

.material-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.material-value {
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .material-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .material-body {
        grid-template-columns: 1fr;
    }

    .material-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 状态样式 */
.status-unstart {
    color: var(--warning);
    text-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

.status-doing {
    color: var(--doing);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.status-done {
    color: var(--done);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.status-red {
    color: var(--danger);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.system-qty-red {
    color: var(--danger);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.profit {
    color: var(--done);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.loss {
    color: var(--danger);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.no-diff {
    color: var(--text-light);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .stat-card {
        flex: 100%;
        margin-bottom: 15px;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    input, select {
        width: 100%;
        margin-bottom: 10px;
    }
    .table th, .table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 头部导航 */
.header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(0, 4, 15, 0.6);
    color: var(--text);
    border: 1px solid rgba(0, 243, 255, 0.15);
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    background: rgba(0, 4, 15, 0.8);
}

.filter-bar .btn {
    padding: 12px 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 针对 dashboard 页面的筛选栏特殊处理 */
.filter-dashboard {
    grid-column: span 1;
}

/* 按钮容器 */
.filter-bar .btn-container {
    display: flex;
    gap: 10px;
    grid-column: span 1;
}

/* 统计卡片容器 */
.header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 统计卡片样式 */
.stat-card {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(0, 4, 15, 0.95) 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 243, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
    box-shadow: var(--glow-blue);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.2);
    border-color: rgba(0, 243, 255, 0.3);
}

.stat-card .num {
    font-size: 48px;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

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

.stat-card .label {
    color: var(--text-light);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* 表格容器样式 */
.table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    background: var(--card-bg);
    border: 1px solid rgba(0, 243, 255, 0.1);
    margin-top: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    table-layout: auto;
}

.table thead {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15) 0%, rgba(0, 102, 255, 0.15) 100%);
}

.table th {
    color: var(--primary);
    padding: 18px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid rgba(0, 243, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.table th:hover {
    background: rgba(0, 243, 255, 0.1);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.05);
    transition: all 0.3s ease;
    vertical-align: middle;
    font-size: 14px;
    color: var(--text);
    text-align: center;
}

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

.table tbody tr:hover {
    background: rgba(0, 243, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.05);
}

.table tbody tr:nth-child(even) {
    background: rgba(0, 4, 15, 0.3);
}

.table tbody tr:nth-child(even):hover {
    background: rgba(0, 243, 255, 0.08);
}

/* 字段内容美化 */
.table td:first-child {
    font-weight: bold;
    color: var(--primary);
}

/* 响应式表格 */
@media (max-width: 1200px) {
    .table th,
    .table td {
        padding: 14px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .table th,
    .table td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .table thead {
        font-size: 11px;
    }
}

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

.table-container::-webkit-scrollbar-track {
    background: rgba(0, 4, 15, 0.5);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}

/* 自动列宽表格样式 */
.table-auto-width {
    width: auto;
    min-width: 100%;
}

.table-auto-width th,
.table-auto-width td {
    white-space: nowrap;
    padding: 15px 20px;
    text-align: center;
}

.table-auto-width th:nth-child(1),
.table-auto-width td:nth-child(1) {
    min-width: 100px;
}

.table-auto-width th:nth-child(2),
.table-auto-width td:nth-child(2),
.table-auto-width th:nth-child(3),
.table-auto-width td:nth-child(3) {
    min-width: 100px;
}

.table-auto-width th:nth-child(4),
.table-auto-width td:nth-child(4) {
    min-width: 90px;
}

.table-auto-width th:nth-child(5),
.table-auto-width td:nth-child(5) {
    min-width: 120px;
}

.table-auto-width th:nth-child(6),
.table-auto-width td:nth-child(6) {
    min-width: 110px;
}

.table-auto-width th:nth-child(7),
.table-auto-width td:nth-child(7) {
    min-width: 140px;
}

.table-auto-width th:nth-child(8),
.table-auto-width td:nth-child(8) {
    min-width: 120px;
}

.table-auto-width th:nth-child(9),
.table-auto-width td:nth-child(9) {
    min-width: 150px;
}

.table-auto-width th:nth-child(10),
.table-auto-width td:nth-child(10),
.table-auto-width th:nth-child(11),
.table-auto-width td:nth-child(11),
.table-auto-width th:nth-child(12),
.table-auto-width td:nth-child(12) {
    min-width: 90px;
    text-align: center;
}

.table-auto-width th:nth-child(13),
.table-auto-width td:nth-child(13) {
    min-width: 100px;
    text-align: center;
}

.table-auto-width th:nth-child(14),
.table-auto-width td:nth-child(14) {
    min-width: 160px;
}

/* 导航栏样式（固定在顶部） */
.navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98) 0%, rgba(0, 4, 15, 1) 100%);
    padding: 18px 30px;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow:
        0 5px 30px rgba(0, 243, 255, 0.2),
        inset 0 0 20px rgba(0, 243, 255, 0.05);
    border-bottom: 2px solid rgba(0, 243, 255, 0.3);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    box-shadow: var(--glow-blue);
}

.nav-brand {
    font-size: 22px;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    animation: brandGlow 3s ease-in-out infinite;
    letter-spacing: 1px;
    flex-shrink: 0;
}

@keyframes brandGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
    box-shadow: var(--glow-blue);
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(0, 243, 255, 0.05);
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a.active {
    background: var(--gradient-1);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.nav-links a.active::before {
    width: 0;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.nav-user span {
    color: var(--text-light);
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.1);
}

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

/* 页面主体内容需要添加上边距，避免被固定导航栏遮挡 */
body {
    background: radial-gradient(ellipse at top, #0a1628 0%, #00040f 100%);
    color: var(--text);
    padding: 85px 15px 15px 15px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        height: auto;
        position: relative;
    }

    body {
        padding-top: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-user {
        width: 100%;
        justify-content: center;
        border-top: 1px solid rgba(0, 243, 255, 0.1);
        padding-top: 15px;
    }
}

/* 登录页面特殊样式 */
.login {
    width: 100%;
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow:
        0 0 50px rgba(0, 243, 255, 0.2),
        inset 0 0 30px rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.login h2 {
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 28px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    position: relative;
    z-index: 1;
}

.login form {
    position: relative;
    z-index: 1;
}

/* 添加表单容器特殊样式 */
.add-form, .task-form {
    position: relative;
}

.add-form h3, .task-form h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 20px !important;
}

/* 横向表单布局 */
.add-form input,
.add-form select,
.add-form textarea,
.task-form input,
.task-form select,
.task-form textarea {
    width: calc((100% - 240px) / 3);
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
}

.add-form input:nth-of-type(3n),
.task-form input:nth-of-type(3n) {
    margin-right: 0;
}

/* 按钮样式调整 */
.add-form .btn,
.task-form .btn {
    margin-top: 10px;
}

/* 导入区域样式 */
.import-area {
    margin-top: 20px !important;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.import-area input[type="file"] {
    width: calc((100% - 240px) / 3);
    display: inline-block;
    margin-right: 15px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .form-row .form-group {
        min-width: calc((100% - 15px) / 2);
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        min-width: 100%;
    }

    .import-area input[type="file"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 1200px) {
    .add-form input,
    .add-form select,
    .add-form textarea,
    .task-form input,
    .task-form select,
    .task-form textarea {
        width: calc((100% - 120px) / 2);
    }

    .add-form input:nth-of-type(2n),
    .task-form input:nth-of-type(2n) {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .add-form input,
    .add-form select,
    .add-form textarea,
    .task-form input,
    .task-form select,
    .task-form textarea {
        width: 100%;
        margin-right: 0;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 4, 15, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}

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

.card, .navbar, .stat-card {
    animation: fadeIn 0.6s ease-out;
}

.search-group button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(0, 102, 255, 0.2));
    border: 1.5px solid rgba(0, 243, 255, 0.3);
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.search-btn-group {
    display: flex;
    gap: 10px;
    height: 42px;
}

.search-btn-group button {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn-group .btn-primary {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(0, 102, 255, 0.2));
    border: 1.5px solid rgba(0, 243, 255, 0.3);
    color: var(--primary);
}

.search-btn-group .btn-success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 102, 0.2));
    border: 1.5px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.search-btn-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}