/* === 3. 页面 Hero 区域 === */
.page-hero {
    position: relative; height: 50vh; min-height: 400px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; overflow: hidden;
    background: #222;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.6; }
.page-hero .container { position: relative; z-index: 1; padding-top: 60px; }
.hero-breadcrumb { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
.page-hero p { font-size: 20px; color: rgba(255,255,255,0.9); max-width: 800px; margin: 0 auto; }

/* === 4. Tab 切换控制器 === */
.tab-controls {
    display: flex; justify-content: center; gap: 20px;
    margin-top: -30px; position: relative; z-index: 10;
    padding: 0 20px;
}
.tab-btn {
    padding: 16px 40px; font-size: 18px; font-weight: 700;
    border: none; border-radius: 4px; cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white; color: var(--text-light);
    height: var(--btn-height-lg);
}
.tab-btn.active {
    background: var(--primary-color); color: var(--text-main);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 183, 0, 0.3);
}
.tab-btn:hover:not(.active) { background: #f5f5f5; }

.tab-content { display: none; animation: fadeIn 0.5s ease; padding-top: 60px; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === 5. 通用板块样式 === */

/* === Tab 1 (工业自动化) 样式 === */
.auto-intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; }
.intro-text p { margin-bottom: 20px; text-align: justify; color: var(--text-light); }
.highlight-box { background: #fff8e1; padding: 24px; border-radius: var(--radius-unified); border-left: 4px solid var(--primary-color); }
.highlight-box h4 { margin-bottom: 10px; font-size: 18px; }
.highlight-box ul { padding-left: 20px; color: var(--text-main); }
.intro-img { height: 400px; border-radius: var(--radius-unified); overflow: hidden; }

/* 流程图 */
.process-container { display: flex; justify-content: space-between; align-items: flex-start; position: relative; gap: 20px; margin-top: 40px; }
.process-container::before { content: ''; position: absolute; top: 40px; left: 50px; right: 50px; height: 2px; background: #e0e0e0; z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.step-icon-box { width: 80px; height: 80px; background: white; border: 2px solid var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 24px; color: var(--primary-color); font-weight: 800; transition: 0.3s; }
.process-step:hover .step-icon-box { background: var(--primary-color); color: white; transform: scale(1.1); box-shadow: 0 10px 20px rgba(255, 183, 0, 0.2); }
.step-img { height: 120px; border-radius: 8px; overflow: hidden; margin-top: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.step-title { font-weight: 700; font-size: 18px; color: var(--text-main); }

/* 集成能力 Grid */
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.module-card { background: #f9fafb; padding: 30px; border-radius: var(--radius-unified); transition: 0.3s; display: flex; gap: 20px; align-items: center; }
.module-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); background: white; }
.module-img { width: 120px; height: 120px; border-radius: 8px; flex-shrink: 0; overflow: hidden; }
.module-content h3 { font-size: 20px; margin-bottom: 10px; }
.module-content p { font-size: 14px; color: var(--text-light); margin: 0; }

/* 垂直进阶图 (从上到下) */
.evolution-wrapper { position: relative; max-width: 900px; margin: 0 auto; padding: 40px 0; display: flex; flex-direction: column; gap: 30px; }
.evolution-wrapper::before { content: ''; position: absolute; top: 20px; bottom: 20px; left: 50%; width: 4px; background: linear-gradient(to bottom, #e5e7eb 0%, var(--primary-color) 100%); transform: translateX(-2px); z-index: 0; border-radius: 4px; }
.evo-card { position: relative; z-index: 1; background: white; border-radius: var(--radius-unified); padding: 24px 32px; width: 45%; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: all 0.3s ease; border: 1px solid #f0f0f0; display: flex; align-items: center; gap: 20px; }
.evo-card:nth-child(odd) { align-self: flex-start; text-align: right; flex-direction: row-reverse; }
.evo-card:nth-child(even) { align-self: flex-end; text-align: left; }
.evo-card::after { content: ''; position: absolute; top: 50%; width: 16px; height: 16px; background: white; border: 4px solid var(--text-light); border-radius: 50%; z-index: 2; transform: translateY(-50%); transition: 0.3s; }
.evo-card:nth-child(odd)::after { right: calc(-11% - 12px); }
.evo-card:nth-child(even)::after { left: calc(-11% - 12px); }
.evo-card:hover { transform: scale(1.05); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary-color); }
.evo-card:hover::after { border-color: var(--primary-color); background: var(--primary-color); box-shadow: 0 0 0 4px rgba(255, 183, 0, 0.2); }
.evo-icon { width: 56px; height: 56px; background: #f5f7fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--text-light); flex-shrink: 0; transition: 0.3s; }
.evo-card:hover .evo-icon { background: var(--primary-color); color: black; }
.evo-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.evo-content p { font-size: 14px; color: var(--text-light); margin: 0; line-height: 1.5; }
.evo-card.ultimate-level { background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a2a 100%); border: 2px solid var(--primary-color); width: 60%; align-self: center !important; text-align: center !important; flex-direction: column !important; margin-top: 20px; }
.evo-card.ultimate-level::after { top: -30px; left: 50%; right: auto; transform: translateX(-50%); border-color: var(--primary-color); background: var(--primary-color); }
.evo-card.ultimate-level h3 { color: white; font-size: 20px; }
.evo-card.ultimate-level p { color: rgba(255,255,255,0.7); }
.evo-card.ultimate-level .evo-icon { background: var(--primary-color); color: black; box-shadow: 0 0 15px rgba(255, 183, 0, 0.4); margin: 0 auto; }

/* === 新版：全宽项目案例 Banner === */
.full-width-case {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #222;
    margin-top: 80px;
}
.full-width-case .case-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.full-width-case .case-bg img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}
.full-width-case:hover .case-bg img {
    transform: scale(1.05);
}
.full-width-case .case-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.full-width-case .container {
    position: relative; z-index: 1; text-align: center; color: white;
}
.full-width-case h2 {
    font-size: 42px; font-weight: 800; margin-bottom: 30px; letter-spacing: -1px;
}

/* 按钮升级为实心主色 */
.btn-primary-action {
    display: inline-block;
    height: var(--btn-height-lg);
    padding: 0 40px;
    background: var(--primary-color);
    color: var(--text-main);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 183, 0, 0.3);
}
.btn-primary-action:hover {
    background: white;
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* === Tab 2 (协作机器人) 特有样式 === */

/* Cobot Hero Card */
.cobot-hero-card {
    background-color: var(--dark-bg);
    border-radius: var(--radius-unified);
    overflow: hidden;
    position: relative;
    padding: 80px 40px;
    text-align: center;
    color: white;
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.cobot-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0.4;
}
.cobot-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.cobot-label {
    display: inline-block; padding: 6px 12px; background: var(--primary-color);
    color: black; font-weight: 700; font-size: 14px; border-radius: 4px; margin-bottom: 20px;
}
.cobot-hero-card h2 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.cobot-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.c-stat h4 { color: var(--primary-color); font-size: 32px; font-weight: 700; margin-bottom: 5px; }
.c-stat span { font-size: 14px; color: rgba(255,255,255,0.7); }

/* 痛点 Grid */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 80px; }
.pain-card { background: #fff; padding: 30px; border-radius: var(--radius-unified); border: 1px solid #eee; transition: 0.3s; }
.pain-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--danger-red); }
.pain-card h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.pain-card h3 i { color: var(--danger-red); font-style: normal; }
.pain-card p { font-size: 14px; color: var(--text-light); margin: 0; }

/* ROI Section (Dark) */
.roi-section { background: var(--dark-bg); color: white; padding: 80px 0; border-radius: var(--radius-unified); overflow: hidden; margin-bottom: 80px; }
.roi-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; padding: 0 40px; align-items: start; }
.roi-table-box { background: var(--dark-card); border-radius: var(--radius-unified); padding: 30px; border: 1px solid rgba(255,255,255,0.1); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison-table th { text-align: left; color: #888; padding: 15px 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.comparison-table td { padding: 15px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.col-old { color: #aaa; text-decoration: line-through; }
.col-new { color: white; font-weight: 600; }
.col-change { font-weight: 700; text-align: right; }
.trend-down, .trend-up { color: var(--success-green); }
.cost-highlight { background: rgba(255,183,0, 0.1); border: 1px solid var(--primary-color); padding: 20px; border-radius: var(--radius-unified); margin-top: 30px; }
.cost-highlight strong { color: var(--primary-color); font-size: 18px; display: block; margin-bottom: 8px; }
.cost-highlight span { font-size: 14px; color: rgba(255,255,255,0.8); }

/* 六大优势 Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 80px; }
.feature-card { background: #f5f7fa; padding: 32px; border-radius: var(--radius-unified); transition: 0.3s; }
.feature-card:hover { background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-5px); }
.f-icon { width: 50px; height: 50px; background: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; color: var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.05); font-style: normal; }
.feature-card h4 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-light); margin: 0; }

/* 参数卡片 Grid */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 80px; }
.spec-card { background: white; border-radius: var(--radius-unified); overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #eee; }
.spec-img-box { height: 250px; background: #eee; position: relative; }
.spec-tag { position: absolute; top: 10px; right: 10px; background: var(--primary-color); color: black; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.spec-header { background: var(--dark-bg); color: white; padding: 20px; text-align: center; }
.spec-header h3 { font-size: 24px; color: var(--primary-color); margin-bottom: 4px; }
.spec-header p { font-size: 13px; opacity: 0.7; }
.datasheet-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.datasheet-table tr:nth-child(even) { background: #f8f9fa; }
.datasheet-table td { padding: 10px 15px; border-bottom: 1px solid #eee; }
.datasheet-table td:first-child { color: #666; font-weight: 600; width: 40%; }

/* 商务模式 Grid */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.biz-card { border: 1px solid #eee; border-radius: var(--radius-unified); padding: 40px 30px; text-align: center; transition: 0.3s; position: relative; overflow: hidden; background: white; }
.biz-card:hover { border-color: var(--primary-color); box-shadow: 0 10px 30px rgba(255, 183, 0, 0.15); }
.biz-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.biz-desc { color: #666; font-size: 14px; margin-bottom: 30px; height: 40px; }
.biz-list { list-style: none; text-align: left; margin-bottom: 30px; padding: 0; }
.biz-list li { margin-bottom: 10px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.biz-list li::before { content: '✓'; color: var(--primary-color); font-weight: bold; }
.biz-btn { display: block; width: 100%; padding: 12px; border-radius: 4px; background: #f5f5f5; color: #333; font-weight: 600; }
.biz-card:hover .biz-btn { background: var(--primary-color); color: #000; }
.recommended { border: 2px solid var(--primary-color); transform: scale(1.05); z-index: 2; }
.rec-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: black; padding: 4px 12px; font-size: 12px; font-weight: 700; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }

/* 页脚样式 */
footer { padding: 100px 0 40px; background: white; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid #eee; }
.footer-brand h4 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.footer-col h5 { font-size: 16px; margin-bottom: 24px; color: var(--text-main); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-light); font-size: 14px; }
.footer-col a:hover { color: var(--primary-color); }
.footer-bottom { padding-top: 40px; display: flex; justify-content: space-between; color: var(--text-light); font-size: 13px; }

/* 响应式 */
@media (max-width: 1024px) {
    .auto-intro-grid, .module-grid, .roi-container, .specs-grid, .pain-grid, .features-grid, .biz-grid { grid-template-columns: 1fr; }
    .process-container { flex-direction: column; align-items: center; gap: 40px; }
    .process-container::before { width: 2px; height: 100%; left: 50%; top: 0; }
    .step-img { width: 100%; height: 200px; }
    .pyramid-level { width: 100% !important; }
    .evolution-wrapper::before { left: 20px; } 
    .evo-card { width: calc(100% - 50px); margin-left: 50px; }
    .evo-card:nth-child(odd) { align-self: flex-start; text-align: left; flex-direction: row; }
    .evo-card:nth-child(even) { align-self: flex-start; }
    .evo-card:nth-child(odd)::after, .evo-card:nth-child(even)::after { left: -38px; right: auto; top: 50%; transform: translateY(-50%); }
    .recommended { transform: none; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
