/* ============================================================
   薪启星程 · interaction layer
   目标：明显的悬浮 / 倾斜 / 磁吸 / 光泽 / 波纹 / 聚光反馈，
   同时保留键盘焦点、触屏与 reduced-motion 的舒适度。
   ============================================================ */
:root {
    /* 可读性：提高正文辅助色对比度，并保持品牌青色 */
    --ink-400: #5b6c7d;
    --ink-500: #4c6073;
    --brand-600: #067d8a;
    --lx-ease: cubic-bezier(.22, 1, .36, 1);
    --lx-spring: cubic-bezier(.34, 1.56, .64, 1);
    --lx-glow: rgba(16, 188, 199, .28);
    --lx-glow-strong: rgba(16, 188, 199, .48);
    --lx-gold: rgba(214, 164, 74, .3);
    --lx-lift: -6px;
}

html { scroll-behavior: smooth; }

body { --lx-mx: 50%; --lx-my: 50%; }

.site-header {
    transition: background .35s var(--lx-ease), box-shadow .35s var(--lx-ease), border-color .35s var(--lx-ease), backdrop-filter .35s var(--lx-ease);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 34px rgba(7, 24, 45, .09);
    border-bottom-color: rgba(16, 188, 199, .16);
    backdrop-filter: blur(18px);
}
.site-header.is-scrolled .brand-name { color: var(--ink-900); }
.site-header.is-scrolled .brand-sub { color: var(--ink-400); }
.site-header.is-scrolled .nav-link { color: var(--ink-700); }
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active { color: var(--brand-600); background: var(--brand-50); }
.site-header.is-scrolled .header-icon-btn { color: var(--ink-500); }
.site-header.is-scrolled .btn-login { color: var(--ink-700); border-color: var(--line-strong); }
.site-header.is-scrolled .btn-login:hover { color: var(--brand-600); border-color: var(--brand-400); }

/* 鼠标环境光 */
.lx-cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle, rgba(16, 188, 199, .13), rgba(214, 164, 74, .05) 42%, transparent 68%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity .5s var(--lx-ease);
    will-change: transform;
}
.lx-cursor-glow.is-on { opacity: 1; }

/* ---------- 链接与导航 ---------- */
.nav-link {
    position: relative;
    transition: color .25s var(--lx-ease), transform .25s var(--lx-ease);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-500), var(--gold-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .32s var(--lx-spring);
}
.nav-link:hover { color: var(--brand-600); transform: translateY(-1px); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.order-link { white-space: nowrap; }
.link-arrow, .link-button, .order-link, .mini-action {
    transition: color .25s var(--lx-ease), transform .25s var(--lx-ease), gap .25s var(--lx-ease);
}
.link-arrow:hover, .link-button:hover, .order-link:hover, .mini-action:hover {
    color: var(--brand-600);
    transform: translateX(3px);
}

.header-icon-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink-500); transition: transform .3s var(--lx-spring), background .3s, color .3s, box-shadow .3s; }
.site-header:not(.is-scrolled) .header-icon-btn { color: rgba(255, 255, 255, .76); }
.site-header:not(.is-scrolled) .header-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.notif-dot { position: absolute; top: -2px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; background: var(--danger); color: #fff; font-size: 8.5px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.header-icon-btn:hover { transform: translateY(-2px) rotate(-8deg); background: var(--brand-50); color: var(--brand-600); box-shadow: 0 8px 18px rgba(16, 188, 199, .18); }

/* ---------- 按钮：磁吸 + 光泽 + 波纹 ---------- */
.btn, .btn-demo, .link-button, .header-icon-btn {
    --mag-x: 0px;
    --mag-y: 0px;
    --lift: 0px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform: translate3d(var(--mag-x), calc(var(--lift) + var(--mag-y)), 0);
    transition: transform .28s var(--lx-ease), box-shadow .3s var(--lx-ease), background .3s var(--lx-ease), color .3s var(--lx-ease), border-color .3s var(--lx-ease);
    will-change: transform;
}
.btn:hover, .btn-demo:hover, .link-button:hover {
    --lift: -2px;
    box-shadow: 0 10px 24px rgba(7, 24, 45, .14), 0 0 0 1px rgba(16, 188, 199, .06);
}
.btn--primary:hover, .btn--paid:hover {
    box-shadow: 0 12px 28px rgba(16, 188, 199, .28), 0 0 26px var(--lx-glow);
}
.btn::after, .btn-demo::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -70%;
    width: 55%;
    height: 220%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    transition: left .65s var(--lx-ease);
    pointer-events: none;
    z-index: 1;
}
.btn:hover::after, .btn-demo:hover::after { left: 135%; }
.btn > *, .btn-demo > * { position: relative; z-index: 2; }

