 
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI',Tahoma,Geneva,Verdana,sans-serif
}

body {
    background: linear-gradient(135deg,#f5f7fa 0%,#c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--dark-color)
}

/* 新增导航栏样式 */
.header {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

    .logo i {
        font-size: 28px;
    }

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

    .nav-links a {
        text-decoration: none;
        color: var(--dark-color);
        font-weight: 600;
        transition: var(--transition);
        padding: 8px 12px;
        border-radius: var(--border-radius);
    }

        .nav-links a:hover {
            color: var(--primary-color);
            background: rgba(67, 97, 238, 0.1);
        }

        .nav-links a.active {
            color: var(--primary-color);
            background: rgba(67, 97, 238, 0.1);
        }

/* 主内容区域样式 */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    width: 100%;
}

.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow)
}

.left-panel {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: var(--light-color)
}

.right-panel {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white
}

h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center
}

.input-group {
    margin-bottom: 20px
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color)
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    resize: vertical;
    transition: var(--transition)
}

    textarea:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(67,97,238,.2)
    }

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center
}

    .btn:hover {
        background: var(--secondary-color);
        transform: translateY(-2px)
    }

.btn-generate {
    width: 100%;
    margin-top: 10px
}

.btn-icon {
    background: var(--success-color);
    margin-left: 10px;
    padding: 8px 12px
}

.qr-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    background: white;
    display: flex;
    justify-content: center;
    align-items: center
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column
}

    #qrcode canvas {
        width: 100%;
        height: 100%;
        border-radius: 8px
    }

.qr-text-element {
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    max-width: 100%;
    word-break: break-word
}

.qr-info {
 
    align-items: center;
    justify-content: center;
    margin-bottom: 20px
}

.qr-size {
    font-size: 16px;
    color: var(--dark-color)
}

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

.btn-download {
    background: var(--success-color)
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    justify-content: center;
    align-items: center;
    z-index: 1000
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee
}

.modal-title {
    font-size: 22px;
    color: var(--primary-color)
}

.close {
    font-size: 22px;
    cursor: pointer;
    color: #999;
    transition: var(--transition)
}

    .close:hover {
        color: var(--accent-color)
    }

.form-group {
    margin-bottom: 15px
}

input[type=number], input[type=text], input[type=color], input[type=file], select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition)
}

    input:focus, select:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(67,97,238,.2)
    }

.color-group {
    display: flex;
    align-items: center;
    gap: 10px
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #ddd
}

.tab-container {
    margin-top: 15px
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px
}

.tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    transition: var(--transition)
}

    .tab-btn.active {
        color: var(--primary-color);
        border-bottom: 3px solid var(--primary-color)
    }

.tab-content {
    display: none
}

    .tab-content.active {
        display: block
    }

.logo-upload-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-upload-area {
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    width: 80px;
    height: 80px;
    transition: var(--transition)
}

    .logo-upload-area:hover {
        border-color: var(--primary-color);
        background: rgba(67,97,238,.05)
    }

    .logo-upload-area i {
        font-size: 32px;
        color: #999;
        margin-bottom: 8px;
        display: block
    }

    .logo-upload-area p {
        margin: 0;
        color: #666;
        font-size: 14px
    }

.logo-preview {
    width: 80px;
    height: 80px;
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative
}

    .logo-preview img {
        max-width: 100%;
        max-height: 100%;
        display: none;
        border-radius: 0;
        transition: border-radius .3s ease
    }

.logo-controls {
    width: 100%;
    padding: 0 5px
}

.border-controls {
    margin-bottom: 20px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px
}

.slider-value {
    text-align: center;
    margin-top: 5px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px
}

.text-position {
    display: flex;
    gap: 8px;
    margin-top: 8px
}

.position-btn {
    flex: 1;
    padding: 8px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px
}

    .position-btn.active {
        border-color: var(--primary-color);
        background: rgba(67,97,238,.1)
    }

/* 新增页脚样式 */
.footer {
    /*background: var(--dark-color);
            color: white;*/
    padding: 0px 20px 40px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

    .footer-section h3 {
        color: var(--primary-color);
        margin-bottom: 20px;
        font-size: 20px;
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #ddd;
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--primary-color);
            padding-left: 5px;
        }

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .footer-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: white;
        transition: var(--transition);
    }

        .footer-social a:hover {
            background: var(--primary-color);
            transform: translateY(-3px);
        }

.footer-bottom {
    text-align: center;
    /*  margin-top: 40px;*/
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom a{
    color:#333;
    text-decoration:none;
}
@media(max-width:768px) {
    .container {
        flex-direction: column
    }

    .left-panel, .right-panel {
        width: 100%
    }

    .qr-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1
    }

    .action-buttons {
        flex-direction: column
    }

    .btn-icon {
        margin-left: 0;
        margin-top: 10px
    }

    .qr-info {
        flex-direction: column;
        gap: 10px
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

 