/* ===== 动画与特效（滚动入场动画） ===== */

html:not(.js-ready) .reveal,
html:not(.js-ready) .anim-in {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-ready .reveal.is-inview {
    opacity: 1;
    transform: translateY(0);
}

html.js-ready .reveal[data-delay="1"] {
    transition-delay: 0.08s;
}

html.js-ready .reveal[data-delay="2"] {
    transition-delay: 0.16s;
}

html.js-ready .reveal[data-delay="3"] {
    transition-delay: 0.24s;
}

/* 首屏入场 */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroGlow {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(1) translate(0, 0);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.08) translate(2%, -2%);
    }
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(12px, -18px) scale(1.05);
    }

    66% {
        transform: translate(-8px, 12px) scale(0.95);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-120%) skewX(-12deg);
    }

    100% {
        transform: translateX(220%) skewX(-12deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }

    70% {
        transform: scale(1.08);
        opacity: 0;
    }

    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

@keyframes iconFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes borderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(24px);
    }

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

@keyframes noticePulse {
    0%,
    100% {
        box-shadow: inset 0 0 0 0 rgba(245, 158, 11, 0);
    }

    50% {
        box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
    }
}

/* 顶部阅读进度条 */
.scroll-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: rgba(13, 122, 95, 0.12);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.site-header.is-scrolled .scroll-progress {
    opacity: 1;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-brand), #34d399, var(--color-accent));
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
    transition: width 0.12s linear;
}

/* Hero 光斑 */
.hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 14s ease-in-out infinite;
}

.hero-orbs .orb-1 {
    width: 320px;
    height: 320px;
    top: -8%;
    right: 8%;
    background: rgba(16, 185, 129, 0.35);
    animation-duration: 16s;
}

.hero-orbs .orb-2 {
    width: 260px;
    height: 260px;
    bottom: 5%;
    left: -5%;
    background: rgba(14, 165, 233, 0.28);
    animation-delay: -4s;
    animation-duration: 18s;
}

.hero-orbs .orb-3 {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 45%;
    background: rgba(52, 211, 153, 0.2);
    animation-delay: -7s;
    animation-duration: 12s;
}

.hero-grid {
    z-index: 1;
}

.hero-copy .anim-in {
    animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-copy .anim-in:nth-child(1) {
    animation-delay: 0.05s;
}

.hero-copy .anim-in:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-copy .anim-in:nth-child(3) {
    animation-delay: 0.25s;
}

.hero-copy .anim-in:nth-child(4) {
    animation-delay: 0.35s;
}

.hero-copy .anim-in:nth-child(5) {
    animation-delay: 0.45s;
}

.hero h1 {
    background: linear-gradient(120deg, #fff 0%, #a7f3d0 45%, #fff 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s ease infinite;
}

.hero-panel-inner {
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s backwards;
    position: relative;
    overflow: hidden;
}

.hero-panel-inner::after {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(110, 231, 183, 0.15), transparent 30%);
    animation: borderSpin 12s linear infinite;
    pointer-events: none;
}

/* 按钮特效 */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    transform: translateX(-120%) skewX(-12deg);
    animation: shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.45);
    animation: rippleExpand 0.65s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 122, 95, 0.25);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* 产品卡片 */
.fx-card {
    position: relative;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s;
}

.fx-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(13, 122, 95, 0), rgba(52, 211, 153, 0.5), rgba(14, 165, 233, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 2;
}

.fx-card:hover::before {
    opacity: 1;
}

.fx-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(13, 122, 95, 0.08);
}

.product-visual:not(.product-visual--photo) {
    position: relative;
    overflow: hidden;
    background-size: 200% 200% !important;
    animation: gradientFlow 8s ease infinite;
}

.product-visual:not(.product-visual--photo)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 4s ease-in-out infinite;
}

.product-icon {
    animation: iconFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* 信任区 */
.trust-item {
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
    border-radius: var(--radius-md);
    padding: 8px;
    margin: -8px;
}

.trust-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    background: var(--color-surface);
}

.trust-icon {
    position: relative;
    transition: transform 0.35s var(--ease);
}

.trust-item:hover .trust-icon {
    transform: scale(1.08) rotate(-3deg);
}

.trust-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--color-brand);
    opacity: 0;
    animation: pulseRing 2s ease-out infinite;
}

/* 产品卡片 */
.product-catalog .product-card {
    transition:
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 区块标题 */
.section-head .eyebrow {
    position: relative;
    display: inline-block;
}

.section-head .eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-brand), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}

.section-head.is-inview .eyebrow::after,
.trust-strip .eyebrow::after {
    transform: scaleX(1);
}

/* 提示条 */
.notice-bar {
    animation: noticePulse 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.notice-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 5s ease-in-out infinite;
}

/* 定制横幅 */
.custom-dev-banner {
    position: relative;
    overflow: hidden;
}

.custom-dev-banner::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.2), transparent 25%);
    animation: borderSpin 8s linear infinite;
    pointer-events: none;
}

.custom-dev-banner > * {
    position: relative;
    z-index: 1;
}

/* 联系卡片 */
.contact-card {
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.15) 0%, transparent 55%);
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
}

.contact-phone {
    display: inline-block;
    transition: transform 0.3s var(--ease), letter-spacing 0.3s;
}

.contact-phone:hover {
    transform: scale(1.04);
    letter-spacing: 0.04em;
}

/* FAQ */
.faq-item {
    transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
    border-color: rgba(13, 122, 95, 0.35);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--color-brand);
}

.faq-item[open] summary {
    color: var(--color-brand);
}

/* 弹窗 */
.modal[hidden] {
    display: none;
}

.modal:not([hidden]) .modal-backdrop {
    animation: fadeIn 0.35s ease;
}

.modal:not([hidden]) .modal-panel {
    animation: modalPop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-panel {
    position: relative;
    overflow: hidden;
}

.modal-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand), #34d399, var(--color-accent));
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
}

.download-list a {
    transition: transform 0.25s, box-shadow 0.25s;
}

.download-list a:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(13, 122, 95, 0.35);
}

/* 页脚链接 */
.footer-links a {
    display: inline-block;
    transition: transform 0.25s, color 0.25s;
}

.footer-links a:hover {
    transform: translateX(4px);
}

/* 导航链接下划线 */
.site-nav a:not(.nav-cta) {
    position: relative;
}

.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta).is-active::after {
    transform: scaleX(1);
}

.site-header.is-scrolled .site-nav a:not(.nav-cta)::after {
    background: var(--color-brand);
}

/* 精选区背景点缀 */
.featured {
    position: relative;
    overflow: hidden;
}

.featured::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(13, 122, 95, 0.06), transparent 70%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite;
}

.products {
    position: relative;
}

.products::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05), transparent 70%);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html.js-ready .reveal {
        transform: none;
    }

    .hero h1 {
        -webkit-text-fill-color: #fff;
        background: none;
    }
}
