* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
}

/* 全局容器样式 */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部标题栏样式 */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 3px solid #ff6b6b;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.site-title {
    font-size: 2rem;
    color: #ff6b6b;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(255, 107, 107, 0.2);
    letter-spacing: 1px;
}

.top-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.top-nav ul li a {
    text-decoration: none;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
}

.top-nav ul li a:hover {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 20px;
    }
    
    nav ul li a {
        font-size: 0.8rem;
    }
}

main {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 16px;
    border: 2px solid rgba(255, 107, 107, 0.1);
}

.intro h2 {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.1);
}

.intro p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 35px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    text-decoration: none;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-links a:hover {
    color: #ff6b6b;
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.blog {
    max-width: 800px;
    margin: 0 auto;
}

.blog h2 {
    font-size: 1.8rem;
    color: #ff6b6b;
    margin-bottom: 40px;
    font-weight: normal;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.1);
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

.post:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: normal;
}

.post h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.post h3 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

.post h3 a:hover {
    color: #ff6b6b;
}

.post h3 a:hover::after {
    width: 100%;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-read-more:hover {
    background-color: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

.blog-more {
    text-align: center;
    margin-top: 40px;
}

.blog-more .btn {
    display: inline-block;
    width: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .btn {
    min-width: 40px;
    text-align: center;
}

/* 单个文章页面样式 */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blog-post h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-post .post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-post .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #999;
}

.post-content {
    margin-bottom: 40px;
}

.post-content p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 30px 0 15px;
}

.post-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.post-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

/* 代码块样式 */
.post-content pre {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #ff6b6b;
}

.post-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #333;
}

/* 上下篇导航 */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.prev-post,
.next-post {
    flex: 1;
}

.prev-post a,
.next-post a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.prev-post a:hover,
.next-post a:hover {
    color: #ff6b6b;
}

.prev-post span:first-child,
.next-post span:first-child {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
    display: block;
}

/* 评论区 */
.comments {
    margin-top: 60px;
}

.comments h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
}

.comment-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.comment-form h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* 直播流样式 */
.live-stream {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.1);
}

.live-stream h2 {
    font-size: 2.2rem;
    color: #ff6b6b;
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.2);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.live-stream h2::before,
.live-stream h2::after {
    content: '';
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
}

.live-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(255, 107, 107, 0.2);
}

.live-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 107, 107, 0.4);
}

.live-container iframe {
    width: 100%;
    height: 480px;
    display: block;
}

.live-description {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.live-buttons {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.live-buttons .btn {
    display: inline-block;
    width: auto;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: #ff6b6b;
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35);
    min-width: 180px;
}

.live-buttons .btn:hover {
    background-color: #ff5252;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.45);
}

.live-buttons .btn.secondary {
    background-color: #00f2ea;
    box-shadow: 0 6px 20px rgba(0, 242, 234, 0.35);
    color: #000;
}

.live-buttons .btn.secondary:hover {
    background-color: #00d9d1;
    box-shadow: 0 8px 25px rgba(0, 242, 234, 0.45);
    color: #000;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .top-nav ul {
        gap: 15px;
    }
    
    .top-nav ul li a {
        font-size: 0.8rem;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    main {
        margin: 30px 0;
        gap: 30px;
    }
    
    .intro h2 {
        font-size: 1.5rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .blog h2,
    .projects h2 {
        font-size: 1.4rem;
    }
    
    .post {
        padding: 20px;
    }
    
    .post h3 {
        font-size: 1.1rem;
    }
    
    .project {
        padding: 20px;
    }
    
    .project h3 {
        font-size: 1.1rem;
    }
    
    .live-stream {
        padding: 30px 15px;
    }
    
    .live-stream h2 {
        font-size: 1.5rem;
    }
    
    .live-container {
        max-width: 100%;
    }
    
    .live-container iframe {
        height: 300px;
    }
    
    .live-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .live-container iframe {
        height: 200px;
    }
}

.comment-list {
    margin-top: 30px;
}

.comment-list h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

.comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.comment-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-header h5 {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.comment-header span {
    font-size: 0.8rem;
    color: #999;
}

.comment-content p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-post {
        padding: 30px;
        margin: 0 20px;
    }
    
    .blog-post h2 {
        font-size: 1.6rem;
    }
    
    .blog-post .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-content p {
        font-size: 1rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
    }
    
    .post-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .comment {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-post {
        padding: 20px;
        margin: 0 15px;
    }
    
    .blog-post h2 {
        font-size: 1.4rem;
    }
    
    .comment-form {
        padding: 20px;
    }
}

.projects {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.projects h2 {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 50px;
    font-weight: 600;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.1);
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.2);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .project-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project {
    background-color: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 107, 0.1);
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffd166);
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.project-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    text-align: center;
}

.project h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.project h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.project h3 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

.project h3 a:hover {
    color: #ff6b6b;
}

.project h3 a:hover::after {
    width: 100%;
}

.project p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.tech-tag {
    background-color: #f8f9fa;
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tech-tag:hover {
    background-color: #ff6b6b;
    color: #fff;
    transform: scale(1.08);
    border-color: #ff6b6b;
}

.project-status {
    text-align: center;
    margin-bottom: 25px;
}

.status {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.status.active {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status.completed {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn:not(.secondary) {
    background-color: #ff6b6b;
    color: #fff;
}

.btn:not(.secondary):hover {
    background-color: #ff5252;
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}

.btn.secondary {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn.secondary:hover {
    background-color: #e0e0e0;
    color: #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

footer p {
    font-size: 0.9rem;
    color: #999;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 20px;
    }
    
    nav ul li a {
        font-size: 0.8rem;
    }
    
    main {
        margin: 40px 0;
        gap: 40px;
    }
    
    .intro h2 {
        font-size: 1.5rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .blog h2 {
        font-size: 1.4rem;
    }
    
    .projects h2 {
        font-size: 1.5rem;
    }
    
    .project-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project {
        padding: 25px;
    }
    
    .project-icon {
        font-size: 2.5rem;
    }
    
    .project h3 {
        font-size: 1.2rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .post {
        padding: 20px;
    }
    
    .post h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .post {
        padding: 15px;
    }
    
    .project {
        padding: 15px;
    }
}