/*
 * 官网首页样式（layouts/site.blade.php + home.blade.php）
 * 设计令牌复用 resources/css/app.css 的 :root 变量，不另起色板。
 * 风格约束：浅色白底、扁平化、0/2/4px 圆角、极轻阴影、单一品牌蓝 + 中性灰阶。
 * 断点：>=1200 桌面 / 1024–1199 窄桌面 / 768–1023 iPad 竖屏 / <=767 手机 / <=479 超窄屏
 */

/* ---------- 页面基座 ---------- */
.site-body {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    background: var(--card);
    /* app.css 的 overflow-x: hidden 会让 sticky 顶栏失效，clip 只裁剪不创建滚动容器 */
    overflow-x: clip;
}

.site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    flex: 1 1 auto;
}

.site-body a:focus-visible,
.site-body button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ---------- 顶栏 ---------- */
.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: var(--card);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

/* 顶栏不受 1200px 内容宽度限制，品牌与导航贴左排布，账户入口在最右 */
.site-header-inner {
    position: relative;
    display: flex;
    max-width: none;
    padding-right: 40px;
    padding-left: 40px;
    min-height: var(--topbar-height);
    align-items: center;
    gap: 32px;
}

.site-brand {
    flex: 0 0 auto;
}

.site-nav-panel {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.site-nav-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.site-nav-link:hover,
.site-nav-link[aria-current='page'] {
    color: var(--brand-strong);
}

.site-nav-link:hover {
    background: var(--brand-soft);
}

.site-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.site-header-actions .button {
    min-height: 36px;
    padding: 0 16px;
}

.site-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
}

.site-nav-toggle:hover {
    border-color: var(--brand);
    color: var(--brand-strong);
}

.site-nav-toggle .site-nav-toggle-close,
.site-nav-toggle[aria-expanded='true'] .site-nav-toggle-open {
    display: none;
}

.site-nav-toggle[aria-expanded='true'] .site-nav-toggle-close {
    display: block;
}

.site-nav-backdrop {
    position: fixed;
    z-index: 35;
    inset: var(--topbar-height) 0 0;
    background: rgba(15, 23, 42, .25);
}

.site-nav-backdrop[hidden] {
    display: none;
}

/* ---------- 图标底块（产品导航 / 服务保障 / 应用场景共用） ---------- */
.home-product-icon,
.site-trust-icon,
.home-scenario-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand-strong);
}

/* ---------- 区块通用 ---------- */
.site-section {
    padding: 72px 0;
    scroll-margin-top: var(--topbar-height);
}

.site-section-alt {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--page);
}

.site-section-head {
    max-width: 680px;
    margin-bottom: 36px;
}

.site-section-head.is-center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.site-eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
}

.site-section-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.site-section-head p:not(.site-eyebrow) {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ---------- 首屏 ---------- */
/* 与参考站一致：浅蓝底 + 全幅背景视频（object-fit: cover），视频加载前或无法播放时显示底色 */
.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 496px;
    padding: 66px 0 110px;
    border-bottom: 1px solid var(--border);
    background: #f0f5ff;
}

.home-hero-video {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: start;
    gap: 56px;
    grid-template-columns: 280px minmax(0, 1fr);
}

