/* ==========================================
   维森木作家居 - 全局排版修复
   加载在所有CSS之后，最高优先级
   ========================================== */

/* === 1. 导航菜单 === */
#logo {
    max-height: none !important;
    width: 200px !important;
    height: auto !important;
}
#top-menu li a,
#top-menu-right li a {
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    padding: 0 12px !important;
    color: #2a2a2a !important;
}

/* === 2. 案例卡片 - 图片与标题间距 === */
.cases-item h2.title,
.cases-item h3.title {
    font-size: 12px !important;
    font-weight: 400 !important;
    margin: 14px 0 10px 0 !important;
    line-height: 1.2 !important;
    color: #222 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === 3. 案例卡片 - 描述文字 === */
.cases-excerpt p {
    font-size: 15px !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
    color: #555 !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: 0.02em !important;
}

/* === 4. 案例卡片 - 标签 === */
.tags {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #e8e8e8 !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
}

.tags a {
    font-size: 13px !important;
    color: #b8963c !important;
}

/* === 5. 案例卡片 - 卡片之间间距 === */
.cases-item {
    margin-bottom: 40px !important;
}

/* === 6. 标题H2（精选实景、品牌承诺等）=== */
.et_pb_text_inner h2,
#main-content h2 {
    font-size: 28px !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 30px !important;
    color: #222 !important;
}

/* === 7. 轮播幻灯片标题 === */
.et_pb_slide .et_pb_slide_title,
.et_pb_slide .et_pb_slide_content,
.et_pb_slide .et_pb_slide_content p {
    color: #fff !important;
}
h2.et_pb_slide_title, h3.et_pb_slide_title {
    font-size: 3rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 16px !important;
}

/* === 7b. 案例详情页左右布局（强力覆盖）=== */
.short-content {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
}
.short-left {
    width: 50% !important;
    display: block !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
}
.short-right {
    width: 50% !important;
    display: block !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;  /* 覆盖 style-4.21.0.css 的 align-self:start */
    position: sticky !important;
    top: 0 !important;
    float: none !important;
}
.short-right .case-hero {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px !important;
    background-color: #e8e4dc !important;
    display: block !important;
}

/* === 7c. 全屋高定筛选标签：全部下方显示"全屋定制"，无下划线=== */
.furn-filter-btn::after,
.furn-filter-btn.active::after {
    display: none !important;
}
.furn-filter-label {
    display: block !important;
    text-align: center;
    margin-top: 4px;
    font-size: 13px;
    color: #8b7355;
    letter-spacing: 2px;
}

/* === 8. 轮播幻灯片描述 === */
.et_pb_slide_content p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    font-weight: 300 !important;
}

/* === 9. 整体页面容器 === */
.entry-content {
    padding: 0 !important;
}

/* ==========================================
   #1 全局字号增大（电脑端整体偏小）
   ========================================== */
body {
    font-size: 15px !important;
}

#top-menu li a,
#top-menu-right li a {
    font-size: 14px !important;
}

.cases-item h2.title,
.cases-item h3.title,
.cases-item .title {
    font-size: 12px !important;
}

.cases-excerpt p,
.arch-card-excerpt,
.furn-card-excerpt {
    font-size: 13px !important;
}

.et_pb_text_inner h2,
#main-content h2 {
    font-size: 24px !important;
}

h3.et_pb_slide_title {
    font-size: 2.6rem !important;
}

.et_pb_slide_content p {
    font-size: 15px !important;
}

.arch-card h2,
.furn-card h2 {
    font-size: 13px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arch-card:first-child h2 {
    font-size: 15px !important;
    line-height: 1.4 !important;
    white-space: normal;
    overflow: visible;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* === 首页所有卡片区域统一协调 === */
#cases .cases-item,
#cases-two .cases-item,
#cases-four .cases-item,
#cases-five .cases-item,
#cases-six .cases-item {
    display: flex;
    flex-direction: column;
}

/* === 首页卡片大小统一：取消第一个跨2列，全部等大 === */
.div1, .div2, .div3, .div4, .div5, .div6 {
    grid-area: auto !important;
    width: 100% !important;
}

/* 隐藏时间戳 */
.cases-item time,
.cases-item .date,
.cases-item [class*="date"],
#cases .cases-item::before,
#cases-two .cases-item::before {
    display: none !important;
}

