:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #e75480; /* 玫红色 */
    --background-color: #000;
    --text-color: #fff;
    --title-color: #f5f5f5; /* 添加浅灰色变量 */
    --font-english: 'Montserrat', sans-serif; /* 添加英文字体变量 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--accent-color); /* 改为玫红色 */
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    font-family: var(--font-english);
}

.nav-links a:hover {
    opacity: 0.8;
}

/* 作品分类区样式 */
.categories {
    padding: 6rem 2rem;
    background: var(--background-color);
    max-width: 1800px; /* 增加最大宽度 */
    margin: 0 auto;
}

.section-header {
    text-align: left;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.section-header h2 {
    font-size: 6rem;
    color: var(--title-color);
    margin-bottom: 1.5rem;
    font-weight: 600; /* 改为Semi-Bold */
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
    font-family: var(--font-english);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 600px; /* 限制文本宽度 */
}

.divider {
    height: 1px;
    background: var(--accent-color);
    width: 100%;
    margin: 3rem 0;
    opacity: 0.5;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
}

.category-item {
    position: relative;
    aspect-ratio: 0.75;
    overflow: hidden;
    border: 1px solid var(--accent-color);
    background: #000;
    cursor: pointer;
    transition: box-shadow 0.4s, border-color 0.4s, transform 0.4s;
}

.category-content {
    position: relative;
    height: 100%;
    width: 100%;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
    z-index: 3;
    transition: none;
    will-change: opacity;
}

.category-text h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: var(--font-english);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.category-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.category-item:hover {
    box-shadow: 0 8px 32px 0 rgba(231, 84, 128, 0.25), 0 1.5px 8px 0 rgba(0,0,0,0.15);
    border-color: #fff;
    z-index: 2;
    transform: translateY(-6px) scale(1.03);
}

.category-item:hover .category-image {
    filter: brightness(1.15) saturate(1.2);
    transform: scale(1.13);
}

.category-item:hover .category-text h3 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(231,84,128,0.18);
}

.category-item:hover .category-text p {
    color: #fff;
    opacity: 1;
}

/* 更新响应式设计 */
@media (max-width: 1600px) {
    .categories {
        max-width: 1400px;
    }
    .category-grid {
        gap: 1rem;
    }
}

@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .section-header h2 {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
    .categories {
        padding: 4rem 1rem;
    }
    .section-header h2 {
        font-size: 3rem;
    }
    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* 轮播区域样式优化 */
.swiper-section {
    padding: 0;
    margin-top: 60px;
    background: var(--background-color); /* 改为黑色背景 */
    width: 100%;
    overflow: hidden;
}

.swiper {
    width: 100%;
    margin: 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    height: calc(100vh - 60px);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* 轮播按钮样式优化 */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color); /* 改为玫红色 */
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

/* 分页器样式更新 */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--accent-color); /* 改为玫红色 */
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* 页脚样式更新 */
.footer {
    background: var(--background-color);
    padding: 6rem 2rem;
    color: var(--text-color);
}

.footer-title {
    max-width: 1800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.footer-title h2 {
    font-size: 6rem;
    color: var(--title-color);
    font-weight: 600; /* 改为Semi-Bold */
    letter-spacing: -1px;
    line-height: 1;
    text-transform: uppercase;
    font-family: var(--font-english);
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative; /* 添加相对定位 */
}

.contact-row {
    display: flex;
    justify-content: flex-start; /* 改为左对齐 */
    align-items: flex-start;
    gap: 6rem; /* 调整间距 */
    max-width: 800px; /* 限制内容区域宽度 */
}

.contact-emails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-item {
    display: flex;
    align-items: center;
}

.email-item i, .spacer {
    width: 2rem; /* 固定宽度确保对齐 */
    color: var(--accent-color);
    font-size: 1.2rem;
}

.email-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-family: var(--font-english);
    letter-spacing: -0.5px; /* 微调字间距确保对齐 */
}

.location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.2rem;
    opacity: 0.8;
}

.location i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.location span {
    font-family: var(--font-english);
    letter-spacing: -0.5px;
}

.footer-right .qr-code {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.footer-bottom {
    max-width: 1800px;
    margin: 4rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
    font-family: var(--font-english);
}

/* 响应式设计更新 */
@media (max-width: 1200px) {
    .footer-title h2 {
        font-size: 4.5rem;
    }
    .wechat-section {
        position: static; /* 在小屏幕上取消绝对定位 */
        margin-top: 3rem;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-title h2 {
        font-size: 3rem;
        text-align: center;
    }

    .contact-row {
        align-items: center; /* 在移动端居中显示 */
    }
    
    .wechat-section {
        width: 150px;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .footer-title h2 {
        font-size: 2rem;
    }
}

/* 更新右侧区域样式 */
.wechat-section {
    position: absolute;
    right: 4rem; /* 往左移动一些 */
    top: -140px; /* 往上移动，使底部对齐邮箱 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.chat-text {
    color: var(--accent-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: lowercase;
    font-family: var(--font-english);
}

.qr-code {
    width: 180px; /* 稍微增加二维码大小 */
    height: 180px;
    object-fit: contain;
}

/* 更新响应式设计 */
@media (max-width: 1400px) { /* 增加一个断点 */
    .wechat-section {
        right: 2rem;
        top: -120px;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 1200px) {
    .wechat-section {
        position: static;
        margin-top: 3rem;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.category-link:hover {
    color: inherit;
}

/* 移除对.category-content的悬停transform效果（如有） */
.category-item:hover .category-content {
    /* 不做transform */
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
} 