/* ============================================================
   WL-Bot Desktop CSS (桌機版覆寫)
   所有 min-width 媒體查詢的樣式
   ============================================================ */

/* === 1. Navbar Desktop === */
@media (min-width: 1024px) {
    .navbar-collapse {
        display: flex;
        justify-content: flex-end;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .navbar-nav {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        margin-left: auto;
        width: auto;
        text-align: left;
        padding: 0;
    }

    .nav-link {
        color: var(--text-secondary);
        font-size: 15px;
        letter-spacing: 1px;
        position: relative;
        padding: 5px 0;
        font-weight: normal;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--text-primary);
        transform: none;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--gold-accent);
        transition: 0.3s;
    }

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

    .nav-item {
        margin: 0;
        transform: none;
        opacity: 1;
        animation: none;
    }

    .mobile-close-btn,
    .navbar-toggler {
        display: none;
    }
}

/* === 2. Footer Desktop === */
@media (min-width: 1024px) {
    footer .row {
        text-align: left;
    }
    
    footer .text-md-end {
        text-align: right;
    }
}

/* === 3. Utility Classes Desktop === */
@media (min-width: 1024px) {
    .hover-lift {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .hover-scale {
        transition: transform 0.3s ease;
    }

    .hover-scale:hover {
        transform: scale(1.05);
    }

    .card-hover {
        transition: all 0.3s ease;
    }

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
}

/* === 4. Index Page Desktop === */
@media (min-width: 1024px) {
    /* 3D 舞台桌機版 - 自適應全屏佈局 */
    body .hero-stage {
        height: auto;
        min-height: 100vh; /* 佔滿全屏，確保任何尺寸都有足夠空間 */
        perspective: 1200px;
        padding-top: 80px;
        padding-bottom: 40px;
        overflow: hidden; /* 防止倒影溢出撐開卷軸 */
        display: flex;
        flex-direction: column;
        justify-content: center; /* 垂直置中 */
    }

    /* 卡片展示架 - 位於舞台中心 */
    .card-rack {
        margin-top: auto;
        margin-bottom: auto;
        padding-bottom: 60px; /* 給倒影留出物理空間 */
        position: relative;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow-x: visible;
        overflow-y: visible;
    }

    .card-rack .slab-container {
        width: 28vh; /* 自適應視窗高度 */
        min-width: 240px; /* 最小寬度保障 */
        max-width: 360px; /* 最大寬度限制 */
    }

    /* 倒影設定 */
    .card-rack .slab-container:not(.grid-mode) {
        -webkit-box-reflect: below 2px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.6, transparent), to(rgba(0,0,0,0.5))) !important;
    }

    .hero-stage .card-rack .slab-container:not(.grid-mode) {
        -webkit-box-reflect: below 2px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.6, transparent), to(rgba(0,0,0,0.5))) !important;
    }

    /* 隱藏箭頭 */
    .gallery-controls {
        display: none;
    }

    /* 指示點桌機版 - 位於卡片下方 */
    body .gallery-dots {
        position: relative; /* 改為相對定位 */
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 220px; /* 增加與卡片的距離，避開倒影 */
        margin-bottom: 40px; /* 與下方保持距離 */
        z-index: 20;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: center;
        gap: 8px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    body .gallery-dot {
        width: 6px;
        height: 6px;
        margin: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    body .gallery-dot.active {
        background: var(--accent-gold);
        width: 20px;
        border-radius: 4px;
    }

    body .gallery-dot:hover {
        background: rgba(255, 255, 255, 0.8);
    }

    /* 功能特色區塊桌機版 - 位於舞台之後，自然流動 */
    body .features-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px;
        padding: 40px 5% 80px;
        margin-top: 0;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        
        /* 樣式重置 */
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        
        /* 定位重置 */
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        z-index: 20;
    }

    body .feature-box {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 15px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    body .feature-box:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.03);
        border-color: var(--accent-gold);
    }

    body .feature-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
        margin-right: 12px;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(255, 215, 0, 0.1);
        border-radius: 50%;
        color: var(--accent-gold);
        flex-shrink: 0;
    }

    body .feature-title {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 2px;
        color: var(--accent-gold);
        white-space: nowrap;
    }

    body .feature-desc {
        font-size: 12px;
        line-height: 1.3;
        color: rgba(255, 255, 255, 0.7);
    }

    /* 淺色模式適配 */
    [data-theme="light"] body .feature-title {
        color: var(--accent-gold);
    }
    
    [data-theme="light"] body .feature-desc {
        color: var(--text-main);
    }

    /* 九宮格拼圖模式 */
    .slab-container.grid-mode {
        width: 420px;
    }

    .grid-3x3 {
        gap: 4px;
        padding: 10px;
    }

    .grid-3x3 img:hover {
        transform: scale(1.05);
        z-index: 2;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        border: 1px solid var(--accent-gold);
    }
}

/* === 5. Services Page Desktop === */
@media (min-width: 1024px) {
    .page-header {
        padding-top: 120px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .company-card {
        margin-bottom: 0;
    }

    .table-responsive {
        display: block;
    }

    .pricing-card-list {
        display: none;
    }
}

/* === 6. Auction Page Desktop === */
@media (min-width: 1024px) {
    .auction-hero {
        padding-top: calc(3rem + 80px);
        padding-bottom: 3rem;
    }

    .category-sidebar {
        position: sticky;
        top: 80px;
        margin-bottom: 0;
    }

    .bid-form {
        padding: 2rem;
    }

    .current-bid-display {
        font-size: 2.5rem;
    }

    .item-image {
        max-height: 500px;
    }
}

/* === 7. Tablet Adaptations === */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero-stage {
        height: 70vh;
        padding-top: 100px;
    }

    .features-grid {
        padding: 60px 5%;
    }
}