/* base */
.home-page {
    margin: 0 !important;
}

.title-blue {
    color: #017AEB;
}

.main-btn .btn-svg,
.btn-blur .btn-svg {
    width: 23px;
    height: 28px;
    margin: 8px 13px 0 0;
}

.btn-blur {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 278px;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.51);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    overflow: hidden;
}

.btn-blur:hover {
    color: #fff;
    transform: scale(1.05);
    animation: home-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 46px auto 0;
}

@keyframes home-pulse {
    50% {
        opacity: .7;
    }
}

.index-title {
    font-weight: bold;
    font-size: 42px;
    line-height: 48px;
    text-align: center;
    color: #1A1A1A;
}

.index-desc {
    font-family: Figtree;
    max-width: 810px;
    margin: 37px auto 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: #1A1A1A;
}

.index-maxwidth {
    margin: 0 auto;
}

@media (max-width: 1445px) {
    .index-maxwidth {
        padding: 0 15px;
    }
}

@media (max-width: 1023px) {
    .index-title {
        font-size: 26px;
        line-height: 32px;
    }

    .index-desc {
        margin: 20px auto 0;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.4;
    }
}

@media (max-width: 767px) {
    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin: 30px auto 0;
    }
}

@media (max-width: 360px) {
    .index-maxwidth {
        padding: 0 6px;
    }
}

/* base */

/* ai-tool-section */
.ai-tool-section {
    box-sizing: border-box;
    border-radius: 0px;
    margin: 0px auto;
    position: relative;
    margin-top: 60px;
}

.ai-tool-section .fade-bg {
    padding-top: 70px;
    background: linear-gradient(180deg, rgba(235, 203, 255, 0.85) 0px, rgba(235, 203, 255, 0.35) 200px, rgba(255, 255, 255, 0) 400px, rgba(255, 255, 255, 0) 100%);
}

.ai-tool-section h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 15px;
}

.ai-tool-section .h2-title-desc {
    font-size: 16px;
    font-weight: 400;
    color: #282828;
    text-align: center;
    margin-bottom: 30px;
}

.ai-tool-section .switch-btn-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    height: 56px;
    gap: 25px;
    margin-top: 60px;
}

.ai-tool-section .switch-btn-box .ai-creation-btn {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 56px;
    text-align: center;
    min-width: 220px;
    height: 56px;
    color: #81828B;
    background: #F5F7F9;
    padding: 0px 10px;
    border-radius: 8px;
}

.ai-tool-section .switch-btn-box .ai-creation-btn.active,
.ai-tool-section .switch-btn-box .ai-creation-btn.curr {
    background: #D063FF;
    color: #ffffff; 
}

.ai-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(437px, 1fr));
    justify-items: center;
    gap: 44px;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0px;
}

.ai-tool-card {
    width: 100%;
    max-width: 406px;
    min-height: 480px;
    height: fit-content;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    background: #F5F7F9;
    justify-content: center;
    padding: 15px 15px 15px 15px;
    align-items: center;
    gap: 0px;
}

.ai-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-media {
    width: 100%;
    height: 232px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
    border-radius: 20px;
}

.card-media video,
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.card-media video {
    pointer-events: none;
}

.card-content {
    padding: 20px 0px 0px 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: Albert Sans;
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 10px 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-description {
    font-family: Albert Sans;
    font-size: 14px;
    font-weight: 400;
    color: #7D8388;
    line-height: 1.5;
    margin: 0 0 5px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    flex: 1;
}

/* Try It Now 按钮 */
.card-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 230px;
    height: 58px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    background: linear-gradient(180deg, #7979FF -27.78%, #C859FF 50%);
    transition: transform .3s linear;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin: auto auto 0px;
}

.card-btn::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 20px);
    height: 15px;
    background: #FF9EE7;
    filter: blur(8px);
    border-radius: 100%;
}

