/* ===== 基础手工感 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fafaf8;
    color: #1e1e1c;
    font-family: 'Georgia', 'Times New Roman', '宋体', 'Songti SC', 'SimSun', serif;
    line-height: 1.6;
    font-weight: 300;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 原有样式保持不变，以下仅列出关键部分（完整版请参考之前提供的 style.css） */
.wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
/* ... 其余样式完全沿用之前代码 ... */

/* ===== 基础手工感 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fafaf8;
    color: #1e1e1c;
    font-family: 'Georgia', 'Times New Roman', '宋体', 'Songti SC', 'SimSun', serif;
    line-height: 1.6;
    font-weight: 300;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 预加载动画 ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fafaf8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.preloader-spinner {
    width: 80px;
    height: 80px;
    border: 3px solid #e0d6cc;
    border-top: 3px solid #a48d7a;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    box-shadow: 0 8px 16px rgba(0,0,0,0.02);
    margin-bottom: 1.5rem;
}

.preloader-text {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: #7f6e64;
    font-weight: 300;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    border-bottom: 1px solid #d9cec2;
    padding-bottom: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 原有其他样式（网格、卡片、灯箱等）完全不变，请沿用之前提供的完整style.css */
.wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

@media (min-width: 640px) {
    .wrapper {
        padding: 3rem 2.5rem 5rem;
    }
}

.site-header {
    text-align: left;
    margin-bottom: 4rem;
    border-bottom: none;
    position: relative;
}

.site-header::after {
    content: '';
    display: block;
    width: 4rem;
    height: 1px;
    background-color: #b7aba1;
    margin-top: 1.2rem;
    opacity: 0.5;
}

h1 {
    font-size: clamp(2.4rem, 8vw, 4.2rem);
    font-weight: 250;
    letter-spacing: -0.01em;
    line-height: 1.1;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #2c2a27;
    text-rendering: optimizeLegibility;
}

.subhead {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7f6e64;
    margin-top: 1rem;
    font-weight: 300;
    word-spacing: 0.2rem;
}

/* ===== 网格 ===== */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem 1.8rem;
    margin: 3rem 0 5rem;
}

@media (min-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem 2rem;
    }
}

@media (min-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #eae5df;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 15px -8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    filter: grayscale(6%) contrast(98%);
}

.image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.card:hover .image-wrap {
    box-shadow: 0 14px 28px -12px rgba(60, 45, 35, 0.18);
    filter: grayscale(0%) contrast(100%);
}

.card:hover img {
    transform: scale(1.03);
}

.caption {
    margin-top: 0.9rem;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
}

.title {
    font-size: 1.1rem;
    font-weight: 350;
    letter-spacing: 0.02em;
    color: #2f2a25;
    line-height: 1.4;
    font-family: 'Georgia', 'Times New Roman', serif;
    display: inline-block;
}

/* 手工感分割线 — 通过 data-style 随机变化 */
.title::after {
    content: '';
    display: block;
    height: 1px;
    background: #c5b9ae;
    margin: 6px 0 8px;
    opacity: 0.7;
}

.card[data-style="1"] .title::after { width: 1.2rem; }
.card[data-style="2"] .title::after { width: 1.8rem; }
.card[data-style="3"] .title::after { width: 2.2rem; }
.card[data-style="4"] .title::after { width: 2.8rem; }
.card[data-style="5"] .title::after { width: 3.2rem; }

.card[data-style="1"] .image-wrap { background-color: #e2dbd3; }
.card[data-style="2"] .image-wrap { background-color: #d9d1c7; }
.card[data-style="3"] .image-wrap { background-color: #f0e9e2; }
.card[data-style="4"] .image-wrap { background-color: #e6ddd4; }
.card[data-style="5"] .image-wrap { background-color: #cfc6bc; }

.meta {
    font-size: 0.85rem;
    color: #887e76;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.meta span {
    font-size: 1rem;
    line-height: 1;
    color: #b2a79e;
}

.meta .location {
    text-transform: none;
    letter-spacing: 0.02em;
}

.meta .dot {
    font-size: 1.2rem;
    line-height: 0;
    color: #bcaea2;
    transform: translateY(-2px);
    display: inline-block;
}

/* ===== 加载动画 ===== */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2.5rem 0 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.loading-container.show {
    opacity: 1;
}
.film-spinner {
    width: 48px;
    height: 48px;
    border: 2px solid #e0d6cc;
    border-top: 2px solid #a48d7a;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== 页脚 ===== */
.footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid #e2d9d0;
    font-size: 0.85rem;
    color: #9b9087;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 300;
    letter-spacing: 0.03em;
}
.footer-left {
    display: flex;
    gap: 2rem;
}
.footer a {
    color: #6b5f56;
    text-decoration: none;
    border-bottom: 1px dotted #cdc1b6;
    transition: border 0.2s;
}
.footer a:hover {
    border-bottom: 1px solid #6b5f56;
}
.camera-signature {
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #a79a8f;
}

/* ===== 灯箱 ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 18, 16, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lightbox.show {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 2px;
    box-shadow: 0 25px 40px -15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,240,0.1);
}
.lightbox-caption {
    margin-top: 1.2rem;
    color: #ece6db;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.04em;
    font-size: 1rem;
}
.lightbox-caption .lightbox-title {
    font-size: 1.2rem;
    font-family: 'Georgia', serif;
    border-bottom: 1px solid #5f5348;
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 6px;
}
.lightbox-caption .lightbox-meta {
    color: #bcafa3;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.nav-btn {
    pointer-events: auto;
    background: rgba(44, 40, 36, 0.6);
    border: none;
    color: #f0e4d8;
    font-size: 2.8rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-weight: 200;
    line-height: 1;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(210, 190, 175, 0.2);
}
.nav-btn:hover {
    background: rgba(80, 70, 60, 0.8);
    color: #fff;
    transform: scale(1.02);
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #ddd2c5;
    font-size: 3rem;
    cursor: pointer;
    font-weight: 200;
    line-height: 1;
    z-index: 1010;
    transition: color 0.2s;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.close-btn:hover {
    color: #fff;
}
@media (max-width: 600px) {
    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }
    .close-btn {
        right: 15px;
        font-size: 2.5rem;
    }
    .lightbox-image {
        max-height: 60vh;
    }
}

/* ===== 摄影格言 ===== */
.quote {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0 3rem;
    padding: 0 1rem;
    color: #5f5348;
    font-family: 'Georgia', serif;
    position: relative;
}

.quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: #d9cec2;
    font-weight: 300;
    user-select: none;
    opacity: 0.6;
}

.quote-mark.left {
    margin-right: 0.5rem;
    transform: translateY(0.3rem);
}

.quote-mark.right {
    margin-left: 0.5rem;
    transform: translateY(0.3rem);
}

.quote-text {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.03em;
    line-height: 1.6;
    max-width: 650px;
    border-top: 1px solid #e2d9d0;
    border-bottom: 1px solid #e2d9d0;
    padding: 1.2rem 1.5rem;
}

.quote-en {
    display: block;
    font-size: 0.9rem;
    color: #887e76;
    margin-top: 0.6rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .quote-text {
        font-size: 1rem;
        padding: 1rem 0.8rem;
    }
    .quote-mark {
        font-size: 3rem;
    }
}