/* ==========================================
   CNC Services 页专属样式
   ========================================== */

.wrap-1200 { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-1320 { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero (已对齐 About 页面风格 + 标题渐变) ---------- */
.cnc-hero {
    position: relative;
    min-height: 620px;
    background: url('/images/banner/banner-heavy-duty-profile-cnc-machining.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 100px 20px;
    color: #fff;
}
.cnc-hero::before {
    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: 1;
}
.cnc-hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%; 
}

/* 标签小字 */
.cnc-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;
}

/* 标题 */
.cnc-hero h1 { 
    font-size: 52px; 
    font-weight: 800; 
    line-height: 1.15; 
    margin: 0 0 20px; 
    letter-spacing: -0.5px;
}

/* 渐变文字 */
.text-gradient {
    background: linear-gradient(90deg, #38bdf8 0%, #1d6fe8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.2));
}

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

/* 按钮组合 */
.cnc-hero-cta { 
    display: flex; 
    gap: 14px; 
    flex-wrap: wrap; 
}
.cnc-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: background 0.25s, transform 0.25s; 
    border: 1px solid #1d6fe8; 
}
.cnc-hero-btn:hover { 
    background: #1557b8; 
    transform: translateY(-2px);
}
.cnc-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; 
}
.cnc-hero-btn-outline:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: #fff; 
}

/* 底部信任条 */
.cnc-hero-trust { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 24px; 
    list-style: none; 
    padding: 0; 
    margin: 32px 0 0; 
    padding-top: 24px; 
    border-top: 1px solid rgba(255,255,255,0.15); 
}
.cnc-hero-trust li { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 13px; 
    color: #e2e8f0; 
    font-weight: 500; 
    letter-spacing: 0.3px; 
}
.cnc-hero-trust i { 
    color: #38bdf8; 
    font-size: 12px; 
}

