/* ==================== 海聘网 全站通用样式 1200px固定宽度 零错乱版 ==================== */
/* 全局重置 & 基础规范 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "KaiTi", "楷体", "STKaiti", "宋体", SimSun, "Segoe UI", Roboto, serif;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
/* 全局根容器：严格锁定1200px固定宽度，全站居中对齐 */
html, body {
    width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-light);
    font-size: 14px;
    color: var(--text-normal);
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    overflow-x: hidden;
    overflow-y: auto;
}
/* 页面全局包裹层：适配footer绝对定位，防止布局塌陷，全站所有页面必须套这个层 */
.page-wrap {
    min-height: 100vh;
    width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px;
    position: relative;
    background-color: var(--bg-light);
}
/* 全局主题色变量：航海蓝统一规范 */
:root {
    --main-blue: #0066cc;
    --light-blue: #0099ff;
    --dark-blue: #0055aa;
    --success-green: #006600;
    --error-red: #990000;
    --warning-orange: #ff7d00;
    --bg-light: #eef6fb;
    --bg-white: #ffffff;
    --border-gray: #dee2e6;
    --text-normal: #333333;
    --text-light: #666666;
    --text-muted: #999999;
}
/* ==================== 全站头部样式：1200px严格对齐，全站共用，一处修改全生效 ==================== */
.header {
    width: 1200px;
    margin: 0 auto;
    height: 100px;
    background: var(--main-blue) url('/static/images/header-bg.jpg') no-repeat -350px center;
    background-size: cover;
    position: relative;
    color: #fff;
    overflow: hidden;
}
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,102,204,0.8), rgba(0,153,255,0.6));
    z-index: 1;
}
.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    width: 100%;
}
/* LOGO区域样式 */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.logo-animate {
    width: 55px;
    height: 55px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.25);
    animation: logoBlink 1.5s infinite alternate ease-in-out;
}
@keyframes logoBlink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
.logo-text {
    line-height: 1.1;
}
.logo-main {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}
.logo-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-top: 15px;
    line-height: 1.4;
}
.slogan-inline {
    font-size: 14px;
    margin-left: 6px;
    animation: fourColor 4s linear infinite;
}
@keyframes fourColor {
    0%   { color: #FFD700; }
    25%  { color: var(--light-blue); }
    50%  { color: #9370DB; }
    75%  { color: var(--warning-orange); }
    100% { color: #FFD700; }
}
/* 头部右侧登录/用户信息区域 */
.right-area {
    display: flex;
    align-items: center;
    gap: 20px;
    line-height: 1;
    white-space: nowrap;
}
.datetime {
    font-size: 16px;
    color: rgba(0,0,0,0.9);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}
.auth-buttons a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    margin: 0 6px;
    transition: color 0.3s ease;
}
.auth-buttons a:hover {
    color: var(--warning-orange);
}
/* ==================== 全站导航栏：1200px严格对齐，全站共用，一处修改全生效 ==================== */
.nav {
    width: 1200px;
    margin: 0 auto;
    height: 40px;
    background-color: var(--main-blue);
    line-height: 40px;
}
.nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    }
.nav ul li {
    flex:1;
text-align:center;
}
.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 0 10px;
    display: block;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.nav ul li a:hover, .nav ul li a.active {
    background-color: var(--light-blue);
}
/* ==================== 核心内容容器：侧边栏+主内容区 无缝拼接 ==================== */
.container {
    width: 1200px;
    margin: 20px auto 0 auto;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 0;
    background-color: var(--bg-white);
    overflow: hidden;
}
/* 左侧侧边栏：固定宽度，与头部左边缘严格对齐 */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    border: 1px solid var(--border-gray);
    border-right: none;
    padding: 15px;
    min-height: 600px;
    border-radius: 4px 0 0 4px;
}
.sidebar-menu {
    list-style: none;
    width: 100%;
}
.sidebar-menu li {
    margin-bottom: 8px;
}
.sidebar-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-normal);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: var(--main-blue);
    color: #fff;
}
/* 右侧主内容区：自动撑满剩余宽度，与头部右边缘严格对齐 */
.main {
    flex: 1;
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    padding: 20px;
    min-height: 600px;
    border-radius: 0 4px 4px 0;
}
/* 单页无侧边栏内容容器 */
.single-container {
    width: 1200px;
    margin: 20px auto 0 auto;
    padding: 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    min-height: 600px;
}
/* ==================== 通用表单样式：全场景适配 ==================== */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-normal);
}
.form-group label .required {
    color: var(--error-red);
    margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--main-blue);
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
    outline: none;
}
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}
.form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}
.form-inline .form-group {
    margin-bottom: 0;
    flex: 1;
}
/* 验证码样式 */
.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.captcha-group input {
    flex: 1;
}
.captcha-img {
    width: 80px;
    height: 34px;
    cursor: pointer;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    object-fit: cover;
}
/* ==================== 通用按钮样式：全场景统一 ==================== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--main-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}
.btn:hover {
    background-color: var(--dark-blue);
}
.btn:disabled {
    background-color: var(--text-muted) !important;
    cursor: not-allowed !important;
}
.btn-success {
    background-color: var(--success-green);
}
.btn-success:hover {
    background-color: #004d00;
}
.btn-warning {
    background-color: var(--warning-orange);
}
.btn-warning:hover {
    background-color: #e66f00;
}
.btn-danger {
    background-color: var(--error-red);
}
.btn-danger:hover {
    background-color: #7a0000;
}
.btn-block {
    width: 100%;
    display: block;
}
.btn-lg {
    padding: 12px 20px;
    font-size: 16px;
}
/* ==================== 通用提示信息样式 ==================== */
.message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    width: 100%;
}
.message.success {
    background-color: #d4edda;
    color: var(--success-green);
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: var(--error-red);
    border: 1px solid #f5c6cb;
}
.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
/* ==================== 通用表格样式 ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
table th, table td {
    padding: 10px 8px;
    border: 1px solid var(--border-gray);
    text-align: left;
    font-size: 14px;
}
table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--text-normal);
    white-space: nowrap;
}
table tr:hover {
    background-color: #f8f9fa;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
/* ==================== 营业执照上传通用样式 ==================== */
.license-upload-box {
    width: 100%;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s;
}
.license-upload-box.active {
    border-color: var(--main-blue);
    background: #f0f7ff;
}
.license-upload-box input {
    display: none;
}
.license-upload-label {
    display: block;
    cursor: pointer;
    color: var(--main-blue);
    font-size: 16px;
}
.license-tips {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}
.license-result {
    padding: 10px;
    background: #f0f9ff;
    border: 1px solid var(--main-blue);
    border-radius: 4px;
    margin-bottom: 15px;
}
.license-result p {
    margin: 5px 0;
    color: var(--text-normal);
}
.license-result .success-tag {
    color: var(--success-green);
    font-weight: bold;
}
/* ==================== 通用弹窗样式 ==================== */
.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}
.modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    padding: 20px;
    border-radius: 4px;
    overflow-y: auto;
}
.modal-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-normal);
}
.modal-close {
    display: block;
    margin: 20px auto 0;
    padding: 8px 20px;
    background: var(--main-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* ==================== 标签切换通用样式 ==================== */
.tab-nav {
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.tab-nav .tab-btn {
    padding: 10px 35px;
    border: none;
    background: #eee;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}
.tab-nav .tab-btn.active {
    background: var(--main-blue);
    color: #fff;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
/* ==================== 全站页脚样式：1200px严格对齐，全站共用，一处修改全生效 ==================== */
.footer {
    width: 1200px;
    margin: 20px auto 0 auto;
    height: 80px;
    background-color: var(--main-blue);
    color: #fff;
    text-align: center;
    line-height: 80px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
}
.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
}
.footer a:hover {
    text-decoration: underline;
}
/* ==================== 移动端适配：严格基于1200px等比缩放，不破坏PC布局 ==================== */
@media screen and (max-width: 1200px) {
    html, body {
        width: 1200px !important;
        transform-origin: left top !important;
        transform: scale(calc(100vw / 1200)) !important;
        -webkit-transform: scale(calc(100vw / 1200)) !important;
        overflow-x: hidden !important;
    }
    .container {
        flex-wrap: nowrap !important;
        width: 1200px !important;
    }
    .sidebar {
        flex-shrink: 0 !important;
        width: 220px !important;
    }
    .main {
        flex: 1 !important;
        width: auto !important;
    }
    .header, .nav, .container, .single-container, .footer {
        width: 1200px !important;
        margin: 0 auto !important;
    }
}