.lx-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, .42);
    pointer-events: none;
    animation: lx-ripple .62s var(--lx-ease) forwards;
    z-index: 0;
}
@keyframes lx-ripple { to { transform: scale(2.8); opacity: 0; } }

/* ---------- 卡片：悬浮 / 倾斜 / 聚光 ---------- */
.job-card, .article-card, .course-card, .provider-card, .talent-card, .stat-card, .side-card, .buy-card, .mini-item, .admin-stat, .admin-card {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
    --lift: 0px;
    position: relative;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, calc(var(--lift) + var(--reveal-y, 0px)), 0);
    transition: transform .5s var(--lx-ease), box-shadow .4s var(--lx-ease), border-color .35s var(--lx-ease), background .35s var(--lx-ease);
    transform-style: preserve-3d;
    will-change: transform;
}
.job-card:hover, .article-card:hover, .course-card:hover, .provider-card:hover, .talent-card:hover, .stat-card:hover, .side-card:hover, .buy-card:hover {
    --lift: var(--lx-lift);
    border-color: rgba(16, 188, 199, .32);
    box-shadow: 0 22px 50px rgba(7, 24, 45, .14), 0 0 0 1px rgba(16, 188, 199, .06), 0 0 34px rgba(16, 188, 199, .08);
}
.job-card::after, .article-card::after, .course-card::after, .talent-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s var(--lx-ease);
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .42), transparent 46%);
    z-index: 1;
    mix-blend-mode: soft-light;
}
.job-card:hover::after, .article-card:hover::after, .course-card:hover::after, .talent-card:hover::after { opacity: 1; }

.lx-spot {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    transition: opacity .4s var(--lx-ease);
    background: radial-gradient(360px circle at var(--lx-mx) var(--lx-my), var(--lx-glow), transparent 48%);
}
.lx-interactive:hover .lx-spot { opacity: .85; }

.job-card__media img, .article-card__cover img, .course-card__cover img, .provider-cover img {
    transition: transform .8s var(--lx-ease), filter .6s var(--lx-ease);
}
.job-card:hover .job-card__media img, .article-card:hover .article-card__cover img, .course-card:hover .course-card__cover img {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.02);
}
.job-card:hover .job-card-arrow { transform: translate(3px, -2px); }
.job-card-arrow { transition: transform .3s var(--lx-spring); }

.tag, .mode-badge, .badge, .status-pill {
    transition: transform .25s var(--lx-spring), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.tag:hover, .badge:hover, .status-pill:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 12px rgba(7, 24, 45, .08);
}

/* ---------- 首页 / 详情装饰 ---------- */
.hero::before, .page-hero::before {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: 8%;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 188, 199, .16), transparent 66%);
    animation: lx-float 8s ease-in-out infinite;
    pointer-events: none;
}
.page-hero::before { width: 320px; height: 320px; opacity: .7; }
.hero-visual, .floating-card { animation: lx-float-soft 7s ease-in-out infinite; }
@keyframes lx-float { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-18px,18px,0) scale(1.06); } }
@keyframes lx-float-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stat-card .value, .hero-stat .num { transition: color .3s var(--lx-ease), transform .3s var(--lx-ease); }
.stat-card:hover .value { color: var(--brand-600); transform: translateY(-1px); }

/* ---------- 人才库 ---------- */
.talent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.talent-card { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; color: var(--ink-900); text-decoration: none; }
.talent-top { display: flex; align-items: center; gap: 10px; }
.talent-top strong { display: block; font-size: 13px; }
.talent-top small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 10.5px; }
.talent-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 12px; color: var(--ink-500); font-size: 11px; }
.talent-meta svg { color: var(--brand-600); }
.talent-desc { margin-top: 10px; color: var(--ink-500); font-size: 11.5px; line-height: 1.7; min-height: 38px; }
.talent-card .link-arrow { display: inline-flex; margin-top: 12px; font-size: 11px; }
@media (max-width: 900px) { .talent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .talent-grid { grid-template-columns: 1fr; } }

/* ---------- 课程目录 ---------- */
.syllabus-item--link { display: block; text-decoration: none; color: inherit; border-radius: 8px; padding: 9px 8px; margin: 0 -8px; transition: background .25s var(--lx-ease), transform .25s var(--lx-ease); }
.syllabus-item--link:hover { background: var(--brand-50); transform: translateX(3px); }

