/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    color: #6c5ce7;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #6c5ce7;
}

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #fd79a8;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(253,121,168,0.3);
}

/* 介绍部分 */
.intro {
    padding: 80px 0;
    background: white;
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.intro-avatar {
    text-align: center;
}

.avatar {
    font-size: 8rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(108,92,231,0.3);
}

/* 技术栈部分 */
.tech-stack {
    padding: 80px 0;
    background: #f8f9fa;
}

.tech-stack h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: white;
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.tech-card p {
    color: #666;
}

/* 最新文章部分 */
.recent-articles {
    padding: 80px 0;
    background: white;
}

.recent-articles h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.article-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}

.article-content {
    padding: 1.5rem;
}

.article-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.article-content p {
    color: #666;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-meta span {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category {
    background: #e3f2fd;
    color: #1976d2;
}

.date {
    background: #f3e5f5;
    color: #7b1fa2;
}

.read-time {
    background: #e8f5e8;
    color: #388e3c;
}

.view-more {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #6c5ce7;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s;
}

.view-more-btn:hover {
    background: #5f4fcf;
}

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-filters {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #6c5ce7;
    background: transparent;
    color: #6c5ce7;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #6c5ce7;
    color: white;
}

.articles-list {
    padding: 3rem 0;
}

/* 课程详情页样式 */
.course-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.breadcrumb {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.course-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.course-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.course-content {
    padding: 3rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.course-overview,
.course-curriculum {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.course-overview h3,
.course-curriculum h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.course-overview h4 {
    color: #007bff;
    margin: 1.5rem 0 1rem 0;
}

.course-overview ul {
    padding-left: 1.5rem;
}

.course-overview li {
    margin-bottom: 0.5rem;
}

.curriculum-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.curriculum-header {
    background: #f8f9fa;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.curriculum-content {
    padding: 1rem;
    display: none;
}

.curriculum-content.active {
    display: block;
}

.lesson-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.lesson-item:last-child {
    border-bottom: none;
}

.sidebar .course-card {
    position: sticky;
    top: 90px;
}

.course-price .price {
    font-size: 2rem;
    color: #ff6b6b;
    font-weight: bold;
}

.enroll-btn {
    width: 100%;
    padding: 1rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 1rem 0;
    transition: background 0.3s;
}

.enroll-btn:hover {
    background: #ff5252;
}

.course-includes {
    margin-top: 1.5rem;
}

.course-includes h4 {
    margin-bottom: 1rem;
    color: #333;
}

.course-includes ul {
    list-style: none;
}

.course-includes li {
    padding: 0.3rem 0;
    color: #666;
}

/* 页脚 */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
}/*
 文章详情页样式 */
.article-hero {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 60px 0;
}

.breadcrumb {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.article-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-content {
    padding: 3rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.article-body {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.article-body h2 {
    color: #333;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

.article-body h3 {
    color: #6c5ce7;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #555;
}

.article-body code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.article-body pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-tags {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.article-tags h4 {
    margin-bottom: 1rem;
    color: #333;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #6c5ce7;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
}

.toc-card,
.related-articles {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: sticky;
    top: 90px;
}

.toc-card h4,
.related-articles h4 {
    margin-bottom: 1rem;
    color: #333;
}

.toc a {
    display: block;
    padding: 0.3rem 0;
    color: #666;
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s;
}

.toc a:hover {
    color: #6c5ce7;
    border-left-color: #6c5ce7;
}

.related-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.related-item a:hover {
    color: #6c5ce7;
}

.related-item .related-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
}

/* 关于页面样式 */
.about-hero {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.avatar-large {
    font-size: 10rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-details {
    padding: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skills-list {
    margin-top: 1.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.skill-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.learning-timeline {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
}

.learning-timeline h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #6c5ce7;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #6c5ce7;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #6c5ce7;
}

.timeline-date {
    color: #6c5ce7;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
}

.contact-icon {
    font-size: 2rem;
}

.contact-text h4 {
    color: #333;
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: #666;
}
/* 关于页面样式
 */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.avatar-large {
    font-size: 4rem;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-details {
    padding: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.detail-card h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
}

.learning-timeline {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
}

.learning-timeline h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, #667eea);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #007bff;
}

.timeline-date {
    color: #007bff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #333;
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 - 关于页面 */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-card {
        padding: 2rem;
    }
    
    .learning-timeline {
        padding: 2rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}