/* ---------- 通用标题 ---------- */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: #0f172a; margin: 0 0 14px; }
.section-header p { font-size: 15px; color: #64748b; margin: 0 auto; line-height: 1.6; }

/* ---------- Technical Capabilities ---------- */
.cnc-tech { padding: 80px 20px; background: #fff; }
.cnc-tech-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; background:#0f172a; border-radius:16px; overflow:hidden; color:#fff; box-shadow:0 20px 40px -15px rgba(15,42,74,0.3); }
.cnc-tech-img img { width:100%; height:100%; object-fit:cover; min-height:400px; }
.cnc-tech-info { padding:50px 45px; }
.cnc-tech-info h2 { font-size:30px; margin:0 0 12px; font-weight:800; }
.cnc-tech-info p { font-size:14px; color:#cbd5e1; margin-bottom:30px; }
.cnc-tech-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px 24px; }
.cnc-tech-item { display:flex; gap:12px; }
.cnc-tech-name { font-size:11px; color:#94a3b8; text-transform:uppercase; margin-bottom:4px; }
.cnc-tech-value { font-size:13px; font-weight:500; }

/* ---------- 5大工艺左右交错 ---------- */
.cnc-solutions { padding: 80px 20px; background: #f8fafc; }
.cnc-process { display: grid; grid-template-columns: 1fr 1fr; max-width: 1200px; margin: 0 auto 40px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.cnc-process-img img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; display: block; }
.cnc-process-text { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.cnc-process-num { font-size: 32px; font-weight: 800; color: #cbd5e1; margin-bottom: 10px; }
.cnc-process-text h3 { font-size: 24px; font-weight: 800; margin: 0 0 14px; color: #0f172a; }
.cnc-process-text p { font-size: 15px; line-height: 1.7; color: #475569; margin-bottom: 16px; }
.cnc-process-text ul { list-style: none; padding: 0; margin: 0; }
.cnc-process-text li { font-size: 14px; padding-left: 22px; position: relative; margin-bottom: 8px; color: #334155; }
.cnc-process-text li::before { content: "✓"; position: absolute; left: 0; color: #38bdf8; font-weight: 700; }

.cnc-process:nth-child(odd) .cnc-process-img { order: 2; }
.cnc-process:nth-child(odd) .cnc-process-text { order: 1; background: #0f172a; }
.cnc-process:nth-child(odd) .cnc-process-num { color: #475569; }
.cnc-process:nth-child(odd) h3 { color: #fff; }
.cnc-process:nth-child(odd) p, .cnc-process:nth-child(odd) li { color: #cbd5e1; }

.cnc-process:nth-child(even) .cnc-process-img { order: 1; }
.cnc-process:nth-child(even) .cnc-process-text { order: 2; background: #f1f5f9; }

/* ---------- 产品轮播 ---------- */
.cnc-parts { padding: 80px 20px; background: #fff; }
.cnc-parts-viewport { overflow: hidden; }
.cnc-parts-track { display: flex; gap: 24px; transition: transform 0.5s ease; }
.cnc-part-card { flex: 0 0 calc((100% - 48px) / 3); background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; text-align: left; }
.cnc-part-img { height: 240px; background: #f1f5f9; }
.cnc-part-img img { width: 100%; height: 100%; object-fit: cover; }
.cnc-parts-arrow { position: absolute; top: 40%; transform: translateY(-50%); width: 44px; height: 44px; background: #0f172a; color: #fff; border: none; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* ---------- 行业应用轮播 ---------- */
.cnc-industries { padding: 80px 20px; background: #f8fafc; }
.sd-app-carousel { position: relative; padding: 0 40px; }
.sd-app-viewport { overflow: hidden; padding: 6px 0; }
.sd-app-track { display: flex; gap: 18px; transition: transform 0.5s ease; }
.sd-app-card { flex: 0 0 calc((100% - 54px) / 4); background: #fff; border: 1px solid #cbd5e1; border-radius: 16px; overflow: hidden; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.sd-app-img { width: 100%; height: 180px; background: #cbd5e1; }
.sd-app-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-app-name { font-size: 14px; font-weight: 700; color: #0f172a; padding: 16px 12px 6px; }
.sd-app-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #cbd5e1; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; color: #0f172a; }
.sd-app-prev { left: 0; } .sd-app-next { right: 0; }
.sd-app-dots { display: flex; justify-content: center; gap: 7px; margin-top: 30px; }
.sd-app-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: all 0.3s; }
.sd-app-dots .dot.active { background: #38bdf8; width: 20px; border-radius: 4px; }

/* ---------- FAQ 和 表单 ---------- */
.cnc-faq { padding:80px 20px; background:#fff; }
.cnc-faq-item { background:#f8fafc; border:1px solid #cbd5e1; border-radius:10px; padding:18px 22px; margin-bottom:12px; max-width: 900px; margin: 0 auto 12px; }
.cnc-faq-item summary { font-size:15px; font-weight:700; cursor:pointer; }
.cnc-quote { padding:80px 20px; background:#0f172a; color:#fff; }
.cnc-quote-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.cnc-quote-form { background:#fff; padding:36px 32px; border-radius:12px; color:#0f172a; }
.cnc-quote-form input, .cnc-quote-form textarea { width:100%; padding:12px; border:1px solid #cbd5e1; border-radius:8px; margin-bottom:18px; box-sizing:border-box; }
.cnc-quote-submit { width:100%; background:#38bdf8; color:#0f172a; padding:14px; border-radius:8px; font-weight:700; border:none; cursor:pointer; }

/* ---------- 左侧上传框与 NDA ---------- */
.cnc-upload {
    border: 2px dashed rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    background: rgba(56, 189, 248, 0.05);
    transition: border-color 0.2s;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
}
.cnc-upload:hover { border-color: #38bdf8; }
.cnc-upload-icon { font-size: 34px; color: #38bdf8; margin-bottom: 10px; }
.cnc-upload-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.cnc-upload-desc { font-size: 12px; color: #94a3b8; line-height: 1.5; }

.cnc-nda {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 13.5px;
    color: #166534;
    line-height: 1.5;
}
.cnc-nda-icon { font-size: 18px; }
.cnc-nda strong { color: #14532d; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) { .sd-app-card { flex: 0 0 calc((100% - 36px) / 3); } }
@media (max-width: 1024px) { 
    .sd-app-card { flex: 0 0 calc((100% - 18px) / 2); } 
    .cnc-tech-inner, .cnc-process, .cnc-quote-inner { grid-template-columns: 1fr; } 
}
@media (max-width: 768px) {
    .cnc-process:nth-child(odd) .cnc-process-img, .cnc-process:nth-child(even) .cnc-process-img { order: 1; min-height: 220px; }
    .cnc-process:nth-child(odd) .cnc-process-text, .cnc-process:nth-child(even) .cnc-process-text { order: 2; padding: 36px 28px; }
    .cnc-part-card, .sd-app-card { flex: 0 0 100%; }
}