/* AutoLaw Premium Light Theme v5 - Unified & Optimized */
:root {
    /* --- 1. 配色系统 (更纯净) --- */
    --bg-base: #ffffff;
    --bg-subtle: #f8fafc;
    /* Slate 50 */
    --bg-accent: #f1f5f9;
    /* Slate 100 */

    /* 品牌色：Indigo + Violet */
    --primary: #4338ca;
    /* Indigo 700 - 按钮/强调 */
    --primary-hover: #3730a3;
    /* Indigo 800 */
    --primary-light: #6366f1;
    /* Indigo 500 - 图标/链接 */
    --primary-subtle: #e0e7ff;
    /* Indigo 100 - 背景点缀 */

    /* 辅助色 */
    --accent-teal: #0d9488;
    --accent-rose: #e11d48;

    /* 文字系统：增加对比度 */
    --text-main: #0f172a;
    /* Slate 900 - 标题 */
    --text-body: #475569;
    /* Slate 600 - 正文 */
    --text-muted: #94a3b8;
    /* Slate 400 - 辅助信息 */

    /* --- 2. 阴影系统 (更细腻) --- */
    /* 基础投影 */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    /* 卡片悬浮投影：带有一点点品牌色倾向 */
    --shadow-card: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(99, 102, 241, 0.08), 0 8px 10px -6px rgba(99, 102, 241, 0.02);

    /* 边框 */
    --border-light: #e2e8f0;

    /* 圆角 */
    --radius-default: 16px;
    --radius-sm: 8px;
    --radius-pill: 9999px;

    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Typography Scale - Based on 1.25 (Major Third) */
    --text-xs: 0.8rem;
    /* 12.8px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */

    /* Spacing Scale - 8px base */
    --space-1: 0.5rem;
    /* 8px */
    --space-2: 1rem;
    /* 16px */
    --space-3: 1.5rem;
    /* 24px */
    --space-4: 2rem;
    /* 32px */
    --space-5: 2.5rem;
    /* 40px */
    --space-6: 3rem;
    /* 48px */
    --space-8: 4rem;
    /* 64px */
    --space-10: 5rem;
    /* 80px */
    --space-12: 6rem;
    /* 96px */
    --space-16: 8rem;
    /* 128px */
    --text-secondary: #64748b;
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    :root {
        /* --- 1. 配色系统 (Dark) --- */
        --bg-base: #0f172a;
        /* Slate 900 */
        --bg-subtle: #1e293b;
        /* Slate 800 */
        --bg-accent: #334155;
        /* Slate 700 */

        /* 品牌色：保持或微调 */
        --primary: #6366f1;
        /* Indigo 500 (lighter for dark bg) */
        --primary-hover: #818cf8;
        /* Indigo 400 */
        --primary-light: #818cf8;
        /* Indigo 400 */
        --primary-subtle: #1e1b4b;
        /* Indigo 950 (dark background) */

        /* 文字系统 */
        --text-main: #f8fafc;
        /* Slate 50 */
        --text-body: #cbd5e1;
        /* Slate 300 */
        --text-muted: #94a3b8;
        /* Slate 400 */
        --text-secondary: #94a3b8;
        /* Slate 400 */

        /* 边框 */
        --border-light: #334155;
        /* Slate 700 */

        /* 阴影 - Dark mode shadows are often less visible or use specific colors */
        --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
        --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    }
}

