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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    color: #333;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}
.header h1 {
    font-size: 24px;
    font-weight: 600;
}
.header p {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 4px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 24px;
}

/* Step indicator */
.steps {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
}
.step:not(:last-child)::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #d0d5dd;
    margin: 0 16px;
}
.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
    background: #1a73e8;
}
.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #e8eaed;
    color: #999;
    transition: all 0.3s;
}
.step.active .step-number {
    background: #1a73e8;
    color: #fff;
}
.step.completed .step-number {
    background: #34a853;
    color: #fff;
}
.step-label {
    font-size: 14px;
    color: #999;
}
.step.active .step-label {
    color: #1a73e8;
    font-weight: 600;
}
.step.completed .step-label {
    color: #34a853;
}

/* Card */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 32px;
    margin-bottom: 24px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}
.form-group .required::after {
    content: '*';
    color: #e53935;
    margin-left: 4px;
}
.form-group input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
.form-group input::placeholder {
    color: #aaa;
}
.form-group .error-text {
    color: #e53935;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}
.form-group.has-error input {
    border-color: #e53935;
}
.form-group.has-error .error-text {
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn-primary {
    background: #1a73e8;
    color: #fff;
}
.btn-primary:hover:not(:disabled) {
    background: #1557b0;
}
.btn-success {
    background: #34a853;
    color: #fff;
}
.btn-success:hover:not(:disabled) {
    background: #2d8f47;
}
.btn-outline {
    background: transparent;
    color: #666;
    border: 1px solid #d0d5dd;
}
.btn-outline:hover:not(:disabled) {
    background: #f5f5f5;
}
.btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    padding: 20px 0;
}
.qr-section #qrcode {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
}
.qr-section #qrcode img {
    display: block;
}
.qr-hint {
    margin-top: 16px;
    font-size: 15px;
    color: #666;
}
.qr-hint strong {
    color: #333;
}
.qr-info {
    margin-top: 8px;
    font-size: 13px;
    color: #999;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #666;
}
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e8eaed;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    color: #b91c1c;
    margin-bottom: 16px;
    display: none;
}
.error-box.show {
    display: block;
}

/* Data Display */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.data-section {
    grid-column: 1 / -1;
}
.data-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid #1a73e8;
}
.data-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.data-item-label {
    font-size: 14px;
    color: #666;
}
.data-item-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}
.data-item-value.tag-yes {
    color: #34a853;
}
.data-item-value.tag-no {
    color: #999;
}
.data-item-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Fade in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
        margin: 16px auto;
    }
    .card {
        padding: 20px;
    }
    .step:not(:last-child)::after {
        width: 30px;
        margin: 0 8px;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 20px;
    }
}