/* ============================================================
 * site-base.css —— 全站公共基础样式（Token / 按钮 / 页脚 / 动效工具）
 * ------------------------------------------------------------
 * 仅抽离跨页面完全复用的底层基础样式，保持与原有内联样式一致的层叠顺序。
 * ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --blue: #1e9be8;
    --blue-light: #eaf6fd;
    --blue-hover: #1789cf;
    --brand-deep: #1478ad;
    --green: #1478ad;
    --purple: #1478ad;
    --orange: #f59e0b;
    --ai-gradient: linear-gradient(135deg, #1a8bc9 0%, #1478ad 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== 按钮（全站统一品牌蓝胶囊） ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
    border-radius: 999px;
}

.btn-primary,
.btn-ai {
    color: #fff;
    background: linear-gradient(135deg, #2396ea 0%, #0d68bd 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(30, 155, 232, .28);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-ai:hover {
    background: linear-gradient(135deg, #2396ea 0%, #0d68bd 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(30, 155, 232, .42);
}

.btn-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-ai:hover::before { left: 100%; }

.btn-ghost {
    color: #1478ad;
    background: #fff;
    border: 1px solid rgba(35, 150, 234, .48);
}

.btn-ghost:hover {
    color: #0d68bd;
    background: rgba(35, 150, 234, .07);
    border-color: rgba(35, 150, 234, .72);
}

/* ===== 页脚（深色收口 + 三栏 + 新媒体二维码） ===== */
.footer {
    padding: 3.5rem 2rem 2.25rem;
    background: #080d16;
    border-top: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }

.footer-hotline {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s;
}

.footer-hotline:hover { color: var(--blue); }

.footer-hours {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 0.15rem;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 2.5rem 3rem;
    align-items: start;
}

.fm-brand .footer-logo { height: 34px; width: auto; margin-bottom: 1.15rem; }

.fm-brand .footer-hotline {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.fm-brand .footer-hours {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 0.25rem;
}

.fm-brand .fm-trust {
    margin-top: 1.15rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 993px) {
    .footer-badges { padding-right: 104px; }
}

.fm-nav h4,
.fm-qr h4 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin-bottom: 1.15rem;
    line-height: 1.2;
}

.fm-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
}

.fm-nav a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fm-nav a:hover { color: #ffffff; }

.qr-row { display: flex; gap: 0.9rem; }
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.qr-item img {
    width: 84px;
    height: 84px;
    display: block;
    background: #ffffff;
    border-radius: 10px;
    padding: 5px;
    box-sizing: border-box;
}
.qr-item span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 0.8rem 2rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.44);
    margin: 0;
    line-height: 1.8;
}

.footer-bottom a,
.footer-bottom p a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover,
.footer-bottom p a:hover { color: #ffffff; }

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: 0.2rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    font-size: 0.7rem !important;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.36) !important;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.footer-badge + .footer-badge::before {
    content: '·';
    margin: 0 0.6rem;
    color: rgba(255, 255, 255, 0.24) !important;
}

.footer-badge:hover { color: rgba(255, 255, 255, 0.7) !important; }

/* ===== 回到顶部浮钮（右侧正式竖排文字标签） ===== */
.to-top {
    position: fixed;
    right: 30px;
    bottom: 268px;
    z-index: 90;
    width: 40px;
    padding: 12px 0 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    color: #1e293b;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.to-top.is-visible:hover {
    background: #f6fafe;
    border-color: #1478ad;
    color: #1478ad;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 120, 173, 0.14);
}

.to-top:focus-visible { outline: 2px solid #1478ad; outline-offset: 3px; }

.to-top svg { width: 15px; height: 15px; flex: none; }
.to-top svg path { stroke-width: 1.9; }

.to-top-rule {
    width: 16px;
    height: 1px;
    background: #e2e8f0;
    flex: none;
    transition: background-color .2s ease;
}

.to-top.is-visible:hover .to-top-rule { background: rgba(20, 120, 173, 0.28); }

.to-top-text {
    writing-mode: vertical-rl;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.22em;
    color: inherit;
    user-select: none;
}

@media (max-width: 1200px) {
    .to-top { right: 20px; bottom: 84px; }
}

@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2.2rem 2rem; }
    .fm-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .footer { padding: 2.5rem 1.25rem 1.75rem; }
    .footer-hotline { font-size: 1.25rem; }
    .footer-badge { font-size: 0.74rem; }
    .qr-item img { width: 82px; height: 82px; padding: 5px; }
    .to-top { right: 18px; bottom: 82px; width: 44px; height: 44px; padding: 0; }
    .to-top svg { width: 18px; height: 18px; }
    .to-top-rule, .to-top-text { display: none; }
}

@media (max-width: 560px) {
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-badges { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .footer-badge + .footer-badge::before { content: none; }
    .qr-item img { width: 78px; height: 78px; }
}