[data-theme="dark"] {
    /* --- 1. 配色系统 (Dark) --- */
    --bg-base: #0f172a;
    /* Slate 900 */
    --bg-subtle: #1e293b;
    /* Slate 800 */
    --bg-accent: #334155;
    /* Slate 700 */

    /* 品牌色：保持或微调 */
    --primary: #6366f1;
    /* Indigo 500 (lighter for dark bg) */
    --primary-hover: #818cf8;
    /* Indigo 400 */
    --primary-light: #818cf8;
    /* Indigo 400 */
    --primary-subtle: #1e1b4b;
    /* Indigo 950 (dark background) */

    /* 文字系统 */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-body: #cbd5e1;
    /* Slate 300 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --text-secondary: #94a3b8;
    /* Slate 400 */

    /* 边框 */
    --border-light: #334155;
    /* Slate 700 */

    /* 阴影 */
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

/* Force Light Theme */
[data-theme="light"] {
    --bg-base: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-accent: #f1f5f9;
    --primary: #4338ca;
    --primary-hover: #3730a3;
    --primary-light: #6366f1;
    --primary-subtle: #e0e7ff;
    --accent-teal: #0d9488;
    --accent-rose: #e11d48;
    --text-main: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-card: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(99, 102, 241, 0.08), 0 8px 10px -6px rgba(99, 102, 241, 0.02);
    --border-light: #e2e8f0;
    --text-secondary: #64748b;
}


/* =========================================
   Unified Styles from Homepage
   ========================================= */
/* ===== 基础样式 ===== */
.homepage-main {
    min-height: calc(100vh - 60px);
    background: var(--bg-subtle);
    background-image:
        radial-gradient(circle at 25% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 75% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
}

/* 全局动画定义 */
@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
}

.homepage-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ===== Hero 区域 - 增强版 ===== */
/* ===== 页面标题栏 ===== */
.page-header {
    background: var(--bg-base);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title i {
    color: var(--primary-light);
    font-size: 1.25rem;
}

.page-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

.page-header-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.header-tag i {
    color: var(--primary-light);
    font-size: 0.75rem;
}

.header-tag:hover {
    background: var(--bg-accent);
    border-color: #c7d2fe;
}

/* ===== 未登录用户广告牌 ===== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, var(--primary) 50%, var(--primary-light) 75%, #818cf8 100%);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    margin-bottom: 2rem;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 25px 60px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
}

.hero-banner-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner-decoration-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    top: -180px;
    right: -120px;
    animation: float 15s ease-in-out infinite;
}

.hero-banner-decoration-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    bottom: -120px;
    left: -80px;
    animation: float 12s ease-in-out infinite reverse;
}

.hero-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.hero-banner-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-banner-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-banner-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-banner-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-banner-feature i {
    color: #fbbf24;
    font-size: 1rem;
}

.hero-banner-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner-btn-primary {
    background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-subtle) 100%);
    color: var(--primary);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.hero-banner-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.hero-banner-btn-primary:focus,
.hero-banner-btn-primary:active,
.hero-banner-btn-primary:visited {
    color: var(--primary);
}

.hero-banner-btn-primary:focus {
    outline: 2px solid rgba(67, 56, 202, 0.5);
    outline-offset: 2px;
}

.hero-banner-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--bg-base);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.hero-banner-btn-secondary:hover,
.hero-banner-btn-secondary:focus,
.hero-banner-btn-secondary:active,
.hero-banner-btn-secondary:visited {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--bg-base);
}

.hero-banner-btn-secondary:hover {
    transform: translateY(-2px);
}

.hero-banner-btn-secondary:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hero-banner-trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-banner-trust span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-banner-trust i {
    color: #4ade80;
    font-size: 0.75rem;
}

/* ===== 通用区块 ===== */
.section-block {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.section-title {
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    font-size: 1rem;
    color: var(--primary-light);
}

.section-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.875rem;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
    color: var(--bg-base);
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
    animation: float 3s ease-in-out infinite;
}

.section-link {
    font-size: 0.875rem;
    color: var(--primary-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--primary);
}

/* ===== Bento Grid 核心功能 ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* 统一卡片宽度 - 宽卡片也只占1列 */
.bento-card-wide {
    grid-column: span 1;
}

.bento-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    min-height: 150px;
    display: flex;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-base);
    border: 1px solid var(--border-light);
}

/* 卡片左侧装饰线 */
.bento-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-light), #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.bento-card-wide {
    min-height: 180px;
}

