/* ================================================
   site.css — 小诗背背官网
   原则：零自定义颜色，全部依赖 daisyUI 主题变量
   切换主题只需修改 HTML 的 data-theme 属性即可
   ================================================ */

/* ── 古诗装饰竖排文字 ── */
.deco-poetry {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: 0.06;
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: 0.3em;
    user-select: none;
    pointer-events: none;
}

/* ── 水墨分隔线（颜色用 currentColor 继承主题） ── */
.ink-divider {
    height: 2px;
    background: linear-gradient( 90deg, transparent 0%, currentColor 30%, currentColor 70%, transparent 100% );
    opacity: 0.2;
}

/* ── Hero 手机截图：微倾斜 + 立体阴影 ── */
.phone-mockup-wrapper {
    transform: rotate(2deg);
    transition: transform 0.4s ease, filter 0.4s ease;
}

    .phone-mockup-wrapper:hover {
        transform: rotate(0deg) translateY(-8px);
    }

/* 痛点卡片 */
.pain-card {
    background-color: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.08), 0 1px 4px rgba(251, 146, 60, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* 悬浮效果 */
    .pain-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(251, 146, 60, 0.15), 0 4px 12px rgba(251, 146, 60, 0.10);
    }

/* ── 界面预览卡片缩放 ── */
.preview-card {
    transition: transform 0.25s ease;
}

    .preview-card:hover {
        transform: scale(1.04);
    }

/* ── 移动端汉堡菜单展开动画 ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

    #mobile-menu.open {
        max-height: 400px;
    }

/* ── 淡入上移动画 ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.7s ease both;
}

.delay-1 {
    animation-delay: 0.10s;
}

.delay-2 {
    animation-delay: 0.25s;
}

.delay-3 {
    animation-delay: 0.40s;
}

.delay-4 {
    animation-delay: 0.55s;
}


/* ── 渐变文字 ── */
.text-gradient {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

/* 目录高亮 */
#toc a {
    display: block;
    padding: 5px 10px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

    #toc a:hover {
        background: rgba(251, 146, 60, 0.08);
        color: #ea6c1e;
        border-left-color: #ea6c1e;
    }

    #toc a.active {
        background: rgba(251, 146, 60, 0.10);
        color: #ea6c1e;
        font-weight: 500;
        border-left-color: #ea6c1e;
    }

/* prose 内标题颜色 */
#helps-container h2,
#helps-container h3 {
    color: #1a1a1a;
    scroll-margin-top: 80px;
}

#helps-container h2 {
    border-left: 3px solid #ea6c1e;
    padding-left: 12px;
}

#helps-container img {
    max-width: 100%;
    height: auto;
}