/* ========== 联系我们页专用样式 ========== */

/* Hero 简化版：居中无右侧视觉 */
.ct-hero {
    padding: 140px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-bg, #f0f9ff) 0%, #fff 100%);
}
.ct-hero .hero-badge {
    display: inline-block;
    margin-bottom: 18px;
}
.ct-hero h1 {
    font-size: 40px;
    line-height: 1.25;
    margin: 0 0 16px;
    color: var(--gray-900, #0f172a);
}
.ct-hero h1 .highlight { color: var(--primary, #0ea5e9); }
.ct-hero-sub {
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-600, #475569);
}
.ct-hero-sub strong { color: var(--primary, #0ea5e9); }

/* 主渠道三按钮 */
.ct-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.ct-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 18px 20px;
    background: #fff;
    border: 1px solid var(--gray-100, #f1f5f9);
    border-radius: var(--radius-lg, 16px);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.ct-channel:hover {
    border-color: var(--primary-light, #7dd3fc);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.08));
    transform: translateY(-2px);
}
.ct-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary, #0284c7), var(--primary, #0ea5e9));
    color: #fff;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.28);
    transition: transform 0.25s ease;
}
.ct-channel:hover .ct-channel-icon { transform: scale(1.08); }
.ct-channel-icon svg { width: 22px; height: 22px; }
.ct-channel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900, #0f172a);
}
.ct-channel-note {
    font-size: 13px;
    color: var(--gray-500, #64748b);
}
/* 主推渠道：在线留言 */
.ct-channel.featured {
    background: linear-gradient(135deg, var(--secondary, #0284c7) 0%, var(--primary, #0ea5e9) 100%);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}
.ct-channel.featured .ct-channel-icon {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}
.ct-channel.featured .ct-channel-title { color: #fff; }
.ct-channel.featured .ct-channel-note { color: rgba(255, 255, 255, 0.85); }
.ct-channel.featured:hover {
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.4);
    border-color: transparent;
}

/* 留言表单 */
.ct-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--gray-100, #f1f5f9);
    border-radius: var(--radius-lg, 16px);
    padding: 36px 36px 30px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06));
}
.ct-field { margin-bottom: 20px; }
.ct-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800, #1e293b);
    margin-bottom: 8px;
}
.ct-field label .req { color: #ef4444; margin-left: 2px; }
.ct-field input,
.ct-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-900, #0f172a);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.ct-field input:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: var(--primary, #0ea5e9);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.ct-field textarea { min-height: 110px; resize: vertical; }
.ct-field .field-tip {
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-500, #64748b);
}
.ct-field .field-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #ef4444;
}
.ct-field.has-error input,
.ct-field.has-error textarea { border-color: #ef4444; }
.ct-field.has-error .field-error { display: block; }
.ct-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.ct-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(135deg, var(--secondary, #0284c7), var(--primary, #0ea5e9));
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.ct-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}
.ct-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.ct-form-error {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md, 12px);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    text-align: center;
}
.ct-form-error.show { display: block; }
.ct-form-error a { color: #dc2626; font-weight: 600; }
.ct-privacy {
    margin-top: 14px;
    font-size: 12px;
    color: var(--gray-500, #64748b);
    text-align: center;
}
.ct-form-success {
    display: none;
    text-align: center;
    padding: 30px 10px;
}
.ct-form-success .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ct-form-success h3 {
    font-size: 20px;
    color: var(--gray-900, #0f172a);
    margin: 0 0 10px;
}
.ct-form-success p {
    font-size: 15px;
    color: var(--gray-600, #475569);
    line-height: 1.8;
    margin: 0;
}
.ct-form-success a { color: var(--primary, #0ea5e9); font-weight: 600; }

/* 联系方式明细 */
.ct-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}
.ct-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--gray-100, #f1f5f9);
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    transition: all 0.25s ease;
}
.ct-info-card:hover {
    border-color: var(--primary-light, #7dd3fc);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06));
}
.ct-info-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary-bg, #f0f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.ct-info-card h3 {
    font-size: 16px;
    color: var(--gray-900, #0f172a);
    margin: 0 0 6px;
}
.ct-info-card p {
    font-size: 14px;
    color: var(--gray-600, #475569);
    line-height: 1.7;
    margin: 0;
}
.ct-info-card a { color: var(--primary, #0ea5e9); text-decoration: none; font-weight: 600; }
.ct-info-card a:hover { text-decoration: underline; }
.ct-qr {
    width: 132px;
    height: 132px;
    border-radius: 10px;
    border: 1px solid var(--gray-100, #f1f5f9);
    flex-shrink: 0;
    object-fit: cover;
    background: #fff;
}

/* 主体与资质 */
.ct-entity {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    color: var(--gray-500, #64748b);
    line-height: 2;
}
.ct-entity strong { color: var(--gray-800, #1e293b); }

/* 移动端适配 */
@media (max-width: 968px) {
    .ct-channels { grid-template-columns: 1fr; max-width: 480px; }
    .ct-info-grid { grid-template-columns: 1fr; }
    .ct-hero h1 { font-size: 30px; }
}
@media (max-width: 640px) {
    .ct-form-wrap { padding: 26px 20px; }
    .ct-hero { padding: 90px 0 32px; }
    .ct-info-card { flex-wrap: wrap; }
}
