/* sheet-metal-processes.css —— 钣金工艺专题页，15 语种共用 */

/* ===== Hero ===== */
.sm-hero {
    position: relative; padding: 80px 0 60px;
    background: linear-gradient(160deg, #0b1929 0%, #122240 40%, #1a365d 100%);
    overflow: hidden;
}
.sm-hero::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.sm-hero-content { position: relative; z-index: 2; max-width: 860px; }
.sm-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--font-size-sm); color: rgba(255,255,255,0.6);
    text-decoration: none; margin-bottom: 20px; transition: color 0.2s ease;
}
.sm-back-link:hover { color: var(--color-white); }
.sm-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: var(--radius-full);
    font-size: var(--font-size-sm); font-weight: 600;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9); margin-bottom: 20px;
}
.sm-hero-content h1 {
    font-size: var(--font-size-5xl); font-weight: 900; color: var(--color-white);
    line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.02em;
}
.sm-hero-sub {
    font-size: var(--font-size-lg); color: rgba(255,255,255,0.75);
    line-height: var(--line-height-relaxed); margin-bottom: 28px;
}
.sm-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.sm-hero-stats {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-top: 48px;
}
.sm-hero-stat {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xl); padding: 20px 24px; backdrop-filter: blur(10px);
}
.sm-hero-stat-value {
    font-size: var(--font-size-2xl); font-weight: 800; color: var(--color-white);
    line-height: 1.1;
}
.sm-hero-stat-value .sm-unit {
    font-size: var(--font-size-sm); font-weight: 600; color: rgba(255,255,255,0.7);
    margin-left: 4px;
}
.sm-hero-stat-label {
    font-size: var(--font-size-xs); color: rgba(255,255,255,0.6); margin-top: 6px;
}

/* ===== 文章正文排版 ===== */
.sm-article { max-width: 900px; margin: 0 auto; }
.sm-article h2 {
    font-size: var(--font-size-3xl); font-weight: 800; color: var(--color-gray-900);
    margin: 56px 0 20px; line-height: 1.25; letter-spacing: -0.01em;
}
.sm-article h2:first-child { margin-top: 0; }
.sm-article h3 {
    font-size: var(--font-size-xl); font-weight: 700; color: var(--color-gray-900);
    margin: 36px 0 14px; line-height: 1.35;
}
.sm-article p {
    font-size: var(--font-size-base); color: var(--color-gray-600);
    line-height: var(--line-height-relaxed); margin-bottom: 16px;
}
.sm-article strong { color: var(--color-gray-900); font-weight: 700; }
.sm-article a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }
.sm-article ul.sm-spec {
    list-style: none; padding: 0; margin: 0 0 20px;
    display: grid; gap: 8px;
}
.sm-article ul.sm-spec li {
    position: relative; padding: 12px 16px 12px 40px;
    background: var(--color-gray-50); border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm); color: var(--color-gray-700); line-height: 1.6;
}
.sm-article ul.sm-spec li::before {
    content: ''; position: absolute; left: 16px; top: 19px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-primary);
}

/* ===== 工艺全景卡片 ===== */
.sm-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin: 24px 0 32px;
}
.sm-card {
    position: relative; padding: 24px 22px 20px;
    background: var(--color-white); border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl); overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.sm-card {
    display: block; text-decoration: none; color: inherit; cursor: pointer;
}
a.sm-card .sm-more {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
    font-size: var(--font-size-xs); font-weight: 700; color: #2563eb;
}
a.sm-card:hover .sm-more { gap: 8px; }
.sm-card:hover {
    transform: translateY(-3px); border-color: rgba(37,99,235,0.35);
    box-shadow: 0 14px 34px -14px rgba(15,23,42,0.18);
}
.sm-num {
    font-size: var(--font-size-2xl); font-weight: 900;
    color: var(--color-gray-200); line-height: 1; margin-bottom: 10px;
}
.sm-card h3 {
    font-size: var(--font-size-base); font-weight: 700; color: var(--color-gray-900);
    margin: 0 0 8px;
}
.sm-card p {
    font-size: var(--font-size-xs); color: var(--color-gray-500);
    line-height: 1.6; margin: 0;
}

