/* ==========================================================================
   ZEVON 首页内容区块适配层
   只覆盖 home-sections-v1.css 的字体、品牌色与控件样式，不改原文件。
   所有选择器都带 .home-* 前缀，确保特异性高于 body.w26 button/a 等全局规则。
   ========================================================================== */

/* ---------- 区块基础 ---------- */

.home-products,
.home-city,
.home-hardware,
.home-cases,
.home-news {
    font-family: 'WolwSans', 'Helvetica Neue', Helvetica, Arial, 'Segoe UI', sans-serif;
    font-style: normal;
}

.home-products {
    background: #F6F8F6;
    color: #0B1A12;
}

.home-city {
    background: #0B1A12;
    color: #FFFFFF;
}

.home-hardware {
    background: #FFFFFF;
    color: #0B1A12;
}

.home-cases {
    background: #EFF3F0;
    color: #0B1A12;
}

.home-news {
    background: #FFFFFF;
    color: #0B1A12;
}

/* ---------- 标题 ---------- */

.home-products .home-section-kicker,
.home-hardware .home-section-kicker,
.home-cases .home-section-kicker,
.home-news .home-section-kicker {
    color: #00A54F;
}

.home-city .home-section-kicker {
    color: #7BE0A8;
}

.home-products .home-section-heading h2,
.home-hardware .home-section-heading h2,
.home-cases .home-section-heading h2,
.home-news .home-section-heading h2 {
    color: #0B1A12;
    letter-spacing: -0.01em;
}

.home-city .home-section-heading h2,
.home-city .home-section-heading--light h2 {
    color: #FFFFFF;
}

.home-products .home-section-heading p,
.home-hardware .home-section-heading p,
.home-cases .home-section-heading p,
.home-news .home-section-heading p {
    color: #6E7F76;
}

.home-city .home-section-heading p,
.home-city .home-section-heading--light p {
    color: rgba(255, 255, 255, .72);
}

/* ---------- 底部“查看全部” ---------- */

.home-products .home-products__all,
.home-hardware .home-hardware__all,
.home-cases .home-cases__all,
.home-news .home-news__all {
    color: #0B1A12;
    border-color: #C7D2CB;
}

.home-products .home-products__all:hover,
.home-hardware .home-hardware__all:hover,
.home-cases .home-cases__all:hover,
.home-news .home-news__all:hover {
    color: #FFFFFF;
    background: #00A54F;
    border-color: #00A54F;
}

.home-city .home-city__all {
    color: #7BE0A8;
    border-color: rgba(255, 255, 255, .28);
}

.home-city .home-city__all:hover {
    color: #0B1A12;
    background: #7BE0A8;
    border-color: #7BE0A8;
}

/* ---------- 产品 tab ---------- */

.home-products .home-product-tabs button {
    color: #3B4C43;
    background: #FFFFFF;
}

.home-products .home-product-tabs button:hover {
    color: #0B1A12;
}

.home-products .home-product-tabs button.is-active {
    color: #FFFFFF;
    background: #00A54F;
}

/* ---------- 产品卡 ---------- */

.home-products .home-product-card strong {
    color: #0B1A12;
}

.home-products .home-product-more,
.home-products .home-product-more i {
    color: #00A54F;
    font-style: normal;
}

/* ---------- 产品轮播箭头：40px 方形按钮 ---------- */

.home-products .home-product-controls button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #C7D2CB;
    border-radius: 4px;
    color: #0B1A12;
    background: #FFFFFF;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.home-products .home-product-controls button:hover:not(:disabled) {
    color: #FFFFFF;
    background: #00A54F;
    border-color: #00A54F;
}

.home-products .home-product-controls button:disabled {
    opacity: .35;
    cursor: default;
}

/* ---------- 智慧城市卡 ---------- */

.home-city .home-city-card__content strong {
    color: #FFFFFF;
}

.home-city .home-city-card__content span {
    color: rgba(255, 255, 255, .72);
}

.home-city .home-city-card__content i {
    color: #7BE0A8;
    font-style: normal;
}

/* ---------- 案例卡 ---------- */

.home-cases .home-case-card__eyebrow {
    color: #00A54F;
}

.home-cases .home-case-card__body h3,
.home-cases .home-case-card__body h3 a {
    color: #0B1A12;
}

.home-cases .home-case-card__body p {
    color: #6E7F76;
}

.home-cases .home-case-card__more,
.home-cases .home-case-card__more span {
    color: #00743A;
}

/* ---------- 新闻卡 ---------- */

.home-news .home-news-card__body time {
    color: #6E7F76;
}

.home-news .home-news-card__body h3,
.home-news .home-news-card__body h3 a {
    color: #0B1A12;
}

.home-news .home-news-card__body p {
    color: #6E7F76;
}

.home-news .home-news-card__more,
.home-news .home-news-card__more span {
    color: #00743A;
}

/* ---------- 新闻轮播箭头：无边框大字 ---------- */

.home-news .home-news-controls > button {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #0B1A12;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease;
}

.home-news .home-news-controls > button:hover:not(:disabled) {
    color: #00A54F;
}

.home-news .home-news-controls > button:disabled {
    opacity: .3;
    cursor: default;
}

/* ---------- 新闻圆点 ---------- */

.home-news .home-news-dots {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #EFF3F0;
}

