/* 动漫社展示网站 - 主样式表 */
/* 设计风格：清新动漫风 */

:root {
    /* 主色调 - 动漫风格 */
    --primary-color: #FF6B9D;      /* 粉色 */
    --secondary-color: #4A90E2;    /* 蓝色 */
    --accent-color: #9C5BFF;       /* 紫色 */
    --light-color: #FFE6F2;        /* 浅粉背景 */
    --dark-color: #333333;         /* 深色文字 */
    --light-gray: #F5F5F5;         /* 浅灰背景 */
    --white: #FFFFFF;
    
    /* 字体 */
    --font-main: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    --font-title: 'STKaiti', 'KaiTi', serif;
    
    /* 动画 */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

/* 导航栏 */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-color);
}

.logo h1 {
    font-family: var(--font-title);
    font-size: 24px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--light-color);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--light-color), var(--white));
    padding: 120px 20px 80px;
    text-align: center;
    margin-top: 70px; /* 给固定导航栏留出空间 */
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-family: var(--font-title);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #666;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: var(--font-title);
}

/* 网格系统 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark-color);
    font-family: var(--font-title);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-title);
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .menu-toggle { display: block !important; }
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .hero h2 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 576px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2rem; }
    .section { padding: 50px 0; }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* 图片画廊样式 */
.gallery {
    display: grid;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 10px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* PDF预览样式 */
.pdf-preview {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: var(--light-gray);
}

.pdf-title {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.download-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--primary-color);
}