/* ============================================================
   山也门户 v3 设计系统
   天青烟雨·浅色商务：参考 cyipp 科技蓝 + 白卡雾面 + 山水留白
   主蓝 #3971FB，浅蓝分区，白卡柔阴影；烟雨山水图为视觉核心
   ============================================================ */

:root {
    /* 主蓝（对齐创因科技 azure：#2e71e3 系，比纯蓝更亮更通透） */
    --v3-primary: #2e71e3;
    --v3-primary-dark: #1f5fcf;
    --v3-primary-deep: #1a4fb8;
    --v3-primary-soft: #e5ecff;
    --v3-primary-mist: #f3f7ff;

    /* 墨色文字（偏蓝灰，保留一点山水冷意） */
    --v3-ink: #1f2d3d;
    --v3-heading: #162232;
    --v3-body: #545f6e;
    --v3-muted: #95a0af;
    --v3-line: #e7ecf5;
    --v3-line-soft: #eef2f9;

    /* 面 */
    --v3-surface: #ffffff;
    --v3-surface-2: #f6f9ff;
    --v3-bg: #ffffff;
    --v3-tint: #f4f7ff;

    /* 印章红（克制点缀） */
    --v3-cinnabar: #e0492f;

    --v3-radius: 16px;
    --v3-radius-lg: 22px;
    --v3-shadow-sm: 0 1px 2px rgba(31, 45, 61, .05);
    --v3-shadow: 0 14px 34px -18px rgba(31, 45, 61, .22);
    --v3-shadow-lg: 0 26px 60px -28px rgba(36, 86, 224, .28);

    --v3-shell: min(1180px, calc(100% - 48px));
    --v3-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

body {
    margin: 0;
    font-family: var(--v3-font);
    color: var(--v3-body);
    background: var(--v3-bg);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--v3-primary); text-decoration: none; }
a:hover { color: var(--v3-primary-dark); }

h1, h2, h3, h4 {
    margin: 0;
    color: var(--v3-heading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.v3-shell {
    width: var(--v3-shell);
    margin-inline: auto;
}

.visually-hidden, .skip-link {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 12px; left: 12px;
    width: auto; height: auto;
    clip: auto;
    z-index: 100;
    padding: 10px 16px;
    background: var(--v3-primary);
    color: #fff;
    border-radius: 8px;
}

/* ---------------- 按钮 ---------------- */

.v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 999px;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    white-space: nowrap;
}

.v3-btn-primary {
    background: var(--v3-primary);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(46, 113, 227, .6);
}
.v3-btn-primary:hover { background: var(--v3-primary-dark); color: #fff; transform: translateY(-2px); }

.v3-btn-ghost {
    background: transparent;
    color: var(--v3-heading);
    border-color: var(--v3-line);
}
.v3-btn-ghost:hover { border-color: var(--v3-primary); color: var(--v3-primary); }

.v3-btn-ghost-light {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}
.v3-btn-ghost-light:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: #fff; }

.v3-btn-white {
    background: #fff;
    color: var(--v3-primary);
}
.v3-btn-white:hover { background: var(--v3-primary-soft); color: var(--v3-primary-dark); transform: translateY(-2px); }

.v3-btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.v3-btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.v3-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.v3-actions-center { justify-content: center; }

/* ---------------- 顶栏 ---------------- */

.v3-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.v3-header.is-scrolled {
    border-bottom-color: var(--v3-line-soft);
    box-shadow: var(--v3-shadow-sm);
}

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

.v3-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--v3-heading);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: .01em;
    flex-shrink: 0;
}
.v3-brand:hover { color: var(--v3-heading); }
.v3-brand img { width: 38px; height: 38px; object-fit: contain; }

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

.v3-nav > a:not(.v3-nav-cta) {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--v3-body);
    font-size: .96rem;
    font-weight: 500;
    transition: color .15s ease, background .15s ease;
}
.v3-nav > a:not(.v3-nav-cta):hover { color: var(--v3-primary); background: var(--v3-primary-soft); }
.v3-nav > a.is-active { color: var(--v3-primary); font-weight: 600; }

.v3-nav-cta {
    margin-left: 10px;
    padding: 9px 22px;
    border-radius: 999px;
    background: var(--v3-primary);
    color: #fff !important;
    font-size: .93rem;
    font-weight: 600;
    transition: background .15s ease, transform .15s ease;
}
.v3-nav-cta:hover { background: var(--v3-primary-dark); transform: translateY(-1px); }

