* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    max-width: 480px;
    width: 100%;
    border: 1px solid #e1e8ed;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.header h1 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header p {
    color: #666;
    font-size: 14px;
}

.browser-tip {
    color: #ff6b35;
    font-size: 14px;
    margin-top: 8px;
    font-weight: bold;
    text-align: center;
}

.section {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-weight: 500;
    font-size: 14px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.btn {
    width: 100%;
    padding: 12px;
    background: #0969da;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: #0858c7;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #8c959f;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #2da44e;
}

.btn-secondary:hover {
    background: #2c974b;
}

.btn-danger {
    background: #cf222e;
}

.btn-danger:hover {
    background: #a40e26;
}

.status {
    padding: 12px;
    border-radius: 6px;
    margin: 16px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.status-success {
    background: #dafbe1;
    color: #1a7f37;
    border: 1px solid #4ac26b;
}

.status-error {
    background: #ffebe9;
    color: #cf222e;
    border: 1px solid #ff8182;
}

.status-info {
    background: #ddf4ff;
    color: #0969da;
    border: 1px solid #84d8ff;
}

.status-warning {
    background: #fff8c5;
    color: #9a6700;
    border: 1px solid #f9c513;
}

.qr-container {
    text-align: center;
    padding: 20px;
    background: #f6f8fa;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #eaeaea;
}

.qr-image {
    max-width: 200px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.queue-info {
    background: #e6f7ff;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin: 16px 0;
    border: 1px solid #91d5ff;
}

.queue-position {
    font-size: 28px;
    font-weight: bold;
    color: #0969da;
    margin: 8px 0;
}

.hidden {
    display: none;
}

.info-card {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
    border: 1px solid #eaeaea;
}

.info-card .count {
    font-size: 24px;
    font-weight: bold;
    color: #0969da;
    margin: 8px 0;
}

.info-card .label {
    color: #666;
    font-size: 14px;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0969da;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    color: #666;
    font-size: 12px;
}

.tip-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

.confirm-dialog {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #eaeaea;
    max-width: 400px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.confirm-dialog h3 {
    margin-bottom: 12px;
    color: #1a1a1a;
}

.confirm-dialog p {
    margin-bottom: 16px;
    color: #666;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
}

.confirm-buttons .btn {
    flex: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.instruction-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1002;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.instruction-dialog h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.instruction-content {
    text-align: left;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.instruction-content strong {
    color: #333;
    font-weight: 600;
}

.instruction-content .warning {
    color: #cf222e;
    font-weight: 600;
    margin-top: 10px;
}

.countdown-btn {
    width: 100%;
    padding: 14px;
    background: #0969da;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.countdown-btn:hover:not(:disabled) {
    background: #0858c7;
}

.countdown-btn:disabled {
    background: #8c959f;
    cursor: not-allowed;
}