:root {
    --ink: #0f172a;
    --text: #3f4a5b;
    --muted: #7b8799;
    --line: #e6eaf0;
    --soft: #f7f9fc;
    --accent: #2457e6;
    --max: 1080px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font: 400 15.5px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

[id] {
    scroll-margin-top: 78px;
}

/* 顶栏 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 62px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.brand-mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
}

.brand-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    flex: none;
    gap: 26px;
    font-size: 14px;
}

.nav a {
    color: var(--muted);
    transition: color 0.15s;
}

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

/* 首屏 */
.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 84px;
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(36, 87, 230, 0.16) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.hero .wrap {
    position: relative;
}

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

.hero-card {
    padding: 24px 26px 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 24px 60px -46px rgba(15, 23, 42, 0.5);
}

.hero-card-title {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.hero-card-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    font-size: 14px;
    line-height: 1.65;
}

.hero-card-row + .hero-card-row {
    border-top: 1px solid var(--line);
}

.hero-card-row > span:first-child {
    color: var(--muted);
    font-size: 13px;
}

.hero-card-row a,
.hero-card-row > span:last-child {
    color: var(--ink);
    word-break: break-word;
}

.hero-card-row a:hover {
    color: var(--accent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.hero h1 {
    max-width: 880px;
    margin-top: 18px;
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero-lead {
    max-width: 620px;
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
    border-color: #cbd5e3;
}

.btn-primary {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.btn-primary:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

/* 内容分区 */
.section {
    padding: 76px 0;
    border-top: 1px solid var(--line);
}

.section.soft {
    background: var(--soft);
}

.section-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.section-head h2 {
    margin-top: 12px;
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.section-head.is-center {
    margin-bottom: 44px;
    text-align: center;
}

.section-head.is-center .eyebrow {
    justify-content: center;
}

.section-head.is-center .eyebrow::before {
    display: none;
}

.section-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.prose {
    max-width: 720px;
}

.prose p {
    margin: 0 0 18px;
}

.prose p:first-child {
    color: #2a3444;
    font-size: 16.5px;
}

.prose p:last-child {
    margin-bottom: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.card {
    padding: 26px 24px 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.card:hover {
    border-color: #d3dce9;
    box-shadow: 0 14px 36px -24px rgba(15, 23, 42, 0.5);
    transform: translateY(-2px);
}

.card-index {
    color: var(--accent);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
}

.card h3 {
    margin: 14px 0 8px;
    font-size: 17px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

/* 联系方式 */
.contact-grid {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.contact-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 18px 24px;
}

.contact-item + .contact-item {
    border-top: 1px solid var(--line);
}

.contact-item .label {
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: 0.06em;
}

.contact-item .value {
    color: var(--ink);
    font-size: 15px;
    word-break: break-word;
}

a.value {
    transition: color 0.15s;
}

a.value:hover {
    color: var(--accent);
}

/* 页脚 */
.site-footer {
    padding: 44px 0;
    background: #0d1526;
    color: #9aa7bb;
}

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

.footer-name {
    margin: 0 0 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.footer-meta {
    margin: 0;
    color: #8592a7;
    font-size: 13px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    text-align: right;
}

.footer-legal a {
    color: #a7b4c8;
    transition: color 0.15s;
}

.footer-legal a:hover {
    color: #fff;
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        align-items: start;
    }
}

@media (max-width: 860px) {
    .hero {
        padding: 68px 0 62px;
    }

    .section {
        padding: 60px 0;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-head.is-center {
        margin-bottom: 32px;
    }

    .nav {
        gap: 18px;
    }
}

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

    .header-inner {
        height: 58px;
    }

    .brand {
        font-size: 14px;
    }

    .brand-mark {
        width: 26px;
        height: 26px;
    }

    .nav {
        gap: 14px;
        font-size: 13px;
    }

    .hero-card {
        display: none;
    }

    .contact-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 18px 20px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
