/**
 * 课程体系交互卡片样式
 * 凤凰县创博培训学校 - 官方网站
 */

/* ========================================
   课程卡片交互样式
   ======================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.1);
}

.course-card.featured {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid rgba(0, 102, 255, 0.2);
}

.course-card.featured:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #00d9ff, #0066ff);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.course-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.course-description {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.course-features li {
    color: #4a5568;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-features li::before {
    content: '✓';
    color: #48bb78;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* "了解更多"按钮样式 */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #0066ff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.learn-more-btn:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateX(5px);
}

.learn-more-btn .arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.learn-more-btn .arrow-icon.up {
    transform: rotate(180deg);
}

.learn-more-btn.active {
    color: #e53e3e;
}

/* 展开内容区域 */
.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.course-card.expanded .expand-content {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed rgba(0, 102, 255, 0.2);
}

.expand-content-inner {
    animation: fadeIn 0.4s ease;
}

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

/* 课程详情容器 */
.course-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* 课程图片占位区域 */
.course-image-placeholder {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed rgba(0, 102, 255, 0.3);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.course-image-placeholder p {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.placeholder-hint {
    color: #a0aec0;
    font-size: 0.85rem;
    font-style: italic;
}

/* 课程详情信息 */
.course-detail-info h4 {
    color: #1a202c;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.course-detail-info p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.detail-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-features li {
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-detail-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-image-placeholder {
        min-height: 250px;
    }
}

/* ========================================
   课程体系样式 - 图片展示 + 小卡片
   ======================================== */
.courses-single {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 5rem 0;
}

.courses-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 课程图片展示区 - 直接展示，不嵌套卡片 */
.course-images-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.course-gallery-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.course-gallery-img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.15);
}

/* 课程体系小卡片（仅一个实例） */
.course-mini-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 45px;
    border-left: 4px solid #00d9ff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 102, 255, 0.16);
}

.mini-card-header {
    background: linear-gradient(135deg, #00d9ff 0%, #0066ff 100%);
    padding: 18px 26px;
    color: white;
}

.mini-card-badge {
    font-size: 12px;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mini-card-title {
    font-size: 1.35rem;
    margin-top: 6px;
    font-weight: 700;
}

.mini-card-body {
    padding: 26px;
}

.mini-card-desc {
    color: #4a5568;
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 0.96rem;
}

.mini-card-list {
    list-style: none;
    margin-bottom: 22px;
}

.mini-card-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.95rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-card-list li:last-child {
    border-bottom: none;
}

/* 编程图形化小卡片网格 */
.programming-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.prog-card {
    background: white;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.prog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d9ff, #0066ff);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.prog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.14);
    border-color: rgba(0, 217, 255, 0.2);
}

.prog-card:hover::before {
    transform: scaleX(1);
}

.prog-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
}

.prog-title {
    font-size: 1.1rem;
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 8px;
}

.prog-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 14px;
}

.prog-link {
    color: #0066ff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.prog-link:hover {
    color: #00d9ff;
}

/* 按钮样式复用 */
.btn-course-action {
    display: inline-block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #00d9ff, #0066ff);
    color: white;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-course-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.35);
}

/* ========================================
   平滑过渡动画效果
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.45s ease-out forwards;
}

.course-images-gallery .fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.course-images-gallery .fade-in-up:nth-child(2) { animation-delay: 0.15s; }
.course-images-gallery .fade-in-up:nth-child(3) { animation-delay: 0.25s; }
.course-images-gallery .fade-in-up:nth-child(4) { animation-delay: 0.35s; }
.course-images-gallery .fade-in-up:nth-child(5) { animation-delay: 0.45s; }

.programming-cards-grid .fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.programming-cards-grid .fade-in-up:nth-child(2) { animation-delay: 0.15s; }
.programming-cards-grid .fade-in-up:nth-child(3) { animation-delay: 0.25s; }
.programming-cards-grid .fade-in-up:nth-child(4) { animation-delay: 0.35s; }
.programming-cards-grid .fade-in-up:nth-child(5) { animation-delay: 0.45s; }
.programming-cards-grid .fade-in-up:nth-child(6) { animation-delay: 0.55s; }

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

/* 页面切换过渡动画 */
.page-transition-enter {
    opacity: 0;
    transform: translateX(-15px);
}

