/*
* Canvas LMS Home Page - 美化样式
*/

/* ========== 全局基础增强 ========== */
:root {
    --home-primary: #d43b35;
    --home-primary-dark: #b52d28;
    --home-primary-light: #f05b56;
    --home-accent: #FF6B35;
    --home-gradient-start: #672D89;
    --home-gradient-end: #B64164;
    --home-bg-light: #F8F9FB;
    --home-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --home-card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --home-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main {
    overflow-x: hidden;
}

/* ========== Header 导航增强 ========== */
header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
    transition: var(--home-transition);
}

header .logo a {
    background: linear-gradient(135deg, var(--home-primary), var(--home-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header .logo a sup {
    -webkit-text-fill-color: var(--home-primary);
    font-size: 0.5em;
}

.header-nav .layui-nav {
    background: transparent !important;
}

.header-nav .layui-nav .layui-nav-item > a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding: 0 18px;
    transition: var(--home-transition);
    position: relative;
}

.header-nav .layui-nav .layui-nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--home-primary);
    border-radius: 3px 3px 0 0;
    transition: transform 0.3s ease;
}

.header-nav .layui-nav .layui-nav-item > a:hover::after,
.header-nav .layui-nav .layui-nav-item.layui-this > a::after {
    transform: translateX(-50%) scaleX(1);
}

.header-nav .layui-nav .layui-nav-item > a:hover {
    color: var(--home-primary);
}

.header-nav .layui-nav .layui-nav-item:last-child > a::after {
    display: none;
}

.header-nav .layui-nav .layui-nav-item.layui-this {
    background: transparent !important;
}

.header-nav .layui-nav .layui-nav-item.layui-this > a {
    color: var(--home-primary);
    font-weight: 600;
}

/* ========== Banner 增强 ========== */
.banner.inner-banner {
    position: relative;
}

.banner-video {
    position: relative;
}

.video-banner-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55) 100%); */
    display: flex;
    align-items: center;
    z-index: 2;
}

.banner-text {
    text-align: center;
}

.banner-text .title {
    margin-bottom: 16px;
}

.banner-text .title .fnt100 {
    display: block;
    font-size: 100px;
    font-weight: 800;
    color: #d03933;
    letter-spacing: 8px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.banner-text .title .fnt30 {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 8px;
}

.banner-text .sub-title {
    font-size: 50px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.banner-text .sub-title sup {
    font-size: 0.6em;
}

.banner-text .arrow {
    animation: bounce-down 2s ease-in-out infinite;
}

.banner-text .arrow img {
    width: 48px;
    opacity: 0.8;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

/* 视频播放按钮 */
.icon-play {
    z-index: 3;
    cursor: pointer;
}

.icon-play span {
    display: block;
    width: 72px;
    height: 72px;
    border: 3px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    position: relative;
    transition: var(--home-transition);
    backdrop-filter: blur(4px);
}

.icon-play span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #fff;
}

.icon-play:hover span {
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
}

/* ========== Section 标题增强 ========== */
.index_title .title-wrap h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.index_title .title-wrap h2 span {
    position: relative;
    display: inline-block;
}

.index_title .title-wrap h2 span::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--home-primary);
    border-radius: 2px;
}

.index_title .title-wrap.color_white h2 {
    color: #fff;
}

.index_title .title-wrap.color_white h2 span::after {
    background: rgba(255,255,255,0.6);
}

.index_title .desc {
    max-width: 900px;
    margin: 20px auto 0;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

/* ========== Block 区块增强 ========== */
.block {
    padding: 80px 0;
}

.block.grey {
    background-color: var(--home-bg-light);
}

/* ========== 概览卡片 Tab-box 增强 ========== */
.tab-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 30px;
    box-shadow: var(--home-card-shadow);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--home-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tab-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--home-primary), var(--home-accent));
    border-radius: 0 0 0 0;
    opacity: 0;
    transition: var(--home-transition);
}

