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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.analytics-link {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.analytics-link:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #f0f0f0;
}

.lang-btn.active {
    background: #667eea;
    color: white;
}

h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

.question-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.question-section h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.question-section p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    font-weight: 500;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.checkbox-group label, .radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.checkbox-group label:hover, .radio-group label:hover {
    background: #f0f0f0;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rating-table th,
.matrix-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.rating-table td,
.matrix-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.rating-table td:first-child,
.matrix-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f5f5f5;
    min-width: 200px;
}

.rating-table select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 80px;
}

.rating-table select:hover {
    border-color: #667eea;
}

.rating-table select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.matrix-table input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.satisfaction-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.satisfaction-scale .radio-group {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.satisfaction-scale .radio-group label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    min-width: 60px;
}

.satisfaction-scale .radio-group label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.satisfaction-scale .radio-group input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 700;
}

.satisfaction-scale .radio-group input[type="radio"]:checked ~ span,
.satisfaction-scale .radio-group input[type="radio"]:checked {
    border-color: #667eea;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    margin-top: 10px;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.submit-btn, .reset-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.reset-btn {
    background: #e0e0e0;
    color: #333;
}

.reset-btn:hover {
    background: #d0d0d0;
}

.success-message {
    text-align: center;
    padding: 30px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin-top: 20px;
    border: 2px solid #c3e6cb;
}

.success-message p {
    font-size: 18px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .question-section {
        padding: 20px;
    }

    .table-container {
        overflow-x: scroll;
    }

    .rating-table th,
    .matrix-table th {
        font-size: 12px;
        padding: 10px 5px;
    }

    .rating-table td,
    .matrix-table td {
        padding: 10px 5px;
        font-size: 12px;
    }

    .satisfaction-scale {
        flex-direction: column;
        gap: 15px;
    }

    .satisfaction-scale .radio-group {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn, .reset-btn {
        width: 100%;
    }

    .language-switcher {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
    }

    .language-switcher,
    .form-actions {
        display: none;
    }
}

