/* FunGifter AI 工具页面公共样式
   总览页 / 主图优化 / 营销视频 / 违规风险 共用 */

.fg-ai-main {
    font-family: var(--wp--preset--font-family--martian-grotesk, 'MartianGrotesk', system-ui, -apple-system, sans-serif);
    color: #191A23;
}
.fg-ai-main * {
    box-sizing: border-box;
}
.fg-ai-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--m, 1.5rem);
}

/* Hero */
.fg-ai-hero {
    padding: clamp(3rem, 6vw, 6rem) 0 clamp(3rem, 6vw, 6rem);
}
.fg-ai-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
.fg-ai-hero-copy {
    max-width: 640px;
}
.fg-ai-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #B9FF66;
    color: #191A23;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}
.fg-ai-h1 {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 24px;
    font-weight: 600;
    color: #191A23;
}
.fg-ai-h1 .fg-ai-accent {
    background: #B9FF66;
    padding: 0 8px;
    border-radius: 6px;
}
.fg-ai-h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin: 0 0 16px;
    font-weight: 600;
}
.fg-ai-h2-on-dark {
    color: #FFFFFF;
}
.fg-ai-lead {
    font-size: 17px;
    line-height: 1.7;
    color: #4a4a52;
    margin: 0 0 28px;
}
.fg-ai-lead-on-dark {
    color: #B9FF66;
}
.fg-ai-stats {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin: 32px 0;
    padding: 0;
    flex-wrap: wrap;
}
.fg-ai-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: #191A23;
}
.fg-ai-stat span {
    font-size: 12px;
    color: #787878;
    margin-top: 4px;
    display: block;
}

/* CTA Buttons */
.fg-ai-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.fg-ai-cta-row-center {
    justify-content: center;
}
.fg-ai-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s ease;
    line-height: 1.2;
}
.fg-ai-btn-primary {
    background: #191A23;
    color: #FFFFFF;
}
.fg-ai-btn-primary:hover {
    transform: translate(-2px, -2px);
}
.fg-ai-btn-ghost {
    background: transparent;
    color: #191A23;
    border: 1px solid #191A23;
}
.fg-ai-btn-ghost-dark {
    color: #191A23;
    border-color: #191A23;
    background: #FFFFFF;
}

/* Hero Visual */
.fg-ai-hero-visual {
    position: relative;
    padding: 30px;
}
.fg-ai-hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 30px;
    display: block;
    position: relative;
    z-index: 1;
}
.fg-ai-blob {
    position: absolute;
    inset: -30px -50px -30px -50px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
}

/* Section */
.fg-ai-section {
    padding: clamp(3rem, 6vw, 6rem) 0;
}
.fg-ai-section-dark {
    background: #191A23;
    color: #FFFFFF;
}
.fg-ai-section-header {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.fg-ai-section-header-center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.fg-ai-section-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #B9FF66;
    color: #191A23;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}
.fg-ai-section-chip-on-dark {
    background: #B9FF66;
}
.fg-ai-section-header p {
    font-size: 16px;
    color: #4a4a52;
    margin: 0;
}

/* Tools grid (overview) */
.fg-ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.fg-ai-tool-card {
    padding: 32px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
    text-decoration: none;
    position: relative;
}
.fg-ai-tool-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    align-self: flex-start;
}
.fg-ai-tool-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.25;
}
.fg-ai-tool-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    opacity: 0.85;
}
.fg-ai-tool-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fg-ai-tool-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.fg-ai-bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-top: 8px;
    flex-shrink: 0;
}
.fg-ai-tool-link {
    margin-top: auto;
    padding-top: 12px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

/* Flow (overview) */
.fg-ai-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.fg-ai-flow-step {
    background: #23242E;
    padding: 28px;
    border-radius: 24px;
    color: #FFFFFF;
}
.fg-ai-flow-step-final {
    background: #B9FF66;
    color: #191A23;
}
.fg-ai-flow-num {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(185, 255, 102, 0.18);
    color: #B9FF66;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 14px;
}
.fg-ai-flow-step-final .fg-ai-flow-num {
    background: #191A23;
    color: #B9FF66;
}
.fg-ai-flow-step h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}
.fg-ai-flow-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
}

/* Feature grid (detail pages) */
.fg-ai-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.fg-ai-feature {
    background: #F3F3F3;
    border-radius: 24px;
    padding: 32px;
}
.fg-ai-feature h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #191A23;
}
.fg-ai-feature p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4a4a52;
}
.fg-ai-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #B9FF66;
    color: #191A23;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 14px;
}

/* Detail steps */
.fg-ai-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    counter-reset: stepcounter;
}
.fg-ai-step {
    background: #FFFFFF;
    border: 1px solid #e6e6ea;
    border-radius: 20px;
    padding: 24px;
    position: relative;
}
.fg-ai-step::before {
    counter-increment: stepcounter;
    content: counter(stepcounter, decimal-leading-zero);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #B9FF66;
    background: #191A23;
    padding: 4px 8px;
    border-radius: 6px;
    width: max-content;
    margin-bottom: 12px;
}
.fg-ai-step h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #191A23;
}
.fg-ai-step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #4a4a52;
}

/* Scenarios (use cases) */
.fg-ai-scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.fg-ai-scenario {
    padding: 24px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #e6e6ea;
}
.fg-ai-scenario-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #F3F3F3;
    color: #191A23;
    font-weight: 600;
    font-size: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.fg-ai-scenario h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}
.fg-ai-scenario p {
    margin: 0;
    font-size: 13px;
    color: #4a4a52;
    line-height: 1.6;
}

/* CTA card */
.fg-ai-cta-card {
    background: #191A23;
    color: #FFFFFF;
    border-radius: 30px;
    padding: clamp(2rem, 4vw, 4rem);
    text-align: center;
}
.fg-ai-cta-card .fg-ai-h2 {
    color: #FFFFFF;
}
.fg-ai-cta-card p {
    color: #B9FF66;
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto 28px;
}

/* Cross-link */
.fg-ai-cross {
    margin-top: 24px;
    font-size: 13px;
    color: #787878;
}
.fg-ai-cross a {
    color: #191A23;
    text-decoration: underline;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 960px) {
    .fg-ai-hero-grid,
    .fg-ai-tools-grid,
    .fg-ai-flow-grid,
    .fg-ai-feature-grid,
    .fg-ai-steps,
    .fg-ai-scenarios {
        grid-template-columns: 1fr;
    }
    .fg-ai-hero-visual {
        padding: 0;
    }
    .fg-ai-blob {
        inset: -20px -20px -20px -20px;
    }
}
@media (max-width: 560px) {
    .fg-ai-stat strong {
        font-size: 24px;
    }
    .fg-ai-steps {
        grid-template-columns: 1fr 1fr;
    }
}
