/* ============================================================
   出国帮 设计系统 (v3) - 现代极简
   单一品牌主色 + 中性灰阶 + 大留白 + 卡片化 + 微动效
   ============================================================ */

/* ---------- 设计 Token ---------- */
:root {
    /* 品牌色 */
    --brand-50:  #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-900: #1e3a8a;

    /* 强调色 */
    --accent-500: #f59e0b;
    --accent-600: #d97706;

    /* 功能色 */
    --success: #10b981;
    --danger:  #ef4444;
    --warning: #f59e0b;

    /* 中性色 */
    --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;

    /* 文本 */
    --text-primary:   var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted:     var(--gray-400);
    --text-inverse:   #ffffff;

    /* 背景 */
    --bg-page:   #ffffff;
    --bg-soft:   var(--gray-50);
    --bg-muted:  var(--gray-100);

    /* 边框 */
    --border:        var(--gray-200);
    --border-strong: var(--gray-300);

    /* 圆角 */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-2xl: 28px;
    --r-full: 9999px;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

    /* 间距 */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;
    --s-10: 40px;
    --s-12: 48px;
    --s-16: 64px;

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* 字号 */
    --fs-xs:   12px;
    --fs-sm:   13px;
    --fs-base: 15px;
    --fs-md:   16px;
    --fs-lg:   18px;
    --fs-xl:   20px;
    --fs-2xl:  24px;
    --fs-3xl:  30px;
    --fs-4xl:  36px;
    --fs-5xl:  48px;

    /* 动效 */
    --t-fast: 0.15s ease;
    --t-base: 0.25s cubic-bezier(.4,0,.2,1);
    --t-slow: 0.4s cubic-bezier(.4,0,.2,1);
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-soft);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--brand-700); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

p { margin-bottom: 1rem; }

/* ---------- 容器 ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--s-5);
}
.container-sm { max-width: 720px; }
.container-xs { max-width: 480px; }

/* ============================================================
   头部导航
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--s-6);
}
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    color: var(--text-primary);
    font-weight: 700;
}
.site-logo:hover { color: var(--brand-600); }
.site-logo__mark {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--fs-lg);
}
.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.site-logo__text strong { font-size: var(--fs-md); }
.site-logo__text small { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--s-1);
    margin: 0;
    padding: 0;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-4);
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--r-md);
    transition: all var(--t-fast);
}
.nav-link:hover,
.nav-link.is-active {
    color: var(--brand-600);
    background: var(--brand-50);
}
.nav-link i { font-size: var(--fs-base); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    color: var(--text-primary);
    cursor: pointer;
}
.menu-toggle:hover { background: var(--bg-muted); }

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: var(--s-4);
        display: none;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: var(--s-1); }
    .nav-link { padding: var(--s-3) var(--s-4); width: 100%; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 10px 20px;
    font-family: inherit;
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}
.btn:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}
.btn:disabled, .btn.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn--primary {
    background: var(--brand-600);
    color: #fff;
}
.btn--primary:hover:not(:disabled) {
    background: var(--brand-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.3);
}
.btn--accent {
    background: var(--accent-500);
    color: #fff;
}
.btn--accent:hover:not(:disabled) {
    background: var(--accent-600);
    color: #fff;
}
.btn--success {
    background: var(--success);
    color: #fff;
}
.btn--danger {
    background: var(--danger);
    color: #fff;
}
.btn--outline {
    background: transparent;
    color: var(--brand-600);
    border-color: var(--brand-200);
}
.btn--outline:hover:not(:disabled) {
    background: var(--brand-50);
    border-color: var(--brand-600);
    color: var(--brand-700);
}
.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn--ghost:hover:not(:disabled) {
    background: var(--bg-muted);
    color: var(--text-primary);
}
.btn--lg { padding: 14px 28px; font-size: var(--fs-md); border-radius: var(--r-lg); }
.btn--sm { padding: 6px 12px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--block { display: flex; width: 100%; }
.btn--rounded { border-radius: var(--r-full); padding-left: 24px; padding-right: 24px; }

/* ============================================================
   卡片
   ============================================================ */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base);
}
.card--hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-100);
}
.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--border);
}
.card__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin: 0;
}

/* ============================================================
   表单元素
   ============================================================ */
