/* ============================================================
   SANFU 三福 · 公共样式
   配色：三福红 / 墨黑 / 暖橙，其余为中性灰
   ============================================================ */

:root {
    --red: #E60012;
    --red-deep: #B3000E;
    --orange: #F39800;
    --ink: #141414;
    --ink-2: #2B2B2B;
    --muted: #6E6E6E;
    --muted-2: #9A9A9A;
    --line: #E6E6E6;
    --line-2: #D2D2D2;
    --gray: #F5F5F5;
    --radius: 4px;
    --radius-sm: 3px;
    --ease: 0.28s ease;
    --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
    --latin: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--ease), border-color var(--ease), background var(--ease); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
figure { margin: 0; }

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --- 页头 --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.1) blur(6px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 66px;
}

.brand { display: flex; align-items: center; }

.brand-logo {
    display: block;
    width: auto;
    height: 34px;
}

.brand-logo--light { height: 25px; }

.site-nav { display: flex; align-items: center; gap: 24px; }

.site-nav ul { display: flex; align-items: center; gap: 26px; }

.site-nav ul a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--ink-2);
}

.site-nav ul a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}

.site-nav ul a:hover { color: var(--red); }
.site-nav ul a:hover::after,
.site-nav ul a.active::after { transform: scaleX(1); }
.site-nav ul a.active { color: var(--ink); font-weight: 600; }

.nav-auth {
    padding: 7px 18px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink);
}

.nav-auth:hover { background: var(--red); border-color: var(--red); color: #FFFFFF; }

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    place-items: center;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
}

/* --- 全站轮播 --- */
.banner {
    position: relative;
    height: 420px;
    background: var(--red);
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: var(--slide-bg, var(--red));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.banner-slide.active { opacity: 1; visibility: visible; }

.banner-slide .container { width: 100%; }

.banner-copy { max-width: 470px; }

.banner-kicker {
    display: block;
    margin-bottom: 16px;
    font-family: var(--latin);
    font-size: 11px;
    letter-spacing: 0.3em;
    opacity: 0.78;
}

.banner-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.26;
    letter-spacing: -0.02em;
}

.banner-desc {
    max-width: 380px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.86;
}

.banner-figure {
    position: absolute;
    top: 0; right: 0;
    width: 46%;
    height: 100%;
    overflow: hidden;
}

.banner-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.banner-slide--light { color: #FFFFFF; }
.banner-slide--light .banner-title { color: #FFFFFF; }
.banner-slide--dark .banner-title { color: #141414; }
.banner-slide--dark .banner-kicker,
.banner-slide--dark .banner-desc { color: #2B1200; }

.banner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.banner-link svg { transition: transform var(--ease); }
.banner-link:hover svg { transform: translateX(4px); }

.banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    color: var(--ink);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
    transition: background var(--ease), color var(--ease);
}

.banner-arrow:hover { background: var(--ink); color: #FFFFFF; }
.banner-prev { left: 18px; }
.banner-next { right: 18px; }

.banner-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 18px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.banner-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: width var(--ease), background var(--ease), border-radius var(--ease);
}

.banner-dot.active {
    width: 22px;
    background: #FFFFFF;
    border-radius: 4px;
}

/* --- 通用板块 --- */
.section { padding: 72px 0; }
.section--tight { padding: 52px 0; }
.section--gray { background: var(--gray); }
.section--ink { background: var(--ink); color: #FFFFFF; }
.section--ink h2, .section--ink h3 { color: #FFFFFF; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    font-family: var(--latin);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--muted);
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--red);
}

.section--ink .eyebrow { color: rgba(255, 255, 255, 0.62); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.section-title {
    font-size: 30px;
    line-height: 1.32;
}

.section-desc {
    max-width: 420px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-2);
    font-size: 13px;
    color: var(--ink-2);
    white-space: nowrap;
    transition: border-color var(--ease), color var(--ease);
}

.section-more:hover { border-color: var(--red); color: var(--red); }
.section-more svg { transition: transform var(--ease); }
.section-more:hover svg { transform: translateX(3px); }

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary { background: var(--red); color: #FFFFFF; }
.btn-primary:hover { background: var(--red-deep); }

.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #000000; }

.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }

.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #FFFFFF; }

/* --- 页头标题区 --- */
.page-head {
    padding: 46px 0 40px;
    border-bottom: 1px solid var(--line);
}

.page-head .container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
}

.page-title {
    font-size: 38px;
    letter-spacing: -0.02em;
    line-height: 1.22;
}

.page-lead {
    max-width: 520px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.page-meta {
    display: flex;
    gap: 28px;
    padding-bottom: 6px;
    font-family: var(--latin);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--muted-2);
    text-transform: uppercase;
}

.page-meta span { display: block; }
.page-meta b { display: block; margin-top: 6px; font-size: 15px; letter-spacing: 0.04em; color: var(--ink); font-weight: 700; }

/* --- 页脚 --- */
.site-footer {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    padding: 56px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; margin-bottom: 18px; }

.footer-slogan {
    max-width: 260px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.9;
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col li { margin-bottom: 9px; line-height: 1.6; }
.footer-col a, .footer-col p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}
.footer-col a { display: inline-block; }
.footer-col p { margin-bottom: 9px; }
.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- 进入动画 --- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
    .banner { height: 380px; }
    .banner-title { font-size: 34px; }
    .banner-figure { width: 44%; }
    .site-nav ul { gap: 20px; }
    .footer-top { grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
    .container { padding: 0 22px; }
    .banner { height: 340px; }
    .banner-figure { width: 42%; }
    .banner-title { font-size: 29px; }
    .banner-copy { max-width: 330px; }
    .banner-desc { font-size: 13px; }
    .banner-arrow { display: none; }

    .menu-toggle { display: grid; }

    .brand-logo { height: 29px; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 22px 18px;
        background: #FFFFFF;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    }

    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav ul a { padding: 11px 0; border-bottom: 1px solid var(--line); }
    .site-nav ul a::after { display: none; }
    .nav-auth { margin-top: 14px; text-align: center; }

    .section { padding: 52px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
    .section-title { font-size: 24px; }

    .page-head { padding: 34px 0 28px; }
    .page-head .container { grid-template-columns: 1fr; gap: 20px; }
    .page-title { font-size: 28px; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 640px) {
    .banner { height: 320px; }
    .banner-figure { width: 100%; }
    .banner-figure img { object-position: center 20%; }
    .banner-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(17, 17, 17, 0.34) 0%, rgba(17, 17, 17, 0.68) 52%, rgba(17, 17, 17, 0.86) 100%);
    }
    .banner-slide .container { position: relative; z-index: 2; padding-bottom: 22px; }
    .banner-copy { max-width: 100%; color: #FFFFFF; }
    .banner-title { color: #FFFFFF !important; font-size: 26px; }
    .banner-slide--dark .banner-kicker,
    .banner-slide--dark .banner-desc { color: rgba(255, 255, 255, 0.86); }
    .banner-kicker, .banner-desc { color: rgba(255, 255, 255, 0.86) !important; }
    .banner-link { color: #FFFFFF; }
    .footer-top { grid-template-columns: 1fr; }
}