.v3-nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px;
}
.v3-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--v3-heading);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

/* ---------------- Hero ----------------
   首页：左侧晴空、右侧玻璃幕墙，文字放在左侧天空上。
   内页各自一张图，字色跟着画面的明暗走。 */

.v3-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding: 72px 0 64px;
    color: var(--v3-ink);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .5) 28%, rgba(255, 255, 255, 0) 50%),
        url('/v3/images/hero-home.webp?v=q100') left center / cover no-repeat;
}

.v3-hero-inner {
    display: block;
}

.v3-hero-copy { max-width: 34rem; }

.v3-hero h1 {
    color: var(--v3-heading);
    max-width: 8em;
    font-size: clamp(2.15rem, 3.2vw, 2.7rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.v3-hero-value {
    margin-top: 8px;
    color: var(--v3-primary-deep);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.v3-hero-lead {
    margin-top: 10px;
    max-width: 20em;
    color: var(--v3-body);
    font-size: .98rem;
    line-height: 1.7;
}

.v3-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 18px;
    margin-top: 18px;
}
.v3-stats li {
    font-size: .92rem;
    font-weight: 600;
    color: var(--v3-heading);
    line-height: 1.4;
}

.v3-hero .v3-actions { margin-top: 20px; gap: 12px; }
.v3-hero .v3-btn { padding: 11px 22px; font-size: .94rem; }
.v3-hero .v3-btn-ghost {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(31, 45, 61, .16);
}

.v3-hero-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-top: 22px;
    color: var(--v3-heading);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.4;
}
.v3-hero-points li {
    padding-left: 12px;
    border-left: 3px solid var(--v3-primary);
}

/* 明察：玻璃天棚偏暗的一侧放白字，右侧柱子和天空留出来 */
.v3-hero-portal {
    min-height: 440px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(14, 24, 38, .82) 0%, rgba(14, 24, 38, .5) 34%, rgba(14, 24, 38, 0) 60%),
        url('/v3/images/hero-portal.webp?v=q100') center / cover no-repeat;
}
.v3-hero-portal h1 { color: #fff; }
.v3-hero-portal .v3-hero-lead { color: rgba(255, 255, 255, .92); }
.v3-hero-portal .v3-btn-primary {
    background: #fff;
    color: var(--v3-primary-dark);
    box-shadow: none;
}
.v3-hero-portal .v3-btn-primary:hover { background: var(--v3-primary-soft); color: var(--v3-primary-dark); }

/* 内页页头 */
.v3-page-hero {
    display: flex;
    align-items: center;
    min-height: 280px;
    padding: 64px 0;
    background-color: var(--v3-tint);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.v3-page-hero h1,
.v3-page-lead { position: relative; max-width: 34em; }
.v3-page-lead {
    margin-top: 12px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.v3-page-hero-services {
    color: var(--v3-ink);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .86) 34%, rgba(255, 255, 255, .42) 58%, rgba(255, 255, 255, 0) 74%),
        url('/v3/images/hero-services.webp?v=q100');
}
.v3-page-hero-services h1 { color: var(--v3-heading); }
.v3-page-hero-services .v3-page-lead { color: var(--v3-heading); }

.v3-page-hero-cases {
    color: var(--v3-ink);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .86) 34%, rgba(255, 255, 255, .42) 58%, rgba(255, 255, 255, 0) 74%),
        url('/v3/images/hero-cases.webp?v=q100');
}
.v3-page-hero-cases h1 { color: var(--v3-heading); }
.v3-page-hero-cases .v3-page-lead { color: var(--v3-heading); }

.v3-page-hero-about {
    color: var(--v3-ink);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .86) 34%, rgba(255, 255, 255, .42) 58%, rgba(255, 255, 255, 0) 74%),
        url('/v3/images/hero-about.webp?v=q100');
}
.v3-page-hero-about h1 { color: var(--v3-heading); }
.v3-page-hero-about .v3-page-lead { color: var(--v3-heading); }

.v3-page-hero-contact {
    color: var(--v3-ink);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .86) 34%, rgba(255, 255, 255, .42) 58%, rgba(255, 255, 255, 0) 74%),
        url('/v3/images/hero-contact.webp?v=q100');
}
.v3-page-hero-contact h1 { color: var(--v3-heading); }
.v3-page-hero-contact .v3-page-lead { color: var(--v3-heading); }

