/* AIGC课程招生网站样式 - 高端科技感 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* 导航栏样式 */
#mainNav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s;
}

#mainNav.scrolled {
    background: rgba(15, 23, 42, 0.98);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero区域样式 */
.hero-section {
    padding-top: 76px;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-icon {
    font-size: 200px;
    color: rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

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

/* 通用区块样式 */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* 课程卡片样式 */
.course-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.course-card-header {
    background: var(--gradient-primary);
    padding: 30px;
    color: #fff;
    text-align: center;
}

.course-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.course-price {
    font-size: 2rem;
    font-weight: 800;
}

.course-card-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.course-info i {
    width: 30px;
    color: var(--primary-color);
}

.course-btn {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    transition: all 0.3s;
}

.course-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* 作品卡片样式 */
.works-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 30px;
}

.works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.works-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s;
}

.works-card:hover img {
    transform: scale(1.05);
}

.works-card-body {
    padding: 20px;
}

.works-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.works-card-type {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* 新闻卡片样式 */
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 联系信息样式 */
.contact-info {
    background: var(--dark-surface);
    border-radius: 20px;
    padding: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* 底部样式 */
.footer {
    background: var(--dark-bg);
    padding: 60px 0 30px;
    color: var(--text-primary);
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-qrcode img {
    max-width: 120px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 悬浮按钮样式 */
.floating-service,
.floating-share {
    position: fixed;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

.floating-service {
    bottom: 150px;
    background: var(--gradient-primary);
}

.floating-share {
    bottom: 220px;
    background: var(--gradient-accent);
}

.floating-service:hover,
.floating-share:hover {
    transform: scale(1.1);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 80px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark-surface);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* 客服弹窗样式 */
.service-icon {
    font-size: 5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

/* 校区卡片样式 */
.school-card {
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
}

.school-card:hover,
.school-card.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.school-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.school-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 表单样式 */
.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px 20px;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* 按钮样式 */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* 响应式适配 */
@media (max-width: 991.98px) {
    .hero-icon {
        font-size: 100px;
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-service,
    .floating-share,
    .back-to-top {
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .back-to-top {
        bottom: 50px;
    }
    
    .floating-service {
        bottom: 120px;
    }
    
    .floating-share {
        bottom: 180px;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        min-height: auto;
        padding: 60px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .contact-info {
        padding: 30px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== 首屏数据背书条 ==================== */
.stat-strip {
    background: var(--dark-bg);
    padding: 50px 0;
}

.stat-item {
    text-align: center;
    color: var(--text-primary);
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ==================== 为什么选我们 ==================== */
.adv-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.adv-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.adv-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.adv-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0;
}

/* ==================== 课程卡片增强 ==================== */
.course-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f1f3f5;
}

.course-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.course-badge-inline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 10px;
}

.course-origin {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 8px;
}

.course-btn-ghost {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* 按钮行钉在卡片底部，保证多张卡片按钮水平对齐 */
.course-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.course-actions .course-btn {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    padding-left: 10px;
    padding-right: 10px;
}

.course-btn-ghost:hover {
    background: var(--primary-color);
    color: #fff;
}

.course-detail {
    color: #334155;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* ==================== 作品学员标签 ==================== */
.works-card-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    padding: 3px 10px;
}

/* ==================== 师资卡片 ==================== */
.teacher-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.teacher-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.teacher-avatar-empty {
    height: 220px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #94a3b8;
}

.teacher-card-body {
    padding: 20px;
}

.teacher-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.teacher-title {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.teacher-intro {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== 学员评价卡片 ==================== */
.tst-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.tst-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tst-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tst-head img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.tst-avatar-empty {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tst-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.tst-job {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.tst-content {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ==================== 报名紧迫感与权益 ==================== */
.urgency-box {
    background: rgba(236, 72, 153, 0.08);
    border-left: 4px solid var(--accent-color);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.urgency-line {
    font-size: 0.95rem;
    color: #be185d;
    margin-bottom: 6px;
}

.urgency-line:last-child {
    margin-bottom: 0;
}

.urgency-line i {
    margin-right: 8px;
}

.benefit-box {
    background: rgba(99, 102, 241, 0.06);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.benefit-box li {
    font-size: 0.92rem;
    color: #334155;
    padding: 3px 0;
}

.benefit-box i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* ==================== FAQ 侧栏咨询卡 ==================== */
.faq-aside {
    background: #fff;
    border-radius: 20px;
    padding: 22px 30px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: sticky;
    top: 100px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-aside-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.faq-aside h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.faq-aside p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.faq-aside-actions {
    margin-top: auto;
}

.faq-aside .course-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

.faq-aside .course-btn:last-child {
    margin-bottom: 0;
}

.faq-num {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 2px 10px;
    margin-right: 12px;
    flex-shrink: 0;
}

.accordion-button:not(.collapsed) .faq-num {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 991.98px) {
    .faq-aside {
        position: static;
    }
}

/* ==================== 移动端底部固定转化条 ==================== */
.mobile-cta-bar {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-cta-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 998;
        background: #fff;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
        display: flex;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    }

    .mcta-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 0;
        border: none;
        background: transparent;
        color: #475569;
        font-size: 0.75rem;
        text-decoration: none;
        border-radius: 10px;
    }

    .mcta-item i {
        font-size: 1.2rem;
    }

    .mcta-primary {
        background: var(--gradient-primary);
        color: #fff;
        font-weight: 600;
    }

    /* 底栏占位，避免遮挡页脚最后一行 */
    body {
        padding-bottom: 68px;
    }

    /* 移动端三个悬浮圆点上移，避开底部转化条 */
    .floating-service {
        bottom: 150px;
    }

    .floating-share {
        bottom: 215px;
    }

    .back-to-top {
        bottom: 85px;
    }

    .stat-num {
        font-size: 1.8rem;
    }
}
