/* ============================================
   昆极生物 - 主样式表
   ============================================ */

/* 基础重置 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #7c3aed;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   头部导航
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(59, 130, 246, 0.015) 2px,
            rgba(59, 130, 246, 0.015) 4px
        );
    pointer-events: none;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 100px;
    position: relative;
    z-index: 1;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 10px 24px !important;
    border-radius: 6px;
    font-weight: 600;
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-contact::after {
    display: none !important;
}

.btn-login {
    background: transparent;
    color: var(--primary-color) !important;
    padding: 8px 0 !important;
    border: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.btn-login:hover {
    color: var(--primary-dark) !important;
    transform: none;
}

.btn-login::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.btn-login:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   轮播区域
   ============================================ */
.hero-slider {
    position: relative;
    margin-top: 108px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    text-align: center;
    color: var(--bg-white);
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--bg-white);
    transform: scale(1.2);
}

/* ============================================
   关于我们简介区域
   ============================================ */
.intro-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.intro-text > p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.intro-list {
    margin-bottom: 40px;
}

.intro-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.intro-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 12px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.placeholder-text {
    font-size: 1.25rem;
}

/* ============================================
   核心服务区域
   ============================================ */
.services-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--bg-white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ============================================
   CTA区域
   ============================================ */
.cta-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cta-content {
    text-align: center;
    color: var(--bg-white);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: var(--text-light);
}

.footer-bottom a:hover {
    color: var(--bg-white);
}

