/* ============================================================
   Air Compressors — 空压机大类专用样式
   依赖：站点 css/style.css + products/assets/category-switch.css
   路径说明：本文件位于 products/air-compressors/assets/，
            封面图位于同级 products/air-compressors/images/
   ============================================================ */

/* ---------- 大类封面 ---------- */
.air-hero {
    position: relative;
    min-height: 420px;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 15, 30, .82), rgba(15, 15, 30, .62)),
                url('../images/category-cover.jpg') center/cover no-repeat, #0f0f1e;
    overflow: hidden;
}
.air-hero .container { position: relative; z-index: 2; padding: 70px 20px; }
.air-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--text-light);
    margin-bottom: 14px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.air-hero p {
    font-size: 1.15rem;
    color: #d8e6ef;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

/* ---------- 产品网格 ---------- */
.air-products { padding: 56px 0 64px; }
.air-products .section-title { text-align: center; }
.air-products .section-subtitle { text-align: center; margin-bottom: 36px; }
.air-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.air-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.air-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); }
/* 产品图为白底 RGB，套白色容器避免在深色卡片上出现白方块 */
.air-card-img {
    background: #fff;
    border-radius: 10px;
    margin: 14px 14px 0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    transition: box-shadow .2s;
}
.air-card-img:hover { box-shadow: 0 0 0 2px var(--primary) inset; }
.air-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.air-card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.air-card-body h3 {
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--text-light);
    margin-bottom: 16px;
    min-height: 3em;
}
.air-card-body h3 a { color: inherit; text-decoration: none; transition: color .2s; }
.air-card-body h3 a:hover { color: var(--primary); }
.air-specs { display: grid; gap: 9px; margin-bottom: 20px; }
.air-spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    background: rgba(0, 212, 255, .09);
    border-left: 3px solid var(--primary);
    border-radius: 5px;
    padding: 9px 12px;
}
.air-spec-label { color: var(--text-gray); font-size: .86rem; white-space: nowrap; }
.air-spec-value { color: var(--text-light); font-weight: 600; font-size: .92rem; text-align: end; }
.air-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.air-card-actions .btn { margin-top: 0; font-size: .88rem; padding: 9px 16px; }
.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, .55);
    border-radius: 6px;
    text-decoration: none;
    padding: 9px 16px;
    transition: background .2s, color .2s;
}
.btn-outline:hover { background: rgba(0, 212, 255, .12); color: var(--text-light); }

/* ---------- 产品详情页 ---------- */
.air-detail { padding: 100px 0 40px; }
.air-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: .9rem;
    margin-bottom: 32px;
}
.air-breadcrumb a { color: var(--text-gray); text-decoration: none; transition: color .2s; }
.air-breadcrumb a:hover { color: var(--primary); }
.air-breadcrumb span[aria-current] { color: var(--primary); }
.air-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 46px;
    align-items: center;
}
.air-detail-figure {
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 212, 255, .18);
}
.air-detail-figure img { width: 100%; height: 100%; object-fit: contain; display: block; }
.air-detail-kicker {
    display: inline-block;
    color: var(--primary);
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 212, 255, .45);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 18px;
}
.air-detail-summary h1 { color: var(--text-light); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.3; margin-bottom: 18px; }
.air-detail-intro { color: var(--text-gray); line-height: 1.9; font-size: .98rem; margin-bottom: 26px; }
.air-detail-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.air-detail-quick > div {
    background: rgba(0, 212, 255, .09);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    padding: 14px 16px;
}
.air-detail-quick span { display: block; color: var(--text-gray); font-size: .82rem; margin-bottom: 6px; }
.air-detail-quick strong { color: var(--text-light); font-size: 1.05rem; }
.air-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.air-detail-section { padding: 56px 0; border-top: 1px solid rgba(0, 212, 255, .15); }
.air-detail-section .section-title { text-align: center; margin-bottom: 30px; }
.air-detail-alt { background: rgba(255, 255, 255, .02); }
.air-spec-table { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: collapse; }
.air-spec-table th, .air-spec-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 212, 255, .16);
    text-align: start;
    font-size: .95rem;
}
.air-spec-table th { color: var(--text-gray); font-weight: 500; width: 34%; }
.air-spec-table td { color: var(--text-light); font-weight: 600; }
.air-spec-note { max-width: 900px; margin: 18px auto 0; color: var(--text-gray); font-size: .84rem; line-height: 1.7; }
.air-highlight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.air-highlight-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 10px;
    padding: 20px 22px;
}
.air-highlight-num { color: var(--primary); font-size: 1.5rem; font-weight: 700; line-height: 1; flex: none; }
.air-highlight-card p { color: var(--text-gray); line-height: 1.7; font-size: .94rem; }
.air-applications-title { margin-top: 46px !important; }
.air-tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.air-tag {
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, .4);
    background: rgba(0, 212, 255, .07);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: .9rem;
}

.air-related { padding: 56px 0 64px; border-top: 1px solid rgba(0, 212, 255, .15); }
.air-related .section-title { text-align: center; margin-bottom: 30px; }
.air-related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.air-related-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s, border-color .2s;
}
.air-related-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.air-related-img { background: #fff; aspect-ratio: 1 / 1; padding: 10px; display: flex; align-items: center; justify-content: center; }
.air-related-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.air-related-body { padding: 14px; }
.air-related-body h3 { color: var(--text-light); font-size: .88rem; line-height: 1.5; margin-bottom: 8px; }
.air-related-body p { color: var(--text-gray); font-size: .8rem; margin: 0; }

/* ---------- 优势 ---------- */
.air-features { padding: 56px 0; border-top: 1px solid rgba(0, 212, 255, .15); }
.air-features .section-title { text-align: center; margin-bottom: 32px; }
.air-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.air-feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 10px;
    padding: 26px 22px;
}
.air-feature-num { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.air-feature-card p { color: var(--text-gray); line-height: 1.7; font-size: .95rem; }

/* ---------- 底部咨询 ---------- */
.air-cta {
    text-align: center;
    padding: 56px 20px 70px;
    background: linear-gradient(135deg, rgba(0, 212, 255, .08), transparent);
    border-top: 1px solid rgba(0, 212, 255, .15);
}
.air-cta h2 { color: var(--text-light); margin-bottom: 12px; }
.air-cta p { color: var(--text-gray); max-width: 640px; margin: 0 auto 24px; line-height: 1.7; }

/* ---------- RTL（阿拉伯语，待生成时生效） ---------- */
[dir="rtl"] .air-spec { border-left: none; border-right: 3px solid var(--primary); }
[dir="rtl"] .air-spec-value { text-align: start; }
[dir="rtl"] .air-detail-quick > div { border-left: none; border-right: 3px solid var(--primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .air-grid { grid-template-columns: repeat(2, 1fr); }
    .air-feature-grid, .air-highlight-grid { grid-template-columns: 1fr 1fr; }
    .air-related-grid { grid-template-columns: repeat(3, 1fr); }
    .air-detail-hero { gap: 28px; }
}
@media (max-width: 640px) {
    .air-hero { min-height: 320px; }
    .air-grid, .air-feature-grid, .air-highlight-grid { grid-template-columns: 1fr; }
    .air-related-grid { grid-template-columns: repeat(2, 1fr); }
    .air-card-body h3 { min-height: 0; }
    .air-detail { padding-top: 90px; }
    .air-detail-hero { grid-template-columns: 1fr; }
    .air-detail-quick { grid-template-columns: 1fr; }
    .air-spec-table th, .air-spec-table td { padding: 12px 10px; font-size: .88rem; }
}
