img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* 引入 Futura BT Medium 字体 (本地文件) */
@font-face {
    font-family: 'FuturaBT-Medium';
    src: url('/fonts/FuturaBT-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* CSS变量用于JS动态设置视口高度 */
:root {
       --site-padding: 95px;
       --vh: 100vh;
}

/* 流畅滚动 */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Space Mono', 'Courier New', monospace;
    background: #F1F2EC; /* Updated background color */
    color: #000000;
    min-height: var(--vh);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative; /* Added for absolute positioning context */
    opacity: 0;
    animation: pageFadeIn 0.8s ease-out forwards;
}

.site-cursor,
.site-cursor-trail,
.site-cursor-trail-dot {
    pointer-events: none;
}

.site-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3000;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    transform: translate3d(-100px, -100px, 0);
    color: var(--project-accent, var(--accent, #b75b46));
    transition: opacity 160ms ease;
}

.site-cursor::before,
.site-cursor::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1.5px solid currentColor;
}

.site-cursor::before {
    width: 18px;
    height: 18px;
}

.site-cursor::after {
    width: 5px;
    height: 5px;
    background: currentColor;
    border: 0;
}

.site-cursor-trail {
    position: fixed;
    inset: 0;
    z-index: 2999;
    overflow: hidden;
}

.site-cursor-trail-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border: 1px solid var(--project-accent, var(--accent, #b75b46));
    border-radius: 50%;
    opacity: 0.5;
    animation: site-cursor-trail-fade 900ms ease-out forwards;
}

@keyframes site-cursor-trail-fade {
    from { opacity: 0.5; transform: scale(1); }
    to { opacity: 0; transform: scale(0.15); }
}

@media (hover: hover) and (pointer: fine) {
    body.has-site-cursor,
    body.has-site-cursor a,
    body.has-site-cursor button {
        cursor: none;
    }

    body.has-site-cursor input,
    body.has-site-cursor textarea,
    body.has-site-cursor select,
    body.has-site-cursor dialog,
    body.has-site-cursor dialog * {
        cursor: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-cursor,
    .site-cursor-trail {
        display: none !important;
    }
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 导航栏 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: none;
    padding: 20px 0;
}
.header-nav {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0 var(--site-padding);
    width: 100%;
    box-sizing: border-box;
    user-select: none; /* Prevent text selection on nav */
}
.header-btn.nav-logo { opacity: 1; pointer-events: auto; }
.header-nav li:first-child {
    margin-right: auto;
}
.header-nav li:not(:first-child) {
    margin-left: clamp(28px, 5vw, 80px);
}
.header-btn {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #000000;
    text-decoration: none;
    padding: 8px 0;
    background: none;
    border: none;
    transition: opacity 0.3s;
    letter-spacing: 4px;
    font-weight: 400;
    display: block;
    cursor: pointer;
    position: relative;
}

.header-btn::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #333333;
    transition: width 0.4s ease-in-out;
}

.header-btn.nav-active::after {
    width: calc(100% - 4px);
}

.header-btn.no-transition::after {
    transition: none !important;
}

.header-btn:hover, .header-btn:focus {
    opacity: 0.7;
}
.header-btn:active {
    opacity: 0.5;
}

/* Contact 下拉条样式 */
.contact-dropdown {
    position: fixed;
    top: 75px;
    right: var(--site-padding);
    width: 320px; /* Increased width for new content */
    height: auto;
    min-height: 500px; /* Increase height a bit */
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: linear-gradient(180deg, #D47A6A 0%, #7CB89D 100%);
    /* border-radius: 12px;  Removed border-radius */
    padding: 24px;
    box-sizing: border-box;
    color: white;
    font-family: 'Space Mono', 'Courier New', monospace;
    overflow: hidden;
}

.contact-dropdown.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    z-index: 2;
    color: #292927;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
}
.contact-close-btn span { position: relative; width: 20px; height: 20px; pointer-events: none; }
.contact-close-btn span::before, .contact-close-btn span::after { content: ''; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: currentColor; transform: rotate(45deg); }
.contact-close-btn span::after { transform: rotate(-45deg); }

.contact-close-btn:hover {
    opacity: 1;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: normal;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 1px;
}

.contact-section h3 {
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0 0 8px 0;
}

.contact-section h4 {
    font-size: 1rem;
    font-weight: normal;
    margin: 0 0 8px 0;
    opacity: 0.9;
}

.contact-section p {
    font-size: 0.9rem;
    margin: 4px 0;
    opacity: 0.9;
}

.email-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-row a {
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    padding: 2px 8px;
    color: white;
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.contact-decor {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 120px;
    height: auto;
    opacity: 0.8;
    pointer-events: none;
}

/* Marquee Effect */
.contact-marquee {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.8;
}

.contact-marquee span {
    display: inline-block;
    font-size: 0.8rem;
    animation: marquee 25s linear infinite; /* Slowed down from 15s to 25s */
    padding-left: 100%; /* Start from right */
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Remove old img style within dropdown if any */
.contact-dropdown > img:not(.contact-decor) {
    display: none;
}

/* 导航栏左上角Paprika */
.nav-logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.nav-logo.visible {
    opacity: 1;
    pointer-events: auto;
}
.gallery-body .nav-logo, .about-body .nav-logo, .works-body .nav-logo {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.main-content {
    position: relative;
    z-index: 200;
    margin-top: 80px;
    background: none;
    opacity: 1;
    transform: none;
    transition: none;
    padding-bottom: 64px;
}
.content-wrapper {
    padding: 40px 40px 0 40px;
}
.main-content h2 {
    font-family: 'Clash Display', sans-serif;
    font-size: 6rem;
    color: #000000;
    text-align: left;
    margin-bottom: 30px;
    margin-top: 0;
}
.main-content p {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #000000;
}

/* Home Styles */
.home-section {
    height: var(--vh);
    min-height: var(--vh);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
}
.section-hero { padding-top: 240px; }
.section-content { padding-top: 120px; background: #F4F3ED; }
.home-section .content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 var(--site-padding) 0 var(--site-padding);
}
.home-title {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-weight: 400;
    color: #000000;
    margin: 0;
    padding: 0 40px;
    line-height: 1;
    text-transform: lowercase;
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    transform-origin: left top;
}
.home-title span { font-size: 18vw; display: inline-block; }
.title-a { position: relative; }
.conch-decor {
    position: absolute;
    width: 0.3em; /* Reduced from 0.4em */
    height: auto;
    top: 64%;
    left: 44.5%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.home-info {
    margin-top: auto;
    margin-left: 80px;
    padding: 0 0 40px 40px;
    border-left: 2px solid #000;
    transition: opacity 0.3s;
}
.home-info p {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 4px;
    line-height: 2;
    margin: 0 0 8px 0;
    color: #000000;
}

.section-content h2 {
    font-family: 'Clash Display', sans-serif;
    font-size: 4rem;
    color: #000000;
    margin: 0 0 30px 0;
}
.section-content p {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000000;
}

.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.parallax-svg {
    position: absolute;
    opacity: 0;
    will-change: transform;
    display: flex;
    justify-content: center;
    align-items: center;
}
.parallax-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
}

.gallery-item img {
    /* 禁止拖拽图片 */
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}
.bubble-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.bubble-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}
.bubble-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    object-fit: contain;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}
.gallery-item:nth-child(odd) .bubble-decor,
.gallery-item:nth-child(even) .bubble-decor {
    transform: translate(-50%, -50%);
    width: 60%;
}

/* --- About Page Styles --- */
.about-body {
    /* Removed fixed height/overflow to allow scrolling */
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    /* Scroll Snap Setup */
    scroll-snap-type: y mandatory;
    height: 100vh; /* Restore height for snap to work */
    overflow-y: scroll; /* Enable scroll */
}
.about-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.big-bubble-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.big-bubble {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.big-bubble .bubble-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.9;
}
.big-bubble .bubble-content-img {
    position: absolute;
    width: 60%;
    height: 60%;
    object-fit: contain;
    z-index: 1;
}
.small-bubbles-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 5;
}
.small-bubble {
    position: absolute;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
}
.small-bubble-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.8;
}
.small-bubble-content {
    position: absolute;
    width: 60%;
    height: 60%;
    object-fit: contain;
    z-index: 1;
}
.about-text {
    position: absolute;
    top: 82vh; /* Adjusted top position as requested */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 200; /* High z-index */
    pointer-events: none;
}

.about-text > * {
    pointer-events: auto; /* Re-enable pointer events for children */
}

.about-text .about-title {
    font-size: 1.1rem; /* Adjusted font size */
    font-weight: 400;
}

.about-text p {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: #000;
    line-height: 1.8;
    margin: 10px 0;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .fixed-header { padding: 12px 0; }
    .header-nav { gap: 20px; padding: 0 16px; }
    .header-btn { font-size: 0.9rem; }
    .main-content { margin-top: 60px; }
    .content-wrapper { padding: 24px 16px 0 16px; }
    .main-content h2 { font-size: 2rem; }
    .home-title span { font-size: 12vw; }
    .parallax-svg { width: 120px; height: 120px; }
    .gallery-item { width: 300px; height: 300px; }
    .contact-dropdown { right: 16px; width: 200px; }
    .overlay-caption { font-size: 1rem; }
    .big-bubble-wrapper { width: 300px; height: 300px; }
    .small-bubble { width: 100px; height: 100px; }
    .about-text { bottom: 40px; padding: 0 20px; font-size: 0.8rem; }
    .gallery-caption { bottom: 40px; }
}

.cursor {
    display: inline-block;
    width: 18px; /* Adjusted width for larger font */
    height: 1.4em;
    background-color: #000;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 400px) {
    .header-nav { gap: 12px; padding-inline: 16px; }
    .header-btn { font-size: 12px; letter-spacing: 1px; }
}
