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

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    background: transparent;  /*改为透明*/
}

/*#gradientBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: -1;
}*/

/* 渐变流动背景 */
#gradientBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 25px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    padding: 12px 25px;
    color: black;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav a:hover {
    transform: translateY(-1px);
    color: #2DC98B;
}

.nav a.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-left: 5px solid #3498db;
    padding-left: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    margin-top:10px;
}

.form-row-btn {
    display: flex;
}

.blank-setting {
    margin-top:10px;
}

.blank-setting2 {
    margin-top:20px;
}

.form-row input {
    flex: 1;
}

input, textarea, select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input[type="file"] {
    padding: 12px;
    background: white;
}

textarea {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 20px;
}

#file-upload {
    display: none; /* 隐藏原始输入框 */
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.form-check-input {
    width: 20px !important;
    height: 20px;
}

.form-check-label {
    font-weight: 500;
    color: #2c3e50;
}


.green-file-input {
    padding: 15px;
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    border-radius: 12px;
    border: none !important;
    cursor: pointer;
    margin-bottom:20px;
}

.green-file-input::file-selector-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 15px;
    margin-right: 15px;
    cursor: pointer;
}

.green-file-input:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

small {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.upload-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

button:disabled {
    background: #bdc3c7;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    text-align:center;
}

th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.badge-success {
    background: #d5f4e6;
    color: #27ae60;
}

.badge-warning {
    background: #fdebd0;
    color: #e67e22;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons button {
    padding: 8px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.action-buttons a {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.model-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.model-filter label {
    font-weight: 600;
    color: #2c3e50;
}

.model-filter select {
    flex: 1;
    max-width: 300px;
}

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

    .nav {
        flex-direction: column;
        align-items: center;
    }

    .nav a {
        width: 200px;
        text-align: center;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px 8px;
    }
}

.button {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    box-shadow: 0 1px 4px rgba(231, 76, 60, 0.3) !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    margin: 2px !important;
}

.button:hover {
    transform: translateY(-1px) !important;  /* 减小悬停移动距离 */
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4) !important;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.download-btn {
    background: #27ae60;
    color: white;
}

.download-btn:hover {
    background: #229954;
}