/*
 * The One Sense 頁面樣式
 * Swipeable Four-Section Layout - 藍色主題
 */

/* ==========================================
   Header 滾動效果 - 滾動時加上深綠色背景
   ========================================== */
.page-theone-sense .main-header {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease !important;
}

.page-theone-sense .main-header.scrolled {
    background: rgba(49, 54, 50, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================
   HERO BANNER SECTION - 滿版背景區塊
   ========================================== */

.theone-sense-page .fullscreen-background-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.theone-sense-page .background-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.theone-sense-page .background-image,
.theone-sense-page .background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.theone-sense-page .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ==========================================
   HERO CONTENT OVERLAY - 文字內容層
   ========================================== */

.theone-sense-page .hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theone-sense-page .hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.theone-sense-page .hero-title {
    font-family: Georgia, 'Times New Roman', 'Noto Serif TC', serif;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: heroTextFadeIn 1.5s ease-out 0.5s forwards;
}

.theone-sense-page .hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
    transform: translateY(30px);
    animation: heroTextFadeIn 1.5s ease-out 1s forwards;
}

@keyframes heroTextFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Scroll Hint - 向下探索 */
.theone-sense-page .scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: white;
    text-align: center;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    animation: heroTextFadeIn 1.5s ease-out 1.5s forwards, scrollHintBounce 2s ease-in-out 2.5s infinite;
}

.theone-sense-page .scroll-hint:hover {
    opacity: 1 !important;
}

.theone-sense-page .scroll-hint-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.theone-sense-page .scroll-hint-icon {
    font-size: 1.5rem;
    display: block;
}

@keyframes scrollHintBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================
   THIRD LEVEL NAVIGATION
   ========================================== */

.theone-sense-page .third-level-nav {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 50px 40px;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        transparent 100%
    );
}

.theone-sense-page .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.theone-sense-page .nav-tabs {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(20px);
}

.theone-sense-page .nav-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.theone-sense-page .nav-tab:hover {
    color: white;
    background: rgba(74, 144, 226, 0.2);
}

