:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-gradient: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --glow: 0 0 15px rgba(14, 165, 233, 0.5);
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 20px;
    background: var(--bg-gradient);
    color: #e2e8f0;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 1;
}

.header {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.7);
    position: relative;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #e2e8f0, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    color: #94a3b8;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.tabs {
    display: flex;
    background: rgba(30, 41, 59, 0.8);
    padding: 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
}

.tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.tab {
    padding: 18px 30px;
    cursor: pointer;
    font-weight: 600;
    color: #94a3b8;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    font-size: 1.1rem;
}

.tab:hover {
    color: var(--primary-light);
    background: rgba(14, 165, 233, 0.1);
}

.tab.active {
    color: var(--primary-light);
    border-bottom: 3px solid var(--primary);
    background: rgba(14, 165, 233, 0.15);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: var(--glow);
}

.tab-content {
    display: none;
    padding: 35px;
    animation: fadeIn 0.4s ease-out;
}

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

.tab-content.active {
    display: block;
}

.card {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    box-shadow: var(--glow);
}

.rules {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-left-color: var(--secondary);
}

.rules ul {
    padding-left: 25px;
    margin: 20px 0;
}

.rules li {
    margin-bottom: 12px;
    line-height: 1.7;
    position: relative;
    padding-left: 10px;
    color: #cbd5e1;
}

.rules li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-end;
}

.input-field {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.input-field input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3), var(--glow);
    outline: none;
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.7);
}

.input-field input::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.5), var(--glow);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: #0da271;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.5);
}

.btn-warning {
    background: var(--warning);
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    background: #d97706;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.5);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.5);
}

.btn-info {
    background: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-info:hover {
    background: #7c3aed;
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.5);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(14, 165, 233, 0.2) 100%);
    color: white;
    padding: 18px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    color: #e2e8f0;
}

tr {
    transition: var(--transition);
}

tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.3);
}

tr:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

tr:hover td {
    background: transparent;
}

.input-score {
    width: 90px;
    padding: 10px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
}

.input-score:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3), var(--glow);
    outline: none;
    transform: scale(1.02);
    background: rgba(15, 23, 42, 0.7);
}

.highlight {
    color: var(--success);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.error {
    color: var(--danger);
    font-size: 0.95rem;
    margin-top: 8px;
    font-weight: 500;
}

.footer {
    text-align: center;
    padding: 25px;
    color: #94a3b8;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.7);
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .tabs {
        flex-direction: column;
        padding: 0;
    }

    .tab {
        padding: 15px 20px;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tab.active {
        border-bottom: 3px solid var(--primary);
    }

    .tab-content {
        padding: 25px 20px;
    }

    .form-group {
        flex-direction: column;
    }

    .input-field {
        min-width: 100%;
    }

    .controls {
        flex-direction: column;
    }

    table {
        font-size: 0.9rem;
    }

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

    .input-score {
        width: 80px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 微调动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn:focus {
    animation: pulse 0.5s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 科技感装饰元素 */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.1);
    pointer-events: none;
}

/* 文件输入样式 */
.input-field input[type="file"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.input-field input[type="file"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3), var(--glow);
    outline: none;
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.7);
}

.input-field input[type="file"]::file-selector-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    margin-right: 15px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.input-field input[type="file"]::file-selector-button:hover {
    background: var(--primary-dark);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .input-field input[type="file"] {
        font-size: 0.9rem;
    }

    .input-field input[type="file"]::file-selector-button {
        padding: 6px 12px;
        margin-right: 10px;
    }
}