/* ============================================================
   客户服务中心 - 公共样式
   complaint.php / survey.php 共用
   ============================================================ */

:root {
    --primary-color: #dc3545;
    --primary-hover: #bb2d3b;
    --primary-rgb: 220, 53, 69;
    --secondary-color: #6c757d;
}

body {
    background: #ffffff;
    min-height: 100vh;
    padding: 20px 0;
}

/* Banner */
.banner-section {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.banner-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 4px;
}

/* 内容卡片 */
.form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.card-title {
    color: #333;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* 返回链接 */
.back-link {
    text-align: center;
    margin-bottom: 15px;
}

.back-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: var(--primary-color);
}

/* 表单 */
.form-label {
    font-weight: 500;
    color: #555;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    transform: none;
}

/* 页脚 */
.footer-text {
    text-align: center;
    margin-top: 20px;
    color: rgba(0,0,0,0.5);
    font-size: 0.9rem;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Honeypot */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   满意度调查专属样式
   ============================================================ */

/* 卷首语 */
.card-intro {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: justify;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* 分段标题 */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
    margin-top: 30px;
}

.section-title:first-of-type {
    margin-top: 0;
}

/* 评分行 */
.rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rating-row:last-child {
    border-bottom: none;
}

.rating-label {
    flex: 1;
    font-size: 0.95rem;
    color: #444;
    padding-right: 15px;
}

/* 评分按钮组 */
.rating-stars {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.rating-stars .star-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #adb5bd;
    transition: all 0.2s;
}

.rating-stars .star-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rating-stars .star-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-item {
    position: relative;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-item label {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s;
    background: #fff;
}

.radio-item input[type="radio"]:checked + label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.radio-item label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.radio-item input[type="radio"]:checked + label:hover {
    color: #fff;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 576px) {
    .form-card {
        padding: 25px;
        margin: 0 15px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .banner-img, .banner-placeholder {
        height: 180px;
    }

    .rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .radio-group {
        gap: 8px;
    }

    .rating-stars .star-btn {
        width: 36px;
        height: 36px;
    }
}
