/* ===== 起点互动 - 自定义样式 ===== */

/* 动画关键帧 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 导航栏文字颜色控制 */
#navbar.bg-transparent .navbar-text {
    color: #1a1a1a;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .navbar-text {
    color: #1a1a1a;
}

/* 首页导航栏在Hero区为透明背景，文字为深色 */
#navbar.bg-transparent {
    background: transparent;
}

/* FAQ手风琴 */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: #3380f6;
}

.faq-item.active .faq-icon svg {
    color: white;
}

/* 滚动渐入动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #3380f6, #00c6a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 浮动动画 */
.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* 渐变背景动画 */
.gradient-bg-animated {
    background: linear-gradient(-45deg, #eef6ff, #d9ebff, #e8f8f5, #eef6ff);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

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

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

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

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

/* 移动端菜单过渡 */
#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu:not(.hidden) {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* 代码块样式 */
pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

pre code {
    font-family: 'Fira Code', 'Consolas', monospace;
}

/* 服务卡片渐变边框 */
.service-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3380f6, #00c6a7);
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* 痛点卡片交互 */
.pain-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.pain-card:hover {
    background: #fff5f5;
    border-color: #fc8181;
}

.pain-card.active {
    background: #fff5f5;
    border-color: #e53e3e;
}

/* 步骤连线 */
.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: #3380f6;
    opacity: 0.3;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-brand { background: #eef6ff; color: #1d63e0; }
.tag-accent { background: #e8f8f5; color: #00a387; }
.tag-warm { background: #fff7ed; color: #c2410c; }
