@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-serif: "Playfair Display", serif;
    --bg: #fcfaf7;
    --ink: #1a1a1a;
    --muted: #666666;
    --accent: #8b7355;
    --white: #ffffff;
    --content-max: 42rem;
}

/* 平板 */
@media (min-width: 768px) {
    :root {
        --content-max: 48rem;
    }
}

/* 桌面 */
@media (min-width: 1280px) {
    :root {
        --content-max: 56rem;
    }
}

/* 超大屏 */
@media (min-width: 1920px) {
    :root {
        --content-max: 64rem;
    }
}

/* 4K / 超宽屏 */
@media (min-width: 2560px) {
    :root {
        --content-max: 72rem;
    }
}

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

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(252, 250, 247, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.05);
    height: 5rem;
}

nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(26, 26, 26, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-toggle:hover {
    background-color: var(--ink);
    color: var(--bg);
}

/* Mobile Menu Toggle (Checkbox Hack) */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: block;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
}

.menu-icon:hover {
    background-color: rgba(26, 26, 26, 0.05);
}

@media (min-width: 768px) {
    .menu-icon {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: none;

}

#menu-toggle:checked~.mobile-menu {
    display: block;
}

.mobile-menu a {
    padding: 0 2rem;
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    padding-bottom: 2rem;
    background-color: rgba(252, 250, 247, 0.8);
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg), transparent 60%);
    opacity: 0.6;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-inner {
    max-width: 48rem;
}

.category-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-excerpt {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grid Section */
.section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.section-title h3 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--muted);
    font-family: var(--font-serif);
    font-style: italic;
}

.view-all {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .view-all {
        display: flex;
    }
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.card {
    cursor: pointer;
}

.card-img-wrapper {
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: rgba(26, 26, 26, 0.05);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s ease;
}

.card:hover .card-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--accent);
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card:hover .read-more {
    opacity: 1;
}

/* Newsletter */
.newsletter {
    background-color: var(--ink);
    color: var(--bg);
    padding: 6rem 0;
    text-align: center;
}

.newsletter-inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.newsletter h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.newsletter p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    color: rgba(252, 250, 247, 0.6);
    margin-bottom: 2.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input {
    flex-grow: 1;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(252, 250, 247, 0.2);
    padding: 0.75rem 0.5rem;
    color: var(--bg);
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--bg);
}

.newsletter-form button {
    background-color: var(--bg);
    color: var(--ink);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--accent);
    color: var(--bg);
}

/* Footer */
footer {
    border-top: 1px solid rgba(26, 26, 26, 0.05);
    padding: 3rem 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-brand h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.social-links {
    display: flex;
    gap: 2rem;
    color: var(--muted);
}

.social-links a:hover {
    color: var(--ink);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.footer-legal a:hover {
    color: var(--ink);
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 4rem 0;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: rgba(26, 26, 26, 0.05);
}

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

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

/* Post Detail Page */
.post-header {
    padding: 6rem 0 4rem;
    text-align: center;
}

.post-image {
    max-width: calc(var(--content-max) * 1.4);
    margin: 0 auto 4rem auto;
}

.post-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.post-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-bottom: 6rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--muted);
}

.post-content img {
    margin: 2rem 0;
    border-radius: 4px;
}

/* About Page */
.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Icons (SVG) */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.icon-sm {
    width: 0.875rem;
    height: 0.875rem;
}

.icon-xs {
    width: 0.75rem;
    height: 0.75rem;
}

/* Pagination */
.pagination {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    display: grid;
    gap: 1rem;
}

.pagination-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link,
.pagination-current,
.pagination-prev,
.pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.5rem;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(26, 26, 26, 0.12);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pagination-link:hover,
.pagination-prev:hover,
.pagination-next:hover {
    background-color: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.pagination-current {
    background-color: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.pagination-info {
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

main {
    padding: 1.5rem;
}