/* Mobile Responsive Styles */

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        overflow-y: auto;
        padding-top: 70px;
    }

    .split {
        width: 100%;
        min-height: auto;
        flex: none !important;
        height: auto;
        padding: 40px 20px 60px 20px;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .split:hover {
        flex: none !important;
    }

    .split.locked {
        flex: none !important;
        padding-bottom: 80px;
    }

    .split:not(.locked).dimmed {
        flex: none !important;
        height: auto;
        filter: none;
        pointer-events: auto;
    }

    .split-header {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .header-zh {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .hero-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cta-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }

    .metrics-grid {
        flex-direction: row;
        gap: 1.5rem;
        margin-top: 1.2rem;
        padding-top: 1.2rem;
    }

    .metric-val {
        font-size: 1.4rem;
    }

    .metric-label {
        font-size: 0.65rem;
    }

    /* Aux Panel Mobile */
    .aux-panel-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.2rem;
        padding-top: 1.2rem;
        padding-bottom: 1rem;
    }

    .aux-item h3 {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
    }

    .pipeline-viz {
        font-size: 0.7rem;
    }

    .check-list {
        font-size: 0.75rem;
    }

    .quest-list {
        font-size: 0.75rem;
    }

    .quest-list li {
        margin-bottom: 0.4rem;
    }

    .tag {
        font-size: 0.6rem;
    }

    .device-icons {
        font-size: 0.75rem;
    }

    /* Show body content on mobile by default */
    .split-body {
        opacity: 1;
        transform: translateY(0);
        height: auto;
        overflow: visible;
    }

    .split-content {
        opacity: 1;
        width: 95%;
    }

    /* Chat Floater Mobile */
    .chat-floater {
        width: 92%;
        bottom: 10px;
        padding: 0.4rem 0.8rem;
        border-radius: 25px;
    }

    .chat-status {
        font-size: 0.55rem;
    }

    #chat-input {
        font-size: 0.85rem;
    }

    /* Navigation Mobile */
    .global-nav {
        padding: 1rem;
    }

    .nav-links {
        padding: 0.5rem 1rem;
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    /* Center Divider Mobile */
    .center-divider {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
        display: flex;
        justify-content: center;
    }

    .logo-box {
        padding: 0.8rem 1.5rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Language Toggle Mobile */
    .lang-toggle-float {
        top: 1rem;
        right: 1rem;
        font-size: 0.7rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .split-container {
        padding-top: 60px;
    }

    .split {
        padding: 30px 15px 50px 15px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-text {
        font-size: 0.85rem;
    }

    .metrics-grid {
        gap: 1rem;
    }

    .metric-val {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.6rem;
        padding: 0.4rem 0.8rem;
    }

    .nav-item {
        font-size: 0.6rem;
    }
}