.home-hero-nav {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-hero-tabs {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.home-hero-tab {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.home-hero-tab:hover {
    background: rgba(255, 255, 255, .45);
}

.home-hero-tab.is-active {
    border-color: #dbeafe;
    background: var(--card);
    color: var(--brand-strong);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.home-hero-tab-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-hero-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
}

/* 进度条时长由 home.js 写入 --hero-interval，与自动轮播间隔一致 */
.home-hero[data-autoplay='on'] .home-hero-tab.is-active .home-hero-tab-bar {
    animation: home-hero-progress var(--hero-interval, 6s) linear forwards;
}

.home-hero[data-paused='true'] .home-hero-tab.is-active .home-hero-tab-bar {
    animation-play-state: paused;
}

@keyframes home-hero-progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.home-hero-tag {
    flex: 0 0 auto;
    padding: 1px 6px;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.home-hero-tag-brand {
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.home-hero-tag-success {
    background: var(--success-soft, #f0fdf4);
    color: var(--success, #15803d);
}

.home-hero-tag-warning {
    background: var(--warning-soft, #fffbeb);
    color: var(--warning, #b45309);
}

.home-hero-slides {
    min-width: 0;
    min-height: 300px;
}

.home-hero-slide[hidden] {
    display: none;
}

.home-hero-slide.is-active {
    animation: home-hero-fade .35s ease;
}

@keyframes home-hero-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 4px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 2px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 600;
}

.home-hero-badge::before {
    width: 6px;
    height: 6px;
    background: var(--brand);
    content: '';
}

.home-hero-title {
    margin: 0;
    color: var(--text);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.home-hero-title span {
    display: block;
    color: var(--brand-strong);
}

.home-hero-desc {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.home-hero-actions,
.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.home-hero-actions .button,
.home-cta-actions .button {
    min-height: 44px;
    padding: 0 24px;
    font-size: 15px;
}

/* ---------- 能力指标条（压在首屏下沿） ---------- */
.home-stats {
    position: relative;
    z-index: 2;
    margin-top: -48px;
}

.home-stats-inner {
    display: grid;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.home-stat:last-child {
    border-right: 0;
}

.home-stat dt {
    order: 2;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.home-stat-value {
    order: 1;
    margin: 0;
    color: var(--text);
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.2;
}

.home-stat-value span {
    margin-left: 4px;
    color: var(--brand);
    font-size: 15px;
    font-weight: 600;
}

.home-stat-note {
    order: 3;
    margin: 4px 0 0;
    color: var(--subtle);
    font-size: 12px;
}

/* ---------- 产品导航 ---------- */
.home-products {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-product-group {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.home-product-group-title {
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--page);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.home-product-list {
    margin: 0;
    padding: 6px;
    list-style: none;
}

.home-product-item {
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
}

.home-product-item:hover {
    background: var(--brand-soft);
}

.home-product-icon {
    width: 38px;
    height: 38px;
}

.home-product-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

.home-product-copy strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.home-product-copy small {
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.5;
}

.home-product-arrow {
    flex: 0 0 auto;
    color: var(--border-strong);
}

.home-product-item:hover .home-product-arrow,
.home-product-item:hover strong {
    color: var(--brand-strong);
}

/* ---------- 核心优势 ---------- */
.home-features {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.home-feature:hover {
    border-color: #bfdbfe;
}

.home-feature-num {
    display: block;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.home-feature h3,
.home-flow-step h3,
.home-scenario h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.home-feature p,
.home-flow-step p,
.home-scenario p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- 接入流程 ---------- */
.home-flow {
    position: relative;
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}

.home-flow-step {
    position: relative;
    min-width: 0;
    padding: 0 16px;
    text-align: center;
}

/* 步骤之间的连接线 */
.home-flow-step:not(:last-child)::after {
    position: absolute;
    top: 20px;
    right: -50%;
    left: 50%;
    height: 1px;
    margin-left: 28px;
    margin-right: 28px;
    background: var(--border-strong);
    content: '';
}

.home-flow-dot {
    position: relative;
    z-index: 1;
    display: grid;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

/* ---------- 应用场景 ---------- */
.home-scenarios {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}

.home-scenario {
    min-width: 0;
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    text-align: center;
}

.home-scenario:hover {
    border-color: #bfdbfe;
}

.home-scenario-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
}

/* ---------- 结尾行动区 ---------- */
.home-cta {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    background: var(--brand-soft);
    text-align: center;
}

.home-cta-inner h2 {
    margin: 0;
    color: var(--text);
    font-size: 28px;
    font-weight: 700;
}

.home-cta-inner p {
    margin: 12px auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.home-cta-actions {
    justify-content: center;
}

/* ---------- 服务保障条 ---------- */
.site-trust {
    border-top: 1px solid var(--border);
    background: var(--card);
}

.site-trust-inner {
    display: grid;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-trust-item {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
}

.site-trust-icon {
    width: 40px;
    height: 40px;
}

.site-trust-item strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.site-trust-item span:not(.site-trust-icon) {
    display: block;
    margin-top: 4px;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.6;
}

/* ---------- 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--page);
}

.site-footer-inner {
    display: grid;
    gap: 32px;
    padding: 40px 0 28px;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}

.site-footer-brand p {
    max-width: 340px;
    margin: 14px 0 0;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.7;
}

/* 客服联系方式（后台「系统设置 › 客服联系方式」，未填写的项不显示） */
.site-footer-contact {
    display: grid;
    gap: 4px;
    max-width: 340px;
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer-contact > div {
    display: flex;
    gap: 8px;
}

.site-footer-contact dt {
    flex: 0 0 auto;
    color: var(--subtle);
}

.site-footer-contact dd {
    min-width: 0;
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.site-footer-contact a {
    color: var(--muted);
}

.site-footer-contact a:hover {
    color: var(--brand-strong);
}

.site-footer-heading {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

/* 宽屏显示纯文字标题；窄屏换成可折叠按钮 */
.site-footer-toggle {
    display: none;
}

.site-footer-links {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-links a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.site-footer-links a:hover {
    color: var(--brand-strong);
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 16px 0 24px;
    border-top: 1px solid var(--border);
    color: var(--subtle);
    font-size: 12px;
}

.site-footer-bottom p {
    margin: 0;
}

.site-footer-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.site-footer-notes a {
    color: var(--subtle);
}

.site-footer-notes a:hover {
    color: var(--brand-strong);
}

/* ---------- 窄桌面：1024–1199px ---------- */
@media (max-width: 1199px) {
    .site-container {
        padding: 0 20px;
    }

    .site-header-inner {
        gap: 20px;
    }

    .site-nav-link {
        padding: 0 10px;
    }

    .home-hero-inner {
        gap: 40px;
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .home-hero-title {
        font-size: 38px;
    }

    .home-scenarios {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- iPad 竖屏及以下：<=1023px（导航收进抽屉） ---------- */
@media (max-width: 1023px) {
    .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav-panel {
        position: fixed;
        z-index: 39;
        top: var(--topbar-height);
        right: 0;
        bottom: 0;
        display: none;
        width: min(380px, 100%);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 16px;
        overflow-y: auto;
        padding: 12px 20px 24px;
        border-left: 1px solid var(--border);
        background: var(--card);
        overscroll-behavior: contain;
    }

    .site-nav-panel.is-open {
        display: flex;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .site-nav-link {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        padding: 0 12px;
        font-size: 15px;
    }

    .site-header-actions {
        flex-direction: column;
        align-items: stretch;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }

    .site-header-actions .button {
        width: 100%;
        min-height: 44px;
    }

    .site-section {
        padding: 56px 0;
    }

    .site-section-head h2 {
        font-size: 26px;
    }

    .home-hero {
        min-height: 396px;
        padding: 40px 0 88px;
    }

    .home-hero-inner {
        gap: 28px;
        grid-template-columns: minmax(0, 1fr);
    }

    /* 标签改为横向滚动的分段选择 */
    .home-hero-nav {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .home-hero-tabs {
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-left: -20px;
        padding: 0 0 4px 20px;
        scrollbar-width: none;
    }

    .home-hero-tabs::-webkit-scrollbar {
        display: none;
    }

    .home-hero-tab {
        flex: 0 0 auto;
        min-height: 44px;
        border-color: var(--border);
        background: var(--card);
    }

    .home-hero-tab-text {
        overflow: visible;
    }

    .home-hero-slides {
        min-height: 0;
    }

    .home-hero-title {
        font-size: 34px;
    }

    .home-stats-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-stat:nth-child(2) {
        border-right: 0;
    }

    .home-stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .home-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 开发者分组横跨两列，避免落单 */
    .home-product-group:last-child {
        grid-column: 1 / -1;
    }

    .home-product-group:last-child .home-product-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-feature {
        padding: 22px;
    }

    .site-trust-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

/* ---------- iPad 竖屏专段：768–1023px ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
    .home-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- 手机：<=767px ---------- */
@media (max-width: 767px) {
    .site-container {
        padding: 0 16px;
    }

    .site-nav-panel {
        width: 100%;
        padding: 8px 16px 24px;
        border-left: 0;
    }

    .site-brand .brand-copy small {
        display: none;
    }

    .site-section {
        padding: 44px 0;
    }

    .site-section-head {
        margin-bottom: 24px;
    }

    .site-section-head h2 {
        font-size: 22px;
    }

    .site-section-head p:not(.site-eyebrow) {
        font-size: 14px;
    }

    .home-hero {
        min-height: 0;
        padding: 24px 0 72px;
    }

    .home-hero-tabs {
        margin-left: -16px;
        padding-left: 16px;
    }

    .home-hero-title {
        font-size: 28px;
    }

    .home-hero-desc {
        font-size: 14px;
    }

    .home-hero-actions,
    .home-cta-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 24px;
    }

    .home-hero-actions .button,
    .home-cta-actions .button {
        width: 100%;
    }

    .home-stats {
        margin-top: -40px;
    }

    .home-stat {
        padding: 16px 10px;
    }

    .home-stat-value {
        font-size: 20px;
    }

    .home-stat-value span {
        font-size: 13px;
    }

    .home-products,
    .home-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-product-group:last-child .home-product-list {
        display: block;
    }

    .home-flow {
        gap: 20px;
        grid-template-columns: minmax(0, 1fr);
    }

    /* 竖排时步骤改为左侧编号 + 右侧文字，连接线改竖线 */
    .home-flow-step {
        display: grid;
        column-gap: 14px;
        padding: 0;
        grid-template-columns: 40px minmax(0, 1fr);
        text-align: left;
    }

    .home-flow-dot {
        margin: 0;
        grid-row: 1 / span 2;
    }

    .home-flow-step p {
        margin-top: 4px;
    }

    .home-flow-step:not(:last-child)::after {
        top: 46px;
        right: auto;
        bottom: -18px;
        left: 20px;
        width: 1px;
        height: auto;
        margin: 0;
    }

    .home-scenarios {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-scenario {
        padding: 18px 12px;
    }

    .home-cta {
        padding: 44px 0;
    }

    .home-cta-inner h2 {
        font-size: 22px;
    }

    .site-trust-inner {
        gap: 18px;
        grid-template-columns: minmax(0, 1fr);
    }

    /* 页脚链接列折叠：按钮由 home.js 增强；无 JS 时保持展开 */
    .site-footer-inner {
        gap: 0;
        padding: 28px 0 8px;
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer-brand {
        padding-bottom: 20px;
    }

    .site-footer-brand p,
    .site-footer-contact {
        max-width: none;
    }

    /* 手机端电话、邮箱链接加大点击区域 */
    .site-footer-contact a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .site-footer-contact > div {
        align-items: center;
    }

    .site-footer-col {
        border-top: 1px solid var(--border);
    }

    .site-footer-heading {
        margin: 0;
    }

    .site-footer.is-enhanced .site-footer-title {
        display: none;
    }

    .site-footer.is-enhanced .site-footer-toggle {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--text);
        font: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .site-footer-toggle svg {
        color: var(--subtle);
        transition: transform .15s ease;
    }

    .site-footer-toggle[aria-expanded='true'] svg {
        transform: rotate(180deg);
    }

    .site-footer:not(.is-enhanced) .site-footer-heading {
        padding-top: 16px;
        margin-bottom: 8px;
    }

    .site-footer.is-enhanced .site-footer-col:not(.is-open) .site-footer-links {
        display: none;
    }

    .site-footer-links {
        padding-bottom: 12px;
    }

    .site-footer-links a {
        min-height: 40px;
    }

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

    .site-footer-notes a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
    }
}

/* ---------- 超窄屏：<=479px ---------- */
@media (max-width: 479px) {
    .site-container {
        padding: 0 14px;
    }

    .home-hero-tabs {
        margin-left: -14px;
        padding-left: 14px;
    }

    .home-hero-title {
        font-size: 25px;
    }

    .home-stats-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-stat,
    .home-stat:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .home-stat:last-child {
        border-bottom: 0;
    }

    .home-feature {
        padding: 18px;
    }

    .home-scenarios {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-scenario {
        display: grid;
        align-items: center;
        column-gap: 12px;
        padding: 14px;
        grid-template-columns: 44px minmax(0, 1fr);
        text-align: left;
    }

    .home-scenario-icon {
        margin: 0;
        grid-row: 1 / span 2;
    }

    .home-scenario p {
        margin-top: 2px;
    }
}

/* 触控设备（含 1024px 宽的 iPad 横屏）：紧凑型链接统一提到 44px 触控目标 */
@media (pointer: coarse) {
    .site-nav-link,
    .site-header-actions .button,
    .site-footer-links a {
        min-height: 44px;
    }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
    .home-hero-slide.is-active,
    .home-hero-tab-bar,
    .site-footer-toggle svg {
        animation: none !important;
        transition: none !important;
    }
}