/* PC端图片统一比例 */
#cases .image-wrapper,
#cases-two .image-wrapper,
#cases-four .image-wrapper,
#cases-five .image-wrapper,
#cases-six .image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* === 移动端卡片图片统一尺寸 === */
@media only screen and (max-width: 1000px) {
    .image-wrapper {
        min-height: 200px !important;
        max-height: 260px !important;
    }
    .image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 案例详情页移动端内容区适配 */
    .short-left {
        padding: 30px 20px !important;
        padding-top: 100px !important;   /* 避开固定导航栏 */
    }
    .short-left .et_main_title,
    .short-left .short-left-content {
        padding: 0 20px 30px !important;
    }
    .blog-text p::first-letter {
        padding-left: 0 !important;
    }
    .blog-text p:first-child::first-letter {
        padding-left: 0 !important;
    }

    /* Footer移动端居中排列 */
    #main-footer {
        text-align: center !important;
    }
    .footer-widget {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin-bottom: 24px !important;
    }
    #footer-widgets .footer-widget:first-child {
        flex-direction: column !important;
        align-items: center !important;
    }
    .footer-qr {
        margin-top: 8px !important;
    }
    .footer-qr img {
        width: 100px !important;
        height: 100px !important;
    }
    #footer-widgets .fwidget .title {
        margin-bottom: 12px !important;
    }
    #footer-widgets .fwidget ul {
        list-style: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    #footer-widgets .fwidget ul li {
        display: inline-block !important;
        margin: 4px 12px !important;
    }
    #footer-bottom {
        text-align: center !important;
    }
}

#cases .image-wrapper img,
#cases-two .image-wrapper img,
#cases-four .image-wrapper img,
#cases-five .image-wrapper img,
#cases-six .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#cases .cases-item h2.title,
#cases-two .cases-item h2.title,
#cases-four .cases-item h2.title,
#cases-five .cases-item h2.title,
#cases-six .cases-item h2.title {
    font-size: 13px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 首页精选实景 #cases 区域：保持原始跨列设计，仅统一字号 */
#cases .cases-item h2.title {
    font-size: 13px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

/* === Footer 页脚字号调大 === */
#main-footer #footer-widgets .footer-widget:first-child {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
#main-footer #footer-widgets .footer-widget:first-child img {
    height: auto !important;
    max-height: none !important;
}
#main-footer #footer-widgets .footer-widget:first-child .widget_media_image img {
    width: 200px !important;
}
#main-footer #footer-widgets .footer-widget:first-child .footer-qr {
    margin-top: 5px !important;
}
#main-footer #footer-widgets .footer-widget:first-child .footer-qr img {
    width: 120px !important;
    height: 120px !important;
}

#footer-widgets .footer-widget h4 {
    font-size: 17px !important;
    letter-spacing: 2px !important;
}

#footer-widgets .footer-widget li a {
    font-size: 15px !important;
    padding: 7px 0 !important;
}

#footer-widgets .footer-widget p,
.footer-column p,
.footer-column span {
    font-size: 15px !important;
    line-height: 1.8 !important;
}

#footer-bottom,
#footer-bottom p,
#footer-bottom a {
    font-size: 14px !important;
}

.arch-card:first-child .arch-card-excerpt,
.furn-card:first-child .furn-card-excerpt {
    font-size: 14px !important;
}

.about-philosophy-header h2,
.about-why-header h2,
.contact-faq-header h2,
.craft-section-header h2 {
    font-size: 22px !important;
}

.about-philosophy-header p,
.about-why-header p,
.craft-section-header p {
    font-size: 14px !important;
}

.about-value-card h3,
.about-feature h3,
.craft-card h3 {
    font-size: 16px !important;
}

.about-value-card p,
.about-feature p,
.craft-card p,
.contact-info-card p,
.contact-faq-item p {
    font-size: 13px !important;
}

.contact-hero h1,
.arch-hero-content h1,
.furn-hero-content h1,
.craft-hero-content h1,
.about-hero-content h1 {
    font-size: 28px !important;
}

.short-left .et_main_title h1.entry-title {
    font-size: 24px !important;
}

.short-left-content.blog-text {
    font-size: 14px !important;
}

.short-left-content.blog-text p {
    font-size: 14px !important;
    line-height: 1.9 !important;
}

/* ==========================================
   #9 移动端响应式修复
   ========================================== */
@media only screen and (max-width: 1000px) {

    .et_pb_slide_content,
    .cases-excerpt p {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    #cases h2.title,
    #main-content h2 {
        letter-spacing: 2px !important;
        font-size: 22px !important;
    }

    .arch-hero-content h1,
    .furn-hero-content h1,
    .craft-hero-content h1,
    .about-hero-content h1,
    .contact-hero h1 {
        font-size: 26px !important;
        letter-spacing: 3px !important;
    }
}

