/* 全局样式重置 */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: 'Cormorant Garamond', serif;

    font-weight: 400;

    line-height: 1.6;

    color: #333;

    background-color: #fff;

    font-size: 18px;

}



/* 顶部导航 */

.header {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid #f0f0f0;

}



.header-inner {

    max-width: 1200px;

    margin: 0 auto;

    padding: 20px 40px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.site-title {

    font-size: 1.2rem;

    font-weight: 600;

    letter-spacing: 0.05em;

    color: #333;

}



.nav {

    display: flex;

    align-items: center;

    gap: 40px;

}



.nav ul {

    list-style: none;

    display: flex;

    gap: 40px;

}



.nav ul:first-child {

    margin-right: 20px;

    border-right: 1px solid #f0f0f0;

    padding-right: 20px;

}



.nav a {

    text-decoration: none;

    color: #666;

    font-size: 0.9rem;

    letter-spacing: 0.05em;

    transition: color 0.3s ease;

    padding: 5px 0;

    border-bottom: 1px solid transparent;

}



.nav a:hover,

.nav a.active {

    color: #333;

    border-bottom-color: #333;

}



/* 主要内容区域 */

.main-content {

    margin-top: 80px;

    min-height: calc(100vh - 80px);

}



.content-inner {

    max-width: 1200px;

    margin: 0 auto;

    padding: 60px 40px 80px;

}



/* 图片画廊 */

.photo-gallery {

    display: flex;

    flex-direction: column;

    gap: 80px;

}



/* 单个照片项目 */

.photo-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

}



.photo-container {

    width: 100%;

    max-width: 900px;

    margin-bottom: 30px;

    position: relative;

    overflow: hidden;

}



/* 新的图片占位符样式 */

.photo-placeholder {

    width: 100%;

    height: 400px;

    background-color: #f8f8f8;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: opacity 0.3s ease;

    position: relative;

}



.placeholder-animation {

    width: 100%;

    height: 100%;

    position: relative;

    overflow: hidden;

}



.placeholder-shimmer {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: linear-gradient(

        90deg,

        #f8f8f8 0%,

        #f0f0f0 20%,

        #f8f8f8 40%,

        #f8f8f8 100%

    );

    background-size: 200% 100%;

    animation: shimmer 1.5s infinite;

}



@keyframes shimmer {

    0% {

        background-position: -200% 0;

    }

    100% {

        background-position: 200% 0;

    }

}



.placeholder-error {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    height: 100%;

    color: #999;

}



.error-text {

    font-size: 0.9rem;

    color: #999;

    margin-top: 10px;

}



/* 图片样式 */

.photo-image {

    width: 100%;

    height: auto;

    display: block;

    transition: opacity 0.6s ease-in-out, transform 0.3s ease;

    position: absolute;

    top: 0;

    left: 0;

}



.photo-image:hover {

    transform: scale(1.02);

}



/* 图片加载完成后的容器样式 */

.photo-item.photo-loaded .photo-placeholder {

    display: none;

}



.photo-item.photo-loaded .photo-image {

    position: relative;

}



/* 图片信息样式 */

.photo-caption {

    max-width: 600px;

    line-height: 1.5;

    font-size: 0.95rem;

    color: #666;

    font-weight: 300;

    transition: opacity 0.4s ease-in-out;

}



.photo-caption .title {

    display: block;

    margin-bottom: 8px;

    font-size: 1rem;

    color: #333;

    font-weight: 400;

}



.photo-caption .date {

    display: block;

    font-size: 0.85rem;

    color: #999;

    margin-top: 8px;

}



/* 页脚 */



.footer {



    background-color: #fafafa;



    border-top: 1px solid #f0f0f0;



}







.footer-inner {



    max-width: 1200px;



    margin: 0 auto;



    padding: 30px 40px;



    text-align: center;



}







.footer p {
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.05em;
}









.footer-year {



    font-family: 'Arial', sans-serif;



    font-weight: 300;



    letter-spacing: 0.02em;



}


.footer-inner a {
    color: #999;
    text-decoration: none;
    /* 字体大小继承父元素（0.85rem） */
    font-size: inherit;
    /* 字间距继承父元素（0.05em） */
    letter-spacing: inherit;
}

/* 新增：鼠标悬停时的样式（保持统一，不突兀） */
.footer-inner a:hover {
    color: #666;
    text-decoration: none;
}


