/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', '微软雅黑', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* 关于区域 */
.about-section {
    margin-bottom: 50px;
}

.about-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.about-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 内容区域 */
.content-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .icon {
    font-size: 2.5rem;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.content-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.content-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.content-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 摄影作品网格 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.photo-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.photo-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.photo-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.photo-placeholder p {
    font-size: 1.2rem;
    font-weight: 500;
}

.photo-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.photo-date,
.photo-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 底部样式 */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.copyright {
    margin-bottom: 10px;
    opacity: 0.9;
}

.beian {
    font-size: 0.9rem;
}

.beian a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.beian a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .about-card {
        padding: 30px 20px;
    }

    .content-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 20px;
    }

    .logo {
        font-size: 1.8rem;
    }

    .about-card h2 {
        font-size: 1.5rem;
    }

    .about-card p {
        font-size: 1rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
}
