/* ============================================================
   公开页面全局样式 — 腾讯云风格补充
   TailwindCSS CDN 负责基础样式，这里只做补充和微调
   ============================================================ */

/* ---- 平滑滚动 ---- */
html {
    scroll-behavior: smooth;
}

/* ---- 选中文字颜色 ---- */
::selection {
    background-color: #0052D9;
    color: #FFFFFF;
}

/* ---- 链接默认过渡 ---- */
a {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

/* ---- 按钮点击效果 ---- */
.btn-press:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* ---- 卡片悬浮提升效果 ---- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 82, 217, 0.15);
}

/* ---- Hero 渐变背景 ---- */
.hero-gradient {
    background: linear-gradient(135deg, #0052D9 0%, #4B8AFF 100%);
}
.hero-gradient-dark {
    background: linear-gradient(135deg, #1A233A 0%, #0052D9 100%);
}

/* ---- 价格数字高亮 ---- */
.price-highlight {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---- 域名可用/不可用标签 ---- */
.status-available {
    color: #00B42A;
    background: rgba(0, 180, 42, 0.08);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.status-taken {
    color: #86909C;
    background: rgba(134, 144, 156, 0.08);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.status-premium {
    color: #FF7D00;
    background: rgba(255, 125, 0, 0.08);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

/* ---- Tab 切换动画 ---- */
.tab-active {
    color: #0052D9 !important;
    border-bottom: 2px solid #0052D9 !important;
    font-weight: 600;
}

/* ---- 加载动画 ---- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E5E6EB;
    border-top-color: #0052D9;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- 淡入动画（用于查询结果） ---- */
.fade-in-up {
    animation: fadeInUp 0.35s ease-out forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- 导航栏滚动阴影（由JS控制） ---- */
.header-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* ---- 响应式微调 ---- */
@media (max-width: 640px) {
    .price-highlight {
        font-size: 1.75rem !important;
    }
}

/* ---- 幻灯片轮播导航 ---- */
.border-l-3 {
    border-left-width: 3px;
}
.slider-nav-item {
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.slider-slide {
    transition: opacity 0.5s ease, transform 0.4s ease;
}
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-dot:hover {
    transform: scale(1.2);
}

/* ---- 域名搜索卡片 ---- */
.domain-search-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.domain-search-card .suffix-check-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #0052D9;
}

/* ---- SVG流体动画 ---- */
.fluid-path-1 {
    animation: fluidMorph1 14s ease-in-out infinite alternate;
    transform-origin: center;
}
.fluid-path-2 {
    animation: fluidMorph2 18s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes fluidMorph1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(-15px, 10px) scale(1.03) rotate(2deg); }
    50% { transform: translate(10px, -8px) scale(0.97) rotate(-1deg); }
    75% { transform: translate(-5px, 15px) scale(1.02) rotate(3deg); }
    100% { transform: translate(8px, -5px) scale(0.98) rotate(-2deg); }
}

@keyframes fluidMorph2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(20px, -15px) scale(1.05) rotate(-3deg); }
    66% { transform: translate(-10px, 10px) scale(0.95) rotate(2deg); }
    100% { transform: translate(15px, -5px) scale(1.02) rotate(-1deg); }
}

/* ---- SVG 流体扭曲滤镜层（腾讯云风格 — 替代 Ken Burns 缩放） ---- */
.ken-burns-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.ken-burns-wrapper svg {
    display: block;
    width: 100%;
    height: 100%;
}
.fluid-img {
    will-change: filter;
    filter: url(#fluidImgFilter);
}
.fluid-img-paused {
    filter: none !important;
}
