@font-face {
    font-family: 'TitleFont';
    src: url('assets/AidianSignatureTi-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg: #faf7f4;
    --text: #2b2b2b;
    --text-secondary: #5c5c5c;
    --accent: #b8914b;
    --border: #e3ded8;
    --max-width: 1280px;
    --header-height: 72px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300; background: var(--bg); color: var(--text);
    line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.title-font {
    font-family: 'TitleFont', 'Cormorant Garamond', Georgia, serif; font-weight: 400;
}
h3, .logo, .work-info h3, .quote-text {
    font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300;
}
.hero-overlay h1, .section-header h2, .about-text h2 {
    font-family: 'TitleFont', 'Cormorant Garamond', Georgia, serif; font-weight: 400;
}
a { text-decoration: none; color: inherit; }

/* 顶栏透明 */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: transparent; z-index: 1000; transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.04); }
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.6rem; letter-spacing: 5px; text-transform: uppercase; color: var(--text); z-index: 1001; }
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 40px; height: 40px; background: none; border: none;
    cursor: pointer; z-index: 1001; padding: 0; margin-left: 1rem;
}
.nav-toggle span {
    display: block; width: 22px; height: 1.5px; background: var(--text);
    border-radius: 1px; transition: all 0.3s ease; transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.main-nav ul { display: flex; gap: 3rem; list-style: none; }
.main-nav a {
    font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 400;
    letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary);
    position: relative; padding-bottom: 4px; cursor: pointer;
}
.main-nav a.nav-active { color: var(--text); }
.main-nav a.nav-active::after { width: 100%; }
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
    background: var(--text); transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    z-index: 998; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

/* 语言切换按钮 */
.lang-switch {
    background: none; border: 1px solid var(--text); color: var(--text);
    font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 400;
    letter-spacing: 1px; padding: 0.35rem 0.8rem; cursor: pointer;
    transition: all 0.3s; margin-left: 1.5rem; white-space: nowrap;
    text-transform: uppercase; border-radius: 2px;
}
.lang-switch:hover { background: var(--text); color: #fff; }

/* 回到顶部 */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 40px; height: 40px;
    background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
    border: 1px solid var(--border); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer; z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: transform 0.2s, opacity 0.3s;
    opacity: 0; pointer-events: none;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 1.5; }

/* 公用区块 */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.section { padding: 7rem 2.5rem; max-width: var(--max-width); margin: 0 auto; }
.works-section { max-width: none; padding-left: 0; padding-right: 0; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 2.8rem; letter-spacing: 3px; margin-bottom: 1rem; }
.section-header p {
    font-family: 'Inter', sans-serif; color: var(--text-secondary);
    font-weight: 300; font-style: italic; font-size: 1.1rem; letter-spacing: 1px;
}
.contact-sub-note {
    margin-top: 0.5rem; font-style: normal !important; color: var(--text-secondary);
    font-size: 0.95rem; font-weight: 300;
}

