
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
}

:root {
    --primary: #4361ee;
    --primary-hover: #3a56d4;
    --secondary: #7209b7;
    --success: #06d6a0;
    --danger: #ef476f;
    --warning: #ffd166;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --radius-sm: 6px;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 25px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.header .subtitle {
    font-size: 13px;
    opacity: 0.9;
    position: relative;
}

/* 主要内容区域 */
.main-content {
    padding: 0;
}

.section {
    border-bottom: 1px solid var(--border);
    background: white;
}

.section:last-child {
    border-bottom: none;
}

.section-header {
    padding: 18px 25px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.section-content {
    padding: 20px 25px;
}

/* 移动端优化：减少内边距 */
@media (max-width: 768px) {
    .header {
        padding: 18px 20px;
    }

    .section-header,
    .section-content {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 18px;
    }

    .section-header,
    .section-content {
        padding: 14px 18px;
    }

    body {
        padding: 10px;
    }
}

/* 表单样式 - 完全响应式 */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1 1 100%;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-group label.required::after {
    content: " *";
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* 时间范围输入组 - 响应式 */
.time-range {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-range .form-control {
    flex: 1;
    min-width: 120px;
}

/* 在桌面端显示两列 */
@media (min-width: 768px) {
    .form-row .form-group {
        flex: 1 1 calc(50% - 15px);
    }

    .time-range {
        flex-wrap: nowrap;
    }

    .time-range .form-control {
        flex: 1;
    }
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    cursor: pointer;
    color: var(--dark);
    font-weight: 500;
}

/* 题目卡片 */
.question-card {
    background: white;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.question-header {
    padding: 16px 20px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.question-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
    min-width: 200px;
}

.question-type {
    font-size: 12px;
    color: white;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.question-body {
    padding: 20px;
}

/* 单选/排序题选项 */
.single-choice-options {
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: var(--primary);
    background: white;
}

.option-label {
    flex: 1;
    min-width: 150px;
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.proportion-input {
    width: 80px;
    min-width: 60px;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    color: var(--dark);
}

.proportion-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* 多选题范围设置 */
.multi-select-range {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #bbf7d0;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.multi-select-range label {
    font-size: 14px;
    color: #166534;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

.multi-select-range input {
    width: 70px;
    min-width: 60px;
    padding: 8px 10px;
    border: 1.5px solid #86efac;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* 矩阵题 - 移动端优化 */
.matrix-container {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
    max-width: calc(100% + 40px);
}

.matrix-table {
    min-width: 600px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    font-size: 14px;
}

.matrix-table th {
    background: var(--light);
    padding: 14px 10px;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    border: 1px solid var(--border);
    white-space: nowrap;
    min-width: 80px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.matrix-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 20;
    background: var(--light);
    min-width: 120px;
    text-align: left;
    padding-left: 15px;
}

.matrix-table td {
    padding: 12px 10px;
    border: 1px solid var(--border);
    text-align: center;
    background: white;
    min-width: 80px;
}

.matrix-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 15;
    background: white;
    font-weight: 500;
    text-align: left;
    padding-left: 15px;
    min-width: 120px;
}

.matrix-input {
    width: 100%;
    max-width: 80px;
    padding: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.matrix-input:focus {
    outline: none;
    border-color: var(--primary);
}

.matrix-hint {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    padding: 10px;
    background: linear-gradient(90deg, transparent, var(--light), transparent);
    margin: 10px 0;
    display: none;
}

/* 填空题 */
.fill-blank-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.fill-blank-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.fill-note {
    font-size: 13px;
    color: var(--gray);
    margin-top: 8px;
    font-style: italic;
}

/* 复合题 */
.compound-part {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* 按钮组 */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #53cb83;
    /*background: var(--primary);*/
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #5a0a93);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #05b88f);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 数据导入导出区域 */
.data-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border);
}

.data-textarea {
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    padding: 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}

.data-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.data-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

 /*操作按钮区域 */
.actions {
    padding: 20px 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--border);
    background: var(--light);

}


.actions .left-buttons,
.actions .right-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.actions .right-buttons {
    justify-content: flex-end;
}

.actions .btn {
    min-width: 140px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
}

/* 响应式断点调整 */
@media (max-width: 1024px) {
    .matrix-table {
        min-width: 500px;
    }

    .question-title {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .container {
        border-radius: 8px;
    }

    .matrix-container {
        margin: 0 -20px;
        padding: 0 20px;
    }

    .matrix-hint {
        display: block;
    }

    .matrix-table {
        min-width: 450px;
        font-size: 13px;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 10px 8px;
        min-width: 70px;
    }

    .matrix-table th:first-child,
    .matrix-table td:first-child {
        min-width: 100px;
        padding-left: 12px;
    }

    .actions {
        padding: 16px 20px;
    }

    .actions .btn {
        min-width: 120px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .actions .left-buttons,
    .actions .right-buttons {
        justify-content: center;
        width: 100%;
    }

    .actions .right-buttons {
        order: -1;
    }
}

@media (max-width: 480px) {
    .matrix-container {
        margin: 0 -18px;
        padding: 0 18px;
    }

    .matrix-table {
        min-width: 400px;
        font-size: 12px;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 8px 6px;
        min-width: 60px;
    }

    .matrix-table th:first-child,
    .matrix-table td:first-child {
        min-width: 80px;
        padding-left: 10px;
    }

    .matrix-input {
        max-width: 60px;
        padding: 6px;
        font-size: 12px;
    }

    .question-header {
        padding: 14px 18px;
    }

    .question-title {
        min-width: 120px;
        font-size: 14px;
    }

    .question-type {
        font-size: 11px;
        padding: 3px 10px;
    }

    .question-body {
        padding: 16px;
    }

    .option-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .option-label {
        min-width: 120px;
        font-size: 13px;
    }

    .proportion-input {
        width: 70px;
        min-width: 50px;
        padding: 8px;
        font-size: 13px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .actions .btn {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .matrix-table {
        min-width: 350px;
    }

    .matrix-table th,
    .matrix-table td {
        min-width: 55px;
        padding: 6px 4px;
    }

    .matrix-table th:first-child,
    .matrix-table td:first-child {
        min-width: 70px;
        padding-left: 8px;
    }

    .matrix-input {
        max-width: 50px;
        padding: 4px;
        font-size: 11px;
    }

    .option-label {
        min-width: 100px;
    }
}

/* 选择框和输入框优化 */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* 打印样式 */
@media print {
    .container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn,
    .actions,
    .data-section {
        display: none;
    }
}

        /*.actions {*/
        /*    display: flex;*/
        /*    justify-content: space-between;*/
        /*    align-items: center;*/
        /*    margin-top: 30px;*/
        /*    padding-top: 20px;*/
        /*    border-top: 2px solid var(--light-color);*/
        /*}*/

        /* 模态框样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: 15px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #666;
        }

        .modal-close:hover {
            color: #333;
        }

        .qr-code {
            width: 220px;
            height: 220px;
            display: block;
            margin: 20px auto;
            border: 1px solid #eee;
            padding: 10px;
            background: white;
        }

        .modal-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
        }

        /* 价格信息卡片 */
        .price-info {
            background: linear-gradient(135deg, #fff8e1 0%, #ffe4cc 100%);
            border-left: 4px solid var(--primary-color);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .price-info h3 {
            color: var(--dark-color);
            margin-top: 0;
        }

        .price-list p {
            margin: 8px 0;
            color: #666;
        }

        .contact-info {
            background: linear-gradient(135deg, #e6f7ff 0%, #d1ecff 100%);
            border-left: 4px solid #1890ff;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .requirement-note {
            background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
            border-left: 4px solid #52c41a;
            padding: 20px;
            border-radius: 8px;
        }


        /* 支付方式选择 */
        .payment-methods {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
        }

        .payment-method {
            width: 120px;
            padding: 15px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background: white;
        }

        .payment-method:hover {
            border-color: var(--primary-color);
            transform: translateY(-3px);
        }

        .payment-method.selected {
            border-color: var(--primary-color);
            background: rgba(234, 88, 12, 0.05);
            box-shadow: 0 4px 12px rgba(234, 88, 12, 0.1);
        }

        .payment-method-icon {
            font-size: 36px;
            margin-bottom: 8px;
        }

        .payment-method-name {
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }

        .text-success {
            color: #28a745;
        }

        .text-primary {
            color: #1890ff;
        }

        /* 加载动画 */
        .spinner-border {
            width: 1.5rem;
            height: 1.5rem;
            margin-right: 8px;
            vertical-align: -0.125em;
            border: 0.25em solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: spinner-border 0.75s linear infinite;
        }

        @keyframes spinner-border {
            to { transform: rotate(360deg); }
        }

        /* 成功提示 */
        .success-message {
            text-align: center;
            padding: 20px;
        }

        .success-icon {
            font-size: 60px;
            color: #28a745;
            margin-bottom: 20px;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }

            /*.actions {*/
            /*    flex-direction: column;*/
            /*    gap: 15px;*/
            /*}*/

            .data-buttons {
                justify-content: center;
            }

            .payment-methods {
                flex-direction: column;
                align-items: center;
            }

            .payment-method {
                width: 100%;
                max-width: 200px;
            }
        }
















