/* Import cute fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

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

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

body {
    font-family: 'Quicksand', 'Microsoft YaHei', sans-serif;
    background-image: url(https://xiechenpiaopiao.neocities.org/background.JPG);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: repeat;
    color: #5a7a9b;
    line-height: 1.8;
    padding: 20px;
}

/* Fixed position music player */
.music-player {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #d1e7ff 0%, #e6f3ff 100%);
    text-align: center;
    padding: 12px;
    border-bottom: 3px dashed #a8d8ff;
    color: #5a8cc9;
    font-size: 0.95em;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(168, 216, 255, 0.3);
}

.container {
    max-width: 1100px;
    margin: 50px auto 20px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(168, 216, 255, 0.4);
    border: 3px dashed #b3d9ff;
}

.site-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 15px;
    border: 3px dashed #a8d8ff;
    margin-bottom: 30px;
    position: relative;
}

/* Decorative pattern */
.site-header::before,
.site-header::after {
    content: '✿';
    position: absolute;
    font-size: 2em;
    color: #a8d8ff;
    opacity: 0.6;
}

.site-header::before {
    top: 10px;
    left: 20px;
}

.site-header::after {
    top: 10px;
    right: 20px;
}

.site-header h1 {
    color: #5a8cc9;
    font-size: 2.2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
}

.subtitle {
    color: #7ba7d8;
    font-size: 1em;
    font-style: italic;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.nav-menu a {
    padding: 10px 25px;
    background-color: #f0f8ff;
    color: #5a8cc9;
    text-decoration: none;
    border: 2px dashed #b3d9ff;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: #e6f3ff;
    border-color: #89c4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 196, 255, 0.3);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

h2 {
    color: #5a8cc9;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 15px;
    border: 2px dashed #b3d9ff;
}

/* Profile image */
.profile-image {
    float: right;
    margin: 0 0 20px 25px;
    text-align: center;
}

.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid #b3d9ff;
    box-shadow: 0 5px 20px rgba(168, 216, 255, 0.5);
    object-fit: cover;
    background: linear-gradient(135deg, #d1e7ff 0%, #e6f3ff 100%);
    padding: 5px;
}

.image-caption {
    margin-top: 8px;
    color: #5a8cc9;
    font-size: 0.85em;
    font-style: italic;
}

/* Info box */
.info-box {
    background-color: #fafcff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e6f3ff;
}

/* Important info */
.important-info {
    border: 3px dashed #89c4ff;
    background: linear-gradient(135deg, #f0f8ff 0%, #fafcff 100%);
    box-shadow: 0 4px 15px rgba(137, 196, 255, 0.2);
}

.label {
    font-weight: 600;
    color: #5a8cc9;
}

/* ⭐ Mission Statement 样式 ⭐ */
.mission-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 20px 0;
}

.mission-statement {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8e8ff 100%);
    border: 2px solid #b8d4f1;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(184, 212, 241, 0.3);
}

.mission-statement:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 212, 241, 0.5);
    border-color: #a0c4e8;
}

.mission-statement h3 {
    color: #5a8fc4;
    font-size: 1.3em;
    margin-bottom: 12px;
    font-weight: 600;
}

.mission-statement p {
    color: #555;
    font-size: 1.05em;
    margin: 10px 0;
    line-height: 1.6;
}

.learn-more {
    display: inline-block;
    margin-top: 10px;
    color: #5a8fc4;
    font-size: 0.95em;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.mission-statement:hover .learn-more {
    transform: translateX(5px);
}

/* ⭐ Photo Gallery 样式（带点击放大功能）⭐ */
.photo-gallery-section {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fafcff 0%, #f0f8ff 100%);
    border-radius: 12px;
    border: 2px solid #e6f3ff;
}

.photo-gallery-section h3 {
    color: #5a8cc9;
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 3px solid #b3d9ff;
    background-color: white;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(168, 216, 255, 0.4);
    border-color: #89c4ff;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 10px;
    text-align: center;
    color: #5a8cc9;
    font-size: 0.9em;
    background-color: #f0f8ff;
}

.hobby-list {
    background-color: #fafcff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #e6f3ff;
}

.hobby-list h3 {
    color: #5a8cc9;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.hobby-list ul {
    list-style: none;
    padding-left: 10px;
}

.hobby-list ul li {
    padding: 10px 15px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #f0f8ff 0%, transparent 100%);
    border-left: 4px solid #b3d9ff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hobby-list ul li:hover {
    background: linear-gradient(90deg, #e6f3ff 0%, transparent 100%);
    transform: translateX(5px);
}

.fun-facts {
    margin-bottom: 25px;
}

.fun-facts h3 {
    color: #5a8cc9;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.fact-box {
    background: linear-gradient(135deg, #fff8ed 0%, #f0f8ff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 3px dashed #65c3ee;
}

.fact-box p {
    margin-bottom: 12px;
    color: #7a8a9b;
}

.recent-updates {
    background-color: #f0f8ff;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #d1e7ff;
}

.recent-updates h3 {
    color: #5a8cc9;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
    border: 2px dashed #b3d9ff;
}

.update-item {
    padding: 12px;
    margin-bottom: 12px;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid #7ba7d8;
}

.date {
    color: #5a8cc9;
    font-weight: 600;
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

/* Hidden updates */
.hidden-update {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.hidden-update:hover {
    opacity: 1;
}

.contact-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 15px;
    border: 3px dashed #c7e3ff;
    margin-top: 30px;
}

.contact-section h3 {
    color: #5a8cc9;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.contact-section p {
    margin-bottom: 10px;
    color: #5a7a9b;
}

.footer-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #d1e7ff;
    color: #7ba7d8;
    font-size: 0.9em;
}

/* CSS :has() selector */
.info-box:has(img) {
    border-color: #89c4ff;
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
}

.hobby-list:has(li:hover) {
    box-shadow: 0 5px 20px rgba(168, 216, 255, 0.3);
}

.recent-updates:has(.hidden-update:hover) {
    box-shadow: 0 5px 20px rgba(123, 167, 216, 0.3);
}

/* ⭐ 图片弹窗样式 ⭐ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(255, 255, 255, 0.3);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.1em;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        float: none;
        margin: 0 auto 20px;
    }
    
    .music-player {
        font-size: 0.85em;
        padding: 10px;
    }
    
    .container {
        padding: 25px;
        margin-top: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .close {
        top: 10px;
        right: 25px;
        font-size: 35px;
    }
}

/* Decorative animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.site-header::before,
.site-header::after {
    animation: float 3s ease-in-out infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #e6f3ff;
}

::-webkit-scrollbar-thumb {
    background: #b3d9ff;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #89c4ff;
}

/* ⭐ Mission Page 样式 ⭐ */
.mission-page {
    max-width: 800px;
    margin: 0 auto;
}

.mission-detail {
    padding: 20px;
}

.mission-detail h2 {
    text-align: center;
    margin-bottom: 30px;
}

.mission-detail .info-box {
    margin-bottom: 25px;
}

.mission-detail h3 {
    color: #5a8fc4;
    margin-bottom: 15px;
}

.back-home {
    text-align: center;
    margin-top: 40px;
}

.back-home a {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8e8ff 100%);
    border: 2px solid #b8d4f1;
    border-radius: 25px;
    color: #5a8fc4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-home a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 212, 241, 0.4);
}

   
   
    



