/* ===== AI导航 详情页 / 列表页 样式 ===== */
.ai-single { background: #f6f7fb; padding-bottom: 40px; }

/* Hero 头部 */
.ai-hero-wrap {
    background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);
    padding: 38px 0 30px;
    margin-bottom: 4px;
}
.ai-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ai-hero-logo {
    width: 96px; height: 96px; border-radius: 20px;
    object-fit: contain; background: #fff; padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18); flex: 0 0 auto;
}
.ai-hero-info { flex: 1 1 280px; min-width: 0; color: #fff; }
.ai-hero-title {
    font-size: 26px; font-weight: 800; margin: 0 0 8px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff;
}
.ai-hero-desc { margin: 0 0 12px; opacity: .92; font-size: 15px; line-height: 1.65; }
.ai-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-hero-actions { flex: 0 0 auto; }

/* 徽章 */
.ai-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 13px; border-radius: 999px;
    background: rgba(255,255,255,.22); color: #fff;
    font-size: 13px; font-weight: 600;
}
.ai-badge-link { text-decoration: none; transition: .2s; }
.ai-badge-link:hover { background: rgba(255,255,255,.38); transform: translateY(-1px); }
.ai-points-badge {
    background: #fff !important; color: #e11d48 !important;
    font-weight: 800; box-shadow: 0 4px 14px rgba(255,255,255,.45);
}