.theone-sense-page .nav-tab.active {
    background: rgba(74, 144, 226, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* Progress Indicator */
.theone-sense-page .progress-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theone-sense-page .progress-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.theone-sense-page .progress-fill {
    height: 100%;
    background: #4a90e2;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.theone-sense-page .section-counter {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.theone-sense-page .current-section {
    color: #4a90e2;
}

/* Swipe Hint */
.theone-sense-page .swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.theone-sense-page .hint-icon {
    font-size: 16px;
    animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* ==========================================
   SWIPEABLE CONTAINER
   ========================================== */

.theone-sense-page .swipeable-container {
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.theone-sense-page .swipe-wrapper {
    display: flex;
    width: 400%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.theone-sense-page .swipe-section {
    flex: 0 0 25%;
    width: 25%;
    min-height: 60vh;
    padding: 60px 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.theone-sense-page .swipe-section.active {
    opacity: 1;
    transform: translateY(0);
}

.theone-sense-page .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    width: 100%;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */

.theone-sense-page .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.theone-sense-page .section-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a90e2, #74b9ff);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.theone-sense-page .section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.theone-sense-page .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    opacity: 0.8;
}

/* ==========================================
   SECTION 1: 五感體驗
   ========================================== */

.theone-sense-page .sense-experience-content {
    max-width: 1000px;
    margin: 0 auto;
}

.theone-sense-page .sense-intro {
    text-align: center;
    margin-bottom: 50px;
}

.theone-sense-page .sense-intro h3 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
}

.theone-sense-page .sense-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-weight: 300;
}

.theone-sense-page .sense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.theone-sense-page .sense-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.theone-sense-page .sense-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
    background: rgba(74, 144, 226, 0.08);
}

.theone-sense-page .sense-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.theone-sense-page .sense-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.theone-sense-page .sense-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   其他區塊內容佔位
   ========================================== */

.theone-sense-page .content-placeholder {
    background: rgba(74, 144, 226, 0.1);
    border: 2px dashed #4a90e2;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.theone-sense-page .placeholder-text h3 {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-bottom: 15px;
}

.theone-sense-page .placeholder-text p {
    color: #666;
    margin-bottom: 30px;
}

.theone-sense-page .placeholder-visual {
    background: rgba(74, 144, 226, 0.05);
    border: 1px dashed #4a90e2;
    border-radius: 10px;
    padding: 60px 40px;
    font-size: 3rem;
    color: #4a90e2;
}

/* ==========================================
   SWIPE NAVIGATION
   ========================================== */

.theone-sense-page .swipe-navigation {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 100;
}

.theone-sense-page .swipe-prev,
.theone-sense-page .swipe-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.theone-sense-page .swipe-prev:hover,
.theone-sense-page .swipe-next:hover {
    background: #4a90e2;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.3);
}

.theone-sense-page .swipe-prev:active,
.theone-sense-page .swipe-next:active {
    transform: scale(0.95);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .theone-sense-page .sense-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .theone-sense-page .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .theone-sense-page .swipe-hint {
        display: none;
    }
}

@media (max-width: 768px) {
    .theone-sense-page .third-level-nav {
        padding: 0 20px 30px;
    }
    
    .theone-sense-page .nav-tabs {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
    }
    
    .theone-sense-page .nav-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .theone-sense-page .section-container {
        padding: 0 20px;
    }
    
    .theone-sense-page .section-title {
        font-size: 2rem;
    }
    
    .theone-sense-page .sense-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .theone-sense-page .sense-item {
        padding: 25px 20px;
    }
    
    .theone-sense-page .swipe-navigation {
        padding: 0 15px;
    }
    
    .theone-sense-page .swipe-prev,
    .theone-sense-page .swipe-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .theone-sense-page .section-number {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .theone-sense-page .section-title {
        font-size: 1.7rem;
        margin-bottom: 10px;
    }
    
    .theone-sense-page .section-subtitle {
        font-size: 1rem;
    }
    
    .theone-sense-page .swipe-section {
        padding: 40px 0;
    }
    
    .theone-sense-page .nav-tabs {
        justify-content: center;
    }
    
    .theone-sense-page .sense-intro h3 {
        font-size: 1.5rem;
    }
    
    .theone-sense-page .sense-intro p {
        font-size: 1rem;
    }
}

/* ==========================================
   ANIMATIONS AND TRANSITIONS
   ========================================== */

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theone-sense-page .swipe-section.active {
    animation: sectionFadeIn 0.8s ease-out;
}

.theone-sense-page .swipe-wrapper {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.theone-sense-page .swipe-wrapper.swiping {
    transition: none;
}

/* Performance optimizations */
.theone-sense-page .swipe-section,
.theone-sense-page .swipe-wrapper,
.theone-sense-page .swipe-prev,
.theone-sense-page .swipe-next,
.theone-sense-page .nav-tab {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* ==========================================
   浮動式導覽器樣式 - 與 explore-yinyou 相同
   ========================================== */
.theone-sense-page .floating-nav-tabs {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 350px;
    max-width: 450px;
    width: auto;
}

.theone-sense-page .floating-nav-tabs:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.theone-sense-page .tabs-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.theone-sense-page .nav-tab {
    background: transparent;
    border: none;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.theone-sense-page .nav-tab:hover {
    background: rgba(49, 54, 50, 0.1);
    color: #000;
}

.theone-sense-page .nav-tab.active {
    background: var(--color-spruce);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(27, 59, 54, 0.3);
}

.theone-sense-page .tabs-toggle {
    background: rgba(49, 54, 50, 0.1);
    border: none;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-left: 8px;
}

.theone-sense-page .tabs-toggle:hover {
    background: rgba(49, 54, 50, 0.2);
    color: #333;
    transform: scale(1.1);
}

.theone-sense-page .progress-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.theone-sense-page .progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(49, 54, 50, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.theone-sense-page .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-spruce), var(--color-sage));
    border-radius: 2px;
    width: 25%;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.theone-sense-page .section-info {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 500;
    min-width: 35px;
    flex-shrink: 0;
}

.theone-sense-page .current-section {
    color: var(--color-spruce);
    font-weight: 600;
}

.theone-sense-page .floating-nav-tabs.collapsed .tabs-container {
    display: none;
}

.theone-sense-page .floating-nav-tabs.collapsed .progress-indicator {
    margin-top: 0;
}

.theone-sense-page .floating-nav-tabs.collapsed {
    min-width: auto;
    padding: 15px;
    max-width: 60px;
    width: auto;
    transition: all 0.3s ease;
}

/* 浮動導覽器響應式設計 */
@media (max-width: 768px) {
    .theone-sense-page .floating-nav-tabs {
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
        max-width: none;
        width: auto;
        padding: 12px 15px;
    }

    .theone-sense-page .tabs-container {
        flex-wrap: wrap;
        gap: 3px;
        margin-bottom: 8px;
    }

    .theone-sense-page .nav-tab {
        padding: 6px 12px;
        font-size: 12px;
        flex: 1;
        min-width: calc(50% - 1.5px);
        max-width: calc(50% - 1.5px);
    }

    .theone-sense-page .tabs-toggle {
        width: 25px;
        height: 25px;
        font-size: 14px;
        margin-left: 5px;
    }
}

@media (max-width: 480px) {
    .theone-sense-page .floating-nav-tabs {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 10px 12px;
    }

    .theone-sense-page .nav-tab {
        padding: 5px 8px;
        font-size: 11px;
    }

    .theone-sense-page .tabs-toggle {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}