/* Hero */
.hero {
    position: relative; width: 100%; height: 100vh; min-height: 600px;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: url('assets/mainvisual.jpg') center / cover no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; color: #2b2b2b;
    background: rgba(250,247,244,0.35); backdrop-filter: blur(8px); padding: 0 2rem;
}
.hero-overlay h1 { font-size: 4rem; letter-spacing: 6px; margin-bottom: 1.2rem; }
.hero-overlay p {
    font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 300;
    font-style: italic; letter-spacing: 2px; color: #4a4a4a; margin-bottom: 3rem;
}
.hero-cta {
    display: inline-block; padding: 0.9rem 3rem; border: 1px solid #2b2b2b;
    font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 400; letter-spacing: 4px;
    text-transform: uppercase; color: #2b2b2b; transition: background 0.3s, color 0.3s; cursor: pointer;
}
.hero-cta:hover { background: #2b2b2b; color: #fff; }
.about-page-link {
    position: absolute; bottom: 2rem; right: 2rem;
    font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 300;
    color: #4a4a4a; text-decoration: underline; opacity: 0.7; transition: opacity 0.3s;
}
.about-page-link:hover { opacity: 1; }

/* 作品展示 */
.work-showcase { display: flex; flex-direction: column; gap: 12rem; }
.work-item {
    display: flex; align-items: center; gap: 0; opacity: 0;
    transition: opacity 1s ease, transform 0.9s ease;
}
.work-item.visible { opacity: 1; }
.work-item.from-right { flex-direction: row; transform: translateX(50px); }
.work-item.from-right.visible { transform: translateX(0); }
.work-item.from-left { flex-direction: row-reverse; transform: translateX(-50px); }
.work-item.from-left.visible { transform: translateX(0); }
.work-image { flex: 0 0 55%; overflow: hidden; opacity: 0; transition: opacity 1s ease, transform 1s ease; }
.work-item.from-right .work-image { transform: translateX(40px); }
.work-item.from-left .work-image { transform: translateX(-40px); }
.work-item.visible .work-image { opacity: 1; transform: translateX(0); transition-delay: 0.1s; }
.work-info {
    flex: 0 0 45%; padding: 0 3rem; opacity: 0;
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}
.work-item.visible .work-info { opacity: 1; transform: translateY(0); }
.work-item.from-right .work-info, .work-item.from-left .work-info { transform: translateY(20px); }
.work-info h3 { font-size: 2.2rem; letter-spacing: 2px; margin-bottom: 0.4rem; }
.work-info .material {
    font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 400; font-style: italic;
    letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.work-info p { font-family: 'Inter', sans-serif; color: var(--text-secondary); font-weight: 300; line-height: 1.8; max-width: 320px; }
.work-img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }

/* 引用 */
.quote-section { padding: 6rem 2.5rem; text-align: center; max-width: 800px; margin: 0 auto; }
.quote-text { font-size: 2.2rem; font-style: italic; color: #4a4540; line-height: 1.6; }
.quote-text::before { content: ''; display: block; width: 40px; height: 1px; background: var(--border); margin: 0 auto 2rem; }
.quote-author { font-family: 'Inter', sans-serif; font-size: 1rem; font-style: italic; letter-spacing: 1px; color: var(--text-secondary); margin-top: 2rem; }

/* 关于 */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-image {
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(-30px);
    transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}
.about-image.visible { opacity: 1; transform: translateY(0); }
.about-text {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.9s ease 0.4s, transform 0.9s ease 0.4s;
}
.about-text.visible { opacity: 1; transform: translateY(0); }
.portrait-img {
    width: 100%; height: auto; display: block; aspect-ratio: 3 / 4; object-fit: cover;
    transition: opacity 0.6s ease;
}
.portrait-default { position: relative; z-index: 1; }
.portrait-hover { position: absolute; top: 0; left: 0; opacity: 0; z-index: 2; }
.about-image:hover .portrait-hover { opacity: 1; }
.about-image:hover .portrait-default { opacity: 0; }
.about-text h2 { font-size: 2.4rem; letter-spacing: 2px; margin-bottom: 2rem; }
.about-text p { font-family: 'Inter', sans-serif; color: var(--text-secondary); font-weight: 300; margin-bottom: 1.5rem; line-height: 1.8; }

/* 联系 */
.contact-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 1.2rem 1.5rem; border: none; border-bottom: 1px solid var(--border);
    background: transparent; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 300;
    color: var(--text); outline: none; transition: border-color 0.3s; letter-spacing: 0.5px;
    border-radius: 0; -webkit-appearance: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #b0a89f; font-weight: 300; font-style: italic; }
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: #999; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
    align-self: flex-start; padding: 1rem 3.2rem; background: transparent; border: 1px solid var(--text);
    font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 400; letter-spacing: 3px;
    text-transform: uppercase; color: var(--text); cursor: pointer; transition: all 0.3s; margin-top: 1rem;
    border-radius: 2px; -webkit-appearance: none;
}
.contact-form button:hover { background: var(--text); color: #fff; }
.contact-form button:disabled { opacity: 0.5; pointer-events: none; }
.social-links { display: flex; justify-content: center; gap: 2.5rem; margin-top: 4rem; }
.social-links a { color: #9b948c; transition: color 0.3s; display: inline-flex; align-items: center; justify-content: center; padding: 8px; }
.social-links a:hover { color: #2b2b2b; }
.social-icon { display: block; fill: none; stroke: currentColor; }

/* 二维码气泡 */
.instagram-link, .wechat-link { position: relative; }
.wechat-tooltip {
    display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    margin-bottom: 14px; width: 280px; background: #fff; border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); padding: 6px; z-index: 20; pointer-events: none;
}
.wechat-tooltip img { display: block; width: 100%; border-radius: 4px; }
.instagram-link:hover .wechat-tooltip, .wechat-link:hover .wechat-tooltip, .wechat-link.tooltip-show .wechat-tooltip { display: block; }

/* 版权块 */
.site-footer {
    text-align: center; padding: 3rem 2rem; border-top: 1px solid var(--border);
    color: #b0a89f; font-family: 'Inter', sans-serif; font-size: 0.75rem;
    letter-spacing: 3px; text-transform: uppercase;
}

/* 吐司提示 */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
    background: #2b2b2b; color: #faf7f4; font-family: 'Inter', sans-serif;
    font-size: 0.85rem; padding: 0.9rem 2rem; border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 2000;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    white-space: nowrap;
}
.toast.show { opacity: 1; }

/* 响应式 */
@media (max-width: 1024px) {
    .hero-overlay h1 { font-size: 3.2rem; }
    .section { padding: 5rem 2rem; }
    .about-grid { gap: 3rem; }
}
@media (max-width: 768px) {
    :root { --header-height: 60px; }
    .header-inner { padding: 0 1.5rem; }
    .lang-switch { margin-left: 0.8rem; padding: 0.3rem 0.6rem; font-size: 0.65rem; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 0; right: -300px; width: 280px; height: 100dvh;
        background: rgba(250,247,244,0.97); backdrop-filter: blur(20px);
        padding: 6rem 2rem 3rem; transition: right 0.35s ease; z-index: 999;
        box-shadow: -4px 0 30px rgba(0,0,0,0.06);
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; gap: 2rem; }
    .nav-overlay { display: block; }
    .hero { height: 90vh; }
    .hero-overlay h1 { font-size: 2.6rem; }
    .hero-cta { padding: 0.75rem 2.2rem; }
    .section { padding: 4rem 1.5rem; }
    .section-header h2 { font-size: 2.2rem; }
    .work-showcase { gap: 6rem; }
    .work-item.from-right, .work-item.from-left { flex-direction: column; transform: none; gap: 0; }
    .work-image { flex: 0 0 100%; }
    .work-info { flex: 0 0 100%; padding: 2rem 1.5rem; text-align: center; }
    .work-info h3 { font-size: 1.8rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-image { max-width: 350px; margin: 0 auto; }
    .about-text { text-align: center; }
    .about-text h2 { font-size: 2rem; }
    .contact-form { max-width: 100%; padding: 0 0.5rem; }
    .contact-form button { align-self: stretch; text-align: center; }
    .social-links { gap: 1.5rem; }
    .social-links svg { width: 34px; height: 34px; }
    .wechat-tooltip { bottom: auto; top: 100%; margin-bottom: 0; margin-top: 12px; }
    .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 36px; height: 36px; }
    .toast { bottom: 1rem; font-size: 0.8rem; padding: 0.75rem 1.5rem; }
}
@media (max-width: 480px) {
    :root { --header-height: 56px; }
    .header-inner { padding: 0 1rem; }
    .hero { height: 85vh; }
    .hero-overlay h1 { font-size: 2rem; }
    .hero-overlay p { font-size: 0.9rem; }
    .hero-cta { padding: 0.7rem 1.8rem; font-size: 0.68rem; }
    .section { padding: 3rem 1rem; }
    .section-header h2 { font-size: 1.8rem; }
    .work-info h3 { font-size: 1.5rem; }
    .quote-text { font-size: 1.3rem; }
    .about-text h2 { font-size: 1.7rem; }
    .social-links svg { width: 34px; height: 34px; }
    .site-footer { font-size: 0.65rem; padding: 1.5rem 1rem; }
    .back-to-top { bottom: 1rem; right: 1rem; width: 34px; height: 34px; }
    .toast { font-size: 0.75rem; padding: 0.7rem 1.2rem; }
}