.tab-box:hover {
    box-shadow: var(--home-card-shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.tab-box:hover::before {
    opacity: 1;
    border-radius: 16px 16px 0 0;
}

.tab-box .title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tab-box .more-link {
    font-size: 13px;
    color: var(--home-primary);
    font-weight: 500;
    padding: 4px 12px;
    border: 1px solid var(--home-primary);
    border-radius: 20px;
    transition: var(--home-transition);
}

.tab-box .more-link:hover {
    background: var(--home-primary);
    color: #fff;
}

.tab-box .content .item {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: var(--home-transition);
}

.tab-box .content .item:last-child {
    border-bottom: none;
}

.tab-box .content .item:hover {
    padding-left: 8px;
}

.tab-box .content .item img {
    width: 28px;
    height: 28px;
    margin-right: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: var(--home-transition);
}

.tab-box .content .item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.tab-box .content .item .text {
    flex: 1;
}

.tab-box .content .item .text span {
    display: block;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* ========== 解决方案卡片 Method-item 增强 ========== */
/* 保留原始 style.css 中的白色卡片设计，仅增强细节 */
.canves_main .method-item {
    border-radius: 12px;
    transition: var(--home-transition);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.canves_main .method-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

/* ========== 代表项目卡片增强 ========== */
.canves_main .progrem-swiper .card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    height: 100%;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: var(--home-transition);
}

.canves_main .progrem-swiper .card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #e0e0e0;
}

.canves_main .progrem-swiper .card .title {
    font-size: 18px;
    font-weight: 700;
    /* color: #1a1a1a; */
    margin-bottom: 12px;
}

.canves_main .progrem-swiper .card .content .desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* ========== 定价卡片增强 ========== */
.canves_main .service-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: var(--home-transition);
    height: 100%;
}

.canves_main .service-item:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* 按钮样式优化 - 保持原始蓝色配色 */
.canves_main .service-item .top .ala-btn a:first-child {
    background-color: rgba(29, 79, 245, 1);
    color: #fff;
    border: 1px solid rgba(29, 79, 245, 1);
    transition: var(--home-transition);
}

.canves_main .service-item .top .ala-btn a:first-child:hover {
    background-color: rgba(20, 60, 210, 1);
    border-color: rgba(20, 60, 210, 1);
    box-shadow: 0 4px 14px rgba(29, 79, 245, 0.35);
}

.canves_main .service-item .top .ala-btn a:last-child {
    border: 1px solid rgba(29, 79, 245, 1);
    color: rgba(29, 79, 245, 1);
    background: transparent;
    transition: var(--home-transition);
}

.canves_main .service-item .top .ala-btn a:last-child:hover {
    background: rgba(29, 79, 245, 0.08);
}

.canves_main .service-item .bottom .info span {
    display: block;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.canves_main .service-item .bottom .info span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d4ff5'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* ========== 功能模块标签切换 & 列表增强 ========== */
/* 使用 max-height + opacity 实现平滑淡入淡出切换 */
.canves_main .index-list-wrap {
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.5s ease;
}

.canves_main .index-list-wrap.show {
    max-height: 8000px;
    opacity: 1;
}

/* 标签 */
.index-tag-list {
    text-align: center;
    margin-bottom: 36px;
}

.index-tag-list .ala-tag {
    display: inline-block;
    padding: 10px 32px;
    margin: 0 8px;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    cursor: pointer;
    transition: var(--home-transition);
    border: 2px solid transparent;
}

.index-tag-list .ala-tag:hover {
    color: var(--home-primary);
    background: rgba(212, 59, 53, 0.06);
}

.index-tag-list .ala-tag.active {
    background: var(--home-primary);
    color: #fff;
    border-color: var(--home-primary);
    box-shadow: 0 4px 16px rgba(212, 59, 53, 0.25);
    font-weight: 600;
}

/* ========== 功能列表增强 ========== */
.question-list {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--home-card-shadow);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}

.question-list .content.scrollbar-box {
    max-height: 600px;
    padding: 12px 0;
}

.question-list .item.ala-flex {
    padding: 16px 24px;
    border-bottom: 1px solid #f5f5f5;
    transition: var(--home-transition);
    cursor: default;
}

.question-list .item.ala-flex:last-child {
    border-bottom: none;
}

.question-list .item.ala-flex:hover {
    background: #fafafa;
}

.question-list .item .top .img-box .img {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(212, 59, 53, 0.08), rgba(212, 59, 53, 0.04));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--home-transition);
}

.question-list .item:hover .top .img-box .img {
    background: linear-gradient(135deg, rgba(212, 59, 53, 0.16), rgba(212, 59, 53, 0.08));
    transform: scale(1.05);
}

.question-list .item .top .img-box .img img {
    width: 24px;
    height: 24px;
}

.question-list .item .text {
    flex: 1;
    padding-left: 16px;
}

.question-list .item .text .title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.question-list .item .text .desc {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
}

/* ========== 合作伙伴增强 ========== */
.parter-wrap img {
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    box-shadow: var(--home-card-shadow);
    border: 1px solid rgba(0,0,0,0.04);
    width: 100%;
    height: auto;
    transition: var(--home-transition);
    filter: grayscale(30%);
    opacity: 0.85;
}

.parter-wrap img:hover {
    filter: grayscale(0%);
    opacity: 1;
    box-shadow: var(--home-card-shadow-hover);
    transform: translateY(-2px);
}

/* ========== FAQ 手风琴增强 ========== */
.slide-door {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--home-transition);
}

.slide-door:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.slide-door .accordion-title {
    padding: 20px 48px 20px 24px;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: var(--home-transition);
}

.slide-door .accordion-title::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 12px;
    height: 12px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transition: transform 0.3s ease;
}