.home-news .home-news-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #9AA8A0;
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.home-news .home-news-dots button.is-active {
    width: 36px;
    background: #00A54F;
}

/* ---------- RTL ---------- */

[dir="rtl"] .home-product-track {
    direction: rtl;
}

[dir="rtl"] .home-products .home-product-prev,
[dir="rtl"] .home-products .home-product-next {
    transform: scaleX(-1);
}

[dir="rtl"] .home-news .home-news-prev,
[dir="rtl"] .home-news .home-news-next {
    transform: scaleX(-1);
}

/* ---------- 相邻区块衔接 ---------- */

.home-products + .home-city,
.home-city + .home-hardware,
.home-hardware + .home-cases,
.home-cases + .home-news {
    border-top: 0;
}

/* ---------- 移动端 ---------- */

@media (max-width: 820px) {
    .home-products .home-section-heading,
    .home-city .home-section-heading,
    .home-hardware .home-section-heading,
    .home-cases .home-section-heading,
    .home-news .home-section-heading {
        display: block;
    }

    .home-products .home-section-heading p,
    .home-city .home-section-heading p,
    .home-hardware .home-section-heading p,
    .home-cases .home-section-heading p,
    .home-news .home-section-heading p {
        max-width: none;
        margin-top: 12px;
        text-align: left;
    }

    [dir="rtl"] .home-section-heading p {
        text-align: right;
    }
}

/* ---------- 工业硬件区块：修正线上文案遮挡与卡片空白 ---------- */

.home-hardware .home-hardware-feature {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 44px 38px 40px;
    color: #0B1A12;
    background: linear-gradient(145deg, #F3FAF6 0%, #D9F0E3 100%);
}

.home-hardware .home-hardware-feature > strong {
    color: #00743A;
}

.home-hardware .home-hardware-feature h3 {
    margin-bottom: 20px;
    color: #0B1A12;
    font-size: clamp(26px, 2.1vw, 32px);
    line-height: 1.3;
}

.home-hardware .home-hardware-feature p {
    max-width: none;
    margin-bottom: 28px;
    color: #3B4C43;
    font-size: 15px;
    line-height: 1.75;
}

.home-hardware .home-hardware-feature > a {
    position: static !important;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: auto;
    padding: 14px 22px;
    border-radius: 6px;
    color: #FFFFFF;
    background: #00A54F;
    font-size: 15px;
    justify-content: space-between;
}

.home-hardware .home-hardware-feature > a:hover {
    background: #00743A;
}

.home-hardware .home-hardware-feature__mesh {
    opacity: .45;
    background-image: radial-gradient(circle, #00A54F 1.6px, transparent 1.8px);
}

.home-hardware .home-hardware-card {
    min-height: 0;
    background: #F6F8F6;
}

.home-hardware .home-hardware-card__body {
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: 32px 28px;
    background: #F6F8F6;
}

.home-hardware .home-hardware-card__body:after {
    border-color: rgba(0, 165, 79, .10);
}

.home-hardware .home-hardware-card__body h3 a {
    color: #0B1A12;
}

.home-hardware .home-hardware-card__body h3 a span {
    color: #00A54F;
}

.home-hardware .home-hardware-card__body p {
    color: #3B4C43;
    font-size: 14px;
    line-height: 1.7;
}

.home-hardware .home-hardware-card__links a {
    color: #3B4C43;
    font-size: 13px;
}

.home-hardware .home-hardware-card__links a:before {
    background: #00A54F;
}

.home-hardware .home-hardware-card__links a:hover {
    color: #00743A;
}

/* ---------- 案例区块：品牌色替换线上蓝色点缀 ---------- */

.home-cases .home-case-card__eyebrow,
.home-cases .home-case-card__more,
.home-cases .home-case-card__more span {
    color: #00743A;
}

.home-cases .home-case-card__body h3,
.home-cases .home-case-card__body h3 a {
    color: #0B1A12;
}

/* ---------- 新闻区块：圆点对比度 ---------- */

.home-news .home-news-dots button {
    background: #8C9A93;
}

/* ---------- 2026-11-11 home-city card polish ---------- */
/* 1) restore solution description (span was display:none in home-sections-v1.css) */
/* 2) 4-card grids fill one row; 6-card grids stay 3 columns */
.home-city .home-city-card__content span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    color: rgba(255, 255, 255, .74);
    font-size: 12.5px;
    line-height: 1.5;
}
.home-city .home-city-card__content i {
    display: block !important;
}
.home-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* 恰好 8 个方案 → 4 列 2 行（数字工厂方案）
   2026-11-12: zh-cn 首页补足 8 个真实方案，需按 4×2 排齐
   9 个及以上（达人新增）回退 3 列，保持 3×N 整齐 */
.home-city-grid:has(> .home-city-card:nth-child(8)):not(:has(> .home-city-card:nth-child(9))) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-city-grid:not(:has(> .home-city-card:nth-child(6))) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
    .home-city-grid,
    .home-city-grid:not(:has(> .home-city-card:nth-child(6))) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .home-city-grid,
    .home-city-grid:not(:has(> .home-city-card:nth-child(6))) {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* 2026-11-11 hardware grid: when a locale has only 2 product cards, stretch to 2 columns
   so the row is flush instead of leaving an empty cell. Desktop only. */
@media (min-width: 901px) {
    .home-hardware-grid:not(:has(> .home-hardware-card:nth-child(3))) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}