/* 内页页头同一高度、同一字号、标题从同一位置起排 */
.v3-page-hero,
.v3-hero.v3-hero-portal {
    box-sizing: border-box;
    height: 300px;
    min-height: 300px;
    padding: 72px 0 0;
    align-items: flex-start;
}
.v3-page-hero h1,
.v3-hero.v3-hero-portal h1 {
    max-width: 12em;
    margin: 0;
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.v3-page-lead,
.v3-hero.v3-hero-portal .v3-hero-lead {
    margin-top: 10px;
    max-width: none;
    font-size: .98rem;
    line-height: 1.65;
}
.v3-hero.v3-hero-portal .v3-actions { margin-top: 16px; }

/* ---------------- 通用区块 ---------------- */

.v3-section { padding: clamp(60px, 8vw, 96px) 0; }
.v3-section-tint { background: var(--v3-tint); }

.v3-section-head {
    max-width: 720px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    text-align: center;
}

.v3-section-head h2 em,
.v3-split-text h2 em,
.v3-cta-inner h2 em {
    font-style: normal;
    color: var(--v3-primary);
}

.v3-section-lead {
    margin-top: 14px;
    color: var(--v3-body);
    font-size: 1.02rem;
}

.v3-section-more { margin-top: 40px; text-align: center; }

/* ---------------- 卡片网格 ---------------- */

.v3-card-grid { display: grid; gap: 24px; }
.v3-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.v3-card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.v3-card {
    display: flex;
    flex-direction: column;
    background: var(--v3-surface);
    border: 1px solid var(--v3-line);
    border-radius: var(--v3-radius-lg);
    overflow: hidden;
    color: inherit;
    box-shadow: var(--v3-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.v3-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--v3-shadow);
    border-color: #cfe0fb;
    color: inherit;
}

.v3-card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--v3-primary-mist);
}
.v3-card-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
/* 浅色山水图下缘轻收进白卡，仅最底一薄层雾 */
.v3-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, .5) 100%);
}
.v3-card:hover .v3-card-cover img { transform: scale(1.04); }

.v3-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 24px 26px;
    flex: 1;
}

.v3-card-icon {
    width: 32px; height: 32px;
    object-fit: contain;
    margin-bottom: 2px;
}

.v3-card-body h3 { color: var(--v3-heading); }
.v3-card-body p { color: var(--v3-body); font-size: .94rem; flex: 1; }

.v3-card-more {
    margin-top: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--v3-primary);
}

.v3-card-flat {
    box-shadow: var(--v3-shadow-sm);
    background: var(--v3-surface);
}
.v3-card-flat .v3-card-body { padding: 30px; }

.v3-card-horizontal .v3-card-cover { aspect-ratio: auto; min-height: 100%; }
.v3-card-horizontal { display: grid; grid-template-columns: 42% 1fr; }
.v3-card-horizontal .v3-card-cover img { height: 100%; position: absolute; }
.v3-card-horizontal .v3-card-cover { position: relative; }

.v3-card-category {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--v3-primary);
}
.v3-card-category::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--v3-primary);
}

/* ---------------- 编号步骤 ---------------- */

.v3-steps {
    display: grid;
    gap: 20px;
}
.v3-steps-grid { grid-template-columns: repeat(3, 1fr); }

.v3-steps > li {
    position: relative;
    padding: 26px 24px;
    background: var(--v3-surface);
    border: 1px solid var(--v3-line);
    border-radius: var(--v3-radius);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.v3-steps > li:hover {
    border-color: #cfe0fb;
    box-shadow: var(--v3-shadow);
    transform: translateY(-4px);
}

.v3-section:not(.v3-section-tint) .v3-steps > li {
    background: linear-gradient(180deg, #fbfdff, #fff 60%);
}

.v3-step-no {
    display: block;
    margin-bottom: 10px;
    color: #a9c2fb;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: .04em;
    line-height: 1.1;
}
.v3-steps h3 { margin-bottom: 8px; }
.v3-steps p { color: var(--v3-body); font-size: .92rem; }

.v3-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}
.v3-mini {
    padding: 22px;
    background: var(--v3-surface);
    border-left: 3px solid var(--v3-primary);
    border-radius: 0 var(--v3-radius) var(--v3-radius) 0;
    box-shadow: var(--v3-shadow-sm);
}
.v3-mini h3 { font-size: 1rem; margin-bottom: 6px; }
.v3-mini p { color: var(--v3-body); font-size: .9rem; }

/* ---------------- 图文交替 ---------------- */

.v3-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(36px, 6vw, 72px);
}

