:root {
    --primary-color: #60C0BD;
    --secondary-color: #eef5ff;
    --text-color: #7d7d7d;
    --border-color: #eaeaea;
    --bg-color: #fff;
    --hover-color: #A2D7D4;
    --section-padding: 1.5rem;
    --border-radius: 8px;
}

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

body {
    background: linear-gradient(90deg, var(--secondary-color), #ffffff);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding: 1rem;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 0;
    width: 100%;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.QRCodeSection_inner {
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

@media (min-width: 992px) {
    .content-wrapper {
        flex-direction: row;
        min-height: 600px;
    }
}

.left-panel {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .left-panel {
        width: 40%;
        margin-bottom: 0;
        margin-right: 1.5rem;
        flex-direction: row;
    }
}

.tabs {
    display: flex;
    background-color: #f7f7f7;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 992px) {
    .tabs {
        flex-direction: column;
        width: 100px;
        flex-shrink: 0;
    }
}

.tab {
    padding: 0.8rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

@media (min-width: 992px) {
    .tab {
        padding: 1.2rem 0.5rem;
    }
}

.tab.active {
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table td {
    padding: 0.5rem;
    vertical-align: top;
}

table tr td:first-child {
    text-align: right;
    width: 30%;
    padding-right: 1rem;
    color: #555;
}

.right-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background: #fafafa;
}

@media (min-width: 992px) {
    .right-panel {
        width: 60%;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
    }
}

.qrcode-display {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    min-height: 250px;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid #eee;
}

@media (min-width: 992px) {
    .qrcode-display {
        width: 45%;
        margin-right: 5%;
    }
}

.qrcode-options {
    width: 100%;
}

@media (min-width: 992px) {
    .qrcode-options {
        width: 50%;
    }
}

.option-group {
    margin-bottom: 1.2rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #555;
}

.color-inputs {
    display: flex;
    gap: 1rem;
}

.color-input {
    flex: 1;
}

.color-input input {
    width: 100%;
    height: 40px;
}

.range-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-input input {
    flex-grow: 1;
}

.range-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset {
    background-color: #eaeaea;
    color: #555;
}

.btn-reset:hover {
    background-color: #ed8c24;
    color: white;
}

.btn-download {
    background-color: var(--primary-color);
    color: white;
}

.btn-download:hover {
    background-color: #4aa8a5;
}

.note {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);

}

/* 响应式调整 */
@media (max-width: 767px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .tab {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }

    table tr td:first-child {
        width: 35%;
    }
}

@media (min-width: 1200px) {
    .content-wrapper {
        min-height: 650px;
    }

    .qrcode-display {
        min-height: 300px;
    }
}