/* ==========================================
   Contact 页专属样式
   ========================================== */

/* ---------- Hero (已对齐全站高级风格) ---------- */
.ct-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 100px 20px;
    color: #fff;
    background: #0a1f3d;
}
.ct-hero-bg {
    position: absolute; inset: 0;
    background: url('/images/banner/banner-heavy-duty-profile-cnc-machining.webp') center/cover no-repeat;
    opacity: 0.4;
    z-index: 1;
}
.ct-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,42,74,0.92) 0%, rgba(15,42,74,0.6) 55%, rgba(15,42,74,0.35) 100%);
    z-index: 2;
}
.ct-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 标签小字 */
.ct-hero-label {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
    font-weight: 600;
    text-transform: uppercase;
}

/* 主标题 */
.ct-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
    max-width: 820px;
    color: #fff;
}

/* 副标题 */
.ct-hero p {
    font-size: 17px;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 0 32px;
}

/* 按钮组 */
.ct-hero-cta { 
    display: flex; 
    gap: 14px; 
    flex-wrap: wrap; 
}
.ct-hero-btn { 
    display: inline-block; 
    background: #1d6fe8; 
    color: #fff; 
    padding: 14px 30px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 600; 
    transition: all 0.25s; 
    border: 1px solid #1d6fe8; 
}
.ct-hero-btn:hover { 
    background: #1557b8; 
    border-color: #1557b8; 
    transform: translateY(-2px); 
}
.ct-hero-btn-outline { 
    display: inline-block; 
    background: transparent; 
    color: #fff; 
    padding: 14px 30px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 600; 
    border: 1px solid rgba(255,255,255,0.4); 
    transition: all 0.25s; 
}
.ct-hero-btn-outline:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: #fff; 
    transform: translateY(-2px); 
}

/* ---------- Contact Info ---------- */
.ct-info {
    padding: 80px 20px 60px;
    background: #ffffff;
}
.ct-info-header {
    max-width: 1200px;
    margin: 0 auto 50px;
}
.ct-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--c-primary);
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
    padding-left: 50px;
}
.ct-label::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 40px; height: 2px;
    background: var(--c-primary);
}
.ct-info-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--c-dark);
    margin: 0 0 14px;
}
.ct-info-header p {
    font-size: 16px;
    color: var(--c-text-muted);
    margin: 0;
}
.ct-info-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ct-info-card {
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 36px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.ct-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px -10px rgba(29,111,232,0.2);
}
.ct-info-icon {
    width: 56px; height: 56px;
    background: var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 22px;
}
.ct-info-icon svg { width: 26px; height: 26px; }
.ct-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-dark);
    margin: 0 0 14px;
}
.ct-info-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 8px;
}
.ct-info-hours { color: #94a3b8 !important; font-size: 13px !important; }
.ct-info-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}
.ct-info-link:hover { color: var(--c-primary-hover); }

/* ---------- Main: Global + Form ---------- */
.ct-main { background: #ffffff; }
.ct-main-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1440px;
    margin: 0 auto;
}
.ct-global {
    background: linear-gradient(135deg, #0a2540 0%, #1e3c72 100%);
    color: #fff;
    padding: 80px 60px;
}
.ct-global-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--c-primary-light);
    font-weight: 700;
    margin-bottom: 16px;
}
.ct-global h2 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
}
.ct-global p {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 30px;
}

/* amCharts 地图容器 */
.ct-global-map {
    width: 100%;
    height: 380px;
    margin-bottom: 30px;
    background: transparent;
}

.ct-global-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}
.ct-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.ct-stat-label {
    font-size: 13px;
    color: #94a3b8;
}
.ct-global-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 特性图标 */
.ct-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.ct-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary-light);
    font-size: 18px;
    margin-bottom: 4px;
    transition: background 0.25s, transform 0.25s, border-color 0.25s, color 0.25s;
}
.ct-feature:hover .ct-feature-icon {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    transform: translateY(-2px);
}
.ct-feature-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.ct-feature-desc {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* ---------- Form ---------- */
.ct-form-wrap {
    background: var(--c-bg-soft);
    padding: 80px 60px;
}
.ct-form-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--c-primary);
    font-weight: 700;
    margin-bottom: 14px;
}
.ct-form-wrap h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--c-dark);
    margin: 0 0 12px;
}
.ct-form-wrap > p {
    font-size: 15px;
    color: var(--c-text-muted);
    margin: 0 0 30px;
}
.ct-msg {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 22px;
}
.ct-msg-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.ct-msg-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.ct-form .ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.ct-field { margin-bottom: 20px; }
.ct-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}
.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(29,111,232,0.1);
}
.ct-upload {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    background: #ffffff;
    margin-bottom: 22px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.ct-upload:hover {
    border-color: var(--c-primary);
    background: #f0f7ff;
}
.ct-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.ct-upload-icon {
    font-size: 28px;
    color: var(--c-primary);
    margin-bottom: 8px;
}
.ct-upload-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 6px;
}
.ct-upload-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}
.ct-submit {
    width: 100%;
    background: var(--c-primary);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.ct-submit:hover { background: var(--c-primary-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .ct-hero h1 { font-size: 42px; }
    .ct-info-grid { grid-template-columns: repeat(2, 1fr); }
    .ct-main-inner { grid-template-columns: 1fr; }
    .ct-global, .ct-form-wrap { padding: 60px 40px; }
}
@media (max-width: 700px) {
    .ct-hero { min-height: 340px; padding: 60px 20px; }
    .ct-hero h1 { font-size: 34px; }
    .ct-hero p { font-size: 15px; }
    .ct-info-header h2 { font-size: 28px; }
    .ct-info-grid { grid-template-columns: 1fr; }
    .ct-global h2, .ct-form-wrap h2 { font-size: 24px; }
    .ct-global-stats, .ct-global-features { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .ct-stat-num { font-size: 22px; }
    .ct-form .ct-row { grid-template-columns: 1fr; }
    .ct-global-map { height: 280px; }
    .ct-hero-cta { flex-direction: column; }
    .ct-hero-btn, .ct-hero-btn-outline { text-align: center; }
}