/* ================================================
   潮汐餐厅 - 海岸宁静与原始材质美学
   CSS Stylesheet
   ================================================ */

/* CSS Variables - 海洋配色方案 */
:root {
    /* 主色调 */
    --sand-beige: #F3EFE6;
    --driftwood-grey: #B8B0A4;
    --seafoam-pale: #D6E8E6;
    --deep-navy: #1A2C3D;
    --navy-light: #2A4055;
    
    /* 辅助色 */
    --wave-cream: #FAF7F2;
    --rock-grey: #8A8A8A;
    --sunset-gold: #E8C4A0;
    
    /* 功能色 */
    --glass-white: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: rgba(26, 44, 61, 0.08);
    --shadow-medium: rgba(26, 44, 61, 0.15);
    
    /* 字体 */
    --font-serif: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 过渡 */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-wave: cubic-bezier(0.35, 0.45, 0.55, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--sand-beige);
    color: var(--deep-navy);
    overflow-x: hidden;
    cursor: none;
}

/* 全局噪点纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ================================================
   自定义光标 - 水波纹效果
   ================================================ */
#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--deep-navy);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s var(--transition-smooth);
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--seafoam-pale);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.3s var(--transition-smooth);
    opacity: 0.6;
}

.cursor-trail {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--seafoam-pale) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ================================================
   音频控制按钮
   ================================================ */
.audio-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
}

.audio-control:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.sound-icon {
    width: 22px;
    height: 22px;
    color: var(--deep-navy);
    transition: opacity 0.3s ease;
}

.sound-off {
    position: absolute;
}

/* ================================================
   磨砂海玻璃导航栏
   ================================================ */
.sea-glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, 
        rgba(243, 239, 230, 0.85) 0%, 
        rgba(243, 239, 230, 0.4) 50%, 
        transparent 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s var(--transition-smooth);
}

.sea-glass-nav.scrolled {
    background: rgba(243, 239, 230, 0.95);
    padding: 15px 50px;
    box-shadow: 0 4px 30px var(--shadow-soft);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-char {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--deep-navy);
    letter-spacing: 0.1em;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--deep-navy);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--deep-navy);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--deep-navy);
    transition: width 0.3s var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 28px !important;
    border: 1px solid var(--deep-navy);
    border-radius: 2px;
    transition: all 0.3s var(--transition-smooth) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--deep-navy);
    color: var(--sand-beige) !important;
}

/* ================================================
   横向滚动容器
   ================================================ */
.horizontal-scroll {
    display: flex;
    flex-direction: row;
    width: 500vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-section {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================
   波浪边缘效果
   ================================================ */
.wavy-edge {
    position: relative;
    overflow: hidden;
}

.wavy-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#erode) drop-shadow(0 0 0 transparent);
}

.wavy-mask image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================================
   英雄区块 - 主视觉
   ================================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(232, 212, 196, 0.3) 0%,
        rgba(196, 169, 139, 0.4) 50%,
        rgba(74, 93, 107, 0.6) 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1.2s var(--transition-smooth);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--deep-navy);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-family: var(--font-serif);
    color: var(--deep-navy);
}

.title-line:first-child {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1;
}

.subtitle-en {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.8em;
    margin-top: 10px;
    color: var(--navy-light);
}

.hero-description {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--deep-navy);
    line-height: 2;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--deep-navy);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg,
        var(--deep-navy) 0%,
        transparent 100%);
}

/* ================================================
   区块通用样式
   ================================================ */
.section-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--driftwood-grey);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--deep-navy);
    margin-bottom: 25px;
}

.section-description {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 2;
    color: var(--navy-light);
    max-width: 480px;
}

/* ================================================
   故事区块
   ================================================ */
.story-section {
    background: var(--sand-beige);
}

.story-content {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 10%;
    max-width: 1600px;
}

.story-text {
    flex: 1;
    animation: slideInLeft 1s var(--transition-smooth);
}

.story-image-container {
    flex: 1.2;
    height: 50vh;
    max-height: 500px;
    animation: slideInRight 1s var(--transition-smooth);
}

.story-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--deep-navy);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    backdrop-filter: blur(5px);
}

/* ================================================
   菜单区块 - 喷砂质感卡片
   ================================================ */
.menu-section {
    background: var(--wave-cream);
    flex-direction: column;
    padding: 80px 0;
}

.menu-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s var(--transition-smooth);
}

.menu-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--driftwood-grey);
    letter-spacing: 0.1em;
}

