/* === 瀑布流 · Pinterest 风 === */

:root {
    --bg: #fafafa;
    --fg: #1a1a1a;
    --muted: #888;
    --border: #ececec;
    --accent: #ff5e3a;
    --font: 'Inter', -apple-system, 'PingFang SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

.kicker {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
}

h1, h2 { font-weight: 700; line-height: 1.1; }

/* === 顶部导航 === */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250,250,250,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.nav-brand span { color: var(--accent); }
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.btn-contact {
    background: var(--fg);
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-contact:hover {
    background: var(--accent);
    transform: translateX(2px);
}

/* === Hero === */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 32px 60px;
}
.hero-text { max-width: 900px; }
.hero-text .kicker { margin-bottom: 24px; }
.hero h1 {
    font-size: clamp(40px, 6vw, 80px);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.lead {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags span {
    font-size: 13px;
    background: white;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
}

/* === 筛选 === */
.works {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 80px;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.filter {
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.2s;
    font-family: inherit;
}
.filter:hover { color: var(--fg); background: white; }
.filter.active {
    background: var(--fg);
    color: white;
    border-color: var(--fg);
}

/* === 瀑布流 === */
.masonry {
    column-count: 3;
    column-gap: 16px;
}
.m-item {
    margin-bottom: 16px;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: white;
}
.m-item img {
    transition: transform 0.6s ease;
}
.m-item:hover {
    transform: translateY(-4px);
}
.m-item:hover img {
    transform: scale(1.04);
}
.m-item.hidden { display: none; }

@media (max-width: 1024px) {
    .masonry { column-count: 2; }
}

/* === 关于 === */
.about {
    background: white;
    padding: 100px 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.about-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-text .kicker { margin-bottom: 16px; }
.about-text h2 {
    font-size: clamp(32px, 4vw, 56px);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.about-text p {
    font-size: 17px;
    color: #444;
    margin-bottom: 24px;
}
.stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}
.stats span {
    font-size: 14px;
    color: var(--muted);
}
.stats strong {
    display: block;
    font-size: 28px;
    color: var(--fg);
    font-weight: 700;
    line-height: 1;
}
.about-img {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 16px;
}
.about-img img { height: 100%; object-fit: cover; }

/* === 联系 === */
.contact {
    padding: 100px 32px;
}
.contact-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 80px 60px;
    border-radius: 24px;
    border: 1px solid var(--border);
}
.contact h2 {
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.contact > .contact-card > p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 48px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}
.c-item {
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.c-item:hover {
    border-color: var(--fg);
    background: var(--fg);
    color: white;
}
.c-item:hover .c-label { color: var(--accent); }
.c-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}
.c-value {
    font-size: 16px;
    font-weight: 600;
}

/* === 页脚 === */
.footer {
    background: var(--fg);
    color: rgba(255,255,255,0.6);
    padding: 60px 32px 40px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer .nav-brand { color: white; }
.footer p { font-size: 14px; margin-top: 4px; }
.copyright { font-size: 13px; }

/* === 响应式 === */
@media (max-width: 768px) {
    .nav-inner { padding: 14px 20px; }
    .nav-links { display: none; }
    .hero { padding: 48px 20px 40px; }
    .works { padding: 0 20px 60px; }
    .masonry { column-count: 1; }
    .about { padding: 60px 20px; }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .stats { flex-wrap: wrap; gap: 20px; }
    .contact { padding: 60px 20px; }
    .contact-card { padding: 48px 24px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}