.beian-img {
    height: 16px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

/* ============================================
   子页面通用样式
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    padding: 120px 0 100px;
    text-align: center;
    border: none;
    border-radius: 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-content {
    padding: 40px 0;
}

.page-content h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.page-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.page-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* 服务详情页样式 */
.service-detail {
    padding: 40px 0;
}

.service-item {
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.service-item:nth-child(even) {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
}

.service-item h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.service-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 案例网格 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 3rem;
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    margin-bottom: 12px;
}

.case-content p {
    margin-bottom: 20px;
}

.case-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--bg-light);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 课程列表 */
.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.course-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.course-card h3 {
    margin-bottom: 12px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 联系表单 */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.info-content p {
    color: var(--text-gray);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .intro-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
    }

    .btn-contact {
        text-align: center;
        margin-top: 10px;
    }

    .slider-container {
        height: 500px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .intro-content {
        grid-template-columns: 1fr;
    }

    .intro-image {
        order: -1;
    }

    .image-placeholder {
        height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 400px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .intro-section,
    .services-section,
    .page-content {
        padding: 60px 0;
    }

    .service-item {
        padding: 24px;
    }
}

/* 平滑滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   课程系统 - 认证页面
   ============================================ */
.auth-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-gray);
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form-container {
    padding: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-full {
    width: 100%;
}

.auth-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.auth-message.success {
    display: block;
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.auth-message.error {
    display: block;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ============================================
   课程系统 - Dashboard
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
}

.dashboard-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.user-info-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--bg-white);
}

.user-info-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.user-email {
    color: var(--text-light);
    font-size: 0.7rem;
    margin-bottom: 0;
}

.user-balance {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.balance-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.balance-amount {
    font-size: 0.95rem;
    font-weight: 700;
}

.dashboard-nav {
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-nav li {
    border-bottom: 1px solid var(--border-color);
}

.dashboard-nav li:last-child {
    border-bottom: none;
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dashboard-main {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.dashboard-section h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.dashboard-section {
    margin-bottom: 16px;
}

/* 充值选项 */
.recharge-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.recharge-amount {
    padding: 10px 20px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.recharge-amount:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.recharge-amount.popular {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.popular-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: var(--bg-white);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.recharge-custom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-prefix {
    padding: 8px 12px;
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.input-group input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    font-size: 0.9rem;
}

.input-group input:focus {
    outline: none;
}

/* 我的课程 */
.my-courses-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-course-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.my-course-card:hover {
    background-color: var(--bg-gray);
}

.my-course-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1rem;
    flex-shrink: 0;
}

.my-course-info {
    flex: 1;
}

.my-course-info h3 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.my-course-info p {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.my-course-meta {
    display: flex;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-gray);
}

.empty-state a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================
   课程系统 - AI课程列表页
   ============================================ */
.ai-courses-header {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
}

.user-bar {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--bg-white);
    font-size: 1rem;
}

.btn-user-bar {
    padding: 8px 24px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-user-bar:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.ai-courses-intro {
    text-align: center;
    margin-bottom: 50px;
}

.ai-courses-intro h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.ai-courses-intro p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.ai-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.ai-course-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.ai-course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ai-course-header {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    padding: 40px 30px;
    position: relative;
    text-align: center;
}

.ai-course-icon-bg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--bg-white);
}

.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ai-course-body {
    padding: 24px;
}

.ai-course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.course-tag {
    padding: 4px 12px;
    background-color: var(--bg-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.ai-course-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.ai-course-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.ai-course-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.ai-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-course-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ============================================
   课程系统 - 学习页面
   ============================================ */
.learn-header {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    color: var(--bg-white);
    padding: 120px 0 40px;
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: inline-block;
}

.back-link:hover {
    color: var(--bg-white);
}

.learn-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.learn-header p {
    opacity: 0.9;
}

.learn-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: calc(100vh - 200px);
}

.learn-sidebar {
    background-color: var(--bg-light);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: calc(100vh - 160px);
}

.sidebar-header {
    padding: 20px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.1rem;
}

.sidebar-header span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.chapter-list {
    padding: 10px;
}

.chapter-item {
    margin-bottom: 4px;
}

.chapter-title {
    padding: 12px 16px;
    background-color: var(--bg-white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.chapter-title:hover {
    background-color: #e0e7ff;
}

.chapter-icon {
    font-size: 1.1rem;
}

.chapter-text {
    flex: 1;
}

.chapter-toggle {
    font-size: 0.8rem;
    color: var(--text-light);
}

.lesson-list {
    display: none;
    padding: 8px 0 8px 16px;
}

.lesson-list.open {
    display: block;
}

.lesson-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lesson-item:hover {
    background-color: #e0e7ff;
}

.lesson-item.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.lesson-type-icon {
    font-size: 0.9rem;
}

.lesson-name {
    flex: 1;
}

.lesson-duration {
    font-size: 0.8rem;
    color: var(--text-light);
}

.lesson-item.active .lesson-duration {
    color: rgba(255, 255, 255, 0.8);
}

.learn-main {
    padding: 40px;
    max-width: 900px;
}

.lesson-content {
    margin-bottom: 30px;
}

.lesson-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.lesson-placeholder h2 {
    margin-bottom: 12px;
    color: var(--text-gray);
}

.lesson-display {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.lesson-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.lesson-video-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.lesson-display h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.lesson-meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.lesson-text h3 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.lesson-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.lesson-text ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.lesson-text ul li {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 8px;
}

.lesson-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.lesson-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.access-denied {
    text-align: center;
    padding: 80px 20px;
}

.access-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.access-buttons {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   响应式 - 课程系统
   ============================================ */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }

    .learn-layout {
        grid-template-columns: 1fr;
    }

    .learn-sidebar {
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .ai-courses-grid {
        grid-template-columns: 1fr;
    }

    .recharge-options {
        justify-content: center;
    }

    .recharge-amount {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .my-course-card {
        flex-direction: column;
        text-align: center;
    }

    .my-course-footer {
        width: 100%;
    }

    .lesson-video-placeholder {
        height: 200px;
    }

    .lesson-display {
        padding: 20px;
    }

    .learn-main {
        padding: 20px;
    }
}

/* ============================================
   科技服务页面样式
   ============================================ */
.service-hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 80px;
    min-height: 250px;
    display: flex;
    align-items: center;
    position: relative;
}

.service-hero-overlay {
    width: 100%;
    padding: 40px 0;
    background-color: rgba(0, 0, 0, 0.55);
    color: var(--bg-white);
    text-align: center;
}

.service-hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-hero-overlay p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.services-full-section {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-block-reverse .service-block-image {
    order: 2;
}

.service-block-reverse .service-block-content {
    order: 1;
}

.service-block-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.service-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-block:hover .service-block-image img {
    transform: scale(1.05);
}

.service-block-content {
    padding: 40px;
}

.service-block-content h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.service-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin-bottom: 24px;
}

.service-block-content > p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.service-sub-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.service-sub-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
    cursor: default;
}

.service-sub-item:hover {
    background-color: #e0e7ff;
    transform: translateX(5px);
}

.service-sub-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* 客户区域 */
.customers-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.customer-item {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    height: 120px;
}

.customer-item:hover {
    background-color: var(--bg-gray);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.customer-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* 服务CTA区域 */
.service-cta-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-cta-content {
    text-align: center;
    color: var(--bg-white);
}

.service-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ============================================
   响应式 - 科技服务页面
   ============================================ */
@media (max-width: 1024px) {
    .service-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-block-image {
        min-height: 300px;
    }

    .service-block-reverse .service-block-image {
        order: unset;
    }

    .service-block-reverse .service-block-content {
        order: unset;
    }
}

@media (max-width: 768px) {
    .service-hero-overlay h1 {
        font-size: 2rem;
    }

    .service-hero-overlay p {
        font-size: 1rem;
    }

    .service-block-content {
        padding: 24px;
    }

    .service-block-content h3 {
        font-size: 1.5rem;
    }

    .service-sub-items {
        grid-template-columns: 1fr;
    }

    .customers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-cta-content h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   BaaS 页面样式
   ============================================ */
.baas-section {
    padding: 0 0;
}

.baas-block {
    padding: 40px 0;
    background-color: var(--bg-white);
}

.baas-block-alt {
    background-color: var(--bg-light);
}

.baas-block-content {
    max-width: 1200px;
    margin: 0 auto;
}

.baas-category-header {
    text-align: center;
    margin-bottom: 48px;
}

.baas-category-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.baas-category-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.baas-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.baas-service-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.baas-block-alt .baas-service-card {
    background-color: var(--bg-white);
}

.baas-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.baas-service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-left: auto;
    margin-right: auto;
}

.baas-service-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.baas-service-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* BaaS 页面响应式 */
@media (max-width: 768px) {
    .baas-section {
        padding: 40px 0;
    }

    .baas-block {
        padding: 40px 0;
    }

    .baas-category-header h2 {
        font-size: 1.5rem;
    }

    .baas-services-grid {
        grid-template-columns: 1fr;
    }

    .baas-service-card {
        padding: 24px;
    }

    .baas-service-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
}