.menu-cards-container {
    display: flex;
    gap: 30px;
    padding: 0 5%;
    overflow-x: auto;
    padding-bottom: 40px;
}

.menu-card {
    flex: 0 0 320px;
    background: var(--sand-beige);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
}

/* 喷砂质感 */
.menu-card.sandblasted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='sand'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23sand)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.menu-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px var(--shadow-medium);
}

.menu-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.card-image {
    height: 200px;
    position: relative;
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.card-season {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--sunset-gold);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--deep-navy);
    margin-bottom: 10px;
}

.card-description {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--driftwood-grey);
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-price {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--deep-navy);
}

/* ================================================
   氛围区块
   ================================================ */
.ambience-section {
    background: var(--sand-beige);
}

.ambience-content {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 10%;
    max-width: 1600px;
}

.ambience-text {
    flex: 1;
    animation: slideInRight 1s var(--transition-smooth);
}

.ambience-gallery {
    flex: 1.5;
    display: flex;
    gap: 25px;
    animation: slideInLeft 1s var(--transition-smooth);
}

.gallery-item {
    position: relative;
}

.gallery-item.large {
    width: 400px;
    height: 350px;
}

.gallery-item.small {
    width: 280px;
    height: 300px;
    align-self: flex-end;
    margin-bottom: 20px;
}

/* ================================================
   预订区块 - 玻璃面板
   ================================================ */
.reservations-section {
    background: linear-gradient(135deg,
        var(--seafoam-pale) 0%,
        var(--sand-beige) 50%,
        var(--driftwood-grey) 100%);
}

.reservations-content {
    display: flex;
    gap: 80px;
    padding: 0 10%;
    max-width: 1400px;
}

.reservation-info {
    flex: 1;
    animation: slideInLeft 1s var(--transition-smooth);
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--driftwood-grey);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-value {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--deep-navy);
}

/* 玻璃面板效果 */
.glass-panel {
    flex: 1;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 50px;
    animation: slideInRight 1s var(--transition-smooth);
    box-shadow: 0 20px 60px var(--shadow-medium);
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    color: var(--deep-navy);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    transition: all 0.3s var(--transition-smooth);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--driftwood-grey);
    font-style: italic;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--deep-navy);
    box-shadow: 0 0 0 3px rgba(26, 44, 61, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A2C3D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--sand-beige);
    background: var(--deep-navy);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--transition-smooth);
}

.submit-btn:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* 页脚 */
.site-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--deep-navy);
    margin-bottom: 10px;
}

.footer-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--driftwood-grey);
    letter-spacing: 0.1em;
}

/* ================================================
   移动端提示
   ================================================ */
.mobile-indicator {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 239, 230, 0.98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.mobile-content {
    text-align: center;
    padding: 40px;
}

.mobile-content p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--deep-navy);
    margin-bottom: 30px;
}

#dismiss-mobile {
    padding: 15px 40px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--deep-navy);
    background: transparent;
    border: 1px solid var(--deep-navy);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

#dismiss-mobile:hover {
    background: var(--deep-navy);
    color: var(--sand-beige);
}

/* ================================================
   动画关键帧
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* ================================================
   响应式设计
   ================================================ */
@media (max-width: 1024px) {
    .horizontal-scroll {
        width: 100%;
        flex-direction: column;
        height: auto;
        overflow-x: hidden;
    }
    
    .scroll-section {
        width: 100%;
        height: auto;
        min-height: 100vh;
        flex-snap-align: none;
        padding: 100px 5% 60px;
    }
    
    .sea-glass-nav {
        padding: 15px 30px;
    }
    
    .nav-links {
        display: none;
    }
    
    .story-content,
    .ambience-content,
    .reservations-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 5%;
    }
    
    .story-image-container {
        width: 100%;
        height: 300px;
    }
    
    .menu-cards-container {
        padding: 0 5% 40px;
    }
    
    .gallery-item.large {
        width: 100%;
        height: 250px;
    }
    
    .gallery-item.small {
        width: 100%;
        height: 200px;
        align-self: center;
    }
    
    .ambience-gallery {
        flex-direction: column;
        width: 100%;
    }
    
    .glass-panel {
        width: 100%;
        padding: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .mobile-indicator {
        display: flex;
    }
    
    body {
        cursor: auto;
    }
    
    .audio-control {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .hero-title .title-line:first-child {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .menu-card {
        flex: 0 0 280px;
    }
    
    .submit-btn {
        width: 100%;
    }
}
