@charset "utf-8";
/* ==========================================================================
   板才人力 · PC 门户页样式
   引用页面：application/index/view/index/index.html
   请求路径：/devStatic/css/pcStyle.css
   物理路径：public/devStatic/css/pcStyle.css
   说明：浅色 / 深色双主题（跟随系统 prefers-color-scheme），响应式断点 900px / 640px
   ========================================================================== */

:root {
    --copper: #B8763F;
    --copper-light: #D99A5F;
    --copper-deep: #8A552B;
    --brand-red: #D9302A;
    --brand-red-deep: #A81E1A;

    --bg: #FAF7F4;
    --bg-soft: #F2EBE4;
    --surface: #FFFFFF;
    --surface-2: #FBF8F5;
    --ink: #1F1915;
    --ink-2: #5B4F47;
    --ink-3: #8C8078;
    --line: rgba(31, 25, 21, .10);
    --line-strong: rgba(31, 25, 21, .16);
    --shadow-sm: 0 1px 2px rgba(31, 25, 21, .05), 0 4px 14px rgba(31, 25, 21, .05);
    --shadow-md: 0 2px 6px rgba(31, 25, 21, .06), 0 18px 44px rgba(31, 25, 21, .09);
    --radius: 18px;
    --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16110E;
        --bg-soft: #1E1712;
        --surface: #211A15;
        --surface-2: #191310;
        --ink: #F5EFE9;
        --ink-2: #C4B5A8;
        --ink-3: #93857A;
        --line: rgba(245, 239, 233, .12);
        --line-strong: rgba(245, 239, 233, .2);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
        --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .4);
        --copper: #D99A5F;
        --copper-light: #EBBB88;
        --brand-red: #F0574C;
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    flex: none;
}

.brand-mark img {
    height: 24px;
    width: auto;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-sub {
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

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

.nav a {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink-2);
    transition: background .2s, color .2s;
}

.nav a:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.nav a.primary {
    background: linear-gradient(135deg, var(--copper), var(--brand-red));
    color: #fff;
    box-shadow: 0 6px 18px rgba(184, 118, 63, .32);
}

.nav a.primary:hover {
    filter: brightness(1.06);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 72px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(184, 118, 63, .20), transparent 62%),
        radial-gradient(760px 400px at 92% 6%, rgba(217, 48, 42, .16), transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
    gap: 56px;
    align-items: center;
}

.env-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    color: var(--ink-2);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--copper);
    box-shadow: 0 0 0 4px rgba(184, 118, 63, .18);
    flex: none;
}

.dot.live {
    background: #17A34A;
    box-shadow: 0 0 0 4px rgba(23, 163, 74, .18);
}

.hero-logo {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 26px 0 22px;
}

.hero-logo img {
    height: 62px;
    width: auto;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5.2vw, 52px);
    line-height: 1.16;
    letter-spacing: -.01em;
    font-weight: 800;
}

h1 .accent {
    background: linear-gradient(120deg, var(--copper-deep), var(--copper), var(--brand-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    margin: 0 0 28px;
    font-size: 17px;
    color: var(--ink-2);
    max-width: 46ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--copper), var(--brand-red));
    color: #fff;
    box-shadow: 0 10px 26px rgba(184, 118, 63, .34);
}

.btn-ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
}

/* 当前访问地址 */
.url-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px dashed var(--line-strong);
    background: var(--surface-2);
    max-width: 520px;
}

.url-card .label {
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: .1em;
    white-space: nowrap;
    flex: none;
}

.url-card .value {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--copper-deep);
    overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
    .url-card .value {
        color: var(--copper-light);
    }
}

/* ---------- 小程序卡片 ---------- */
.mp-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.mp-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(150deg, rgba(184, 118, 63, .55), transparent 42%, rgba(217, 48, 42, .4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.mp-eyebrow {
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--ink-3);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.mp-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}

.mp-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    padding: 8px;
}

.mp-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.mp-hint {
    font-size: 13px;
    color: var(--ink-3);
    margin: 0;
}

/* ---------- 通用区块 ---------- */
section.block {
    padding: 66px 0;
    border-top: 1px solid var(--line);
}

.block-head {
    margin-bottom: 34px;
}

.block-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.block-head p {
    margin: 0;
    color: var(--ink-3);
    font-size: 15px;
}

/* 功能栅格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.feature .ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(184, 118, 63, .16), rgba(217, 48, 42, .14));
    color: var(--copper);
    margin-bottom: 14px;
}

.feature h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.feature p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-3);
    line-height: 1.6;
}

/* ---------- 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    padding: 34px 0 40px;
    margin-top: 10px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

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

.footer-brand .brand-mark img {
    height: 18px;
}

.footer-meta {
    font-size: 13px;
    color: var(--ink-3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    justify-content: flex-end;
}

.footer-meta a:hover {
    color: var(--copper);
}

.sep {
    opacity: .4;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 56px 0 48px;
    }

    .mp-card {
        max-width: 380px;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 18px;
    }

    .brand-sub {
        display: none;
    }

    .nav a:not(.primary) {
        display: none;
    }

    .hero-logo img {
        height: 46px;
    }

    .url-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .footer-meta {
        justify-content: flex-start;
    }

    section.block {
        padding: 48px 0;
    }
}
