/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 主容器 */
.container {
    position: relative;
    text-align: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 二维码网格 - 1x4布局 */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0 80px;
}

/* 单个二维码项 */
.qr-item {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.qr-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* 导航按钮 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 36px;
    color: #667eea;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn-left {
    left: 0;
}

.nav-btn-right {
    right: 0;
}

/* 页码指示器 */
.page-indicator {
    margin-top: 20px;
    font-size: 18px;
    color: white;
    font-weight: bold;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 60px;
    }
}

@media (max-width: 640px) {
    .qr-grid {
        grid-template-columns: 1fr;
        margin: 0 50px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