.bento-card-bg {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0.08;
    /* Subtle colorful tint */
    z-index: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .bento-card-bg {
    opacity: 0.15;
    /* Slightly clearer in dark mode */
}

@media (prefers-color-scheme: dark) {
    .bento-card-bg {
        opacity: 0.15;
    }
}

.bento-card:hover .bento-card-bg {
    opacity: 0.15;
}

[data-theme="dark"] .bento-card:hover .bento-card-bg {
    opacity: 0.25;
}

@media (prefers-color-scheme: dark) {
    .bento-card:hover .bento-card-bg {
        opacity: 0.25;
    }
}

/* 优化渐变色 - 更丰富的色彩过渡 */
/* 优化渐变色 - 更丰富的色彩过渡 - Premium Ver. */
.bg-gradient-purple {
    background: linear-gradient(135deg, var(--primary-light) 0%, #8b5cf6 50%, #d8b4fe 100%);
    box-shadow: inset 0 -30px 60px rgba(139, 92, 246, 0.2);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 50%, #fcd34d 100%);
    box-shadow: inset 0 -30px 60px rgba(249, 115, 22, 0.2);
}

.bg-gradient-pink {
    background: linear-gradient(135deg, #d946ef 0%, #f472b6 50%, #fbcfe8 100%);
    box-shadow: inset 0 -30px 60px rgba(217, 70, 239, 0.2);
}

.bg-gradient-cyan {
    background: linear-gradient(135deg, #0ea5e9 0%, #2dd4bf 50%, #99f6e4 100%);
    box-shadow: inset 0 -30px 60px rgba(20, 184, 166, 0.2);
}

.bg-gradient-rose {
    background: linear-gradient(135deg, #e11d48 0%, #fb7185 50%, #fda4af 100%);
    box-shadow: inset 0 -30px 60px rgba(225, 29, 72, 0.2);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #059669 0%, #34d399 50%, #6ee7b7 100%);
    box-shadow: inset 0 -30px 60px rgba(16, 185, 129, 0.2);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 50%, #93c5fd 100%);
    box-shadow: inset 0 -30px 60px rgba(37, 99, 235, 0.2);
}

.bg-gradient-indigo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #a5b4fc 100%);
    box-shadow: inset 0 -30px 60px rgba(79, 70, 229, 0.2);
}

.bento-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: #818cf8;
    box-shadow:
        0 20px 40px -5px rgba(99, 102, 241, 0.25),
        0 8px 16px -6px rgba(99, 102, 241, 0.15);
}

.bento-card:hover .bento-icon {
    animation: pulse-soft 1.5s ease-in-out infinite;
}

.bento-card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-card-wide .bento-card-content {
    flex-direction: column;
}

.bento-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #eff6ff 0%, var(--primary-subtle) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--primary-light);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
    transition: all 0.3s ease;
}

.bento-text {
    flex: 1;
}

.bento-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem;
}

.bento-card:not(.bento-card-wide) .bento-text h3 {
    font-size: 1.0625rem;
    margin: 0.75rem 0 0.375rem;
}

.bento-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.bento-card:not(.bento-card-wide) .bento-text p {
    font-size: 0.8125rem;
}

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bento-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-accent);
    color: var(--text-body);
    border-radius: 20px;
}

.bento-arrow {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    color: var(--border-light);
    font-size: 1rem;
    transition: all 0.3s;
}

.bento-card:hover .bento-arrow {
    transform: translateX(4px);
    color: var(--primary-light);
}

/* ===== 热门工具 ===== */
.hot-tools-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.75rem;
}

.hot-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 0.5rem;
    background: var(--bg-base);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 热门工具卡片装饰 */
.hot-tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hot-tool-card:hover::after {
    opacity: 1;
}

.hot-tool-card:hover {
    border-color: #c7d2fe;
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.1) inset;
    transform: translateY(-3px);
}