.slide-door.active .accordion-title::after {
    transform: translateY(-50%) rotate(45deg);
}

.slide-door.active .accordion-title {
    color: var(--home-primary);
    background: rgba(212, 59, 53, 0.03);
}

.slide-door .accordion-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.slide-door.active .accordion-content {
    padding: 0 24px 20px;
    max-height: 2000px;
}

.slide-door .accordion-content p {
    color: #555;
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 8px;
}

.slide-door .accordion-content ul {
    padding-left: 20px;
    color: #555;
}

.slide-door .accordion-content li {
    line-height: 1.9;
    font-size: 15px;
}

/* ========== Footer - 保留原始紫色渐变样式，仅微调 ========== */
/* footer 原始样式在 style.css 中 (background: purple gradient + footer-bg.png)，此处不再覆盖 */

/* ========== 返回顶部按钮增强 ========== */
#button-to-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--home-primary);
    box-shadow: 0 4px 16px rgba(212, 59, 53, 0.35);
    transition: var(--home-transition);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#button-to-top:hover {
    background: var(--home-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 59, 53, 0.4);
}

#button-to-top i {
    color: #fff;
    font-size: 18px;
}

/* ========== 移动端汉堡包菜单修复 ========== */
/* 修复：header 半透明背景导致下拉菜单透过深色遮罩看不清 */
@media screen and (max-width: 991px) {
    /* 展开菜单时 header 变为完全不透明 */
    .site-mobile header {
        background-color: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 下拉菜单必须有不透明白色背景 */
    .site-mobile .header-nav .layui-nav {
        background: #fff !important;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    }

    /* 菜单项文字确保可读 */
    .site-mobile .header-nav .layui-nav .layui-nav-item > a {
        color: #333 !important;
        font-size: 16px;
        padding: 14px 24px !important;
        line-height: 1.4;
    }

    .site-mobile .header-nav .layui-nav .layui-nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    /* 当前/悬停项 */
    .site-mobile .header-nav .layui-nav .layui-nav-item.layui-this > a {
        color: var(--home-primary) !important;
        background: rgba(212, 59, 53, 0.05);
        font-weight: 600;
    }

    /* 子菜单 */
    .site-mobile .header-nav .layui-nav .layui-nav-child {
        background: #fafafa;
        border-top: 1px solid #f0f0f0;
    }

    .site-mobile .header-nav .layui-nav .layui-nav-child a {
        color: #555 !important;
        padding: 10px 36px !important;
        font-size: 14px;
    }
}

/* ========== 响应式优化 ========== */
@media screen and (max-width: 1199px) {
    .banner-text .title .fnt100 {
        font-size: 52px;
        letter-spacing: 4px;
    }
    .banner-text .title .fnt30 {
        font-size: 18px;
        letter-spacing: 3px;
    }
    .banner-text .sub-title {
        font-size: 17px;
    }
    .index_title .title-wrap h2 {
        font-size: 28px;
    }
    .block {
        padding: 56px 0;
    }
    .tab-box {
        padding: 28px 20px;
    }
    .method-item {
        padding: 24px 16px;
    }
}

@media screen and (max-width: 767px) {
    .banner-text .title .fnt100 {
        font-size: 36px;
        letter-spacing: 2px;
    }
    .banner-text .title .fnt30 {
        font-size: 14px;
        letter-spacing: 1px;
    }
    .banner-text .sub-title {
        font-size: 14px;
    }
    .index_title .title-wrap h2 {
        font-size: 24px;
    }
    .block {
        padding: 40px 0;
    }
    .tab-box {
        margin-bottom: 20px;
    }
    .service-item {
        margin-bottom: 20px;
    }
    .index-tag-list .ala-tag {
        padding: 8px 20px;
        margin: 4px;
        font-size: 13px;
    }
}

/* ========== 平滑滚动 ========== */
html {
    scroll-behavior: smooth;
}

/* ========== 滚动条美观 ========== */
.scrollbar-box::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-box::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.scrollbar-box::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
    transition: background 0.3s;
}

.scrollbar-box::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ========== 图片轮播增强 ========== */
.img-swiper .swiper-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--home-card-shadow-hover);
}

.img-swiper .swiper-slide .img img {
    border-radius: 16px;
    width: 100%;
}

.img-swiper .swiper-button-prev,
.img-swiper .swiper-button-next {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: var(--home-transition);
}

.img-swiper .swiper-button-prev:hover,
.img-swiper .swiper-button-next:hover {
    background: var(--home-primary);
    box-shadow: 0 6px 20px rgba(212, 59, 53, 0.3);
}

.img-swiper .swiper-button-prev::after,
.img-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.img-swiper .swiper-button-prev:hover::after,
.img-swiper .swiper-button-next:hover::after {
    color: #fff;
}