/* ---------- 移动菜单 ---------- */
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px; }
.mobile-close { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; transition: transform .35s var(--lx-spring), background .25s, border-color .25s; }
.mobile-close:hover { transform: rotate(90deg); background: rgba(16, 188, 199, .16); border-color: rgba(16, 188, 199, .5); }
.mobile-link { transition: transform .3s var(--lx-ease), background .3s, color .3s; }
.mobile-link:hover { transform: translateX(5px); }

/* ---------- 表单 ---------- */
.input, .select, .textarea {
    transition: border-color .28s var(--lx-ease), box-shadow .28s var(--lx-ease), background .28s var(--lx-ease), transform .28s var(--lx-ease);
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(16, 188, 199, .13), 0 8px 24px rgba(16, 188, 199, .08);
    background: #fff;
}
.checkbox-row label, .checkbox-line { transition: color .25s; }
.checkbox-row:hover label { color: var(--ink-700); }

/* ---------- 页面进入 ---------- */
.lx-reveal {
    opacity: 0;
    --reveal-y: 18px;
    transition: opacity .65s var(--lx-ease), transform .65s var(--lx-ease);
    transition-delay: var(--lx-delay, 0ms);
}
.lx-reveal.is-visible { opacity: 1; --reveal-y: 0px; }

/* ---------- 管理后台 ---------- */
.admin-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.admin-nav::-webkit-scrollbar { width: 5px; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 99px; }
.admin-nav a, .admin-table tbody tr, .admin-stat, .admin-card {
    transition: transform .3s var(--lx-ease), background .3s, box-shadow .3s, border-color .3s;
}
.admin-nav a:hover { transform: translateX(4px); background: rgba(16, 188, 199, .07); color: var(--brand-600); }
.admin-table tbody tr:hover { background: rgba(16, 188, 199, .045); }
.admin-stat:hover, .admin-card:hover { box-shadow: 0 16px 36px rgba(7, 24, 45, .08); }
.admin-card:hover { transform: translateY(-2px); }
.admin-menu-toggle:hover { transform: rotate(90deg); }
.admin-table td a { transition: color .25s, transform .25s; }
.admin-table td a:hover { color: var(--brand-600); transform: translateY(-1px); }

/* ---------- 可读性：关键辅助文字不小于 11px ---------- */
body { font-size: 14.5px; }
small, .field-hint, .form-note, .muted-line, .cell-sub, .mini-body small, .auth-legal, .order-summary-row, .trust-point small, .panel-sub, .side-desc, .checkout-sub, .job-meta, .article-excerpt, .course-meta, .talent-desc { font-size: 11px; line-height: 1.65; }
.eyebrow { font-size: 10.5px; }
.tag, .badge, .status-pill, .mode-badge, .free-dot { font-size: 10.5px; }
.admin-table { font-size: 11px; }
.admin-table .cell-sub, .admin-table .muted-line { font-size: 10.5px; }
.admin-nav a { font-size: 11.5px; }
.input, .select, .textarea { font-size: 13px; }
.btn { font-size: 12.5px; }
.btn--primary, .btn--paid, .chip.is-active {
    background: linear-gradient(135deg, #078c97, #08717d);
}
.footer, .footer a, .footer-bottom { font-size: 11px; line-height: 1.7; }
:focus-visible { outline: 3px solid #067d8a; outline-offset: 3px; }

/* ---------- 舒适度 / 可访问性 ---------- */
:focus-visible {
    outline: 3px solid rgba(16, 188, 199, .55);
    outline-offset: 3px;
    border-radius: 6px;
}
a.sr-only:focus, .skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    width: auto;
    height: auto;
    padding: 10px 16px;
    border-radius: 8px;
    background: #07182d;
    color: #fff;
    font-size: 12px;
    clip: auto;
    overflow: visible;
    white-space: nowrap;
}
@media (hover: none), (pointer: coarse) {
    .job-card, .article-card, .course-card, .talent-card, .stat-card, .side-card, .buy-card { transform: none !important; }
    .job-card:hover, .article-card:hover, .course-card:hover, .talent-card:hover, .stat-card:hover { --lift: 0px; }
    .lx-cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .job-card, .article-card, .course-card, .talent-card, .stat-card, .side-card, .buy-card { transform: none !important; }
    .lx-cursor-glow { display: none; }
    .lx-reveal { opacity: 1 !important; --reveal-y: 0px !important; transform: none !important; }
}