/* ===== 工艺流程 ===== */
.sm-flow {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
    margin: 24px 0 32px;
}
.sm-step {
    position: relative; padding: 18px 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--color-gray-200); border-radius: var(--radius-lg);
    text-align: center;
}
.sm-step:not(:last-child)::after {
    content: ''; position: absolute; top: 50%; right: -9px;
    width: 0; height: 0; transform: translateY(-50%);
    border-left: 7px solid var(--color-gray-300);
    border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.sm-step-no {
    display: inline-block; font-size: 10px; font-weight: 800;
    letter-spacing: 0.08em; color: var(--color-primary);
    background: rgba(37,99,235,0.08); border-radius: var(--radius-full);
    padding: 3px 10px; margin-bottom: 8px;
}
.sm-step h3 { font-size: var(--font-size-sm); font-weight: 700; margin: 0 0 6px; }
.sm-step p { font-size: 11px; color: var(--color-gray-500); line-height: 1.5; margin: 0; }

/* ===== 对比表 ===== */
.sm-article table.sm-table {
    width: 100%; border-collapse: collapse; margin: 20px 0 28px;
    font-size: var(--font-size-sm);
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    border-radius: var(--radius-lg); overflow: hidden;
}
.sm-article table.sm-table thead th {
    background: var(--color-gray-900); color: var(--color-white);
    font-weight: 700; text-align: left; padding: 12px 14px; white-space: nowrap;
}
.sm-article table.sm-table tbody td {
    padding: 11px 14px; border-bottom: 1px solid var(--color-gray-100);
    color: var(--color-gray-700); vertical-align: top;
}
.sm-article table.sm-table tbody tr:nth-child(even) { background: var(--color-gray-50); }
.sm-article table.sm-table tbody tr:last-child td { border-bottom: none; }
.sm-article table.sm-table tbody td:first-child { font-weight: 700; color: var(--color-gray-900); }

/* ===== FAQ 手风琴 ===== */
.sm-article details.sm-faq {
    border: 1px solid var(--color-gray-200); border-radius: var(--radius-lg);
    margin-bottom: 12px; background: var(--color-white); overflow: hidden;
}
.sm-article details.sm-faq summary {
    cursor: pointer; list-style: none;
    padding: 16px 48px 16px 18px; position: relative;
    font-size: var(--font-size-base); font-weight: 700; color: var(--color-gray-900);
    transition: color 0.2s ease;
}
.sm-article details.sm-faq summary::-webkit-details-marker { display: none; }
.sm-article details.sm-faq summary::after {
    content: ''; position: absolute; right: 18px; top: 22px;
    width: 9px; height: 9px; border-right: 2px solid var(--color-gray-400);
    border-bottom: 2px solid var(--color-gray-400);
    transform: rotate(45deg); transition: transform 0.2s ease;
}
.sm-article details.sm-faq[open] summary::after { transform: rotate(-135deg); }
.sm-article details.sm-faq[open] summary { color: var(--color-primary); }
.sm-article details.sm-faq > p {
    padding: 0 18px 16px; margin: 0;
    font-size: var(--font-size-sm); color: var(--color-gray-600); line-height: 1.7;
}

/* ===== 相关专题 ===== */
.sm-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sm-related-card {
    display: block; padding: 26px 24px;
    background: var(--color-white); border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl); text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sm-related-card:hover {
    transform: translateY(-3px); border-color: rgba(37,99,235,0.35);
    box-shadow: 0 14px 34px -14px rgba(15,23,42,0.18);
}
.sm-related-card h3 {
    font-size: var(--font-size-lg); font-weight: 700;
    color: var(--color-gray-900); margin: 0 0 8px;
}
.sm-related-card p {
    font-size: var(--font-size-sm); color: var(--color-gray-500);
    line-height: 1.6; margin: 0 0 14px;
}
.sm-related-link {
    font-size: var(--font-size-sm); font-weight: 700; color: var(--color-primary);
}

/* ===== 钣金加工服务页的专题入口卡片（仅 sheet-metal 栏目显示） ===== */
.sm-entry-card {
    display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
    padding: 32px 36px; text-decoration: none;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
    border-radius: var(--radius-xl); overflow: hidden; position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sm-entry-card::before {
    content: ''; position: absolute; top: -120px; right: -120px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.sm-entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px -16px rgba(15,118,110,0.45);
}
.sm-entry-badge {
    display: inline-block; padding: 5px 14px; border-radius: var(--radius-full);
    font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em;
    background: rgba(255,255,255,0.16); color: rgba(255,255,255,0.95);
    margin-bottom: 12px;
}
.sm-entry-text h2 {
    font-size: var(--font-size-2xl); font-weight: 800;
    color: var(--color-white); margin: 0 0 10px; line-height: 1.25;
}
.sm-entry-text p {
    font-size: var(--font-size-sm); color: rgba(255,255,255,0.82);
    line-height: 1.7; margin: 0 0 16px; max-width: 640px;
}
.sm-entry-link {
    font-size: var(--font-size-sm); font-weight: 700; color: var(--color-white);
    border-bottom: 2px solid rgba(255,255,255,0.5); padding-bottom: 2px;
}
.sm-entry-visual {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.sm-entry-icon {
    width: 84px; height: 84px; border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; color: var(--color-white);
}
.sm-entry-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sm-entry-tags em {
    font-style: normal; font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
}
@media (max-width: 768px) {
    .sm-entry-card { grid-template-columns: 1fr; gap: 20px; padding: 26px 24px; }
    .sm-entry-visual { flex-direction: row; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .sm-grid { grid-template-columns: repeat(2, 1fr); }
    .sm-flow { grid-template-columns: repeat(3, 1fr); }
    .sm-step:nth-child(3)::after { display: none; }
    .sm-related { grid-template-columns: 1fr; }
    .sm-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .sm-hero { padding: 56px 0 44px; }
    .sm-hero-content h1 { font-size: var(--font-size-3xl); }
    .sm-grid { grid-template-columns: 1fr; }
    .sm-flow { grid-template-columns: 1fr; }
    .sm-step::after { display: none !important; }
    .sm-article h2 { font-size: var(--font-size-2xl); }
    .sm-article table.sm-table { display: block; overflow-x: auto; }
}

/* ============================================================
   宽屏专题页（sheet-metal-processes）—— 2026-10-23 改版
   ① Hero 改用上级栏目「钣金加工」(service-detail.html) 的 rd-phero 版式；
   ② 正文 900px → 1280px，工艺卡 3 列 → 4 列，吃满宽屏；
   ③ 新增与上级一致的粘性章节导航。
   全部规则限定在 .sm-guide / .sm-guide-hero 作用域内，
   共用同一份 CSS 的兄弟模板 sheet-metal-process-detail.html 不受影响。
   ============================================================ */

/* ---- Hero：上级栏目同款深色 hero ---- */
.sm-guide-hero { position: relative; overflow: hidden; padding: 76px 0 44px; }
.sm-guide-hero .rd-phero-inner { align-items: center; }
.sm-guide-hero h1 { font-size: clamp(2rem, 4vw, 3.05rem); }
.sm-guide-hero .sm-back-link { color: rgba(255,255,255,.62); margin-bottom: 18px; }
.sm-guide-hero .sm-back-link:hover { color: #fff; }
.sm-guide-hero .rd-rating { color: rgba(255,255,255,.72); }
.sm-guide-hero .rd-rating b { color: #fff; }
.sm-guide-hero .rd-rating .rd-stars { color: #fbbf24; }
.sm-guide-hero .sm-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.sm-guide-hero .rd-phero-media { aspect-ratio: 16 / 10; }
/* 关键参数条：hero 内全宽四列 */
.sm-guide-hero .sm-hero-stats { margin-top: 48px; }
.sm-guide-hero .sm-hero-stat { padding: 18px 22px; }

/* ---- 粘性章节导航（条目由脚本注入，长标题截断）---- */
#smTopicNav a { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* ---- 正文宽屏 ---- */
.sm-guide { max-width: 1280px; margin: 0 auto; }
.sm-guide .sm-article { max-width: 100%; }
.sm-guide .sm-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sm-guide .sm-flow { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sm-guide .sm-related { grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---- 宽屏响应式 ---- */
@media (max-width: 1440px) {
    .sm-guide { max-width: 1180px; }
}
@media (max-width: 1280px) {
    .sm-guide .sm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .sm-guide { max-width: 100%; }
    .sm-guide .sm-related { grid-template-columns: repeat(2, 1fr); }
    .sm-guide .sm-flow { grid-template-columns: repeat(3, 1fr); }
    .sm-guide .sm-step:nth-child(3)::after { display: none; }
}
@media (max-width: 640px) {
    .sm-guide .sm-grid,
    .sm-guide .sm-related { grid-template-columns: 1fr; }
    .sm-guide-hero .sm-hero-stats { grid-template-columns: repeat(2, 1fr); }
    #smTopicNav a { max-width: 150px; }
}