.v3-split-media svg { width: 100%; height: auto; filter: drop-shadow(0 24px 50px rgba(36, 86, 224, .18)); }

.v3-split-text h2 { margin: 0 0 16px; }
.v3-split-text > p { color: var(--v3-body); }

/* 产品段烟雨山水图：白卡柔影，底部轻雾收边 */
.v3-split-painting {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--v3-radius-lg);
    overflow: hidden;
    border: 1px solid var(--v3-line);
    background: var(--v3-primary-mist);
    box-shadow: var(--v3-shadow);
}
.v3-split-painting img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.v3-split-painting::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, .42) 100%);
}
.v3-split-painting:hover img { transform: scale(1.04); }

.v3-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    padding: 34px 0;
}
.v3-feature-row + .v3-feature-row { border-top: 1px solid var(--v3-line-soft); }
.v3-feature-row.is-reverse .v3-feature-media { order: 2; }

.v3-feature-media {
    position: relative;
    border-radius: var(--v3-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--v3-primary-mist);
    box-shadow: var(--v3-shadow);
    border: 1px solid var(--v3-line);
}
.v3-feature-media > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.v3-feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 82%, rgba(255, 255, 255, .38) 100%);
}

.v3-index {
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--v3-primary);
}
.v3-feature-text h2 { margin: 8px 0 14px; }
.v3-feature-text p { color: var(--v3-body); }

/* ---------------- 勾选列表 / 信任带 ---------------- */

.v3-check-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}
.v3-check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--v3-body);
}
.v3-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    color: var(--v3-primary);
    font-size: .92rem;
    font-weight: 700;
}
.v3-check-list-compact { margin-top: 14px; gap: 8px; }
.v3-check-list-compact li { font-size: .93rem; }

.v3-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.v3-trust {
    padding: 32px 28px;
    text-align: left;
    border: 1px solid var(--v3-line);
    border-radius: var(--v3-radius-lg);
    background: var(--v3-surface);
}
.v3-trust-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--v3-primary-soft);
    border: 1.5px solid #bcd6fb;
    color: var(--v3-primary);
    font-size: .82rem;
    font-weight: 800;
}
.v3-trust h3 { margin-bottom: 8px; }
.v3-trust p { color: var(--v3-body); font-size: .94rem; }

/* ---------------- 平台墙 / 合作所 ---------------- */

.v3-platform-wall {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 1040px;
    margin: 0 auto;
}
.v3-platform-wall li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 12px 20px;
    background: var(--v3-surface);
    border: 1px solid var(--v3-line);
    border-radius: var(--v3-radius);
    color: var(--v3-body);
    font-size: .92rem;
    font-weight: 500;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.v3-platform-wall li:hover {
    transform: translateY(-3px);
    box-shadow: var(--v3-shadow);
    border-color: #cfe0fb;
}
.v3-platform-wall img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.v3-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.v3-partner-grid li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 18px;
    text-align: center;
    font-weight: 600;
    color: var(--v3-heading);
    background: var(--v3-surface);
    border: 1px solid var(--v3-line);
    border-radius: var(--v3-radius);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.v3-partner-grid li:hover { box-shadow: var(--v3-shadow); transform: translateY(-3px); border-color: #cfe0fb; }

/* ---------------- SVG 图标 ---------------- */

.v3-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    margin-bottom: 14px;
    color: var(--v3-primary);
}
.v3-svg-icon svg { width: 30px; height: 30px; }

/* ---------------- 案例页 ---------------- */

.v3-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-bottom: 36px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--v3-line);
}
.v3-filter {
    position: relative;
    padding: 10px 2px 12px;
    border: 0;
    background: transparent;
    color: var(--v3-muted);
    font: inherit;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s ease;
}
.v3-filter::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--v3-primary);
    transform: scaleX(0);
    transition: transform .18s ease;
}
.v3-filter:hover { color: var(--v3-heading); }
.v3-filter.is-active { color: var(--v3-primary); font-weight: 600; }
.v3-filter.is-active::after { transform: scaleX(1); }

.v3-case-list { display: grid; gap: 28px; }

