/* ==========================================================================
   绿色兼职信息直通车 · style.css
   极简现代 · 纯 CSS 响应式 · PC 3/4+1/4 / 移动端 100%
   ========================================================================== */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
                 "Hiragino Sans GB", "Heiti SC", sans-serif;
    color: #2c3e50;
    background: #f5f7fa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: #16a34a; text-decoration: none; transition: color .2s; }
a:hover { color: #15803d; }

img { max-width: 100%; }

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.site-header {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: #fff;
    color: #16a34a;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.logo-text { letter-spacing: 1px; }

.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
    color: #fff;
    opacity: 0.9;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { opacity: 1; border-bottom-color: #fff; }

.site-slogan {
    padding: 24px 20px 32px;
    text-align: center;
}
.site-slogan h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}
.site-slogan p { margin: 0; opacity: 0.9; font-size: 15px; }

/* ========== Layout Grid ========== */
.main-wrapper { padding: 24px 20px; }

.layout-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;   /* PC: 3/4 + 1/4 */
    gap: 24px;
    align-items: start;
}

.content-area { min-width: 0; }
.sidebar { min-width: 0; }

/* ========== Filter Card ========== */
.filter-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.filter-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: #16a34a;
}

/* 筛选表单整体布局 */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 第一行：省-市-区 三级联动 */
.area-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;   /* PC 三列并排 */
    gap: 12px;
    align-items: start;
}

/* 第二行：薪资 + 按钮 */
.form-row-second {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 自动定位徽章 */
.auto-badge {
    font-size: 11px;
    background: #dcfce7;
    color: #16a34a;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
    cursor: default;
}

/* 省市区选择框统一样式 */
.area-select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.area-select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}

/* 薪资输入框 */
.form-group input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}

/* 定位提示 */
.location-hint {
    color: #16a34a;
    font-size: 13px;
}
.location-hint strong { color: #15803d; }

.form-actions { flex-direction: row; align-items: end; gap: 8px; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .2s;
    text-align: center;
}
.btn-primary {
    background: #16a34a;
    color: #fff;
}
.btn-primary:hover { background: #15803d; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,0.25); }
.btn-ghost {
    background: #f3f4f6;
    color: #4b5563;
}
.btn-ghost:hover { background: #e5e7eb; }

.btn-apply {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(22,163,74,0.2);
}
.btn-apply:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,163,74,0.3); }

.filter-result {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

/* ========== Job List ========== */
.job-list { display: flex; flex-direction: column; gap: 16px; }

.job-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform .2s, box-shadow .2s;
    border-left: 4px solid #16a34a;
}
.job-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.job-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.job-title a { color: #111827; }
.job-title a:hover { color: #16a34a; }

.job-date {
    color: #9ca3af;
    font-size: 13px;
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 12px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 10px;
}
.meta-item {
    background: #f9fafb;
    padding: 4px 10px;
    border-radius: 6px;
}
.meta-salary {
    color: #d97706;
    font-weight: 600;
    background: #fff7ed;
}

.job-summary {
    margin: 10px 0 14px;
    color: #4b5563;
    font-size: 14px;
    background: #f9fafb;
    padding: 12px 14px;
    border-radius: 8px;
    line-height: 1.7;
}
.job-summary-empty { color: #9ca3af; font-style: italic; text-align: center; }

.job-actions { text-align: right; }

/* ========== Sidebar ========== */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.ad-box {
    background: #fffbe6;
    border: 1px dashed #facc15;
    color: #92400e;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ad-placeholder { font-weight: 600; font-size: 15px; }
.ad-tip { color: #b45309; font-size: 12px; margin: 0; }

.ad-sidebar-top, .ad-sidebar-bottom { min-height: 200px; }
.ad-footer-top { min-height: 90px; margin-top: 24px; }

.panel {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.panel h3 { margin: 0 0 10px; color: #16a34a; font-size: 16px; }
.panel p { color: #4b5563; font-size: 14px; margin: 6px 0; }

.info-list { list-style: none; padding: 0; margin: 10px 0 0; }
.info-list li {
    padding: 6px 0;
    color: #374151;
    font-size: 14px;
    border-top: 1px dashed #e5e7eb;
}
.info-list li:first-child { border-top: none; }

/* ========== Footer ========== */
.site-footer {
    background: #1f2937;
    color: #d1d5db;
    margin-top: 40px;
    padding: 32px 0 24px;
}
.footer-inner { text-align: center; }
.footer-disclaimer {
    margin: 6px 0;
    font-size: 14px;
    color: #fbbf24;
}
.footer-disclaimer strong { color: #fef3c7; }
.footer-icp { margin: 12px 0 6px; }
.footer-icp a {
    color: #9ca3af;
    font-size: 13px;
}
.footer-icp a:hover { color: #d1d5db; }
.footer-meta { color: #6b7280; font-size: 12px; margin: 4px 0 0; }

/* ========== Empty State ========== */
.empty-state {
    background: #fff;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.empty-state h3 { color: #374151; margin: 0 0 10px; }
.empty-state p { color: #6b7280; margin: 0 0 20px; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .container { padding: 0 14px; }

    .header-inner { padding: 14px; }
    .site-nav { gap: 12px; }
    .site-nav a { font-size: 13px; }

    .site-slogan { padding: 18px 14px 24px; }
    .site-slogan h1 { font-size: 22px; }

    .main-wrapper { padding: 16px 14px; }

    /* 移动端：单列堆叠 */
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .sidebar { order: 2; }

    /* 筛选表单：省-市-区全部垂直堆叠 100% */
    .area-selector {
        grid-template-columns: 1fr;
    }
    .area-select {
        width: 100%;
    }
    .form-row-second {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-direction: row;
    }

    .filter-card { padding: 16px; }

    .job-card { padding: 16px; }
    .job-title { font-size: 16px; }
    .job-actions { text-align: stretch; }
    .btn-apply { display: block; width: 100%; }

    .ad-footer-top { min-height: 80px; }
}