.card-btn:hover {
    color: #fff;
    transform: scale(1.02);
    animation: main-btn-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes main-btn-pulse {
    50% {
        opacity: .8;
    }
}

/* 加载状态 */
.ai-list-loading {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 16px;
}

.ai-list-error {
    text-align: center;
    padding: 60px;
    color: #ff4444;
    font-size: 16px;
}

/* 空状态 */
.ai-list-empty {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .ai-tool-section {
        margin-top: 60px;
    }
    
    .ai-tool-section .fade-bg {
        padding-top: 40px;
    }
    
    .ai-tool-section h1 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 10px;
        padding: 0 15px;
    }
    
    .ai-tool-section .h2-title-desc {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
 
    .ai-tool-section .switch-btn-box {
        gap: 8px !important;
        margin-top: 30px;
        min-height: 35px;
        height: auto;
        max-height: 78px;
        padding: 0px 15px;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .ai-tool-section .switch-btn-box::-webkit-scrollbar {
        display: none;
    }
    
    .ai-tool-section .switch-btn-box .ai-creation-btn {
        min-width: 60px !important;
        width: fit-content !important;
        height: 35px !important;
        font-size: 14px !important;
        line-height: 35px !important;
        padding: 0 3px !important;
        flex-shrink: 0;
        display: inline-block;
    }

    .ai-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        margin: 24px auto 0;
    }

    .ai-tool-card {
        max-width: 100%;
        height: fit-content;
        min-height: 378px;
        padding: 12px;
    }
 
    .card-media {
        height: 180px;
        border-radius: 16px;
    }
    
    .card-media video,
    .card-media img {
        border-radius: 16px;
    }
 
    .card-content {
        padding: 15px 0px 0px 0px;
    }
    
    .card-title {
        font-size: 17px;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }
    
    .card-description {
        height: auto;
        font-size: 14px !important;
        -webkit-line-clamp: 4;
        margin-bottom: 0px;
        max-height: 80px;
    }
    
    .card-btn {
        max-width: 165px;
        height: 45px;
        font-size: 14px;
        border-radius: 10px;
        margin: auto auto 0px;
    }
    
    .card-btn::before {
        bottom: -5px;
        height: 12px;
        filter: blur(6px);
    }
}

@media (max-width: 375px) {
    .ai-tool-section h1 {
        font-size: 22px;
    }
    
    .ai-tool-section .switch-btn-box {
        gap: 8px;
    }
    
    .ai-tool-section .switch-btn-box .ai-creation-btn {
        min-width: 95px;
        width: 95px;
        font-size: 13px;
    }
    
    .ai-list {
        gap: 16px;
    }
    
    .card-media {
        height: 160px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-description {
        font-size: 12px;
    }
    
    .card-btn {
        max-width: 150px;
        height: 42px;
        font-size: 13px;
    }
}
/* ai-tool-section */

/* possible */
.possible {
    margin-top: 139px;
}

.possible-box {
    position: relative;
    padding: 201px 30px 271px;
    border-radius: 60px;
    overflow: hidden;
}

.possible-box-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.possible-box-bg.curr {
    opacity: 1;
}

.possible-bg1 {
    background: url(https://images.noviai.ai/noviaien/assets/product/index/possible_bg1.jpg) no-repeat center/cover;
}

.possible-bg2 {
    background: url(https://images.noviai.ai/noviaien/assets/product/index/possible_bg2.jpg) no-repeat center/cover;
}

.possible-title {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    color: #fff;
    font-weight: 700;
    font-size: 50px;
    text-align: center;
    z-index: 1;
}

.possible .btn-group {
    gap: 53px;
    margin: 56px auto 0;
}

.possible .btn-blur {
    width: 260px;
    height: 72px;
    font-size: 18px;
}

.possible-switch {
    position: absolute;
    top: 50%;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 29px;
    transform: translateY(-50%);
}

.possible-sw-item {
    width: 100px;
    height: 100px;
    border-radius: 22px;
}

.possible-sw-item.curr {
    border: 2px solid #FFFFFF9E
}

@media (max-width: 1200px) {
    .possible {
        padding: 0 15px;
    }

    .possible-switch {
        flex-direction: row;
        top: unset;
        bottom: 50px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 1023px) {
    .possible {
        margin-top: 30px;
    }

    .possible-box {
        padding: 53px 10px 249px;
        border-radius: 18px;
    }

    .possible-title {
        max-width: 250px;
        font-size: 26px;
    }

    .possible-bg1 {
        background: url(https://images.noviai.ai/noviaien/assets/product/index/possible_bgsmall1.jpg) no-repeat center/cover;
    }

    .possible-bg2 {
        background: url(https://images.noviai.ai/noviaien/assets/product/index/possible_bgsmall2.jpg) no-repeat center/cover;
    }

    .possible .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 22px;
        margin: 40px auto 0;
    }

    .possible .btn-blur {
        width: 204px;
        height: 54px;
        font-size: 15px;
    }

    .possible-switch {
        gap: 15px;
    }

    .possible-sw-item {
        width: 50px;
        height: 50px;
        border-radius: 11px;
    }
}

/* possible */