/* ==================== 产品页公共样式 ==================== */
/* 在线问卷管理系统 & 线上定性访问系统 */

.questionnaire-section {
    background: #f6f6f6;
    padding: 80px 0;
}

.questionnaire-container {
    position: relative;
    min-height: 600px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.qpage {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.qpage.active {
    display: grid;
}

.questionnaire-left h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.questionnaire-left > p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.question-types {
    margin-bottom: 25px;
}

.type-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.type-radio {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #a52a3b;
    flex-shrink: 0;
    position: relative;
}

.type-radio::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.type-label {
    font-size: 16px;
}

.type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.type-options label {
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.type-options input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.type-options input[type="radio"]:checked {
    border-color: #aa2331;
}

.type-options input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background: #aa2331;
    border-radius: 50%;
}

.page-dots {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.dot {
    width: 28px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
}

.dot.active {
    background: #aa2331;
}

.page-dots .dot:nth-child(2).active {
    background: #2a82e4;
}

.demo-btn {
    background: #aa2331;
    color: #fff;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    width: 120px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-btn-blue {
    background: #2a82e4;
}

.demo-btn-blue:hover {
    background: #1a6fd4;
}

.page-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.phone-mockup {
    display: flex;
    justify-content: center;
    width: 100%;
}

.phone-preview-wrap {
    position: relative;
    width: 510px;
    height: 580px;
}

.preview-dot {
    position: absolute;
    left: 275px;
}

.preview-dot img {
    width: auto;
    height: 12px;
    display: block;
}

.preview-label {
    position: absolute;
    left: 312px;
    width: 170px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.dot-top {
    top: 15%;
}

.label-top {
    top: calc(15% + 20px);
}

.dot-mid {
    top: 40%;
}

.label-mid {
    top: calc(40% + 20px);
    white-space: normal;
}

.dot-bottom {
    bottom: 15%;
}

.label-bottom {
    bottom: calc(15% + 20px);
}

/* Page 2 单独调整 */
.xsdxfwxt .questionnaire-left {
    order: 2;
}

.xsdxfwxt .phone-mockup {
    order: 1;
}

.xsdxfwxt .preview-label {
    background: rgba(42, 130, 228, 0.15);
}

.xsdxfwxt .dot-mid {
    top: 36%;
}

.xsdxfwxt .label-mid {
    top: calc(36% + 20px);
}

.ggzx-section .dot-mid {
    top: 55%;
}

.ggzx-section .label-mid {
    top: calc(55% + 20px);
}

.ggzx-section .preview-label {
    background: rgba(170, 35, 49, 0.1);
}

.xfsy-section .preview-label {
    background: rgba(0, 186, 173, 0.15);
}

.xfsy-section .dot-top {
    top: 30%;
}

.xfsy-section .label-top {
    top: calc(30% + 20px);
}

.xfsy-section .dot-mid {
    top: 60%;
}

.xfsy-section .label-mid {
    top: calc(60% + 20px);
}

.xfsy-section .switch-toggle.on {
    background: #00baad;
}

.zyzm-section .switch-toggle.on {
    background: #ff8d1a;
}

.zyzm-section .preview-label {
    background: rgba(255, 141, 26, 0.15);
}

.zyzm-section .dot-top {
    top: 30%;
}

.zyzm-section .label-top {
    top: calc(30% + 20px);
}

.zyzm-section .dot-mid {
    top: 60%;
}

.zyzm-section .label-mid {
    top: calc(60% + 20px);
}

.syyy-section .switch-toggle.on {
    background: #ea6f5a;
}

.syyy-section .preview-label {
    background: rgba(234, 111, 90, 0.15);
}

.syyy-section .dot-top {
    top: 30%;
}

.syyy-section .label-top {
    top: calc(30% + 20px);
}

.syyy-section .dot-mid {
    top: unset;
    bottom: 15%;
}

.syyy-section .label-mid {
    top: unset;
    bottom: calc(15% + 20px);
}

.xsdxfwxt .dot-bottom {
    bottom: 6%;
}

.xsdxfwxt .label-bottom {
    bottom: calc(6% + 20px);
}

.phone-frame {
    width: 290px;
    height: 580px;
    border-radius: 40px;
    padding: 15px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.screen-preview {
    background: #f8f8f8;
}

.qtype-preview,
.qtype-preview-page2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-header {
    padding: 10px 15px 5px;
    text-align: right;
}

.phone-time {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.phone-body {
    padding: 10px 18px;
    text-align: center;
}

.phone-logo {
    font-size: 24px;
    font-weight: 700;
    color: #c62828;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.phone-subtitle {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}

.phone-desc {
    font-size: 11px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
}

.phone-hint {
    font-size: 10px;
    color: #999;
    margin-bottom: 10px;
}

.phone-shelf {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 10px 8px;
    margin-bottom: 10px;
}

.shelf-items {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 6px;
}

.shelf-product {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-img {
    width: 50px;
    height: 55px;
    border-radius: 4px;
    margin-bottom: 3px;
}

.product-price {
    font-size: 10px;
    background: #c62828;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
}

.phone-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    font-size: 11px;
    color: #666;
}

/* Chat Phone Mockup (Page 2) */
.chat-header {
    background: #fff !important;
}

.chat-body {
    height: calc(100% - 35px);
    background: #f0f2f5;
    padding: 12px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-title-area {
    text-align: center;
    padding: 8px 0 10px;
}

.chat-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    position: relative;
}

.chat-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    clip-path: polygon(20% 100%, 80% 100%, 80% 45%, 100% 30%, 100% 15%, 80% 0%, 60% 25%, 40% 25%, 20% 0%, 0 15%, 0 30%, 20% 45%);
}

.chat-title-area h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.chat-title-area p {
    font-size: 10px;
    color: #999;
}

.chat-msgs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.chat-item {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0;
}

.msg-content {
    max-width: 180px;
}

.msg-content strong {
    font-size: 9px;
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.msg-bubble {
    background: #fff;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 9.5px;
    line-height: 1.5;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.msg-question {
    padding-bottom: 4px;
}

.question-options {
    margin-top: 5px;
    font-size: 9px;
    color: #555;
    line-height: 1.7;
}

.question-btn {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 5px 0;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 9.5px;
    cursor: pointer;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 5px;
    background: #fff;
    border-radius: 18px;
    margin-top: 8px;
    font-size: 10px;
    color: #bbb;
}

/* Feature List (Page 2) */
.feature-list {
    margin-bottom: 22px;
}

.feature-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #1890ff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 18px;
    border-left: 3px solid #1890ff;
}

.feature-desc-box {
    background: rgba(24, 144, 255, 0.08);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #444;
    margin-bottom: 16px;
}

.feature-switches {
    margin-bottom: 16px;
}

.switch-item {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-start;
    cursor: pointer;
}

.switch-toggle {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.switch-toggle.off {
    background: #ccc;
}

.switch-toggle.on {
    background: #1890ff;
}

.switch-toggle.on::after,
.switch-toggle.off::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
}

.switch-toggle.off::after {
    right: 2px;
}

.switch-toggle.on::after {
    left: 2px;
}

.switch-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* ==================== Responsive ==================== */
/* @media (max-width: 1024px) {
    .questionnaire-section {
        padding: 60px 20px;
    }
    .qpage {
        gap: 30px;
    }
    .phone-preview-wrap {
        width: 400px;
        height: 480px;
    }
    .phone-frame {
        width: 230px;
        height: 480px;
        border-radius: 32px;
        padding: 12px;
    }
    .phone-screen {
        border-radius: 24px;
    }
    .preview-dot {
        left: 215px;
    }
    .preview-label {
        left: 240px;
        width: 140px;
        font-size: 14px;
        padding: 10px 12px;
    }
    .preview-dot img {
        height: 10px;
    }
} */

@media (max-width: 768px) {
    .questionnaire-section {
        padding: 40px 0;
    }
    .questionnaire-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .qpage {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .xsdxfwxt .questionnaire-left {
        order: 1;
    }
    .xsdxfwxt .phone-mockup {
        order: 1;
    }
    .questionnaire-left h3 {
        font-size: 22px;
        margin-bottom: 24px;
    }
    .questionnaire-left > p {
        font-size: 14px;
    }
    .phone-preview-wrap {
        width: 100%;
        height: auto;
        margin: 0 auto;
        margin-left: -8px;
    }
    .phone-frame {
        width: 200px;
        height: auto;
        border-radius: 28px;
        padding: 8px;
    }
    .phone-screen {
        border-radius: 20px;
    }
    .preview-dot {
        left: 190px;
    }
    .preview-label {
        left: 205px;
        width: calc(100% - 195px);
        font-size: 13px;
        padding: 8px 10px;
    }
    .preview-dot img {
        height: 9px;
    }
    .page-dots {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 24px;
    }
    .demo-btn {
        width: 100px;
        font-size: 14px;
        padding: 10px 0;
    }
    .type-row {
        flex-wrap: wrap;
    }
    .switch-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .questionnaire-section {
        padding: 30px 0;
    }
    .questionnaire-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .qpage {
        gap: 20px;
    }
    .questionnaire-left h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .phone-preview-wrap {
        height: auto;
        margin-left: -8px;
    }
    .phone-frame {
        width: 165px;
        height: auto;
        border-radius: 24px;
    }
    .phone-screen {
        border-radius: 16px;
    }
    .preview-dot {
        left: 157px;
    }
    .preview-label {
        left: 168px;
        width: calc(100% - 158px);
        font-size: 13px;
        padding: 6px 8px;
        border-radius: 6px;
    }
    .preview-dot img {
        height: 8px;
    }
    .demo-btn {
        width: 90px;
        font-size: 13px;
    }
    .type-options {
        gap: 10px 16px;
    }
    .type-label {
        font-size: 14px;
    }
    .type-options label {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .xsdxfwxt .dot-top {
        top: 10%;
    }
    .xsdxfwxt .label-top {
        top: calc(10% + 20px);
    }
    .xsdxfwxt .dot-mid {
        top: 29%;
    }
    .xsdxfwxt .label-mid {
        top: calc(29% + 20px);
    }
    .xfsy-section .dot-top {
        top: 10%;
    }
    .xfsy-section .label-top {
        top: calc(10% + 20px);
    }
    .xfsy-section .dot-mid {
        top: 29%;
    }
    .xfsy-section .label-mid {
        top: calc(29% + 20px);
    }
    .preview-label {
        font-size: 11px;
    }
}