.hot-tool-card:hover .hot-tool-icon {
    transform: scale(1.1);
}

.hot-tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.hot-tool-card span {
    font-size: 0.8125rem;
    color: var(--text-body);
    font-weight: 500;
    text-align: center;
}

/* ===== 工具卡片网格 ===== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tool-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: var(--bg-base);
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* 工具卡片左侧装饰线 */
.tool-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-light), #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tool-card:hover {
    border-color: #c7d2fe;
    box-shadow:
        0 12px 32px rgba(99, 102, 241, 0.14),
        0 0 0 1px rgba(99, 102, 241, 0.08) inset;
    transform: translateY(-3px);
    background: var(--bg-base);
}

.tool-card:hover .tool-icon {
    transform: scale(1.08) rotate(3deg);
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tool-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.25rem;
}

.tool-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.tool-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.625rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tool-badge-hot {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.1);
}

.tool-badge-ai {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
    border: 1px solid rgba(109, 40, 217, 0.1);
    animation: glow 3s ease-in-out infinite;
}

.tool-badge-new {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    border: 1px solid rgba(21, 128, 61, 0.1);
}

/* ===== 产品亮点 ===== */
.highlights-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.highlight-card {
    background: var(--bg-base);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 亮点卡片顶部装饰 */
.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.highlight-card:hover::before {
    opacity: 1;
    width: 80%;
}

.highlight-card:hover {
    box-shadow:
        0 12px 28px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.08) inset;
    transform: translateY(-4px);
    border-color: #c7d2fe;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eff6ff 0%, var(--primary-subtle) 50%, #ddd6fe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--primary-light);
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.highlight-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.375rem;
}

.highlight-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== 分类卡片 ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-base);
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 分类卡片底部装饰 */
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::after {
    opacity: 1;
}

.category-card:nth-child(1):hover::after {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.category-card:nth-child(2):hover::after {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.category-card:nth-child(3):hover::after {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.category-card:nth-child(4):hover::after {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.category-card:nth-child(5):hover::after {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.category-card:hover {
    border-color: transparent;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.08) inset;
    transform: translateY(-4px);
}

.category-card:hover .category-icon {
    transform: scale(1.08) rotate(-3deg);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--bg-base);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.25rem;
}

.category-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.category-count {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-accent);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
}

.category-card-all {
    background: var(--bg-subtle);
}

.category-card-all .fa-arrow-right {
    position: absolute;
    right: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.category-card-all:hover .fa-arrow-right {
    transform: translateX(4px);
    color: var(--primary);
}

/* ===== CTA 区域 - 增强版 ===== */
.cta-section {
    position: relative;
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--bg-base);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, var(--primary) 100%);
}

.cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 装饰元素 */
.cta-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.cta-decoration-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

.cta-decoration-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    bottom: -30px;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.cta-decoration-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    top: 20%;
    right: -20px;
    animation: float 7s ease-in-out infinite 1s;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* 标题区 */
.cta-header {
    margin-bottom: 2rem;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-subtitle {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin: 0;
}

/* 优势卡片区 */
.cta-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.cta-feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cta-feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.cta-feature-card:hover .cta-feature-icon {
    transform: scale(1.1);
}

.cta-feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.cta-feature-card p {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

/* 按钮区 */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn-primary {
    background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-subtle) 100%);
    color: var(--primary);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    overflow: hidden;
}

.cta-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn-primary:hover::before {
    opacity: 1;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.cta-btn-primary:focus,
.cta-btn-primary:active,
.cta-btn-primary:visited {
    color: var(--primary);
}

.cta-btn-primary:focus {
    outline: 2px solid rgba(67, 56, 202, 0.5);
    outline-offset: 2px;
}

.cta-btn-arrow {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.cta-btn-primary:hover .cta-btn-arrow {
    transform: translateX(4px);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-base);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.cta-btn-secondary:hover,
.cta-btn-secondary:focus,
.cta-btn-secondary:active,
.cta-btn-secondary:visited {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--bg-base);
}

.cta-btn-secondary:hover {
    transform: translateY(-2px);
}

.cta-btn-secondary:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 信任元素 */
.cta-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    opacity: 0.85;
    padding: 0 1.25rem;
}

.cta-trust-item i {
    font-size: 0.875rem;
    color: #4ade80;
}

.cta-trust-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
}

