/* ============================================
   响应式适配
   盲盒易拉罐 - 一只打工猫的逆袭故事
   ============================================ */

@media (max-width: 768px) {
    .game-container {
        padding: 5px;
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .top-bar {
        padding: 8px 12px;
        font-size: 12px;
    }

    .stat-item {
        font-size: 12px;
    }

    .main-content {
        flex-direction: column;
        overflow: visible;
    }

    .house-section {
        width: 100%;
    }

    .cans-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        max-height: 300px;
        flex: none;
    }

    .open-can-area {
        flex-direction: column;
        align-items: stretch;
    }

    .open-actions {
        justify-content: center;
    }

    .start-title .title-text {
        font-size: 32px;
    }

    .start-cat {
        font-size: 60px;
    }

    .btn-start {
        padding: 14px 36px;
        font-size: 18px;
    }

    .story-text {
        font-size: 18px;
    }

    .story-character {
        font-size: 60px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .quick-panel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .panel-item {
        flex-direction: column;
        gap: 2px;
        padding: 8px 4px;
        font-size: 11px;
    }

    .panel-item:hover {
        transform: translateY(-2px);
    }

    .panel-icon {
        font-size: 18px;
        width: auto;
    }

    .house-stage {
        min-height: 160px;
    }

    .recruit-wheel-area {
        width: 150px;
        height: 150px;
    }

    .recruit-wheel {
        width: 150px;
        height: 150px;
    }

    .recruit-wheel-center {
        width: 45px;
        height: 45px;
        font-size: 30px;
    }

    .multi-options {
        flex-wrap: wrap;
    }

    .multi-opt {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-wrap: wrap;
        gap: 4px;
    }

    .stat-item {
        font-size: 11px;
    }

    .cans-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
        padding: 10px;
    }

    .can-card {
        padding: 8px 4px;
    }

    .can-name {
        font-size: 10px;
    }

    .can-price {
        font-size: 10px;
    }

    .section-title {
        font-size: 14px;
    }

    .start-title .title-text {
        font-size: 26px;
    }

    .start-subtitle {
        font-size: 14px;
    }

    .start-quote {
        font-size: 13px;
        padding: 8px 16px;
    }

    .start-cat {
        font-size: 50px;
    }

    .btn-start {
        padding: 12px 28px;
        font-size: 16px;
    }

    .story-text {
        font-size: 16px;
    }

    .story-character {
        font-size: 50px;
    }

    .story-controls {
        flex-direction: column;
        gap: 8px;
    }

    .btn-story-next, .btn-story-skip {
        width: 100%;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-header {
        font-size: 16px;
    }

    .upgrade-preview {
        flex-direction: column;
        gap: 10px;
    }

    .upgrade-arrow {
        transform: rotate(90deg);
    }

    .pawn-inventory {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    }

    .backpack-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    }

    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    }

    .shop-list {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .market-actions {
        flex-direction: column;
    }

    .industry-actions {
        flex-direction: column;
    }

    .pawn-actions {
        flex-direction: column;
    }

    .quick-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .house-controls {
        flex-wrap: wrap;
    }
}
