/* 全局复位与基础字体 */
.art-supplier-theme {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden; /* 防止移动端意外产生横向滚动条 */
}

/* 1. 全局版心控制：确保大屏（2K/4K）下 Banner 与下方网格两端严格对齐 */
.art-layout-wrapper {
    width: 1200px;
    margin: 30px auto;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Hero 区域优化 */
.hero-section {
    width: 100%;
    margin-bottom: 30px;
}
.hero-relative-wrapper {
    position: relative;
    width: 100%;
    /* 根据 1200 * 380 精准计算出的长宽比例 */
    aspect-ratio: 120 / 38; 
    overflow: hidden;
    
    /* 将图片设为背景，并应用平铺属性 */
    background-image: url('/wp-content/themes/hanhai/image/sofa-bg-banner.jpg');
    background-repeat: no-repeat; /* 开启平铺 */
    background-position: left top; /* 从左上角开始平铺 */
    background-size: cover; /* 保持图片原始尺寸进行平铺 */
    background-color: #f5f5f5; /* 兜底背景色 */
}

/* 文字图层：已完全删除背景色、磨砂玻璃底衬与边框线，实现完全透明通透 */
.hero-text-overlay {
    position: absolute;
    top: 30%;
    left: 5%;
    max-width: 50%;
    z-index: 10;
    padding: 0; /* 移除内边距，使文字边界完美贴合对齐 */
}
.hero-subtitle {
    /* 使用 clamp 限制字号在 24px 到 32px 之间随屏幕宽度等比优雅缩放 */
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 300;
    line-height: 1.4;
    color: #111111;
    margin-bottom: 0; /* 移除底部外边距，保持纯文字块的垂直居中平稳度 */
    letter-spacing: 1px;
    /* 优化：增加微弱平滑的半透明阴影，确保去除底色后在各种平铺底图上依然极易阅读 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 3. 网格行容器 */
.art-row {
    display: flex;
    justify-content: space-between; 
    width: 100%;
    margin-bottom: 20px; 
}

/* 基础卡片样式 */
.art-card {
    height: 400px; 
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    box-sizing: border-box;
}
.card-400 {
    width: 400px;
    flex: 0 0 400px; 
}
.card-780 {
    width: 780px;
    flex: 0 0 780px; 
}
.card-inner-img {
    width: 100%;
    height: 100%;
}
.card-inner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.art-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 50px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-start; 
    color: #ffffff;
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 100%);
    box-sizing: border-box;
}
.art-card-overlay h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.art-tag {
    font-size: 13px;
    letter-spacing: 3px;
    color: #ffffff;
    opacity: 0.8;
    margin-bottom: 5px;
}
.art-btn-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 4px;
    transition: opacity 0.3s;
}
.art-btn-link:hover {
    opacity: 0.7;
}

/* 浅色卡片反转类 */
.art-card.card-light-bg .art-card-overlay {
    color: #222222;
    background: linear-gradient(to right, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 100%);
}
.art-card.card-light-bg .art-tag {
    color: #666666;
    opacity: 1;
}
.art-card.card-light-bg .art-btn-link {
    color: #222222;
    border-bottom: 1px solid #222222;
}

/* 4. 统一响应式断点（统一为 1199px，彻底消除布局夹缝中的形变） */
@media (max-width: 1199px) {
    .art-layout-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }
    .hero-relative-wrapper {
        aspect-ratio: auto; /* 解除移动端宽高比锁定 */
        height: 280px; /* 移动端容器高度 */
    }
    .hero-text-overlay {
        position: static;
        max-width: 100%;
        padding: 40px 20px;
        text-align: center;
        background: transparent; /* 移动端也同步保持透明背景 */
    }
    .hero-subtitle {
        font-size: 26px;
        text-shadow: none; /* 移动端纯白底色下关闭阴影 */
    }
    .art-row {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }
    .art-card {
        width: 100% !important;
        max-width: 600px;
        height: 350px;
        margin-bottom: 20px;
        flex: none !important;
    }
    .art-card-overlay {
        padding: 30px;
    }
}