/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 20px 0;
    background-color: #c7000a;
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.site-domain {
    font-size: 14px;
    opacity: 0.9;
}

/* 历史搜索记录 */
.history-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.history-item {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-btn {
    color: #999;
    font-size: 12px;
    cursor: pointer;
}

/* 搜索表单 */
.search-form {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}

.form-select, .form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.nested-select {
    display: flex;
    gap: 10px;
}

.nested-select select {
    flex: 1;
}

.search-btn {
    width: 100%;
    background-color: #c7000a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* 底部样式 */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #eee;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c7000a;
    font-size: 14px;
    margin-bottom: 15px;
    cursor: pointer;
}

/* 列表样式 */
.list-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.item-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.detail-btn {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
}

/* 详情页样式 */
.detail-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.detail-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 14px;
    color: #333;
}

.full-width {
    grid-column: 1 / span 2;
}

.link-btn {
    background-color: #c7000a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* 招聘简章样式 */
.article-content {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.article-meta {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-body {
    line-height: 1.8;
    font-size: 15px;
}

.article-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.attachment {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attachment-icon {
    color: #c7000a;
    font-size: 20px;
}


/* 搜索结果页新增样式 */
.urgent {
    color: #e74c3c;
    font-weight: bold;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.deadline {
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
    padding: 3px 8px;
    border-radius: 12px;
}

.urgent-deadline {
    background: #ffeaea;
    color: #e74c3c;
    font-weight: bold;
}

.days-left {
    font-size: 11px;
    color: #999;
    margin-left: 5px;
}