* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    background: #f1f5f9;
    padding: 20px;
}

.container {
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
/* 头部：Logo 和标题合并居中 */
.header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.header .logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.header img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header h1 {
    font-size: 1.6rem;
    margin-top: 0;
    color: #1e293b;
}


.header h1 small {
    font-size: 0.9rem;
    color: #475569;
}

/* 按钮、表格、卡片等公用样式 */
.flex {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-4 {
    margin-top: 16px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* 表格样式 - 保证宽度一致 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: white;
}

th, td {
    border: 1px solid #cbd5e0;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    font-weight: 600;
}

/* 按钮样式 */
button, .btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

button:hover, .btn:hover {
    background: #1d4ed8;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-secondary {
    background: #64748b;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-sm { padding: 4px 12px; font-size: 0.8rem; }
/* 卡片样式（评委卡片等） */
.judge-card {
    border: 1px solid #cbd5e0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    background: white;
    position: relative;
}

/* 输入框、下拉框 */
input, select, textarea {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}

/* 模态框背景 */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
}

/* 论文题目行 */
.thesis-row {
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    th, td {
        padding: 6px;
        font-size: 12px;
    }
    .header h1 {
        font-size: 1.3rem;
    }
    .header img {
        height: 45px;
    }
    .flex {
        flex-direction: column;
        align-items: stretch;
    }
    button, .btn {
        justify-content: center;
    }
}