/* ============================================================
   建造师人才挂靠网 - 样式表
   字体: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
         "Helvetica Neue", Arial, "Noto Sans SC", sans-serif
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f9fafb;
    --fg: #111827;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --yellow-400: #fbbf24;
    --yellow-500: #f59e0b;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-600: #16a34a;
    --green-700: #15803d;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-700: #c2410c;
    --red-50:  #fef2f2;
    --red-600: #dc2626;
    --purple-50: #faf5ff;
    --purple-100: #ede9fe;
    --purple-300: #c4b5fd;
    --purple-500: #8b5cf6;
    --purple-700: #6d28d9;
    --red-500: #ef4444;
    --orange-500: #f97316;
    --border-color: #e5e7eb;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--fg);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { cursor: pointer; font-family: inherit; }

input, select, textarea { font-family: inherit; }

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* ============================
   NAVBAR
   ============================ */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: var(--gray-900);
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--blue-600);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: var(--blue-50); color: var(--blue-600); }
.nav-links a.active { background: var(--blue-50); color: var(--blue-600); font-weight: 600; }

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-auth a.login-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    transition: color 0.15s;
}
.nav-auth a.login-link:hover { color: var(--blue-600); }

.nav-auth a.reg-btn {
    font-size: 13px;
    font-weight: 600;
    background: var(--blue-600);
    color: white;
    padding: 7px 16px;
    border-radius: 8px;
    transition: background 0.15s;
}
.nav-auth a.reg-btn:hover { background: var(--blue-700); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-user-name {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
    cursor: pointer;
}
.nav-user-name:hover { color: var(--blue-600); }
.nav-user-name.active { color: var(--blue-700); font-weight: 600; }

.nav-user-badge {
    font-size: 11px;
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.nav-user-link {
    font-size: 13px;
    color: var(--blue-600);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.15s;
}
.nav-user-link:hover { background: var(--blue-50); }
.nav-user-link.active { color: var(--blue-700); font-weight: 600; }

.nav-user a.logout-btn {
    font-size: 13px;
    color: var(--gray-400);
    transition: color 0.15s;
}
.nav-user a.logout-btn:hover { color: #ef4444; }

/* ============================
   FOOTER
   ============================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    margin-top: auto;
    padding: 48px 16px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand-icon {
    width: 34px;
    height: 34px;
    background: var(--blue-600);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.footer-brand-name {
    font-size: 17px;
    font-weight: 700;
    color: white;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
}

.footer h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    font-size: 13px;
    transition: color 0.15s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

/* ============================
   PAGE CONTAINER
   ============================ */
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
    flex: 1;
    width: 100%;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
    color: white;
    padding: 64px 16px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
}

.hero-search {
    display: flex;
    max-width: 640px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}

.hero-search input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 15px;
    outline: none;
    background: white;
    color: var(--gray-800);
    border-radius: 9px 0 0 9px;
}

.hero-search input::placeholder { color: var(--gray-400); }

.hero-search button {
    background: var(--yellow-500);
    color: var(--gray-900);
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 9px 9px 0;
    transition: background 0.15s;
    white-space: nowrap;
}
.hero-search button:hover { background: var(--yellow-400); }

.hero-stats {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.hero-stats span {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-right: 4px;
}

/* ============================
   SECTION HEADERS
   ============================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.section-more {
    font-size: 13px;
    color: var(--blue-600);
    font-weight: 500;
    transition: color 0.15s;
}
.section-more:hover { color: var(--blue-700); text-decoration: underline; }

/* ============================
   CERT GRID
   ============================ */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.cert-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.15s;
}
.cert-card:hover {
    background: var(--blue-50);
    border-color: var(--blue-100);
    color: var(--blue-600);
    transform: translateY(-1px);
}

/* ============================
   POSITION LIST
   ============================ */
.pos-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.pos-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.15s;
    display: block;
}
.pos-card:hover {
    border-color: var(--blue-100);
}

.pos-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.pos-card-left { flex: 1; min-width: 0; }

.pos-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.pos-tag {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
}

.tag-blue   { background: var(--blue-50);   color: var(--blue-700); }
.tag-green  { background: var(--green-50);  color: var(--green-700); }
.tag-orange { background: var(--orange-50); color: var(--orange-700); }
.tag-purple { background: var(--purple-50); color: var(--purple-700); }
.tag-gray   { background: var(--gray-100);  color: var(--gray-600); }
.tag-yellow { background: #fef9c3;           color: #a16207; }

.pos-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-meta {
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pos-right {
    text-align: right;
    flex-shrink: 0;
}

.pos-salary {
    font-size: 20px;
    font-weight: 800;
    color: var(--red-600);
    white-space: nowrap;
}

.pos-salary-unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
}

.pos-time {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.pos-company {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
    font-size: 12px;
    color: var(--gray-400);
}

.pos-company-name {
    color: var(--blue-600);
    font-weight: 500;
}

/* ============================
   PAGE HEADER BAR
   ============================ */
.page-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}

/* ============================
   FILTER BAR
   ============================ */
.filter-bar {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-700);
    background: white;
    outline: none;
    transition: border-color 0.15s;
}

.filter-bar select:focus { border-color: var(--blue-500); }

/* ============================
   RESULT COUNT
   ============================ */
.result-count {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 14px;
}

/* ============================
   DETAIL PAGE LAYOUT
   ============================ */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.detail-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.detail-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

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

.detail-item {
    font-size: 14px;
}

.detail-item .label { color: var(--gray-500); margin-right: 4px; }
.detail-item .val   { color: var(--gray-800); font-weight: 600; }
.detail-item .val.red { color: var(--red-600); }

.detail-desc {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.8;
    white-space: pre-wrap;
    margin-top: 12px;
}

