/* 一搜百应 GEO 首页自定义样式 */

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 暖色光晕背景动画 */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.08); }
    66% { transform: translate(25px, -25px) scale(0.92); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 30px) scale(1.1); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.animate-float-1 { animation: float-1 20s ease-in-out infinite; }
.animate-float-2 { animation: float-2 25s ease-in-out infinite; }
.animate-float-3 { animation: float-3 18s ease-in-out infinite; }
.animate-marquee { animation: marquee 30s linear infinite; }
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .animate-float-1,
    .animate-float-2,
    .animate-float-3,
    .animate-marquee,
    .animate-pulse-glow,
    .reveal.active {
        animation: none;
    }
}

/* 滚动入场动画 — 使用 animation 避免覆盖元素自身的 transition */
@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
}

.reveal.active {
    animation: reveal-up 0.6s ease-out forwards;
}

/* Marquee 悬停暂停 */
.marquee-track:hover .animate-marquee,
.marquee-track.is-paused .animate-marquee {
    animation-play-state: paused;
}

/* Marquee 反向滚动（配合 .animate-marquee 使用） */
.marquee-reverse {
    animation-direction: reverse;
}

/* Marquee 左右边缘渐隐遮罩 */
.marquee-fade {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF7ED;
}

::-webkit-scrollbar-thumb {
    background: #FDBA74;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F97316;
}

/* 焦点状态 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
}

/* 数字等宽 */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* 图表辅助样式 */
.chart-bar {
    transition: height 1s ease-out;
}

.chart-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.5s ease-out;
}

.chart-path.active {
    stroke-dashoffset: 0;
}

/* ================================
   功能墙 — 小图 + 悬停弹层
   ================================ */

.feature-chip {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.feature-chip:hover,
.feature-chip:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.35);
    background-color: #FFF7ED;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
}

.feature-chip-thumb {
    background: linear-gradient(135deg, #FFF1E6 0%, #FFE4E6 100%);
}

.feature-popover {
    position: fixed;
    z-index: 100;
    width: 300px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.feature-popover.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.feature-popover-inner {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow:
        0 25px 50px -12px rgba(249, 115, 22, 0.18),
        0 0 0 1px rgba(249, 115, 22, 0.06);
    overflow: hidden;
}

.feature-popover-image {
    position: relative;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    overflow: hidden;
}

.feature-popover-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(251, 113, 133, 0.06) 0%, transparent 35%);
    pointer-events: none;
}

.feature-popover-image svg {
    width: 100%;
    height: 100%;
}

.feature-popover-body {
    padding: 1rem 1.25rem 1.25rem;
}

.feature-popover-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
}

.feature-popover-desc {
    font-size: 0.875rem;
    line-height: 1.625;
    color: #4B5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .feature-chip,
    .feature-popover {
        transition: none;
    }

    .feature-chip:hover,
    .feature-chip:focus-visible {
        transform: none;
    }
}

/* ================================
   GEO 检测系统 — 诊断控制台样式
   ================================ */

/* 模式按钮激活态 */
.geo-mode-active {
    border-color: transparent;
}


/* 核心服务能力 - 3D 透视轮播 */
.services-carousel {
    position: relative;
    perspective: 1400px;
    perspective-origin: 50% 40%;
    overflow: hidden;
}

.services-track {
    position: relative;
    width: 100%;
    min-height: 360px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92%, 560px);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: all 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
    transform: translate3d(-50%, -50%, -600px) scale(0.55);
    z-index: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.service-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, -50%, 0) scale(1);
    z-index: 20;
}

.service-card.prev {
    opacity: 0.6;
    cursor: pointer;
    pointer-events: auto;
    transform: translate3d(-130%, -50%, -220px) rotateY(28deg) scale(0.78);
    z-index: 10;
}

.service-card.next {
    opacity: 0.6;
    cursor: pointer;
    pointer-events: auto;
    transform: translate3d(30%, -50%, -220px) rotateY(-28deg) scale(0.78);
    z-index: 10;
}

.service-card.prev:hover,
.service-card.next:hover {
    opacity: 0.85;
    filter: brightness(1.02);
}

.service-card.far {
    opacity: 0;
    transform: translate3d(-50%, -50%, -500px) scale(0.6);
    z-index: 0;
}

.service-card-inner {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fffaf5 100%);
    border-radius: 2rem;
    padding: 1.75rem 2rem;
    box-shadow:
        0 25px 50px -12px rgba(249, 115, 22, 0.12),
        0 0 0 1px rgba(249, 115, 22, 0.06);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.service-card.active .service-card-inner {
    box-shadow:
        0 35px 70px -15px rgba(249, 115, 22, 0.2),
        0 0 0 1px rgba(249, 115, 22, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.service-card-glow {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(251, 113, 133, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

.service-card-watermark {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(249, 115, 22, 0.06);
    pointer-events: none;
    user-select: none;
}

.service-card-border {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(251, 113, 133, 0.12), rgba(249, 115, 22, 0.25));
    -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;
    pointer-events: none;
}

.service-card.active .service-card-border {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.45), rgba(251, 113, 133, 0.25), rgba(249, 115, 22, 0.45));
}

@media (max-width: 768px) {
    .services-track {
        min-height: 400px;
    }

    .service-card.prev {
        opacity: 0.35;
        transform: translate3d(-105%, -50%, -320px) rotateY(22deg) scale(0.68);
    }

    .service-card.next {
        opacity: 0.35;
        transform: translate3d(5%, -50%, -320px) rotateY(-22deg) scale(0.68);
    }

    .service-card-inner {
        padding: 1.25rem 1.5rem;
    }

    .service-card-watermark {
        font-size: 4rem;
    }
}

.services-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.services-dots .dot.active {
    width: 32px;
    background: linear-gradient(90deg, #F97316, #FB7185);
}



/* 文章正文排版 */
.article-body {
    color: #4B5563;
    line-height: 1.9;
    font-size: 1rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 2.5rem 0 1.125rem;
    padding-left: 0.875rem;
    border-left: 4px solid #F97316;
    line-height: 1.4;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 2.25rem 0 1rem;
    padding-left: 0.875rem;
    border-left: 4px solid #F97316;
    line-height: 1.4;
}

.article-body ul {
    margin: 0 0 1.25rem;
    padding-left: 0;
    list-style: none;
}

.article-body ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
}

.article-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
    list-style: decimal;
}

.article-body ol li {
    margin-bottom: 0.625rem;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #F97316, #FB7185);
}

.article-body strong {
    color: #111827;
    font-weight: 600;
}

.article-body blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: #FFF7ED;
    border-left: 4px solid #F97316;
    border-radius: 0 1rem 1rem 0;
    color: #9A3412;
    font-weight: 500;
}

