/* ========================================
   AI图文生成页面样式 - 采用主页面紫蓝粉渐变色系
   ======================================== */

/* 全局样式 */
body {
    min-width: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 70px;
    font-size: 14px;
    line-height: 1.6;
    background-color: #fff;
    color: #1A1A1A;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    font-size: 20px !important;
}

.navbar-nav .nav-link {
    font-size: 16px !important;
    padding: 8px 16px !important;
    color: #333 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #5B4FE9 !important;
}

/* 下拉菜单 */
.navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 0;
    min-width: 200px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

.navbar .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f0edff;
    color: #5B4FE9;
    padding-left: 25px;
}

.navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}

/* 主色调 - 紫蓝粉渐变 */
.pageWrap .text-primary {
    color: #5B4FE9 !important;
}

.pageWrap .btn-primary,
.btn-primary {
    background: linear-gradient(135deg, #5B4FE9, #0090F6);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.pageWrap .btn-primary:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #4a3ed8, #0080e0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 79, 233, 0.3);
}

.pageWrap .btn-outline-primary,
.btn-outline-primary {
    border: 2px solid #5B4FE9;
    color: #5B4FE9;
    background: transparent;
    transition: all 0.3s ease;
}

.pageWrap .btn-outline-primary:hover,
.btn-outline-primary:hover {
    background: linear-gradient(135deg, #5B4FE9, #0090F6);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #5B4FE9 0%, #7B68EE 50%, #0090F6 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Banner右侧图标区域 */
.banner-right {
    position: relative;
    width: 420px;
    height: 380px;
    margin: 0 auto;
}

.banner-right img {
    position: absolute;
}

.ai-circle {
    width: 392px;
    height: 392px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.xiaohongshu-circle {
    width: 95px;
    height: 95px;
    top: 230px;
    left: 340px;
    animation: breath-out 1.5s infinite;
}

.douying-circle {
    width: 83px;
    height: 83px;
    top: 237px;
    left: 25px;
    animation: breath-out 1.5s infinite;
}

.toutiao-circle {
    width: 88px;
    height: 88px;
    top: -20px;
    left: 232px;
    animation: breath-out 1.5s infinite;
}

.wb-circle {
    width: 84px;
    height: 84px;
    top: -10px;
    left: 60px;
    animation: breath-out 1.5s infinite;
}

.feishu-circle {
    width: 95px;
    height: 95px;
    top: 70px;
    left: 340px;
    animation: breath-in 1.5s infinite;
}

.feiniao-circle {
    width: 96px;
    height: 96px;
    top: 100px;
    left: -20px;
    animation: breath-in 1.5s infinite;
}

.xianji {
    width: 82px;
    height: 82px;
    top: 308px;
    left: 198px;
    animation: breath-in 1.5s infinite;
}

/* 呼吸动画 - 从小到大 */
@keyframes breath-in {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* 呼吸动画 - 从大到小 */
@keyframes breath-out {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(234, 91, 233, 0.3);
    border-radius: 50%;
    top: -100px;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 144, 246, 0.3);
    border-radius: 50%;
    bottom: -50px;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
}

.gradient-text {
    background: linear-gradient(to right, #FFD700, #FFA500, #FF69B4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* 内容区域 */
.content {
    background-color: #f7f7f7;
}

/* 产品优势 */
.advantages {
    background: linear-gradient(to bottom, #f7f7f7, #ffffff);
}

.advantage-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(91, 79, 233, 0.15);
}

.advantage-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0edff, #e8f5ff);
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon-wrapper {
    background: linear-gradient(135deg, #5B4FE9, #0090F6);
}

.advantage-icon {
    font-size: 2.5rem;
    color: #5B4FE9;
    transition: color 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    color: white;
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f1f1f;
}

.advantage-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* 6大核心功能 */
.core-features {
    background: linear-gradient(to bottom, #D5E7FF, #f7f7f7);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f1f1f;
}

.core-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.core-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(91, 79, 233, 0.15);
}

.core-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5B4FE9, #0090F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.core-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f1f1f;
}

.core-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* 功能展示区 */
.feature-section {
    background: linear-gradient(to bottom, #f7f7f7, #ffffff);
}

.feature-section:nth-child(even) {
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 0;
}

.feature-subtitle {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.check-icon {
    font-size: 1.5rem;
    color: #5B4FE9;
    margin-right: 12px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, #5B4FE9, #7B68EE, #0090F6);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
}

/* 底部服务特色 */
.service-features {
    background: white;
}

.service-item {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f1f1f;
    margin: 0;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5B4FE9, #0090F6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(91, 79, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #4a3ed8, #0080e0);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(91, 79, 233, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 20px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    body {
        min-width: 1200px;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .feature-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .feature-title {
        font-size: 1.75rem;
    }

    .hero-banner {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 66px;
    }

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

    .hero-subtitle,
    .hero-desc {
        font-size: 1rem;
    }

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

    .feature-title {
        font-size: 1.5rem;
    }

    .hero-banner {
        padding: 40px 0;
    }

    .core-number {
        font-size: 2.5rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* 高级动画效果 - 从原网站复刻 */
@keyframes fadeInUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 应用动画到元素 */
.scroll-animate.active {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* 文字从下往上淡入 */
.scroll-animate.fade-in-up.active {
    animation-name: fadeInUp;
}

/* 图片从左侧滑入 */
.scroll-animate.slide-in-left.active {
    animation-name: slideInLeft;
}

/* 图片从右侧滑入 */
.scroll-animate.slide-in-right.active {
    animation-name: slideInRight;
}

/* 卡片缩放淡入 */
.scroll-animate.zoom-in.active {
    animation-name: zoomIn;
}

/* 延迟动画 - 让文字和图片错开进场 */
.scroll-animate.delay-200 {
    animation-delay: 0.2s;
}

.scroll-animate.delay-400 {
    animation-delay: 0.4s;
}

.scroll-animate.delay-600 {
    animation-delay: 0.6s;
}
