/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background-color: #0056a6;
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
h1 {
    font-size: 28px;
    margin-bottom: 15px;
}
.login-links {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}
.login-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 4px;
    font-size: 14px;
}
.login-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 响应式头部样式 */
@media (max-width: 768px) {
    header {
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    h1 {
        font-size: 24px;
        margin-top: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .login-links {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-top: 10px;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .login-links a {
        font-size: 12px;
        padding: 6px 12px;
        margin: 2px;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* 公告列表样式 */
.announcement-list {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.announcement-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.announcement-item:last-child {
    border-bottom: none;
}
.announcement-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}
.announcement-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* 状态标签样式 */
.announcement-status, .status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}
.status-registering, .status-approved {
    background-color: #4CAF50;
    color: white;
}
.status-ended, .status-rejected {
    background-color: #f44336;
    color: white;
}
.status-printing {
    background-color: #2196F3;
    color: white;
}
.status-querying, .status-pending {
    background-color: #ff9800;
    color: white;
}
.status-upcoming {
    background-color: #9e9e9e;
    color: white;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}
.status-finished {
    background-color: #9e9e9e;
    color: white;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type="text"], input[type="password"], input[type="tel"], input[type="file"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
button:hover {
    background-color: #45a049;
}

/* 错误和成功消息 */
.error {
    color: red;
    margin-bottom: 15px;
    text-align: center;
}
.success {
    color: green;
    margin-bottom: 15px;
    text-align: center;
}

/* 链接样式 */
.register-link, .back-link {
    text-align: center;
    margin-top: 20px;
}
.register-link a, .back-link a {
    color: #333;
    text-decoration: none;
}
.register-link a:hover, .back-link a:hover {
    text-decoration: underline;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}
tr:hover {
    background-color: #f5f5f5;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 表单容器样式 */
.form-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #4CAF50;
}

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex-wrap: wrap;
}

/* 上传表单样式 */
.upload-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2196F3;
}



/* 字段库样式 */
.field-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #9c27b0;
}
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.form-col {
    flex: 1;
    min-width: 250px;
    width: 33.333%;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 86, 166, 0.5);
    z-index: 1000;
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 按钮样式 */
.btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}
.btn-view {
    background-color: #2196F3;
    color: white;
}
.btn-view:hover {
    background-color: #0b7dda;
}
.btn-edit {
    background-color: #ff9800;
    color: white;
}
.btn-edit:hover {
    background-color: #e68a00;
}
.btn-apply {
    background-color: #4CAF50;
    color: white;
}
.btn-apply:hover {
    background-color: #45a049;
}
.btn-print {
    background-color: #9c27b0;
    color: white;
}
.btn-print:hover {
    background-color: #7b1fa2;
}
.btn-query {
    background-color: #ff9800;
    color: white;
}
.btn-query:hover {
    background-color: #e68a00;
}

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

.btn-delete:hover {
    background-color: #d32f2f;
}

/* 操作按钮容器 */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 登录容器 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 个人信息容器 */
.user-info-container {
    display: flex;
    align-items: flex-start;
}
.user-info {
    flex: 1;
    margin-right: 30px;
}
.user-photo {
    width: 200px;
    min-width: 200px;
    text-align: center;
}

.user-photo h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}
.photo-preview {
    width: 150px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 auto 10px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 部分样式 */
.section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .action-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 8px 0;
        font-size: 13px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-col {
        min-width: 100%;
    }
    
    .user-info-container {
        flex-direction: column;
    }
    
    .user-photo {
        width: 100%;
        min-width: 100%;
        margin-bottom: 20px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    /* 用人单位控制台按钮响应式 */
    .section h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* 功能导航按钮响应式 */
    .section > div[style*="display: flex"] {
        flex-direction: column;
        gap: 10px;
    }
    
    .section > div[style*="display: flex"] .btn {
        width: 100%;
        text-align: center;
    }
}

/* 管理员导航 */
.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}
.admin-nav a {
    color: white;
    text-decoration: none;
}
.logout {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 4px;
}
.logout:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 报名详情样式 */
.application-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.application-header {
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.application-header h3 {
    color: #333;
    font-size: 18px;
    margin: 0;
}
.application-info {
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
}
.application-fields {
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #ff9800;
}
.application-fields h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.field-item {
    display: flex;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.field-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.field-label {
    flex: 0 0 120px;
    font-weight: bold;
    color: #555;
    padding-right: 15px;
    text-align: right;
}
.field-value {
    flex: 1;
    color: #333;
    word-break: break-word;
}
.field-value a {
    color: #2196F3;
    text-decoration: none;
}
.field-value a:hover {
    text-decoration: underline;
}

/* 报名详情照片样式 */
.application-photo {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #9c27b0;
}
.application-photo h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.photo-container {
    width: 150px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按钮样式增强 */
.btn-back {
    background-color: #9e9e9e;
    color: white;
}
.btn-back:hover {
    background-color: #757575;
}
.btn-delete {
    background-color: #f44336;
    color: white;
}
.btn-delete:hover {
    background-color: #d32f2f;
}
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* 底部信息样式 */
.footer {
    background-color: #0056a6;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 14px;
    border-top: 3px solid #4CAF50;
}
.footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer p {
    margin: 8px 0;
    line-height: 1.5;
}
.footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer .copyright {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}
.footer .contact {
    margin: 10px 0;
}
.footer .icp {
    font-size: 13px;
    opacity: 0.9;
}

/* 审核相关样式 */
.application-approval {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
    width: 100%;
}
.application-approval h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.approval-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.form-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.form-textarea {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
    margin-top: 5px;
    height: 100px;
    resize: vertical;
}
.btn-approve {
    padding: 5px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}
.btn-approve:hover {
    background-color: #45a049;
}
.reason-container {
    width: 100%;
    margin-top: 10px;
}
.reason-container label {
    display: block;
    margin-bottom: 5px;
}
.hidden {
    display: none;
}

/* 搜索表单样式 */
.search-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.search-form .form-group {
    flex: 0 0 auto;
}
.search-form .search-input {
    flex: 0 0 300px;
}
.search-form button, .search-form .btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 80px;
    text-align: center;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    color: white;
}
.btn-search {
    background-color: #4CAF50;
    color: white;
}
.btn-search:hover {
    background-color: #45a049;
}
.btn-print {
    background-color: #9c27b0;
    color: white;
}
.btn-print:hover {
    background-color: #7b1fa2;
}
.btn-export {
    background-color: #ff9800;
    color: white;
}
.btn-export:hover {
    background-color: #e68a00;
}
.no-data {
    text-align: center;
    padding: 50px 0;
    color: #999;
}

/* 管理员导航样式 */
header nav {
    margin-top: 20px;
}
header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}
header nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 审核按钮样式 */
.btn-reject {
    background-color: #f44336;
    color: white;
}
.btn-reject:hover {
    background-color: #d32f2f;
}
.btn-reset {
    background-color: #ff9800;
    color: white;
}
.btn-reset:hover {
    background-color: #f57c00;
}

/* 文件链接样式 */
.file-link {
    color: #2196F3;
    text-decoration: none;
}
.file-link:hover {
    text-decoration: underline;
}

/* 公告相关样式 */
.announcement-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}
.announcement-title a {
    color: #333;
    text-decoration: none;
}
.announcement-title a:hover {
    color: #4CAF50;
    text-decoration: underline;
}
.announcement-info {
    margin-bottom: 10px;
}
.announcement-actions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}
.announcement-actions .btn {
    padding: 8px 16px;
    font-weight: bold;
}

/* 公告头部样式 */
.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.announcement-header .announcement-status {
    font-size: 16px;
}

.announcement-header .announcement-actions {
    margin-top: 0;
    gap: 10px;
}