.form-group { margin-bottom: var(--s-5); }
.form-label {
    display: block;
    margin-bottom: var(--s-2);
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--fs-sm);
}
.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: var(--fs-base);
    color: var(--text-primary);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    transition: all var(--t-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-text {
    margin-top: var(--s-2);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.form-check {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-600);
    cursor: pointer;
}
.form-check label { cursor: pointer; user-select: none; font-size: var(--fs-sm); }

.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.input-icon .form-control { padding-left: 42px; }

/* ============================================================
   提示 / 警告
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--r-md);
    margin-bottom: var(--s-4);
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    border-left: 4px solid;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: var(--success);
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: var(--danger);
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: var(--warning);
}
.alert-info {
    background: var(--brand-50);
    color: var(--brand-900);
    border-color: var(--brand-600);
}

/* Flash 消息（顶部弹出） */
.flash-message {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1050;
    max-width: 380px;
    animation: flashIn 0.3s ease;
}
@keyframes flashIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   标签 / 徽章
   ============================================================ */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: var(--fs-xs);
    font-weight: 500;
    border-radius: var(--r-sm);
    background: var(--bg-muted);
    color: var(--text-secondary);
}
.tag--brand  { background: var(--brand-50); color: var(--brand-700); }
.tag--success{ background: #ecfdf5; color: #065f46; }
.tag--danger { background: #fef2f2; color: #991b1b; }
.tag--accent { background: #fffbeb; color: #92400e; }

/* ============================================================
   表格
   ============================================================ */
.table-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}
.table thead {
    background: var(--bg-soft);
}
.table th, .table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--bg-soft); }
.table tbody tr:last-child td { border-bottom: none; }

/* 移动端响应式表格：转卡片 */
@media (max-width: 640px) {
    .table-wrap { box-shadow: none; border: none; background: transparent; }
    .table, .table thead, .table tbody, .table tr, .table th, .table td {
        display: block;
    }
    .table thead { display: none; }
    .table tr {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        margin-bottom: var(--s-3);
        padding: var(--s-2);
    }
    .table td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        margin-right: var(--s-3);
        flex-shrink: 0;
    }
    .table td:last-child { border-bottom: none; }
}

/* ============================================================
   详情页布局（招聘详情等）
   ============================================================ */
.detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-8);
    box-shadow: var(--shadow-sm);
}
.detail-table {
    width: 100%;
    border-collapse: collapse;
}
.detail-table tr { border-bottom: 1px solid var(--border); }
.detail-table tr:last-child { border-bottom: none; }
.detail-table td {
    padding: var(--s-4) var(--s-3);
    vertical-align: top;
}
.detail-table td:first-child {
    width: 140px;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg-soft);
}
.detail-table td:nth-child(2) {
    color: var(--text-primary);
}

