/* 站点基础样式，后续官网页面会复用这套排版和配色。 */
:root {
    color-scheme: light;
    --bg: #f4efe6;
    --panel: #ffffff;
    --text: #1f2933;
    --muted: #5f6b7a;
    --accent: #a86f3d;
    --line: #e7dccd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 42%),
        linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
    color: var(--text);
}

/* 中文注释：全站页面进场与离场状态。 */
.site-layout {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.site-layout[data-motion-state='leaving'] {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
}

.site-layout main > * {
    animation: section-rise 560ms ease-out both;
}

.site-layout main > *:nth-child(2) {
    animation-delay: 70ms;
}

.site-layout main > *:nth-child(3) {
    animation-delay: 140ms;
}

.site-layout main > *:nth-child(4) {
    animation-delay: 210ms;
}

.site-layout main > *:nth-child(5) {
    animation-delay: 280ms;
}

.animate-dialog-in {
    animation: dialog-in 240ms ease-out both;
}

.animate-dialog-out {
    animation: dialog-out 180ms ease-out both;
}

#quickConsult.animate-dialog-in {
    animation: quick-consult-in 220ms ease-out both;
}

#quickConsult.animate-dialog-out {
    animation: quick-consult-out 160ms ease-in both;
}

.animate-tab-in {
    animation: tab-in 220ms ease-out both;
}

.animate-section-rise {
    animation: section-rise 560ms ease-out both;
}

.site-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.hero {
    width: min(960px, 100%);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(104, 74, 39, 0.12);
    backdrop-filter: blur(10px);
}

.hero__badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(168, 111, 61, 0.12);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
}

.hero__lead {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.panel {
    padding: 24px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.9;
}

.shell {
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
}

.site-footer-wrap {
    margin-top: 0;
    padding-top: 0;
    background: #fff;
}

.site-footer {
    margin-top: 48px;
    padding: 20px 0 12px;
    border-top: 1px solid #ebe7ff;
    color: #111a4f;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body:not(.page-home) .site-footer {
    border-top: 0;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer__primary {
    display: grid;
    grid-template-columns: 1.25fr 1.35fr .9fr 2.4fr;
    gap: 28px;
    align-items: start;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #7558f6;
    font-size: 18px;
    line-height: 30px;
    font-weight: 500;
}

.site-footer p {
    margin: 0;
    color: #5b6598;
    line-height: 1.8;
}

.site-footer .footer-brand strong {
    display: block;
    color: #7558f6;
    font-size: 30px;
    line-height: 30px;
    font-weight: 900;
}

.site-footer .footer-brand span {
    display: block;
    margin-top: 22px;
    color: #5c63a2;
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 700;
}

.site-footer .social-icons {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.site-footer .social-icons a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #aaa7c7, #868eb7);
    font-style: normal;
    font-weight: 900;
}

.site-footer .footer-contact i {
    width: 16px;
    height: 16px;
    display: block;
    border-radius: 0;
    background: transparent;
    font-style: normal;
    line-height: 1;
}

.site-footer .footer-contact i img {
    width: 16px;
    height: 16px;
    display: block;
    -o-object-fit: contain;
       object-fit: contain;
}

.site-footer .social-icons a span {
    line-height: 1;
}

.site-footer .social-icon-image {
    width: 36px;
    height: 36px;
    display: block;
    -o-object-fit: contain;
       object-fit: contain;
}

.site-footer .footer-contact p {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.site-footer .footer-contact p:first-of-type {
    margin-top: 22px;
}

.site-footer small {
    color: #8a92bc;
    font-size: 12px;
}

.site-footer .footer-follow {
    display: grid;
    grid-template-columns: 78px 1fr;
    -moz-column-gap: 14px;
         column-gap: 14px;
    align-items: center;
}

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

.site-footer .footer-follow .qr-box,
.site-footer .footer-follow > p {
    margin-top: 14px;
}

.site-footer .qr-box {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 6px;
    color: #1b2459;
    background:
        linear-gradient(90deg, #111 8px, transparent 8px) 0 0 / 16px 16px,
        linear-gradient(#111 8px, transparent 8px) 0 0 / 16px 16px,
        #fff;
    box-shadow: inset 0 0 0 1px #d7d3ec, 0 6px 16px rgba(70, 56, 140, .10);
    font-weight: 900;
}

.site-footer .qr-box img {
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: contain;
       object-fit: contain;
}

.site-footer .footer-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

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

.site-footer .footer-quick a {
    min-height: 62px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #ebe7ff;
    border-radius: 10px;
    background: #fff;
}

.site-footer .footer-quick i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-style: normal;
    font-weight: 900;
    font-size: 22px;
}

.site-footer .quick-contact-icon-image {
    width: 24px;
    height: 24px;
    display: block;
    -o-object-fit: contain;
       object-fit: contain;
}

.site-footer .footer-quick span {
    min-width: 0;
    color: #1b2459;
    font-weight: 900;
    line-height: 1.25;
}

.site-footer .footer-quick .whatsapp,
.site-footer .footer-quick .line,
.site-footer .footer-quick .service {
    background: #fff;
    color: #7558f6;
    box-shadow: inset 0 0 0 1px #ebe7ff;
}

.site-footer-seo {
    padding: 28px 0 22px;
    color: #6b7280;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.site-footer-seo__inner {
    border-top: 1px solid rgba(125, 95, 255, 0.12);
    padding-top: 24px;
}

.site-footer-seo__title {
    margin: 0 0 10px;
    color: #2f2a4a;
    font-size: 18px;
    font-weight: 700;
}

.site-footer-seo__desc,
.site-footer-seo__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
}

.site-footer-seo__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
}

.site-footer-seo__links a,
.site-footer-seo__record a {
    color: #6f58eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-seo__links a:hover,
.site-footer-seo__record a:hover {
    color: #583ae6;
}

.site-footer-seo__meta {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.site-footer-seo__record {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 12px;
    line-height: 1.8;
}

.site-footer-copyright {
    color: #9aa0b5;
    font-size: 12px;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 22px;
    text-align: center;
}

@keyframes section-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@keyframes dialog-out {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
        filter: blur(6px);
    }
}

@keyframes quick-consult-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes quick-consult-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
        filter: blur(6px);
    }
}

@keyframes tab-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-layout,
    .site-layout main > *,
    .animate-dialog-in,
    .animate-dialog-out,
    .animate-tab-in,
    .animate-section-rise {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1180px) {
    .shell {
        width: calc(100% - 28px);
    }

    .site-footer__primary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer-seo {
        padding: 24px 0 20px;
    }

    .site-footer-seo__title {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .shell {
        width: calc(100% - 24px);
    }

    .site-footer-wrap {
        margin-top: 0;
        padding-top: 0;
        background: #fff;
    }

    .site-footer {
        margin-top: 32px;
    }

    .site-footer__primary {
        grid-template-columns: 1fr;
    }

    .site-footer__primary > * {
        min-width: 0;
    }

    .site-footer .footer-brand,
    .site-footer .footer-contact,
    .site-footer .footer-follow,
    .site-footer .footer-quick {
        width: 100%;
    }

    .site-footer .footer-brand strong {
        font-size: 24px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .site-footer .footer-brand span {
        font-size: 12px;
        white-space: normal;
    }

    .site-footer .footer-quick {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 24px;
        border-radius: 22px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }
}