/* 响应式设计 */

@media (max-width: 768px) {

    .header-inner {

        padding: 15px 20px;

        flex-direction: column;

        gap: 15px;

    }

    

    .nav {

        flex-direction: column;

        gap: 15px;

        width: 100%;

    }

    

    .nav ul {

        gap: 15px;

        justify-content: center;

        flex-wrap: wrap;

    }

    

    .nav ul:first-child {

        margin-right: 0;

        padding-right: 0;

        border-right: none;

        border-bottom: 1px solid #f0f0f0;

        padding-bottom: 10px;

    }

    

    .content-inner {

        padding: 40px 20px 60px;

    }

    

    .photo-gallery {

        gap: 60px;

    }

    

    .photo-caption {

        font-size: 0.9rem;

    }

    

    .homepage-title h1 {

        font-size: 2rem;

    }

    

    .user-list {

        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

        gap: 20px;

    }

    

    #yearNav {

        flex-wrap: wrap;

        gap: 15px;

        justify-content: center;

    }

    

    /* 移动端触摸优化 */

    .user-item, .nav a {

        min-height: 44px; /* 推荐的最小触摸目标尺寸 */

        display: flex;

        align-items: center;

        justify-content: center;

    }

    

    /* 移动端图片容器优化 */

    .photo-container {

        margin-bottom: 20px;

    }

    

    /* 移动端图片占位符优化 */

    .photo-placeholder {

        height: 250px;

    }

    

    .placeholder-shimmer {

        animation-duration: 2s; /* 移动端稍慢的动画 */

    }

    

    /* 移动端错误文本优化 */

    .error-text {

        font-size: 0.8rem;

    }

}



@media (max-width: 480px) {

    body {

        font-size: 16px;

    }

    

    .site-title {

        font-size: 1rem;

    }

    

    .nav a {

        font-size: 0.8rem;

        padding: 8px 12px;

    }

    

    .content-inner {

        padding: 30px 15px 40px;

    }

    

    .photo-gallery {

        gap: 40px;

    }

    

    .photo-caption {

        font-size: 0.85rem;

    }

    

    .homepage-title h1 {

        font-size: 1.8rem;

    }

    

    .user-list {

        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));

        gap: 15px;

    }

    

    .user-name {

        font-size: 1rem;

    }

    

    .user-description {

        font-size: 0.8rem;

    }

    

    .divider-line {

        width: 80px;

    }

    

    /* 移动端导航优化 */

    .header {

        position: relative; /* 小屏幕上取消固定定位 */

    }

    

    .main-content {

        margin-top: 0; /* 调整主内容区域边距 */

    }

    

    /* 移动端图片优化 */

    .photo-container img {

        max-width: 100%;

        height: auto;

    }

    

    /* 移动端错误提示优化 */

    .photo-error {

        font-size: 0.8rem;

    }

    

    .photo-error::before {

        font-size: 1.5rem;

    }

}



/* 横屏手机优化 */

@media (max-width: 768px) and (orientation: landscape) {

    .homepage-title {

        margin-bottom: 40px;

    }

    

    .photo-gallery {

        gap: 30px;

    }

    

    .user-list {

        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));

    }

}



/* 平板优化 */

@media (min-width: 769px) and (max-width: 1024px) {

    .user-list {

        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

    }

    

    .content-inner {

        padding: 50px 30px 70px;

    }

}



/* 触摸设备优化 */

@media (hover: none) and (pointer: coarse) {

    .user-item:hover,

    .nav a:hover,

    .photo-container img:hover {

        transform: none; /* 禁用悬停效果 */

    }

    

    .user-item:active {

        transform: scale(0.95); /* 添加点击反馈 */

        transition: transform 0.1s ease;

    }

    

    .nav a:active {

        opacity: 0.7;

        transition: opacity 0.1s ease;

    }

}



/* 高分辨率屏幕优化 */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    .photo-loading::before {

        border-width: 1px; /* 减少高分辨率屏幕上的边框宽度 */

    }

}



/* 暗色模式支持 */