.page-transition-enter-active {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-transition-enter-done {
    opacity: 1;
    transform: translateX(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .courses-single {
        padding: 3rem 0;
    }

    .course-gallery-img {
        border-radius: 10px;
    }

    .mini-card-body {
        padding: 20px 18px;
    }

    .programming-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .prog-card {
        padding: 22px 18px;
    }
}

/* ========================================
   底部优化样式
   ======================================== */

/* 联系方式 section 样式 */
.section.contact {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.1);
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-card h3 {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-card .contact-info {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-card .contact-time {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.contact-card .contact-phone {
    color: #0066ff;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin: 1rem 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card .contact-phone:hover {
    color: #0040cc;
    transform: scale(1.05);
}

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #e2e8f0;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d9ff;
}

.footer-section ul li::before {
    content: '▸';
    color: #00d9ff;
    margin-right: 0.5rem;
}

.footer-section ul li:first-child {
    margin-top: 0;
}

/* 联系方式区域优化 */
.contact-info-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-block h4 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info-block h4::before {
    content: '📍';
    font-size: 1.5rem;
}

.contact-info-block .school-name {
    color: #00d9ff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.contact-info-block .phone-number {
    color: #00d9ff;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin: 1rem 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-block .phone-number:hover {
    color: #00b8e6;
    transform: scale(1.05);
}

.contact-info-block .address {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 0.95rem;
    padding-left: 2.5rem;
    margin-top: 1rem;
}

.contact-info-block .map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d9ff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-block .map-link:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-block {
        padding: 1.25rem;
    }

    .contact-info-block .phone-number {
        font-size: 1.25rem;
    }

    /* 联系方式卡片移动端优化 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ========================================
   视觉增强效果
   ======================================== */

/* 课程卡片悬停动画增强 */
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d9ff, #0066ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover::before {
    transform: scaleX(1);
}

/* 按钮点击反馈 */
.btn-course:active {
    transform: scale(0.98);
}

/* 展开内容区域渐入动画 */
.expand-content-inner {
    animation: slideUp 0.4s ease-out;
}

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

/* ========================================
   课程卡片按钮样式
   ======================================== */
.btn-course {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00d9ff, #0066ff);
    color: white;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-course:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
    background: linear-gradient(135deg, #00c4e6, #005ce6);
}

.btn-course:active {
    transform: translateY(-1px);
}

/* ========================================
   友情链接（页脚内）样式
   ======================================== */
.friend-links-block {
    margin-top: 1.5rem;
}

.footer-links {
    list-style: none;
    margin-top: 0.75rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: #00d9ff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .friend-links-block {
        margin-top: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
}

/* ========================================
   在线咨询二维码样式
   ======================================== */
.wechat-qr-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.wechat-qr-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.2);
}

.qr-code {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.qr-text {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.qr-subtext {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .wechat-qr-card {
        padding: 1rem;
    }
    
    .qr-image {
        width: 100px;
        height: 100px;
    }
    
    .qr-text {
        font-size: 0.9rem;
    }
}
.text-gradient {
    background: linear-gradient(135deg, #00d9ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: #00d9ff;
    font-weight: 600;
}

/* 联系方式部分的小二维码样式 */
.qr-code-small {
    margin: 1.5rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-image-small {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 3px solid rgba(0, 217, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .qr-image-small {
        width: 100px;
        height: 100px;
    }
}

/* 联系方式卡片中的地图导航链接样式 */
.map-link-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0066ff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.map-link-contact:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateX(5px);
    color: #0040cc;
}
