/* 小易AI页面样式 */

/* Banner区域按钮背景图片 */
.nybanner .banmore.messbtn {
    background-image: url('../../../uploads/xiaoyiai/button_bgm.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: unset;
    border: none;
    color: #5D1AF3;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(93, 26, 243, 0.25);
    transition: all 0.3s ease;
}

.nybanner .banmore.messbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 26, 243, 0.35);
}

.nybanner .banmore.messbtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(93, 26, 243, 0.3);
}


.xiaoyiai-content {
    background: linear-gradient(58deg, rgba(253, 226, 255, 0.3), rgba(184, 168, 255, 0.3));
    padding: 80px 0 140px;
    text-align: center;
}

.xiaoyiai-header {
    margin-bottom: 60px;
}

.xiaoyiai-title {
    font-size: 48px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.xiaoyiai-title .title-text {
    background: linear-gradient(58deg, #CF5EE4 0%, #745AFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.xiaoyiai-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xiaoyiai-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xiaoyiai-subtitle {
    font-size: 24px;
    color: #333333;
    margin-bottom: 40px;
    font-weight: 600;
    line-height: 1.5;
}

.xiaoyiai-search {
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    display: flex;
}

.xiaoyiai-input {
    width: 100%;
    height: 56px;
    padding: 0 0px 0 16px;
    border: 4px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(to right, #B8A8FF, #FDE2FF) border-box;
    box-shadow: 3px 4px 71px 13px rgba(192,0,255,0.09);
    outline: none;
    transition: all 0.3s ease;
}

.xiaoyiai-input:focus {
    border-color: #6366f1;
    box-shadow: 3px 4px 71px 13px rgba(192,0,255,0.09);
}

.xiaoyiai-input::placeholder {
    color: #828088;
}

.xiaoyiai-generate-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 42px;
    padding: 0 18px 0 12px;
    background: linear-gradient(82deg, #9056FA 0%, #7530E3 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.xiaoyiai-generate-btn:hover {
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* 不带定位的按钮样式，用于马上体验按钮 */
.xiaoyiai-experience-btn {
    height: 38px;
    padding: 0 18px 0 12px;
    background: linear-gradient(82deg, #9056FA 0%, #7530E3 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.xiaoyiai-experience-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.xiaoyiai-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.xiaoyiai-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.xiaoyiai-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.xiaoyiai-suggestions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.xiaoyiai-suggestions-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.xiaoyiai-suggestion {
    color: #828088;
    font-size: 14px;
    padding: 8px 16px;
    background: white;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.xiaoyiai-suggestion .suggestion-arrow {
    width: 8px;
    height: 8px;
    object-fit: contain;
}

.xiaoyiai-suggestion:hover {
    background: white;
    color: #5D1AF3;
    border: 1px solid #5D1AF3;
}

.xiaoyiai-suggestion:hover .suggestion-arrow {
    filter: brightness(0) saturate(100%) invert(23%) sepia(89%) saturate(3091%) hue-rotate(253deg) brightness(95%) contrast(98%);
}

.xiaoyiai-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: nowrap;
}

/* 平板端显示3列 */
@media (max-width: 1200px) {
    .xiaoyiai-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* 小平板端显示2列 */
@media (max-width: 900px) {
    .xiaoyiai-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.xiaoyiai-card {
    position: relative;
    flex: 1;
    width: 0;
    background: linear-gradient(161deg, #E1AFCC, #7530E3);
    border-radius: 20px;
    padding: 20px 20px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: visible;
    min-height: 210px;
    display: flex;
    flex-direction: column;
}

.xiaoyiai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.xiaoyiai-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    text-align: center;
    line-height: 1.4;
    border-radius: 999px;
    border: 3px solid #F8F8F8;
    padding: 5px 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.xiaoyiai-card-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.xiaoyiai-card-icon {
    width: 100%;
    height: 200px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
    overflow: visible;
}

.xiaoyiai-card-icon img {
    width: auto;
    height: 180px;
    object-fit: contain;
    max-width: none;
}

/* 功能特色突出样式 - 匹配图片中的紫色边框设计 */
.feature-highlight {
    border-left: 4px solid;
    border-image: linear-gradient(to bottom, #516CDE, #9C3CEE) 1;
    margin: 20px 0;
    background: rgba(139, 92, 246, 0.05);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    position: relative;
}

/* 激活状态的功能特色突出样式 - 使用渐变背景 */
.feature-highlight.feature-item.active {
    background: linear-gradient(268deg, rgba(225,175,204,0) 0%, rgba(117,48,227,0.2) 100%);
}

.gttese .feature-highlight h5 {
    color: #272E47 !important;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.feature-highlight p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.gttese .gttxts h3 {
    background: linear-gradient(161deg, #516CDE 0%, #9C3CEE 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
    font-size: 28px !important;
    margin: 0 0 10px 0 !important;
    display: inline-block !important;
}

.gttxts h4 {
    color: #272E47;
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 20px 0;
}
.gttese li:nth-child(even){
    background: linear-gradient(161deg, #FDE2FF, #F7F9FF);
}


/* 功能条切换动画效果 */
.feature-item {
    cursor: pointer;
    margin-bottom: 15px;
    opacity: 1;
    border-left: none !important;
    background: transparent !important;
    position: relative;
}

/* 伪元素作为背景色块（包含左侧边框） */
.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: -1;
}

/* 左侧渐变边框通过另一个伪元素实现 */
.feature-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 0;
}

/* 默认第一个功能项激活 */
.gtwenzi .feature-item:first-child::before {
    background: linear-gradient(268deg, rgba(225,175,204,0) 0%, rgba(117,48,227,0.2) 100%);
    transform: translateX(5px);
}

.gtwenzi .feature-item:first-child::after {
    background: linear-gradient(to bottom, #516CDE, #9C3CEE);
    transform: translateX(5px);
}

/* 悬停时的样式 - 只移动背景伪元素 */
.feature-item:hover::before {
    background: linear-gradient(268deg, rgba(225,175,204,0) 0%, rgba(117,48,227,0.2) 100%);
    transform: translateX(5px);
}

.feature-item:hover::after {
    background: linear-gradient(to bottom, #516CDE, #9C3CEE);
    transform: translateX(5px);
}

/* 当有其他项悬停时，移除第一个项的默认样式 */
.gtwenzi:hover .feature-item:first-child:not(:hover)::before {
    background: transparent;
    transform: translateX(0);
}

.gtwenzi:hover .feature-item:first-child:not(:hover)::after {
    background: transparent;
    transform: translateX(0);
}

.feature-item h5 {
    transition: color 0.3s ease;
    color: #272E47 !important;
    position: relative;
    z-index: 1;
}

.feature-item p {
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .xiaoyiai-content {
        padding: 40px 0;
    }
    
    .xiaoyiai-title {
        font-size: 32px;
        flex-direction: column;
        gap: 10px;
    }
    
    .xiaoyiai-subtitle {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .xiaoyiai-search {
        margin: 0 20px 30px;
    }
    
    .xiaoyiai-input {
        height: 50px;
        padding: 0 110px 0 15px;
        font-size: 14px;
    }
    
    .xiaoyiai-generate-btn {
        height: 40px;
        padding: 0 20px;
        font-size: 14px;
    }
    
    .xiaoyiai-buttons {
        padding: 0 20px;
        gap: 10px;
    }
    
    .xiaoyiai-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .xiaoyiai-suggestions {
        padding: 0 20px;
        gap: 10px;
    }
    
    .xiaoyiai-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .xiaoyiai-card {
        padding: 20px 15px 40px;
        min-height: 200px;
    }
    
    .xiaoyiai-card-icon {
        width: 180px;
        height: 180px;
        bottom: -40px;
    }
    
    .xiaoyiai-card-title {
        font-size: 14px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .xiaoyiai-title {
        font-size: 24px;
    }
    
    .xiaoyiai-subtitle {
        font-size: 16px;
    }
    
    .xiaoyiai-input {
        padding: 0 100px 0 15px;
    }
    
    .xiaoyiai-generate-btn {
        padding: 0 15px;
        font-size: 12px;
    }
}