@media (prefers-color-scheme: dark) {

    body {

        background-color: #1a1a1a;

        color: #e0e0e0;

    }

    

    .header {

        background: rgba(26, 26, 26, 0.95);

        border-bottom-color: #333;

    }

    

    .site-title,

    .nav a,

    .user-name {

        color: #e0e0e0;

    }

    

    .nav a:hover,

    .nav a.active {

        color: #fff;

        border-bottom-color: #fff;

    }

    

    .photo-caption {

        color: #b0b0b0;

    }

    

    .photo-caption .title {

        color: #e0e0e0;

    }

    

    .photo-caption .date {

        color: #888;

    }

    

    .footer {

        background-color: #0f0f0f;

        border-top-color: #333;

    }

    

    .footer p {

        color: #888;

    }

    

    .photo-error {

        background: #2a2a2a;

        color: #aaa;

    }

    

    .divider-line {

        background-color: #e0e0e0;

    }

}



/* 加载动画 */

.loading {

    display: flex;

    justify-content: center;

    align-items: center;

    height: 200px;

    color: #999;

    font-size: 1rem;

    font-weight: 300;

}



.loading::after {

    content: '...';

    animation: dots 1.5s infinite;

}



@keyframes dots {

    0%, 20% { content: '.'; }

    40% { content: '..'; }

    60%, 100% { content: '...'; }

}



/* 图片加载状态 */

.photo-container {

    position: relative;

    overflow: hidden;

}



.photo-loading {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(255, 255, 255, 0.9);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 10;

}



.photo-loading::before {

    content: '';

    width: 40px;

    height: 40px;

    border: 2px solid #f3f3f3;

    border-top: 2px solid #333;

    border-radius: 50%;

    animation: spin 1s linear infinite;

}



@keyframes spin {

    0% { transform: rotate(0deg); }

    100% { transform: rotate(360deg); }

}



.photo-error {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: #f9f9f9;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    z-index: 10;

    color: #999;

    font-size: 0.9rem;

}



.photo-error::before {

    content: '⚠';

    font-size: 2rem;

    margin-bottom: 10px;

}



/* 图片淡入效果 */

img {

    opacity: 0;

    transition: opacity 0.5s ease;

}



img.loaded {

    opacity: 1;

}



/* 用户项悬停效果增强 */

.user-item {

    position: relative;

    overflow: hidden;

}



.user-item::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s;

}



.user-item:hover::before {

    left: 100%;

}



/* 图片加载优化 */

img {

    opacity: 0;

    transition: opacity 0.5s ease;

}



img.loaded {

    opacity: 1;

}



/* 平滑滚动 */

html {

    scroll-behavior: smooth;

}



/* 主页样式 */

.homepage-title {

    text-align: center;

    margin-bottom: 80px;

}



.homepage-title h1 {

    font-size: 2.5rem;

    font-weight: 300;

    letter-spacing: 0.1em;

    color: #333;

    margin-bottom: 40px;

}



.divider-line {

    width: 100px;

    height: 1px;

    background-color: #333;

    margin: 0 auto;

}



.user-list {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

    gap: 30px;

    max-width: 1000px;

    margin: 0 auto;

}



.user-item {

    text-align: center;

    cursor: pointer;

    transition: transform 0.3s ease, opacity 0.3s ease;

}



.user-item:hover {

    transform: translateY(-5px);

    opacity: 0.8;

}



.user-name {

    font-size: 1.2rem;

    font-weight: 400;

    letter-spacing: 0.05em;

    color: #333;

    margin-bottom: 8px;

}



.user-description {

    font-size: 0.9rem;

    color: #666;

    font-weight: 300;

}



/* 年度导航样式 */

#yearNav {

    display: flex;

    gap: 30px;

}



#yearNav a {

    text-decoration: none;

    color: #666;

    font-size: 0.9rem;

    letter-spacing: 0.05em;

    transition: color 0.3s ease;

    padding: 5px 0;

    border-bottom: 1px solid transparent;

}



#yearNav a:hover,

#yearNav a.active {

    color: #333;

    border-bottom-color: #333;

}



/* 响应式设计 - 用户列表 */

@media (max-width: 768px) {

    .homepage-title h1 {

        font-size: 2rem;

    }

    

    .user-list {

        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

        gap: 20px;

    }

    

    #yearNav {

        flex-wrap: wrap;

        gap: 15px;

    }

}



@media (max-width: 480px) {

    .homepage-title h1 {

        font-size: 1.8rem;

    }

    

    .user-list {

        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));

        gap: 15px;

    }

    

    .user-name {

        font-size: 1rem;

    }

    

    .user-description {

        font-size: 0.8rem;

    }

}