﻿/*  全屏样式 */
.nuoche-container {
    padding: 20px;
    max-width: 100%;
    min-height: 100vh;
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 首页样式 */
.generator-container {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.generator-layout {
    display: flex;
    flex-direction: column;
}

    .generator-layout.active-qr {
        justify-content: space-between;
    }

.config-section {
    flex: 1;
    text-align: left;
}

/* 响应式布局 */
@media (min-width: 768px) {
    .generator-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }

    .config-section {
        flex: 1;
        max-width: 500px;
    }

    .qr-code-container {
        flex: 1;
        margin-top: 0;
        position: sticky;
        top: 20px;
    }
}

.generator-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.generator-subtitle {
    font-size: 1rem;
    color: #666;
}

/* 挪车码信息卡片样式 */
.card {
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.card-header {
    background-color: #3385ff;
    color: white;
    padding: 20px;
    text-align: center;
}

    .card-header i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

.title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.description {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 1rem;
}

.phone-button {
    width: 100%;
    background-color: #ff5722;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .phone-button:hover,
    .phone-button:focus {
        background-color: #f4511e;
        box-shadow: 0 6px 12px rgba(255, 87, 34, 0.4);
        transform: translateY(-2px);
    }

    .phone-button i {
        margin-right: 8px;
    }

.generate-link {
    color: #3385ff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 5px;
}

    .generate-link:hover {
        text-decoration: underline;
    }

/* 输入组样式 */
.input-group {
    width: 100%;
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 500;
        text-align: left;
    }

    .input-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.3s;
    }

        .input-group input:focus {
            border-color: #3385ff;
            outline: none;
        }

.button-group {
    margin: 20px 0;
}

.primary-button {
    background-color: #3385ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .primary-button:hover {
        background-color: #2670e8;
        transform: translateY(-2px);
    }

.qr-code-container {
    margin-top: 20px;
    text-align: center;
}

    .qr-code-container img {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

@media (min-width: 768px) {
    .qr-code-container img {
        max-width: 300px;
    }
}

.preview-link {
    color: #3385ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .preview-link:hover {
        text-decoration: underline;
    }

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.download-link {
    color: #28a745;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

    .download-link:hover {
        text-decoration: underline;
    }

/* 副标题样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

    .checkbox-container input[type="checkbox"] {
        width: auto;
        margin-right: 8px;
    }

    .checkbox-container label {
        margin-bottom: 0;
        font-weight: normal;
    }

#subtitle {
    transition: all 0.3s ease;
}

    #subtitle:disabled {
        background-color: #f5f5f5;
        color: #999;
    }

/* 隐私提示样式 */
.privacy-notice {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    text-align: left;
    display: flex;
    align-items: center;
}

    .privacy-notice i {
        margin-right: 5px;
        color: #3385ff;
    }

.privacy-consent {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3385ff;
}

    .privacy-consent label {
        font-size: 0.9rem;
        color: #555;
        line-height: 1.4;
    }

.privacy-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* 提示框样式 */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.mt-2 {
    margin-top: 10px;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .generator-container {
        padding: 20px 15px;
        margin-top: 20px;
    }

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

    .privacy-consent {
        margin: 10px 0;
        padding: 8px;
    }

    .button-group {
        margin: 15px 0;
    }
    
    .card {
        margin-top: 20px;
    }
}

@media (min-width: 992px) {
    .generator-layout {
        gap: 40px;
    }

    .qr-code-container img {
        max-width: 320px;
    }
    
    .generator-container, .card {
        margin-top: 40px;
    }
}
