/* =========================================================
   联系我们页专属样式
   文件：css/contact.css
   依赖：css/style.css、css/aboutus.css、css/productslist.css
   ========================================================= */

/* ========== Section 1：左联系信息 + 右留言表单 ========== */
.ct-wrap {
    padding: 80px 20px;
    background: var(--bg-white);
}
.ct-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 64px;
    align-items: start;
}

/* 左侧联系信息 */
.ct-info-en {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #70b52c;
    letter-spacing: 4px;
    margin-bottom: 18px;
}
.ct-info h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.35;
    margin-bottom: 14px;
}
.ct-info p.ct-info-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 32px;
}

/* 联系卡片列表 */
.ct-info-list {
    display: flex; flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}
.ct-info-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px;
    background: #f7f9fc;
    border-radius: 12px;
    transition: background 0.25s ease, transform 0.25s ease;
}
.ct-info-item:hover {
    background: #eef2f9;
    transform: translateX(4px);
}
.ct-info-item-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.ct-info-item-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 3px;
    letter-spacing: 1px;
}
.ct-info-item-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
    word-break: break-all;
}
.ct-info-item-value a { color: var(--text-dark); text-decoration: none; transition: color 0.2s ease; }
.ct-info-item-value a:hover { color: var(--primary); }

/* 工作时间 */
.ct-info-hours {
    padding: 18px 20px;
    background: linear-gradient(135deg, #e8f1fc 0%, #f2f7ff 100%);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}
.ct-info-hours h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.ct-info-hours h4 i { font-size: 12px; }
.ct-info-hours p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.8;
}

/* 右侧表单 */
.ct-form-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}
.ct-form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px;
}
.ct-form-title::before {
    content: '';
    width: 4px; height: 20px;
    background: linear-gradient(180deg, var(--primary) 0%, #70b52c 100%);
    border-radius: 2px;
}
.ct-form-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.ct-form-field { margin-bottom: 18px; }
.ct-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}
.ct-form-field label .req {
    color: #e74c3c;
    margin-left: 2px;
}
.ct-form-field input,
.ct-form-field textarea,
.ct-form-field select {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    padding: 13px 16px;
    border: 1px solid #e2e6ee;
    border-radius: 10px;
    background: #fafbfe;
    color: var(--text-dark);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}
.ct-form-field input:focus,
.ct-form-field textarea:focus,
.ct-form-field select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,95,160,0.12);
}
.ct-form-field textarea {
    resize: vertical;
    min-height: 140px;
}
.ct-form-field input::placeholder,
.ct-form-field textarea::placeholder {
    color: #a0a7b3;
}
.ct-form-submit {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(26,95,160,0.3);
}
.ct-form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,95,160,0.4);
}
.ct-form-submit i { font-size: 12px; }

/* 提交成功提示 */
.ct-form-success {
    display: none;
    padding: 20px 24px;
    background: #eef8ef;
    border: 1px solid #cde8cf;
    border-radius: 12px;
    color: #2d7a35;
    font-size: 14px;
    align-items: center; gap: 12px;
    margin-top: 18px;
}
.ct-form-success.is-visible { display: flex; }
.ct-form-success i {
    width: 28px; height: 28px;
    background: #70b52c;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}

/* ========== Section 2：咨询 CTA ========== */
.ct-cta {
    position: relative;
    padding: 96px 20px;
    background: url('/uploads/20261110/3a6e9392f82a9618a9218ec12f8bf9a0.jpg') center/cover no-repeat fixed;
    overflow: hidden;
}
.ct-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgb(94 169 97 / 88%) 0%, rgb(117 188 255 / 18%) 50%, rgb(55 115 133) 100%);
}
.ct-cta-inner {
    position: relative; z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
.ct-cta-icon {
    width: 72px; height: 72px;
    background: #70b52c;
    border-radius: 50%;
    margin: 0 auto 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 32px rgba(112,181,44,0.5);
    animation: ctFloat 3s ease-in-out infinite;
}
@keyframes ctFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.ct-cta h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.ct-cta-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.9;
    margin-bottom: 36px;
}
.ct-cta-buttons {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.ct-cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 36px;
    font-size: 15px; font-weight: 600;
    border-radius: 50px;
    cursor: pointer; border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}
.ct-cta-btn--primary {
    background: #70b52c;
    color: #fff;
    box-shadow: 0 6px 24px rgba(112,181,44,0.45);
}
.ct-cta-btn--primary:hover {
    background: #5c9a23;
    transform: translateY(-2px);
}
.ct-cta-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.ct-cta-btn--ghost:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .ct-wrap { padding: 64px 20px; }
    .ct-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .ct-wrap { padding: 48px 16px; }
    .ct-form-card { padding: 28px 20px; }
    .ct-form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .ct-cta { padding: 64px 20px; }
    .ct-cta-icon { width: 56px; height: 56px; font-size: 22px; }
}
