@charset "utf-8";
/**
 * 自定义样式文件 - 用于覆盖原模板样式
 * 优点：保留原文件，安全可回退，方便维护
 */

/* ==================== Logo区域样式优化 ==================== */
/* 解决logo图片过大导致无法正常显示的问题 */
/* 适用于所有页面：首页、列表页、详情页 */

/* Logo容器样式 - 最高优先级 */
div#header div#logo,
div#header #logo,
#header div#logo,
#header #logo {
    width: 300px !important;
    max-width: 300px !important;
    height: 80px !important;
    max-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    float: left !important;
}

/* Logo图片样式 - 最高优先级 */
div#header div#logo img,
div#header #logo img,
#header div#logo img,
#header #logo img,
#header #logo a img {
    max-width: 100% !important;
    max-height: 80px !important;
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    display: block !important;
}

/* 如果logo太小，设置最小高度 */
#header #logo img {
    min-height: 35px !important;
}
