/* ===== 全局动画 ===== */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes spin-slow-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.animate-spin-slow {
    animation: spin-slow 30s linear infinite;
}
.animate-spin-slow-reverse {
    animation: spin-slow-reverse 22s linear infinite;
}
.animate-bounce-soft {
    animation: bounce-soft 1.4s infinite;
}
.animate-pulse-dot {
    animation: pulse-dot 2s infinite;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #050a18;
    color: #e2e8f0;
}

/* ===== 导航栏滚动效果 ===== */
.navbar-scrolled {
    background-color: rgba(5, 10, 24, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Hero 网格 ===== */
.hero-grid {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== 3D 堆叠层 ===== */
.stack-layer {
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(37, 99, 235, 0.12));
    backdrop-filter: blur(4px);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.10);
}
.stack-layer-1 { transform: translateX(0px); }
.stack-layer-2 { transform: translateX(12px); margin-top: 14px; }
.stack-layer-3 { transform: translateX(24px); margin-top: 14px; }
.stack-layer-4 { transform: translateX(36px); margin-top: 14px; }

/* ===== 表格 ===== */
.compare-table th,
.compare-table td {
    padding: 16px 24px;
    text-align: left;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.compare-table thead th {
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
}
.compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== 品牌水印（Kimi Agent） ===== */
.kimi-brand-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 99999999;
    transition: opacity 0.3s ease;
}
.kimi-brand-close-icon {
    cursor: pointer;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
}
.kimi-brand-container:hover .kimi-brand-close-icon {
    display: flex;
}
.kimi-brand-info-wrapper {
    position: relative;
    display: none;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}
.kimi-brand-container:hover .kimi-brand-info-wrapper {
    display: block;
}
.kimi-brand-info-wrapper::before {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 100%;
    left: -8px;
    display: none;
    height: 12px;
}
.kimi-brand-info-wrapper:hover::before {
    display: block;
}
.kimi-brand-info-button {
    cursor: pointer;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.84);
    padding: 0;
}
.kimi-brand-info-button:hover {
    background: #000;
}
.kimi-brand-info-tooltip {
    position: fixed;
    right: 16px;
    bottom: 52px;
    box-sizing: border-box;
    width: 240px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #2b2b2b;
    color: rgba(255, 255, 255, 0.72);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 99999999;
}
.kimi-brand-info-wrapper:hover .kimi-brand-info-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.kimi-brand-info-tooltip::after {
    content: "";
    position: absolute;
    right: 127px;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: #2b2b2b;
    transform: rotate(45deg);
}
.kimi-brand-report-link {
    color: #6AA6FF;
    text-decoration: none;
}
.kimi-brand-report-link:hover {
    color: #A6D0FF;
}
.kimi-brand-link {
    background: #000;
    color: white;
    padding: 4px 6px 4px 4px;
    border-radius: 16px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}
.kimi-brand-container:hover .kimi-brand-icon {
    width: 16px;
}
.kimi-brand-icon {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    pointer-events: none;
}
.kimi-brand-avatar {
    width: 18px;
    height: 18px;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

/* ===== 响应式微调 ===== */
@media (max-width: 640px) {
    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    .stack-layer-1,
    .stack-layer-2,
    .stack-layer-3,
    .stack-layer-4 {
        width: 100%;
        max-width: 280px;
        transform: translateX(0) !important;
        margin-top: 10px !important;
    }
    .stack-layer-1 { margin-top: 0 !important; }
    .stack-layer-2 { margin-top: 10px !important; }
    .stack-layer-3 { margin-top: 10px !important; }
    .stack-layer-4 { margin-top: 10px !important; }
}