/* ============================================================
 * 云泽林创 v2 主题 · base.css
 * 现代商务蓝：设计令牌 / 重置 / 布局 / 头部 / 按钮 / 卡片 / 页脚
 * ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
    --brand: #1a5fd0;
    --brand-dark: #12429b;
    --brand-deep: #0d1b33;
    --brand-soft: #eaf1ff;
    --accent: #f7a726;
    --accent-soft: #fff5e4;

    --ink: #0d1b33;
    --ink-2: #1f2f4d;
    --text: #47536e;
    --muted: #7c89a3;
    --line: #e4eaf4;
    --bg: #f5f7fb;
    --white: #ffffff;

    --radius-lg: 18px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(13, 27, 51, .05);
    --shadow-sm: 0 2px 6px rgba(13, 27, 51, .05), 0 8px 20px rgba(13, 27, 51, .05);
    --shadow-md: 0 12px 34px rgba(13, 27, 51, .10);
    --shadow-lg: 0 26px 64px rgba(13, 27, 51, .18);

    --container: 1200px;
    --header-h: 78px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s var(--ease);
}

img,
svg {
    display: block;
    max-width: 100%;
    border: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

input, textarea, select, button {
    font: inherit;
    color: inherit;
}

.clear::after,
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ---------- 布局 ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
}

.section--tight {
    padding: 56px 0;
}

.section--gray {
    background: var(--bg);
}

.section--deep {
    position: relative;
    color: rgba(255, 255, 255, .78);
    background: linear-gradient(135deg, var(--brand-deep) 0%, #14264a 55%, var(--brand-dark) 100%);
    overflow: hidden;
}

.section--deep h2,
.section--deep h3 {
    color: #fff;
}

.section--deep::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 95, 208, .55), transparent 68%);
    pointer-events: none;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-head--left {
    margin-left: 0;
    text-align: left;
}

.section-head .eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section--deep .eyebrow {
    background: rgba(255, 255, 255, .12);
    color: #cfe0ff;
}

.section-head h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.section-head p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 15.5px;
}

.section--deep .section-head p {
    color: rgba(255, 255, 255, .66);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 头部导航 ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: height .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}

.site-header.is-scrolled {
    height: 66px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 28px rgba(13, 27, 51, .09);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand img {
    max-height: 44px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 17px;
    color: var(--ink);
    letter-spacing: .02em;
}

.brand-text span {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .22em;
    text-transform: uppercase;
}

/* 主菜单 */
.nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav-link:hover {
    color: var(--brand);
}

.nav-item:hover > .nav-link::after,
.nav-item.is-active > .nav-link::after {
    transform: scaleX(1);
}

.nav-item.is-active > .nav-link {
    color: var(--brand);
    font-weight: 600;
}

/* 下拉子菜单 */
.submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 190px;
    padding: 10px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}

.submenu:empty {
    display: none;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.submenu a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
}

.submenu a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.header-tel {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.15;
}

.header-tel .icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
}

.header-tel small {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .06em;
}

.header-tel b {
    font-size: 19px;
    color: var(--ink);
    letter-spacing: .01em;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    place-items: center;
}

.nav-toggle span {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), background .3s;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), top .3s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
        background .25s var(--ease), color .25s var(--ease), border-color .25s;
}

.btn--primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(26, 95, 208, .28);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(26, 95, 208, .34);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
}

.btn--outline {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.btn--outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

.btn--sm {
    height: 38px;
    padding: 0 18px;
    font-size: 13.5px;
}

.btn--block {
    width: 100%;
}

/* ---------- 卡片 ---------- */
.card {
    position: relative;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 95, 208, .28);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--brand-soft);
    color: var(--brand);
    transition: background .3s, color .3s;
}

.card:hover .card-icon {
    background: var(--brand);
    color: #fff;
}

.card h3 {
    font-size: 18px;
}

.card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14.5px;
}

.card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
}

.card-more::after {
    content: "→";
    transition: transform .25s var(--ease);
}

.card:hover .card-more::after {
    transform: translateX(4px);
}

/* ---------- 徽标 / 标签 ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 600;
}

.pill--accent {
    background: var(--accent-soft);
    color: #b3720a;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
}

/* ---------- 页脚 ---------- */
.site-footer {
    position: relative;
    padding-top: 76px;
    background: linear-gradient(180deg, #0b1730 0%, #0d1b33 100%);
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.site-footer h4 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 15.5px;
    letter-spacing: .04em;
}

.footer-about p {
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.9;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    max-height: 42px;
    /* 深色页脚里把深蓝 LOGO 反白，避免与背景混在一起 */
    filter: brightness(0) invert(1);
}

.footer-logo strong {
    color: #fff;
    font-size: 18px;
}

.footer-links li + li {
    margin-top: 11px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 13px;
    line-height: 1.6;
}

.footer-contact .k {
    flex: 0 0 46px;
    color: rgba(255, 255, 255, .42);
}

.footer-contact .v {
    color: #fff;
    font-weight: 500;
    word-break: break-all;
}

.footer-qr {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.footer-qr img {
    width: 92px;
    height: 92px;
    padding: 5px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.footer-qr span {
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .5);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0 26px;
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ---------- 悬浮工具条 ---------- */
.float-bar {
    position: fixed;
    right: 18px;
    bottom: 28px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-bar a,
.float-bar button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s, color .25s;
}

.float-bar a:hover,
.float-bar button:hover {
    transform: translateY(-3px);
    background: var(--brand);
    color: #fff;
}

.float-bar .qr-pop {
    position: absolute;
    right: 58px;
    bottom: 0;
    width: 132px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.float-bar .qr-host {
    position: relative;
}

.float-bar .qr-host:hover .qr-pop {
    opacity: 1;
    visibility: visible;
}

.float-bar .is-top {
    opacity: 0;
    visibility: hidden;
}

.float-bar .is-top.show {
    opacity: 1;
    visibility: visible;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .66);
    font-size: 13.5px;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb em {
    font-style: normal;
    opacity: .5;
}

.breadcrumb span {
    color: #fff;
}

/* 覆盖 PositionTag 输出的容器样式 */
.cms-position {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .66);
    font-size: 13.5px;
}

.cms-position a:hover { color: #fff; }
.cms-position em { font-style: normal; opacity: .5; margin: 0 2px; }
.cms-position span { color: #fff; }

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    transition: all .25s var(--ease);
}

.pagination a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.pagination .on,
.pagination .active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}

.pagination .disabled {
    color: var(--muted);
    background: var(--bg);
    cursor: not-allowed;
}

/* ---------- 表单 ---------- */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.field .req {
    color: #e5484d;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-size: 14.5px;
    transition: border-color .25s, box-shadow .25s;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(26, 95, 208, .12);
}

.textarea {
    min-height: 130px;
    resize: vertical;
}

.form-tip {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

.form-alert {
    display: none;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #eaf7ef;
    color: #17794b;
    font-size: 14px;
}

.form-alert.is-error {
    background: #fdecec;
    color: #c92b2b;
}

.form-alert.show {
    display: block;
}

/* ---------- 动效 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