/* === 10. 移动端导航栏修复 === */
@media only screen and (max-width: 768px) {

    /* Logo字号加大，和导航文字一样大 */
    #logo {
        width: 180px !important;
        height: auto !important;
    }

    /* 导航链接/不换行，保持在文字右边 */
    #top-menu li a,
    #top-menu-right li a {
        white-space: nowrap !important;
    }

    /* 导航栏下方增加间距 */
    #main-header {
        margin-bottom: 20px !important;
    }
    #et-main-area {
        padding-top: 10px !important;
    }
}

/* === 案例详情页移动端（仅手机竖屏 < 480px 才垂直堆叠）=== */
@media only screen and (max-width: 480px) {

    .short-content {
        display: flex !important;
        flex-direction: column !important;
    }
    .short-left,
    .short-right {
        width: 100% !important;
        display: block !important;
    }

    .short-left {
        padding: 30px 20px !important;
        padding-top: 100px !important;   /* 避开固定导航栏(85px) */
    }

    .short-left .et_main_title {
        padding-top: 0 !important;       /* 已由父元素padding-top处理 */
    }

    .short-right .case-hero {
        height: 50vh !important;
        min-height: 300px !important;
        background-color: #e8e4dc !important;
    }

    .short-left .et_main_title h1.entry-title {
        font-size: 24px !important;
        letter-spacing: 2px !important;
    }

    .short-left-content.blog-text {
        font-size: 15px !important;
    }

    .short-left-content.blog-text p {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .arch-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .furn-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .arch-card h2,
    .furn-card h2 {
        font-size: 18px !important;
    }

    .arch-card-excerpt,
    .furn-card-excerpt {
        font-size: 14px !important;
    }

    .arch-filters,
    .furn-filters {
        flex-wrap: wrap;
        gap: 6px;
    }

    .arch-filter-btn,
    .furn-filter-btn {
        font-size: 10px !important;
        padding: 6px 12px !important;
    }

    .about-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .about-stat {
        padding: 1.5rem 1rem !important;
    }

    .about-features {
        grid-template-columns: 1fr !important;
    }

    .about-feature:nth-child(odd) {
        padding-right: 0 !important;
        border-right: none !important;
    }

    .about-range-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-info-grid .contact-info-card:last-child {
        grid-column: span 1 !important;
    }

    .contact-cta {
        grid-template-columns: 1fr !important;
    }

    .contact-faq-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-faq-item:nth-child(odd) {
        border-right: none !important;
    }

    .craft-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .craft-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .craft-process {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    #footer-widgets {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 30px;
    }

    .footer-widget {
        margin-bottom: 20px;
    }

    .contact-cta-btn {
        display: inline-block;
        width: auto;
        padding: 14px 36px !important;
    }

    .menu-mobile-menu-container {
        display: flex !important;
        flex-direction: column !important;
    }
    .menu-mobile-menu-container ul,
    .small-menu ul {
        display: flex !important;
        flex-direction: column !important;
    }
    .menu-mobile-menu-container li,
    .small-menu li {
        display: block !important;
        line-height: 2.5 !important;
    }
    .menu-mobile-menu-container li a {
        font-size: 18px !important;
        display: block !important;
    }

    .hidden-mobile-menu {
        padding-top: 60px !important;
    }
}

@media only screen and (max-width: 480px) {

    #footer-widgets {
        grid-template-columns: 1fr !important;
    }

    /* ================================================================
       底栏移动端优化 - 彻底重置
       原始CSS有大量!important规则，必须逐一覆盖
       ================================================================ */
    #footer-widgets {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        justify-content: unset !important;
        width: 100% !important;
    }
    /* 覆盖所有可能的footer-widget选择器 */
    #footer-widgets .footer-widget,
    #footer-widgets .footer-widget:first-child,
    #footer-widgets .footer-widget:nth-child(1),
    #footer-widgets .footer-widget:nth-child(2),
    #footer-widgets .footer-widget:nth-child(3),
    #footer-widgets .footer-widget:nth-child(4),
    #footer-widgets .footer-widget:nth-child(n) {
        max-width: none !important;
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }
    /* 内部fwidget也要释放 */
    #footer-widgets .footer-widget .fwidget {
        max-width: 100% !important;
        width: 100% !important;
    }
    /* Logo widget: 缩小logo和二维码 */
    #main-footer #footer-widgets .footer-widget:first-child img:first-child,
    #footer-widgets .footer-widget:first-child img:first-child {
        width: 140px !important;      /* 原始280px → 140px */
        height: auto !important;
    }
    #main-footer #footer-widgets .footer-widget:first-child .footer-qr img,
    #footer-widgets .footer-widget:first-child .footer-qr img {
        width: 80px !important;       /* 原始120px → 80px */
        height: 80px !important;
    }
    #footer-widgets .footer-widget h4.title {
        font-size: 13px !important;
        letter-spacing: 1px !important;
        margin-bottom: 8px !important;
    }
    #footer-widgets .footer-widget ul li a {
        font-size: 13px !important;
        padding: 4px 0 !important;
    }
    #footer-widgets .footer-widget p,
    #footer-widgets .footer-widget span {
        font-size: 12px !important;
        line-height: 1.6 !important;
        margin-bottom: 4px !important;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr !important;
    }

    .about-range-grid {
        grid-template-columns: 1fr !important;
    }

    .arch-hero-content h1,
    .furn-hero-content h1,
    .craft-hero-content h1,
    .about-hero-content h1,
    .contact-hero h1 {
        font-size: 22px !important;
        letter-spacing: 2px !important;
    }

    .short-left .et_main_title h1.entry-title {
        font-size: 20px !important;
    }
}