/* 按钮 */
.ai-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 11px 22px; border-radius: 12px;
    font-weight: 700; font-size: 15px; text-decoration: none;
    transition: .2s; border: 0; cursor: pointer; white-space: nowrap;
}
.ai-btn-primary { background: #fff; color: #6d28d; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.ai-btn-primary:hover { transform: translateY(-2px); color: #6d28d; }
.ai-btn-outline { background: #fff; color: #6d28d; border: 2px solid #8b5cf6; }
.ai-btn-outline:hover { background: #8b5cf6; color: #fff; }
.ai-btn-ghost { background: transparent; color: #6d28d; border: 1px solid #d6d3e8; }
.ai-btn-ghost:hover { background: #f3f0ff; color: #6d28d; }
.ai-btn.w-100 { width: 100%; }

/* 内容卡 */
.ai-content-card { border-radius: 16px !important; overflow: hidden; }
.ai-section-title {
    font-size: 18px; font-weight: 800; margin: 0 0 16px;
    display: flex; align-items: center; gap: 8px; color: #1f2937;
}
.ai-section-title i { color: #8b5cf6; }
.ai-single-content { font-size: 15px; line-height: 1.85; color: #374151; }
.ai-single-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.ai-single-content h2, .ai-single-content h3 { margin-top: 22px; }

/* 侧栏卡 */
.ai-side-card {
    background: #fff; border-radius: 16px; padding: 20px;
    margin-bottom: 20px; box-shadow: 0 6px 20px rgba(17,24,39,.06);
}
.ai-side-card h6 { font-weight: 800; margin: 0 0 14px; font-size: 15px; color: #1f2937; }
.ai-side-card h6 i { color: #8b5cf6; margin-right: 6px; }
.ai-badge-lg { background: #f3f0ff !important; color: #6d28d !important; font-size: 14px; padding: 6px 14px; }
.ai-side-card-promo { border: 2px solid #fecdd3; background: #fff5f6; }
.ai-side-card-promo h6, .ai-side-card-promo h6 i { color: #e11d48; }
.ai-side-card-promo strong { color: #e11d48; }

/* 相关推荐 */
.ai-related { margin-top: 36px; }
.ai-related-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px;
}
.ai-related-card {
    background: #fff; border-radius: 14px; padding: 18px 14px;
    text-align: center; text-decoration: none; color: #1f2937;
    box-shadow: 0 6px 18px rgba(17,24,39,.06); transition: .2s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ai-related-card:hover {
    transform: translateY(-4px); box-shadow: 0 12px 26px rgba(17,24,39,.12); color: #6d28d;
}
.ai-related-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; }
.ai-related-name { font-weight: 700; font-size: 14px; }

/* 功能亮点列表 */
.ai-feature-list { list-style: none; padding: 0; margin: 0; }
.ai-feature-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 0; font-size: 15px; color: #374151;
    border-bottom: 1px dashed #eee;
}
.ai-feature-list li:last-child { border-bottom: 0; }
.ai-feature-list i { color: #8b5cf6; margin-top: 4px; flex: 0 0 auto; }

/* 使用教程 */
.ai-tutorial { font-size: 15px; line-height: 1.85; color: #374151; }
.ai-tutorial img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }

/* 官网截图预览 */
.ai-shot-link { display: block; border-radius: 12px; overflow: hidden; }
.ai-shot-img { width: 100%; height: auto; display: block; border-radius: 12px; transition: .25s; }
.ai-shot-link:hover .ai-shot-img { transform: scale(1.01); opacity: .95; }

/* ===== /ai 列表页卡片（与详情页同风格） ===== */
.ai-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.ai-card {
    background: #fff; border-radius: 16px; padding: 20px;
    box-shadow: 0 6px 20px rgba(17,24,39,.06);
    display: flex; flex-direction: column; transition: .2s; height: 100%;
}
.ai-card:hover {
    transform: translateY(-5px); box-shadow: 0 14px 30px rgba(99,102,241,.16);
    border-top: 3px solid #8b5cf6; padding-top: 17px;
}
.ai-card-link { text-decoration: none; color: inherit; display: flex; gap: 14px; flex: 1 1 auto; }
.ai-card-icon {
    width: 60px; height: 60px; border-radius: 14px; object-fit: contain;
    background: #f6f7fb; padding: 6px; flex: 0 0 auto;
}
.ai-card-body { min-width: 0; flex: 1 1 auto; }
.ai-card-title {
    font-size: 17px; font-weight: 800; margin: 0 0 6px; color: #1f2937;
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.ai-card-title:hover { color: #6d28d; }
.ai-card-gift {
    font-size: 11px; font-weight: 700; color: #fff; background: #ec4899;
    padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.ai-card-desc {
    margin: 0; color: #6b7280; font-size: 13.5px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ai-card-foot {
    display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px;
    border-top: 1px solid #f1f1f4;
}
.ai-badge-sm { background: #f3f0ff !important; color: #6d28d !important; font-size: 12px; padding: 3px 10px; }
.ai-card-go {
    margin-left: auto; font-size: 13px; font-weight: 700; color: #6d28d; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px; transition: .2s;
}
.ai-card-go:hover { color: #8b5cf6; gap: 8px; }

/* ===== /ai 首页 Hero 横幅 ===== */
.ai-home-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: #fff; padding: 56px 0 64px; text-align: center;
    position: relative; overflow: hidden;
}
.ai-home-hero::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,.12), transparent 42%);
    pointer-events: none;
}
.ai-home-title {
    position: relative; font-size: 40px; font-weight: 900; margin: 0 0 12px;
    letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.ai-home-sub {
    position: relative; font-size: 16px; margin: 0 auto 28px; max-width: 640px;
    opacity: .92; line-height: 1.7;
}
.ai-home-search { position: relative; max-width: 600px; margin: 0 auto; }
.ai-home-search-box {
    display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px;
    padding: 6px 6px 6px 18px; box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.ai-home-search-box i { color: #9ca3af; font-size: 16px; }
.ai-home-search-box input {
    flex: 1 1 auto; border: 0; outline: 0; font-size: 15px; padding: 10px 4px; color: #374151; background: transparent;
}
.ai-home-search-box button {
    flex: 0 0 auto; border: 0; background: #6d28d; color: #fff; font-weight: 700;
    padding: 11px 26px; border-radius: 999px; cursor: pointer; transition: .2s; font-size: 15px;
}
.ai-home-search-box button:hover { background: #5b21b6; }

@media (max-width: 575px) {
    .ai-hero { justify-content: center; text-align: center; }
    .ai-hero-info { text-align: center; }
    .ai-hero-actions { width: 100%; }
    .ai-hero-actions .ai-btn { width: 100%; }
    .ai-grid { grid-template-columns: 1fr; }
    .ai-home-hero { padding: 40px 0 44px; }
    .ai-home-title { font-size: 30px; }
    .ai-home-search-box { flex-wrap: nowrap; padding-left: 14px; }
    .ai-home-search-box button { padding: 10px 18px; }
}