/* ===== 响应式调整 ===== */
@media (max-width: 1280px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hot-tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {

    .tool-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlights-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .homepage-container {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .page-header-content {
        align-items: center;
    }

    .page-title {
        font-size: 1.25rem;
        justify-content: center;
    }

    .page-description {
        font-size: 0.875rem;
    }

    .page-header-tags {
        justify-content: center;
    }

    .header-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    /* 广告牌响应式 */
    .hero-banner {
        padding: 2.5rem 1.5rem;
        min-height: 280px;
        border-radius: 20px;
    }

    .hero-banner-decoration {
        display: none;
    }

    .hero-banner-title {
        font-size: 1.75rem;
    }

    .hero-banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-banner-features {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-banner-feature {
        font-size: 0.8125rem;
    }

    .hero-banner-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }

    .hero-banner-trust {
        gap: 1rem;
    }

    .hero-banner-trust span {
        font-size: 0.75rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .bento-card {
        min-height: 130px;
    }

    .bento-icon {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .bento-text h3 {
        font-size: 1.0625rem;
    }

    .bento-tags {
        display: none;
    }

    .hot-tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .hot-tool-card {
        padding: 0.75rem 0.375rem;
    }

    .hot-tool-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .hot-tool-card span {
        font-size: 0.6875rem;
    }

    .tool-grid,
    .category-grid,
    .highlights-section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .tool-card,
    .category-card {
        padding: 1rem;
    }

    .tool-icon,
    .category-icon {
        width: 42px;
        height: 42px;
        font-size: 1.125rem;
    }

    .highlight-card {
        padding: 1.25rem;
    }

    .highlight-icon {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .cta-section {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .cta-decoration {
        display: none;
    }

    .cta-header h2 {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 0.9375rem;
    }

    .cta-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-feature-card {
        padding: 1.25rem;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .cta-feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .cta-feature-card h4 {
        margin-bottom: 0.25rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .cta-trust {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-trust-divider {
        display: none;
    }

    .cta-trust-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1rem;
        border-radius: 12px;
    }

    .page-title {
        font-size: 1.125rem;
        flex-wrap: wrap;
    }

    .page-description {
        font-size: 0.8125rem;
    }

    .page-header-tags {
        gap: 0.5rem;
    }

    .header-tag {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    /* 广告牌小屏适配 */
    .hero-banner {
        padding: 2rem 1rem;
        min-height: auto;
        border-radius: 16px;
    }

    .hero-banner-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }

    .hero-banner-title {
        font-size: 1.375rem;
    }

    .hero-banner-subtitle {
        font-size: 0.875rem;
    }

    .hero-banner-features {
        flex-direction: column;
        gap: 0.625rem;
    }

    .hero-banner-feature {
        font-size: 0.75rem;
    }

    .hero-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-banner-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .hero-banner-trust {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hot-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.0625rem;
    }

    .section-title i {
        font-size: 0.875rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        margin: 0 -0.5rem;
        border-radius: 16px;
    }

    .cta-header h2 {
        font-size: 1.25rem;
    }

    .cta-subtitle {
        font-size: 0.875rem;
    }

    .cta-feature-card {
        padding: 1rem;
    }

    .cta-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cta-feature-card h4 {
        font-size: 0.9375rem;
    }

    .cta-feature-card p {
        font-size: 0.8125rem;
    }

    .cta-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .cta-trust-item {
        font-size: 0.8125rem;
    }
}

/* 减少动画 - 用户偏好 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}