/* ==========================================
   移动端问题修复（来自文档需求 2026-06-05）
   ========================================== */

/* --- 问题1: PC端 服务承诺(#cases-six) 卡片等高对齐 --- */
#cases-six {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
#cases-six .cases-item {
    flex: 1 1 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
}
#cases-six .cases-item .image-wrapper {
    flex-shrink: 0;
}
#cases-six .cases-item .cases-excerpt {
    flex-grow: 1;
}

/* 同样修复 #cases-four 热门品类 PC端对齐 */
#cases-four {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
#cases-four .cases-item {
    flex: 1 1 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
}
#cases-four .cases-item .image-wrapper {
    flex-shrink: 0;
}
#cases-four .cases-item .cases-excerpt {
    flex-grow: 1;
}

/* --- 问题2+3: 手机端 服务承诺/热门品类 内容完整显示 --- */
@media only screen and (max-width: 768px) {
    /* 服务承诺区移动端适配 */
    #cases-six,
    #cases-four,
    #cases-two,
    #cases-five {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 16px !important;
    }
    #cases-six .cases-item,
    #cases-four .cases-item,
    #cases-two .cases-item,
    #cases-five .cases-item {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    /* 确保图片在移动端不会过大或过小 */
    #cases-six .image-wrapper,
    #cases-four .image-wrapper,
    #cases-two .image-wrapper,
    #cases-five .image-wrapper {
        aspect-ratio: 4 / 3 !important;
        min-height: auto !important;
        max-height: none !important;
    }
    /* 文字在移动端完整显示，不被截断 */
    #cases-six .cases-excerpt p,
    #cases-four .cases-excerpt p,
    #cases-two .cases-excerpt p,
    #cases-five .cases-excerpt p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    /* 标题不截断 */
    #cases-six .title,
    #cases-four .title,
    #cases-two .title,
    #cases-five .title {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
    }
    /* 隐藏移动端的侧边装饰文字避免遮挡 */
    .sticky { display: none !important; }
}

/* --- 问题5: 手机端 文章/案例详情页 图文对称 --- */
@media only screen and (max-width: 768px) {
    /* 新闻/文章内容页 body 区域 */
    .news-body {
        padding: 28px 18px 40px !important;
    }
    .news-body p {
        font-size: 15px !important;
        line-height: 1.85 !important;
        text-align: justify !important;
    }
    /* 文章内图片自适应且居中 */
    .news-body img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 16px auto !important;
        border-radius: 4px !important;
    }
    /* 案例详情页左右布局在平板以下垂直堆叠后对称 */
    .short-content {
        flex-direction: column !important;
    }
    .short-left,
    .short-right {
        width: 100% !important;
    }
    .short-right .case-hero {
        min-height: 250px !important;
        height: 35vh !important;
    }
    .short-left-content.blog-text img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 16px auto !important;
    }
    .blog-text p {
        text-align: justify !important;
    }
    /* 首图区域移动端适配 */
    .news-hero {
        height: 35vh !important;
        min-height: 220px !important;
    }
    .news-hero-title {
        font-size: 22px !important;
    }
}
