/* ===========================================
 * 闫宝龙小红书营销 - 全站样式
 * 字体：Noto Sans SC（思源黑体，开源可商用）+ Inter（开源可商用）
 * 说明：本文件仅放置 Tailwind 无法覆盖的自定义样式
 * =========================================== */

/* 基础 */
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Sans SC', 'Microsoft YaHei', '微软雅黑', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1a1a1a;
    overflow-x: hidden;
    background: #ffffff;
}

/* ============ 导航栏滚动效果 ============ */
.nav-transparent {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 1px 20px rgba(0,0,0,0.04);
}
.nav-link {
    position: relative;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff385e, #f97316);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-scrolled .nav-link { color: #374151; }
.nav-scrolled .nav-link:hover { color: #ff385e; }
.nav-scrolled .logo-text { color: #111827; }
.nav-scrolled .logo-divider,
.nav-scrolled .logo-tag { color: #6b7280; }

/* ============ Banner 渐变背景 ============ */
.hero-bg {
    background: linear-gradient(135deg, #ff385e 0%, #ed2541 25%, #f97316 75%, #fb9333 100%);
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}

/* ============ 卡片悬浮效果 ============ */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ============ 渐变文字 ============ */
.gradient-text {
    background: linear-gradient(135deg, #ff385e 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============ FAQ 手风琴 ============ */
.faq-item { transition: all 0.3s ease; }
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}
.faq-item .faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: #ff385e; }
.faq-item.active .faq-question { color: #ff385e; }

/* ============ 滚动出现的元素 ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ 案例图片遮罩 ============ */
.case-img {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.case-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
    transition: opacity 0.3s;
    pointer-events: none;
}
.case-img .case-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.case-img:hover .case-content {
    transform: translateY(0);
    opacity: 1;
}
.case-img:hover img { transform: scale(1.08); }
.case-img img { transition: transform 0.6s ease; }

/* ============ 移动端菜单 ============ */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }

/* ============ 数字滚动效果 ============ */
.counter { display: inline-block; }

/* ============ 服务流程步骤线 ============ */
.process-line {
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: linear-gradient(90deg, #ff385e 0%, #f97316 100%);
    opacity: 0.2;
}

/* ============ 装饰小元素 ============ */
.decoration-blur {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

/* ============ 滚动条美化 ============ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff385e, #f97316);
    border-radius: 4px;
}

/* ============ 选中文字 ============ */
::selection { background: #ff385e; color: white; }
::-moz-selection { background: #ff385e; color: white; }

/* ============ Tailwind 自定义配置补充 ============ */
.font-chinese { font-family: 'Noto Sans SC', 'Microsoft YaHei', '微软雅黑', sans-serif; }
.font-sans-base { font-family: 'Inter', 'Noto Sans SC', 'Microsoft YaHei', '微软雅黑', system-ui, sans-serif; }

/* ============ 关键帧动画（兼容 Tailwind CDN） ============ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; }
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }
.animate-slide-down { animation: slideDown 0.4s ease-out forwards; }

/* ============ 响应式细节优化 ============ */
@media (max-width: 640px) {
    .decoration-blur { width: 220px; height: 220px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
