* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "SimSun", "STKaiti", "STXingkai", serif;
    background-color: #f9f7f1;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #8B0000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: color 0.3s;
}

.logo:hover {
    color: #a52a2a;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: #8B0000;
}

nav ul li a.active {
    color: #8B0000;
    font-weight: bold;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #8B0000;
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* 主页面样式 */
.main-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
    background-size: cover;
}

/* 通过内联样式设置动态背景图 */
.main-section.with-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), 
                var(--bg-image) no-repeat center center;
    background-size: cover;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #8B0000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.main-quote {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #8B0000;
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* 作品集样式 - */
.works-section {
    min-height: auto;
    padding: 80px 5% 60px;
    background-color: #fff;
}
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: #8B0000;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.works-container {
    max-width: 1200px;
    margin: 0 auto;
}

.works-category {
    margin-bottom: 60px;
}

.works-category:last-child {
    margin-bottom: 0;
}


.category-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #8B0000;
    border-left: 5px solid #8B0000;
    padding-left: 15px;
}

.category-title i {
    font-size: 24px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: fit-content;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.15);
    border-color: #8B0000;
}

.work-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(139, 0, 0, 0.7), rgba(139, 0, 0, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-view-btn {
    padding: 12px 30px;
    background: #fff;
    color: #8B0000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.work-card:hover .work-view-btn {
    transform: translateY(0);
}

.work-view-btn:hover {
    background: #f8f8f8;
    transform: scale(1.05);
}

.work-info {
    padding: 25px;
}

.work-name {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: bold;
    line-height: 1.4;
}

.work-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.work-date {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.work-date i {
    color: #8B0000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .work-image {
        height: 200px;
    }
    
    .work-info {
        padding: 20px;
    }
    
    .work-name {
        font-size: 18px;
    }
    
    .category-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .works-section {
        padding: 60px 20px 40px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .work-image {
        height: 180px;
    }
}

/* 联系页面样式 */
.contact-section {
    min-height: 100vh;
    padding: 100px 5% 80px;
    background-color: #f9f7f1;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    flex: 1;
    min-width: 300px;
    margin: 30px;
    text-align: center;
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
}

.contact-icon {
    font-size: 50px;
    color: #8B0000;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.bilibili-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: #8B0000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 18px;
}

.bilibili-link:hover {
    background-color: #a52a2a;
}

.qrcode {
    width: 200px;
    height: 200px;
    background-color: #f0f0f0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
}

.qrcode::before {
    content: '微信公众号二维码';
    color: #666;
    font-size: 16px;
}

/* 作品详情页样式 */


/* 分类和标签页面样式 */
.taxonomy-page, .terms-page {
    min-height: 100vh;
    padding: 120px 5% 80px;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: #8B0000;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.page-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 30px auto 0;
}

/* 分类/标签云样式 */
.terms-cloud {
    text-align: center;
    margin-top: 40px;
}

.term-tag {
    display: inline-block;
    margin: 8px 12px;
    padding: 8px 20px;
    background-color: #f9f7f1;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    font-size: 16px;
}

.term-tag:hover {
    background-color: #8B0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.2);
}

.term-count {
    font-size: 14px;
    color: #999;
    margin-left: 5px;
}

.term-tag:hover .term-count {
    color: #fff;
}

/* 作品图片占位符 */
.work-img-placeholder {
    width: 100%;
    height: 200px;
    background-color: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 48px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 16px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.separator {
    margin: 0 10px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .work-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .work-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    .work-detail-section {
        padding: 100px 20px 60px;
    }
    
    .work-title {
        font-size: 30px;
    }
    
    .work-actions {
        flex-direction: column;
    }
    
    .contact-item {
        height: auto;
        min-height: 350px;
    }
    
    .main-quote {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .works-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    nav ul li a {
        font-size: 16px;
    }
    
    .main-quote {
        font-size: 20px;
    }
    
    .logo-circle {
        width: 120px;
        height: 120px;
    }
    
    .works-list {
        grid-template-columns: 1fr;
    }
    
    .work-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .work-date {
        margin-bottom: 10px;
    }
}