/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Heiti SC', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    color: #8B4513;
    margin-bottom: 15px;
    text-align: center;
}

/* 头部样式 */
header {
    background-color: #8B4513;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: rgba(255,255,255,0.2);
}

/* 登录页 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f9f5e9;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d2b48c' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 2px rgba(139,69,19,0.2);
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #8B4513;
    color: white;
}

.btn-primary:hover {
    background-color: #6d3811;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #bb2d3b;
}

.btn-large {
    padding: 12px 28px;
    font-size: 1.1rem;
}

/* 提示消息 */
.flash-message {
    padding: 12px 15px;
    margin: 0 0 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 上传页 */
.upload-section, .file-list {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.file-list ul {
    list-style: none;
}

.file-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-actions {
    display: flex;
    gap: 10px;
}

/* 抽取控制页 */
.control-panel {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto 30px;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
    font-size: 1.05rem;
}

.radio-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.roll-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.view-switch {
    text-align: center;
    margin-top: 20px;
}

/* 大屏展示页 */
.screen-container {
    width: 100vw;
    height: 100vh;
    padding: 50px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.screen-header {
    font-size: 2.2rem;
    color: #8B4513;
    margin-bottom: 40px;
    text-align: center;
}

.display-box {
    width: 100%;
    max-width: 1200px;
    min-height: 300px;
    border: 3px solid #8B4513;
    border-radius: 10px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #f9f5e9;
}

.contestant-content {
    font-size: 2.5rem;
    line-height: 2.2;
    color: #333;
    font-weight: 500;
}

.judge-content {
    width: 100%;
}

.judge-extracted {
    font-size: 1.8rem;
    color: #8B4513;
    margin-bottom: 25px;
    font-weight: 500;
}

.judge-reference {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    text-align: left;
}

/* 滚动动画 */
@keyframes roll {
    0% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-10px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 0.8; }
}

.rolling {
    animation: roll 0.3s infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .roll-controls {
        flex-direction: column;
        gap: 15px;
    }

    .contestant-content {
        font-size: 1.8rem;
    }

    .judge-extracted {
        font-size: 1.5rem;
    }

    .display-box {
        padding: 20px;
        min-height: 250px;
    }
}