/* ============================================================
   营销首页（index.php 专用样式）
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    color: #fff;
    padding: var(--s-16) var(--s-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }
.hero__logo {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--s-5);
    border-radius: 24px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}
.hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.hero__title {
    font-size: var(--fs-5xl);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--s-4);
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.hero__slogan {
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: #fff;
    opacity: 0.96;
    margin-bottom: var(--s-8);
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-4);
    margin-bottom: var(--s-10);
}
.hero__actions .btn--inverse {
    background: #fff;
    color: var(--brand-700);
}
.hero__actions .btn--inverse:hover {
    background: var(--brand-50);
    color: var(--brand-900);
    transform: translateY(-2px);
}
.hero__btn-wechat {
    background: #07c160;
    color: #fff;
}
.hero__btn-wechat:hover {
    background: #06ad56;
    color: #fff;
    transform: translateY(-2px);
}
.hero__btn-enterprise {
    background: var(--accent-500);
    color: #1f2937;
}
.hero__btn-enterprise:hover {
    background: var(--accent-600);
    color: #fff;
}
.hero__quote {
    display: inline-block;
    padding: var(--s-5) var(--s-6);
    background: rgba(255,255,255,0.15);
    border-radius: var(--r-lg);
    font-size: var(--fs-lg);
    font-weight: 600;
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--accent-500);
}

.section { padding: var(--s-12) var(--s-5); }
.section--alt { background: var(--bg-soft); }
.section--white { background: #fff; }
.section__title {
    text-align: center;
    font-size: var(--fs-3xl);
    margin-bottom: var(--s-3);
}
.section__subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--s-10);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-6);
    max-width: 760px;
    margin: 0 auto;
}
.price-card {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    color: #fff;
    border-radius: var(--r-xl);
    padding: var(--s-8);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.price-card__amount {
    font-size: var(--fs-5xl);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--s-2);
}
.price-card__amount small {
    font-size: var(--fs-md);
    font-weight: 500;
    opacity: 0.9;
    margin-left: 4px;
}
.price-card__desc {
    font-size: var(--fs-md);
    opacity: 0.9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s-6);
    max-width: 1100px;
    margin: 0 auto;
}
.feature-card {
    text-align: center;
    padding: var(--s-8) var(--s-5);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all var(--t-base);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-200);
}
.feature-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--s-4);
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xl);
}
.feature-card__title {
    font-size: var(--fs-lg);
    margin-bottom: var(--s-2);
}
.feature-card__desc {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.notice-block {
    background: rgba(255,255,255,0.12);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    border-left: 4px solid var(--accent-500);
    color: #fff;
    line-height: 1.9;
    backdrop-filter: blur(8px);
}
.notice-block h2 {
    color: #fff;
    text-align: center;
    margin-bottom: var(--s-4);
}
.notice-block strong { color: var(--accent-500); }
.notice-block .notice-foot {
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.85);
}

/* ============================================================
   弹窗
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: var(--s-5);
    opacity: 0;
    transition: opacity var(--t-base);
}
.modal.is-open {
    display: flex;
    opacity: 1;
}
.modal__box {
    background: #fff;
    border-radius: var(--r-xl);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--s-8) var(--s-6);
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform var(--t-base);
}
.modal.is-open .modal__box { transform: scale(1); }
.modal__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--danger);
    margin-bottom: var(--s-5);
}
.modal__list {
    text-align: left;
    display: inline-block;
    font-size: var(--fs-base);
    line-height: 2;
    margin-bottom: var(--s-4);
    color: var(--text-primary);
}
.modal__tip {
    background: #fef2f2;
    border-left: 4px solid var(--danger);
    color: #991b1b;
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-md);
    text-align: left;
    font-size: var(--fs-sm);
    line-height: 1.7;
    margin-bottom: var(--s-5);
}
.modal__actions {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    align-items: center;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--s-12) var(--s-5) var(--s-6);
    margin-top: var(--s-16);
}
.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-8);
}
.site-footer h4 {
    color: #fff;
    font-size: var(--fs-md);
    margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a {
    color: var(--gray-300);
    font-size: var(--fs-sm);
    transition: color var(--t-fast);
}
.site-footer a:hover { color: #fff; }
.site-footer__copy {
    text-align: center;
    border-top: 1px solid var(--gray-700);
    margin-top: var(--s-8);
    padding-top: var(--s-6);
    font-size: var(--fs-xs);
    color: var(--gray-400);
}
.site-footer__links {
    text-align: center;
    margin-top: var(--s-3);
}
.site-footer__links a {
    margin: 0 var(--s-3);
    color: var(--gray-300);
    font-size: var(--fs-xs);
}

/* 禁用链接（灰色不可点） */
.site-footer a.is-disabled,
a.is-disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none;
}
.site-footer a.is-disabled:hover,
a.is-disabled:hover {
    color: var(--gray-400);
}

/* ============================================================
   工具类
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-brand  { color: var(--brand-600); }
.text-danger { color: var(--danger); }
.text-success{ color: var(--success); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }

.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }

.d-flex { display: flex; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.fw-bold { font-weight: 700; }
.fs-sm { font-size: var(--fs-sm); }
.fs-lg { font-size: var(--fs-lg); }

/* 空状态 */
.empty {
    padding: var(--s-12) var(--s-5);
    text-align: center;
    background: #fff;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
    color: var(--text-muted);
}
.empty i { font-size: 48px; margin-bottom: var(--s-4); display: block; }

/* 加载动画 */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--bg-muted);
    border-top-color: var(--brand-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   登录/注册 页面
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    padding: var(--s-6);
}
.auth-card {
    background: #fff;
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg);
    padding: var(--s-10);
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}
.auth-card__head {
    text-align: center;
    margin-bottom: var(--s-8);
}
.auth-card__logo {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--s-4);
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}
.auth-card__title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--s-1);
}
.auth-card__sub {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}
.auth-tabs {
    display: flex;
    background: var(--bg-muted);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: var(--s-6);
}
.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--t-fast);
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: var(--fs-base);
}
.auth-tab.is-active {
    background: #fff;
    color: var(--brand-600);
    box-shadow: var(--shadow-sm);
}
.auth-pane { display: none; }
.auth-pane.is-active { display: block; }