/* Detail header */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.detail-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
}

.detail-salary {
    text-align: right;
    flex-shrink: 0;
}

.detail-salary .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--red-600);
}

.detail-salary .unit {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 400;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.sidebar-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-pos-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-pos-item {
    display: block;
}

.sidebar-pos-item:hover .sp-title { color: var(--blue-600); }

.sp-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-400);
}

.sp-salary { color: var(--red-600); font-weight: 600; }

/* CTA sidebar card */
.cta-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px;
}

.cta-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.cta-card p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 14px;
    line-height: 1.6;
}

.cta-btn {
    display: block;
    text-align: center;
    background: var(--yellow-500);
    color: var(--gray-900);
    font-weight: 700;
    font-size: 14px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.15s;
}
.cta-btn:hover { background: var(--yellow-400); }

/* ============================
   RESUME CARDS
   ============================ */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 40px;
}

.resume-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.15s;
}
.resume-card:hover {
    border-color: var(--blue-100);
}

.resume-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.resume-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 6px;
}

.resume-name .sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
}

.avail-badge {
    font-size: 11px;
    background: var(--green-50);
    color: var(--green-600);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.resume-right {
    text-align: right;
    flex-shrink: 0;
}

.resume-salary {
    font-size: 18px;
    font-weight: 800;
    color: var(--red-600);
}

.resume-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    justify-content: space-between;
}

/* ============================
   FORM ELEMENTS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-blue   { background: var(--blue-600);   color: white; }
.btn-blue:hover { background: var(--blue-700); }

.btn-yellow { background: var(--yellow-500); color: var(--gray-900); }
.btn-yellow:hover { background: var(--yellow-400); }

.btn-outline {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.25); }

.btn-white  { background: white; color: var(--blue-600); }
.btn-white:hover { background: var(--blue-50); }

/* ============================
   PAGINATION
   ============================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
}
.pagination button:hover:not(:disabled) { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-info { font-size: 13px; color: var(--gray-500); }

/* ============================
   EMPTY STATE
   ============================ */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}
.empty-state p { color: var(--gray-400); font-size: 15px; }
.empty-state .sub { font-size: 13px; margin-top: 6px; }
.empty-state .sub a { color: var(--blue-600); }

/* ============================
   CONTACT BUTTON
   ============================ */
.contact-btn {
    display: inline-block;
    background: var(--blue-600);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.contact-btn:hover { background: var(--blue-700); }

.contact-info { font-size: 14px; }
.contact-info .row { margin-bottom: 8px; }
.contact-info .row .lbl { color: var(--gray-500); margin-right: 6px; }
.contact-info .row .val { color: var(--gray-800); font-weight: 600; }
.contact-info .row .val a { color: var(--blue-600); }
.contact-info .tip { font-size: 12px; color: var(--gray-400); margin-top: 12px; }

/* ============================
   CTA BAND
   ============================ */
.cta-band {
    background: linear-gradient(135deg, var(--blue-600), #4338ca);
    border-radius: 14px;
    padding: 48px 32px;
    text-align: center;
    color: white;
    margin: 40px 0;
}

.cta-band h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.cta-band p  { font-size: 15px; opacity: 0.8; margin-bottom: 28px; }

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================
   FORM PAGE
   ============================ */
.form-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.form-card h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.form-card .sub { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; }

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group label .req { color: var(--red-600); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-800);
    background: white;
    outline: none;
    transition: border-color 0.15s;
}

.form-control:focus { border-color: var(--blue-500); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-tip {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.form-submit {
    margin-top: 28px;
    display: flex;
    gap: 12px;
}

/* ============================
   USER CENTER
   ============================ */
.user-center-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.user-sidebar {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.user-avatar-bar {
    background: linear-gradient(135deg, var(--blue-600), #4338ca);
    padding: 20px;
    color: white;
    text-align: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
}

.user-avatar-name { font-size: 15px; font-weight: 700; }
.user-avatar-role { font-size: 12px; opacity: 0.8; }

.user-nav { padding: 8px 0; }

.user-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--gray-600);
    transition: background 0.15s, color 0.15s;
}
.user-nav a:hover { background: var(--blue-50); color: var(--blue-600); }
.user-nav a.active { background: var(--blue-50); color: var(--blue-600); font-weight: 600; }

/* ============================
   MISC
   ============================ */
.badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.text-center { text-align: center; }
.text-red { color: var(--red-600); }
.text-blue { color: var(--blue-600); }
.text-gray { color: var(--gray-500); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* ============================
   NEWS PREVIEW (首页资讯预览)
   ============================ */
.news-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}
.news-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}
.news-preview-item:last-child { border-bottom: none; }
.news-preview-item:hover { background: var(--blue-50); }
.news-preview-title {
    flex: 1;
    font-size: 14px;
    color: var(--gray-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-preview-item:hover .news-preview-title { color: var(--blue-600); }
.news-preview-date {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--gray-400);
}
.cat-tag-热点新闻 { background: #fef2f2; color: #dc2626; }
.cat-tag-考证注册 { background: #eff6ff; color: #2563eb; }
.cat-tag-政策解读 { background: #f0fdf4; color: #16a34a; }
.cat-tag-行业前沿 { background: #faf5ff; color: #7c3aed; }
.cat-tag-建筑职场 { background: #fff7ed; color: #ea580c; }
.cat-tag-新闻 { background: #eff6ff; color: #2563eb; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero h1 { font-size: 26px; }
    .hero-stats { flex-direction: column; gap: 8px; }
    .user-center-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .resume-grid { grid-template-columns: 1fr; }
    .pos-card-top { flex-direction: column; gap: 8px; }
    .pos-right { text-align: left; }
}
