/* Basic Style Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFB6C1; /* Light Pink */
    --secondary-color: #87CEEB; /* Sky Blue */
    --text-color: #5D4037; /* Dark Brown */
    --background-color: #FFF8F0; /* Cream White */
    --card-color: #FFFFFF; /* White */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-page {
    background-image: url('../images/背景图片.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 调整主页内容容器 */
.home-page .content-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center; /* 确保垂直居中 */
    min-height: 40vh; /* 进一步减小高度 */
    padding: 20px 0; /* 添加上下内边距 */
}

/* 调整主内容区域 */
.home-page .main-content {
    background-color: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    margin: 20px auto; /* 减少外边距 */
    padding: 25px; /* 减少内边距 */
    max-width: 95%;
    display: flex;
    align-items: center; /* 垂直居中 */
    min-height: 50vh; /* 设置合适的最小高度 */
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
}

.music-btn.playing {
    background: var(--secondary-color);
}

/* Navigation Bar */
.navbar {
    background-color: var(--card-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1.2rem;
    font-weight: 500; 
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 50px 20px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: 60vh;
}

.full-width {
    grid-column: 1 / -1;
}

/* Left Text Content */
.text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.main-btn, .secondary-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-btn {
    background: var(--primary-color);
    color: white;
}

.secondary-btn {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.main-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Right Image Area */
.image-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-placeholder p {
    margin: 5px 0;
    font-size: 1.1rem;
}

/* About Page Styles */
.about-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--card-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.about-section li {
    margin: 8px 0;
}

.design-process {
    margin-top: 40px;
    text-align: center;
}

.design-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.design-button:hover {
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-link {
        font-size: 1.1rem; 
    }
    .content-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .text-content h1 {
        font-size: 2rem;
    }
    
    .main-btn, .secondary-btn {
        width: 200px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.4rem;
    }
    /* 调整主页透明框为更透明的效果 */
    .home-page .main-content {
        background-color: rgba(255, 248, 240, 0.3);
        backdrop-filter: blur(8px); /* 增加模糊效果让背景更柔和 */
        border-radius: 12px;
        margin: 15px auto;
        padding: 20px;
        max-width: 96%;
        display: flex;
        align-items: center;
        min-height: 55vh;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        border: 1px solid rgba(255, 255, 255, 0.2); /* 添加轻微边框增强层次感 */
    }
    
    .home-page .content-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 5px;
    }
    
    .home-page .text-content h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }
}

/* Activities Page Styles */
.page-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
}

.memory-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin: 40px 0;
    padding: 25px;
    background: var(--card-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-5px);
}

.memory-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder-small {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.memory-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.memory-date {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 15px;
    display: block;
}

.memory-content p {
    line-height: 1.7;
    color: #555;
}

/* Scenery Page Styles */
.scenery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.scenery-item {
    background: var(--card-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.scenery-item:hover {
    transform: translateY(-5px);
}

.scenery-image {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scenery-info {
    padding: 20px;
}

.scenery-info h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.scenery-date {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 12px;
    display: block;
}

.scenery-info p {
    line-height: 1.6;
    color: #555;
}

/* Scenery Page Styles - Card-based layout like activities */
.scenery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.scenery-card {
    background: var(--card-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scenery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.scenery-card .card-image {
    height: 200px;
    overflow: hidden;
}

.scenery-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scenery-card:hover .card-image img {
    transform: scale(1.05);
}

.scenery-card .card-content {
    padding: 20px;
}

.scenery-card .card-content h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.scenery-card .photo-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.scenery-card .card-date {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

/* Scenery Detail Modal Styles */
.scenery-detail {
    padding: 40px;
}

.scenery-detail .detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.scenery-detail .detail-header h2 {
    color: var(--text-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.scenery-detail .detail-date {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.scenery-detail .detail-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    color: #555;
}

.scenery-detail .detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.scenery-detail .detail-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.scenery-detail .detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.scenery-detail .detail-image:hover img {
    transform: scale(1.03);
}

/* Responsive Design for Scenery Page */
@media (max-width: 768px) {
    .scenery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .scenery-detail {
        padding: 25px;
    }
    
    .scenery-detail .detail-images {
        grid-template-columns: 1fr;
    }
    
    .scenery-detail .detail-header h2 {
        font-size: 1.8rem;
    }
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info h2, .contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-color);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-details h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-details p {
    margin: 5px 0;
    color: #555;
}

/* Contact Page Enhanced Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info h2, .contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.form-intro {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--card-color);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 20px;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-details p {
    margin: 5px 0;
    color: #555;
    font-size: 1rem;
}

.contact-details small {
    color: #888;
    font-size: 0.85rem;
    display: block;
    margin-top: 8px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

/* Additional Contact Section */
.contact-extra {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.contact-extra h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.extra-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.extra-item {
    background: var(--card-color);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.extra-item:hover {
    transform: translateY(-5px);
}

.extra-item h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.extra-item p {
    color: #666;
    line-height: 1.6;
}

/* Footer Contact Info */
.footer-contact {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Form Message Styles */
.form-message {
    animation: slideDown 0.3s ease;
}

.form-message.small {
    font-size: 0.9rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-container {
        gap: 30px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        font-size: 1.5rem;
        margin-right: 15px;
    }
    
    .extra-options {
        grid-template-columns: 1fr;
    }
    
    .extra-item {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .memory-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .scenery-grid {
        grid-template-columns: 1fr;
    }
}

.home-image {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    border: 3px solid #af4ca0; /* 添加边框便于调试 */
    background: linear-gradient(45deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
}

/* 图片加载动画 */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 图片加载失败时的样式 */
.home-image[src=""],
.home-image:not([src]) {
    background: #ffebee;
    border: 2px dashed #f44336;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d32f2f;
    font-weight: bold;
}

.home-image[src=""]::before,
.home-image:not([src])::before {
    content: "❌ 图片未加载";
}

/* Activities Grid Layout */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.activity-card {
    background: var(--card-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.photo-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-date {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--background-color);
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 15px;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(0,0,0,0.1);
}

/* Activity Detail Styles */
.activity-detail {
    padding: 40px;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.detail-header h2 {
    color: var(--text-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.detail-date {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.detail-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    color: #555;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.detail-image:hover img {
    transform: scale(1.03);
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .activity-detail {
        padding: 25px;
    }
    
    .detail-images {
        grid-template-columns: 1fr;
    }
    
    .detail-header h2 {
        font-size: 1.8rem;
    }
}

/* 新增的导航栏图标样式 */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}
/* 新增的浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .nav-icon {
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
}