.v3-case {
    display: grid;
    grid-template-columns: 38% 1fr;
    background: var(--v3-surface);
    border: 1px solid var(--v3-line);
    border-radius: var(--v3-radius-lg);
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.v3-case:hover { box-shadow: var(--v3-shadow); transform: translateY(-4px); border-color: #cfe0fb; }
.v3-case-media { position: relative; min-height: 240px; background: var(--v3-primary-mist); }
.v3-case-media img { width: 100%; height: 100%; object-fit: cover; }
.v3-case-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, .4) 100%);
}
.v3-case-body { padding: 30px 32px; display: flex; flex-direction: column; gap: 10px; }
.v3-case-body h2 { font-size: 1.35rem; }
.v3-case-body > p { color: var(--v3-body); }

[hidden] { display: none !important; }

/* ---------------- 关于页 ---------------- */

.v3-about {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}
.v3-about-intro .v3-section-lead {
    font-size: 1.08rem;
    color: var(--v3-heading);
}
.v3-about-bullets { margin-top: 0; }

/* ---------------- 联系页 ---------------- */

.v3-contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.v3-contact-info {
    padding: 36px 32px;
    border-radius: var(--v3-radius-lg);
    background:
        radial-gradient(420px 220px at 92% 0%, rgba(140, 185, 250, .4), transparent 65%),
        linear-gradient(150deg, #2e71e3, #1a4fb8);
    color: #fff;
}
.v3-contact-info h2 { color: #fff; }
.v3-contact-info > p { margin-top: 14px; color: rgba(255, 255, 255, .88); font-size: .95rem; }

.v3-contact-meta { display: grid; gap: 18px; margin-top: 28px; }
.v3-contact-meta li { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .94); }
.v3-contact-meta .v3-svg-icon {
    width: 30px; height: 30px;
    margin-bottom: 0;
    color: #cfe0ff;
    flex-shrink: 0;
}
.v3-contact-meta .v3-svg-icon svg { width: 26px; height: 26px; }
.v3-contact-meta a { color: #fff; word-break: break-all; }
.v3-contact-meta a:hover { color: #dce8ff; }

.v3-contact-product {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .92rem;
    color: rgba(255, 255, 255, .82);
}
.v3-contact-product a { font-weight: 600; }

.v3-contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
    padding: 36px 34px;
    background: var(--v3-surface);
    border: 1px solid var(--v3-line);
    border-radius: var(--v3-radius-lg);
    box-shadow: var(--v3-shadow-sm);
}

.v3-field { display: flex; flex-direction: column; gap: 8px; }
.v3-field-full { grid-column: 1 / -1; }
.v3-field > span {
    font-size: .9rem;
    font-weight: 600;
    color: var(--v3-heading);
}
.v3-field i { color: var(--v3-cinnabar); font-style: normal; }

.v3-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--v3-line);
    border-radius: 10px;
    font: inherit;
    color: var(--v3-heading);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.v3-input::placeholder { color: #aab4c2; }
.v3-input:focus {
    outline: none;
    border-color: var(--v3-primary);
    box-shadow: 0 0 0 3px rgba(46, 113, 227, .15);
}
.v3-input.is-invalid { border-color: #e05246; }
.v3-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(224, 82, 70, .14); }
textarea.v3-input { resize: vertical; min-height: 120px; }

.v3-contact-feedback {
    grid-column: 1 / -1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .93rem;
}
.v3-contact-feedback--error { background: #fdf0ef; color: #c0392b; border: 1px solid #f6d4d1; }
.v3-contact-feedback--success { background: #ecf7f0; color: #1c7a43; border: 1px solid #c5e8d2; }

.v3-contact-form .contact-submit-btn {
    grid-column: 1 / -1;
    justify-self: start;
    border: 0;
    font: inherit;
}
.v3-contact-form .contact-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------------- CTA 横幅 ---------------- */

.v3-cta-band {
    position: relative;
    background: #fff;
    border-top: 1px solid var(--v3-line);
    padding: clamp(56px, 7vw, 80px) 0;
}
.v3-cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.v3-cta-inner h2 { color: var(--v3-heading); }
.v3-cta-inner p { margin-top: 12px; color: var(--v3-body); }
.v3-cta-band .v3-btn-white {
    background: var(--v3-primary);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(46, 113, 227, .6);
}
.v3-cta-band .v3-btn-white:hover { background: var(--v3-primary-dark); color: #fff; }
.v3-cta-band .v3-btn-outline-light {
    background: #fff;
    color: var(--v3-heading);
    border-color: var(--v3-line);
}
.v3-cta-band .v3-btn-outline-light:hover {
    background: #fff;
    color: var(--v3-primary);
    border-color: var(--v3-primary);
}

/* ---------------- 页脚 ---------------- */

.v3-footer {
    background: #162232;
    color: rgba(214, 224, 238, .72);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}

.footer-brand img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 16px; }
.footer-tagline { color: rgba(226, 235, 246, .8); font-size: .95rem; max-width: 20em; }

.footer-col h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: rgba(214, 224, 238, .66);
    font-size: .92rem;
    padding: 5px 0;
    transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .86rem;
}
.footer-bottom a { color: rgba(214, 224, 238, .55); }
.footer-bottom a:hover { color: #fff; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
    .v3-card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .v3-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .v3-partner-grid { grid-template-columns: repeat(2, 1fr); }
    .v3-platform-wall { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .v3-split,
    .v3-feature-row,
    .v3-about,
    .v3-contact-grid {
        grid-template-columns: 1fr;
    }
    .v3-feature-row.is-reverse .v3-feature-media { order: 0; }
    .v3-card-horizontal { grid-template-columns: 1fr; }
    .v3-card-horizontal .v3-card-cover { aspect-ratio: 16 / 9; }
    .v3-case { grid-template-columns: 1fr; }
    .v3-case-media { min-height: 200px; }
    .v3-case-media::after { background: linear-gradient(180deg, rgba(255,255,255,0) 82%, rgba(255,255,255,.4) 100%); }
    .v3-mini-grid { grid-template-columns: 1fr; }
    .v3-trust-grid { grid-template-columns: 1fr; }

    .v3-nav-toggle { display: block; }
    .v3-nav {
        position: absolute;
        top: 72px; left: 0; right: 0;
        z-index: 60;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 24px 22px;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--v3-line);
        box-shadow: var(--v3-shadow);
        display: none;
        transform: translateZ(0);
    }
    .v3-nav.is-open { display: flex; }
    .v3-nav > a:not(.v3-nav-cta) { padding: 12px 14px; border-radius: 10px; }
    .v3-nav-cta { margin: 8px 0 0; text-align: center; }

    .v3-hero {
        min-height: 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .78) 100%),
            url('/v3/images/hero-home.webp?v=q100') left center / cover no-repeat;
    }
    .v3-hero-copy { max-width: none; }
    .v3-hero-portal {
        background:
            linear-gradient(180deg, rgba(14, 24, 38, .84) 0%, rgba(14, 24, 38, .72) 100%),
            url('/v3/images/hero-portal.webp?v=q100') center / cover no-repeat;
    }
    .v3-page-hero-services {
        background-image:
            linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .78)),
            url('/v3/images/hero-services.webp?v=q100');
    }
    .v3-page-hero-cases {
        background-image:
            linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .78)),
            url('/v3/images/hero-cases.webp?v=q100');
    }
    .v3-page-hero-about {
        background-image:
            linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .78)),
            url('/v3/images/hero-about.webp?v=q100');
    }
    .v3-page-hero-contact {
        background-image:
            linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .74)),
            url('/v3/images/hero-contact.webp?v=q100');
    }
}

@media (max-width: 640px) {
    :root { --v3-shell: min(100% - 32px, 1180px); }
    .v3-card-grid-3, .v3-card-grid-2 { grid-template-columns: 1fr; }
    .v3-steps-grid { grid-template-columns: 1fr; }
    .v3-partner-grid { grid-template-columns: 1fr; }
    .v3-platform-wall { grid-template-columns: repeat(3, 1fr); }
    .v3-contact-form { grid-template-columns: 1fr; padding: 26px 20px; }
    .v3-contact-info { padding: 28px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .v3-brand span { font-size: 1rem; }

    .v3-hero { padding: 48px 0 40px; }
    .v3-page-hero,
    .v3-hero.v3-hero-portal {
        height: 240px;
        min-height: 240px;
        padding: 48px 0 0;
    }
    .v3-page-hero h1,
    .v3-hero.v3-hero-portal h1 { font-size: 1.75rem; }
    .v3-hero-points { grid-template-columns: 1fr; }
    .v3-hero .v3-actions { flex-direction: column; align-items: stretch; }
    .v3-hero .v3-actions .v3-btn { width: 100%; }
}
