/* =========================================================
 * 票云阁 support 页面统一样式
 * 适用页面：
 * 关于我们 / 联系我们 / 用户协议 / 隐私声明 / 用户留言 / 帮助中心
 * ========================================================= */

.support-page {
    width: 100%;
    min-height: calc(100vh - 180px);
    padding: 34px 36px 48px;
    box-sizing: border-box;
    background: #f6f8fb;
}

.support-card {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(35, 61, 99, 0.08);
    padding: 34px 40px 38px;
    box-sizing: border-box;
    border: 1px solid #eef1f6;
}

.support-card-wide {
    max-width: 1080px;
}

.support-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f5;
    margin-bottom: 24px;
}

.support-header h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.35;
    color: #1f2937;
    font-weight: 700;
}

.support-header p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.8;
}

.support-body {
    color: #344054;
    font-size: 15px;
    line-height: 2;
}

.support-body p {
    margin: 0 0 14px;
}

.support-body a,
.support-article a,
.contact-value a {
    color: #2563eb;
    text-decoration: none;
}

.support-body a:hover,
.support-article a:hover,
.contact-value a:hover {
    text-decoration: underline;
}

.support-body-mt {
    margin-top: 24px;
}

/* 关于我们 */
.about-highlight {
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    padding: 20px 22px;
    margin-bottom: 22px;
}

.about-highlight-title {
    font-size: 22px;
    color: #1d4ed8;
    font-weight: 800;
    line-height: 1.3;
}

.about-highlight-desc {
    margin-top: 8px;
    font-size: 15px;
    color: #475467;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.about-value-item {
    border: 1px solid #eef1f6;
    border-radius: 14px;
    background: #fbfcfe;
    padding: 16px 18px;
}

.about-value-title {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 7px;
}

.about-value-text {
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

/* 关于我们正文聚合卡片 */
.about-content-card {
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #fbfcfe;
    border: 1px solid #eef1f6;
    color: #344054;
    font-size: 15px;
    line-height: 1.85;
}

.about-content-card p {
    margin: 0 0 12px;
    text-align: justify;
}

.about-content-card p:last-child {
    margin-bottom: 0;
}

/* 长文页面 */
.support-article {
    color: #344054;
    font-size: 15px;
    line-height: 2.05;
}

.support-article p {
    margin: 0 0 13px;
    text-align: justify;
}

.support-updated {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #edf0f5;
    font-size: 13px;
    color: #98a2b3;
    text-align: right;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: stretch;
}

.contact-info {
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 20px 22px;
    background: #fbfcfe;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    width: 90px;
    flex: 0 0 90px;
    color: #667085;
    font-size: 14px;
}

.contact-value {
    flex: 1;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.7;
}

.contact-qrcode-box {
    border: 1px solid #eef1f6;
    border-radius: 14px;
    background: #fbfcfe;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.qrcode-placeholder {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qrcode-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    background: #ffffff;
}

.qrcode-fallback {
    position: absolute;
    z-index: 1;
    color: #98a2b3;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.qrcode-placeholder.qrcode-missing {
    background: #f9fafb;
    border-style: dashed;
}

.qrcode-title {
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
}

.qrcode-desc {
    margin-top: 6px;
    color: #667085;
    font-size: 13px;
}

.support-tips {
    margin-top: 24px;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 16px 18px;
}

.support-tips-title {
    color: #92400e;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.support-tips-text {
    color: #92400e;
    font-size: 14px;
    line-height: 1.8;
}

/* 用户留言 */
.message-notice {
    background: #f8fbff;
    border: 1px solid #dceafe;
    border-radius: 14px;
    padding: 18px 20px;
    color: #344054;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.message-notice p {
    margin: 0;
}

.message-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-success strong {
    font-size: 15px;
}

.message-error {
    background: #fff4f3;
    border: 1px solid #fecdca;
    color: #b42318;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
}

.message-error div + div {
    margin-top: 4px;
}

.message-form {
    margin-top: 8px;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-weight: 600;
    font-size: 14px;
}

.required {
    color: #d92d20;
}

.form-row input,
.form-row textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1f2937;
    outline: none;
    background: #ffffff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-row textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.75;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #5b8def;
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.12);
}

.form-hint {
    margin-top: 7px;
    color: #98a2b3;
    font-size: 13px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.support-primary-btn {
    min-width: 128px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 24px;
    transition: background 0.16s ease, transform 0.12s ease;
}

.support-primary-btn:hover {
    background: #1d4ed8;
}

.support-primary-btn:active {
    transform: translateY(1px);
}

/* 帮助中心 */
.help-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.help-group {
    border: 1px solid #eef1f6;
    border-radius: 16px;
    background: #fbfcfe;
    padding: 22px 24px;
}

.help-group h2 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    line-height: 1.4;
}

.help-category-desc {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
}

.help-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-item {
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 17px 18px;
}

.help-item h3 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.5;
}

.help-content {
    color: #475467;
    font-size: 14px;
    line-height: 1.9;
}

.help-content p {
    margin: 0;
}

.help-pin {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}

.support-empty {
    padding: 34px 20px;
    border-radius: 14px;
    background: #fbfcfe;
    border: 1px dashed #d0d5dd;
    color: #667085;
    text-align: center;
    font-size: 15px;
}

.support-empty-title {
    color: #344054;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.support-empty-desc {
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
}

.support-center-actions {
    margin-top: 26px;
    text-align: center;
}

.support-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.support-primary-link:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* 响应式 */
@media (max-width: 900px) {
    .support-page {
        padding: 24px 18px 36px;
    }

    .support-card {
        padding: 26px 22px 30px;
        border-radius: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-qrcode-box {
        max-width: 280px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .support-header h1 {
        font-size: 23px;
    }

    .contact-item {
        display: block;
    }

    .contact-label {
        display: block;
        width: auto;
        margin-bottom: 4px;
    }

    .form-actions {
        justify-content: stretch;
    }

    .support-primary-btn {
        width: 100%;
    }
}

/* =========================================================
 * 第五批：长文页面与联系页面收口优化
 * ========================================================= */

/* 协议/隐私摘要提示 */
.legal-summary-card {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
}

.privacy-summary-card {
    background: #f8fffb;
    border-color: #bbf7d0;
}

.legal-summary-title {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-summary-text {
    color: #475467;
    font-size: 14px;
    line-height: 1.8;
}

/* 协议/隐私正文聚合卡片 */
.legal-content-card {
    padding: 24px 26px;
    border-radius: 16px;
    background: #fbfcfe;
    border: 1px solid #eef1f6;
    color: #344054;
    font-size: 15px;
    line-height: 1.86;
}

.legal-content-card p {
    margin: 0 0 12px;
    text-align: justify;
}

.legal-content-card p:last-child {
    margin-bottom: 0;
}

/* 历史版权页使用更紧凑显示 */
.compact-content-card {
    padding: 22px 24px;
    line-height: 1.82;
}

/* 联系我们后台正文卡片 */
.contact-content-card {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fbfcfe;
    border: 1px solid #eef1f6;
    color: #475467;
    font-size: 14px;
    line-height: 1.8;
}

.contact-content-card p {
    margin: 0 0 8px;
}

.contact-content-card p:last-child {
    margin-bottom: 0;
}

/* 长文页在小屏幕下收紧 */
@media (max-width: 760px) {
    .legal-content-card {
        padding: 20px 18px;
        font-size: 14px;
        line-height: 1.78;
    }

    .legal-summary-card {
        padding: 16px 18px;
    }
}