.auth-foot {
    text-align: center;
    margin-top: var(--s-5);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}
.auth-foot a { font-weight: 500; }

/* ============================================================
   后台管理（admin/）专用样式
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
}
.admin-sidebar__brand {
    padding: var(--s-5);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--s-3);
    height: 64px;
}
.admin-sidebar__brand-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-sidebar__brand-text strong {
    display: block;
    font-size: var(--fs-md);
    font-weight: 700;
}
.admin-sidebar__brand-text small {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}
.admin-nav { flex: 1; padding: var(--s-4); overflow-y: auto; }
.admin-nav-group { margin-bottom: var(--s-4); }
.admin-nav-group__title {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    padding: var(--s-2) var(--s-3);
    letter-spacing: 0.06em;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: 10px var(--s-3);
    border-radius: var(--r-md);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: all var(--t-fast);
    text-decoration: none;
}
.admin-nav-link:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}
.admin-nav-link.is-active {
    background: var(--brand-50);
    color: var(--brand-700);
}
.admin-nav-link i { width: 20px; text-align: center; color: var(--text-muted); }
.admin-nav-link.is-active i { color: var(--brand-600); }

.admin-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.admin-topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 var(--s-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}
.admin-topbar__title {
    font-size: var(--fs-md);
    font-weight: 600;
}
.admin-user {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: 6px var(--s-3);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background var(--t-fast);
}
.admin-user:hover { background: var(--bg-muted); }
.admin-user__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--fs-sm);
}
.admin-user__meta strong {
    display: block;
    font-size: var(--fs-sm);
    line-height: 1.2;
}
.admin-user__meta small {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.admin-content {
    flex: 1;
    padding: var(--s-6);
    background: var(--bg-soft);
}

/* 后台统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-5);
    margin-bottom: var(--s-8);
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    display: flex;
    align-items: center;
    gap: var(--s-4);
    transition: all var(--t-base);
    text-decoration: none;
    color: inherit;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-100);
}
.stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--brand-50);
    color: var(--brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-card__label {
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    margin-bottom: 2px;
}
.stat-card__value {
    font-size: var(--fs-2xl);
    font-weight: 700;
    line-height: 1.2;
}

/* 后台快捷入口 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--s-4);
}
.quick-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-6) var(--s-4);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--t-base);
}
.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-100);
}
.quick-card i {
    font-size: 32px;
    color: var(--brand-600);
    margin-bottom: var(--s-3);
    display: block;
}
.quick-card span {
    font-weight: 500;
}
.quick-card--danger i { color: var(--danger); }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s-5);
}
.section-head h2 {
    font-size: var(--fs-xl);
    margin: 0;
}

/* 后台登录页 */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-50), #fff);
    padding: var(--s-5);
}

/* 后台响应式 */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--t-base);
    }
    .admin-sidebar.is-open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-content { padding: var(--s-4); }
    .menu-toggle-admin { display: inline-flex !important; }
}

.menu-toggle-admin {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
}

/* ============================================================
   国家/企业/岗位列表
   ============================================================ */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--s-4);
}
.country-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-5) var(--s-4);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--t-base);
}
.country-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-200);
    color: var(--brand-700);
}
.country-card__name {
    font-weight: 600;
    font-size: var(--fs-md);
}

/* 招聘职位列表卡片 */
.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-600);
    border-radius: var(--r-md);
    padding: var(--s-5);
    margin-bottom: var(--s-3);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--t-base);
}
.job-card:hover {
    transform: translateX(4px);
    border-color: var(--brand-200);
    border-left-color: var(--brand-700);
    box-shadow: var(--shadow-md);
}
.job-card__main { flex: 1; min-width: 0; }
.job-card__title {
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: var(--s-2);
    color: var(--text-primary);
}
.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}
.job-card__arrow {
    color: var(--text-muted);
    margin-left: var(--s-3);
    font-size: var(--fs-lg);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--s-1);
    margin-top: var(--s-8);
}
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--s-3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--fs-sm);
}
.pagination a:hover {
    border-color: var(--brand-600);
    color: var(--brand-600);
}
.pagination .is-active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}

/* ============================================================
   减少动效（无障碍）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}