@charset "utf-8";

/* ============================================
   响应式样式 - Responsive Design
   长沙中研皮肤病医院 - 全站响应式
   ============================================ */

/* ---- 桌面端汉堡按钮隐藏 ---- */
.nav-toggle {
    display: none;
}

/* ---- 全局取消 min-width 限制 ---- */
html, body {
    min-width: 0 !important;
    overflow-x: hidden;
}
#header, #footer, #nav {
    min-width: 0 !important;
}
#banner {
    min-width: 0 !important;
}

/* ---- 全局图片自适应 ---- */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   平板端 (max-width: 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    /* 主容器 */
    .m {
        width: 100% !important;
        max-width: 1200px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 导航栏 */
    .hdao {
        width: 100% !important;
        max-width: 1200px;
        box-sizing: border-box;
    }
    .hdao ul {
        box-sizing: border-box;
    }
    .hdao li {
        width: 16.66% !important;
    }

    /* 内容区域 */
    #content {
        width: 100% !important;
        box-sizing: border-box;
        padding: 20px 15px !important;
    }
    .content {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 首页关于我们 */
    .yyjsbox1 dd {
        width: 65% !important;
    }
    .yyjsbox1 dt {
        width: 30% !important;
    }

    /* 侧边导航 + 新闻 */
    #menu {
        width: 280px !important;
    }
    #menu div {
        width: 280px !important;
    }
    #menu ul {
        width: 280px !important;
    }
    #news {
        width: auto !important;
        margin-right: 300px;
    }

    /* 底部信息栏 */
    #hosp {
        width: 100% !important;
        box-sizing: border-box;
        padding: 0 15px;
    }
    #hosp li {
        width: 32% !important;
    }

    /* 页脚 */
    .footnr {
        width: 100% !important;
        box-sizing: border-box;
    }
    .w1160 {
        width: 100% !important;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .yyxx p {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* ============================================
   手机端 (max-width: 768px)
   ============================================ */
@media screen and (max-width: 768px) {

    /* ---- Header 头部 ---- */
    #header {
        height: auto !important;
        min-height: 60px;
        padding: 8px 0 !important;
        overflow: visible !important;
    }
    #header .m {
        position: relative !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100% !important;
    }
    #header .logo {
        float: none !important;
        width: auto !important;
        max-width: 55% !important;
        height: auto !important;
        margin-top: 0 !important;
    }
    #header .logo img {
        max-height: 45px !important;
        width: auto !important;
    }
    #header .tel {
        float: none !important;
        margin-top: 0 !important;
        margin-right: 50px;
        padding-left: 24px !important;
        background-size: 18px !important;
        background-position: left center !important;
        line-height: 30px !important;
    }
    #header .tel span.s1 {
        font-size: 16px !important;
    }
    #header .tel span {
        font-size: 12px !important;
    }
    /* index.html 有两个电话号码 */
    #header .tel span.s1:last-of-type {
        display: none;
    }

    /* ---- 汉堡菜单按钮 ---- */
    .nav-toggle {
        display: block !important;
        width: 40px;
        height: 40px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1001;
        background: #860d2c;
        border-radius: 5px;
        padding: 8px;
        box-sizing: border-box;
    }
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }
    .nav-toggle span:last-child {
        margin-bottom: 0;
    }
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ---- 导航栏改为纵向展开 ---- */
    .hdao {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .hdao ul {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: auto !important;
        z-index: 1000;
        background: #fff;
        border: 1px solid #ddd !important;
        border-top: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    .hdao ul.show {
        display: block;
    }
    .hdao li {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        border-bottom: 1px solid #eee;
    }
    .hdao li:last-child {
        border-bottom: none;
    }
    .hdao li a {
        border-right: none !important;
        border-bottom: 1px solid #eee;
        height: 44px !important;
        line-height: 44px !important;
        font-size: 16px !important;
        text-align: left;
        padding: 0 20px !important;
    }
    .hdao ul li:last-child a {
        border-bottom: none;
    }
    .hdao li.on a {
        background: #860d2c !important;
        color: #fff !important;
    }

    /* ---- 内容区域 ---- */
    #content {
        width: 100% !important;
        padding: 15px !important;
        overflow: visible !important;
    }
    .content {
        width: 100% !important;
    }

    /* 首页关于我们 */
    .yyjsbt {
        font-size: 18px !important;
        padding: 15px 0 8px !important;
    }
    .yyjsbox1 {
        padding: 15px !important;
    }
    .yyjsbox1 dd {
        width: 100% !important;
        float: none !important;
    }
    .yyjsbox1 dt {
        width: 100% !important;
        float: none !important;
        margin-top: 15px;
        text-align: center;
        background: none !important;
        height: auto !important;
    }
    .yyjsbox1 dt img {
        max-width: 100%;
        height: auto;
    }
    .yyjsbox5 img,
    .yyjsbox6 img {
        max-width: 100%;
        height: auto;
    }
    .yyjsbox5 div,
    .yyjsbox6 div {
        padding: 10px 0 !important;
    }

    /* ---- 侧边导航改为顶部水平排列 ---- */
    #menu {
        width: 100% !important;
        float: none !important;
        margin-bottom: 15px !important;
    }
    #menu div {
        width: 100% !important;
        font-size: 18px !important;
        height: 48px !important;
        line-height: 48px !important;
    }
    #menu ul {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    #menu li {
        width: 48% !important;
        margin-bottom: 8px !important;
        float: none !important;
        font-size: 14px !important;
        box-sizing: border-box;
    }
    #menu li.m2,
    #menu li.m4,
    #menu li.m6,
    #menu li.m8 {
        float: none !important;
    }
    #menu li a {
        padding: 12px 10px !important;
        font-size: 14px !important;
    }
    #menu li span {
        height: 30px !important;
        background-size: contain !important;
        background-position: center !important;
    }

    /* ---- 新闻/正文区域 ---- */
    #news {
        width: 100% !important;
        float: none !important;
        margin: 0 0 15px 0 !important;
    }
    #news .t li {
        font-size: 16px !important;
        padding: 0 15px !important;
    }
    #news .c {
        margin: 0 15px !important;
        padding-top: 15px !important;
    }
    #news .c p {
        text-indent: 2em !important;
        line-height: 28px !important;
        font-size: 14px !important;
    }
    #news .c h2,
    #news .c h3 {
        text-indent: 2em !important;
    }

    /* ---- 底部信息栏改为纵向 ---- */
    #hosp {
        width: 100% !important;
        height: auto !important;
        margin: 15px auto !important;
        padding: 0 15px !important;
        box-sizing: border-box;
    }
    #hosp ul {
        display: flex !important;
        flex-direction: column;
    }
    #hosp li {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
        padding: 15px !important;
        box-sizing: border-box;
        font-size: 14px !important;
    }
    #hosp li.s3 {
        margin-bottom: 0;
    }
    #hosp li em {
        font-size: 14px !important;
        display: block;
    }
    #hosp li.s1 span {
        margin: 5px 15px 0 15px !important;
    }
    #hosp li.s2 span {
        margin: 5px 15px 0 15px !important;
    }
    #hosp li.s3 span {
        margin: 5px 15px 0 15px !important;
    }

    /* ---- 页脚 ---- */
    .foot {
        padding: 25px 0 !important;
        margin-top: 20px !important;
    }
    .footnr {
        width: 100% !important;
        height: auto !important;
    }
    .w1160 {
        width: 100% !important;
        box-sizing: border-box;
        padding: 0 15px !important;
    }
    .yyxx {
        height: auto !important;
    }
    .yyxx img.fl {
        margin: 0 auto 15px !important;
        float: none !important;
        display: block;
        max-width: 120px;
    }
    .yyxx p {
        padding-left: 0 !important;
        margin-left: 0 !important;
        text-align: center !important;
        line-height: 28px !important;
        font-size: 12px !important;
        padding-top: 5px !important;
    }
}

/* ============================================
   小屏手机端 (max-width: 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    /* Header */
    #header .logo img {
        max-height: 36px !important;
    }
    #header .tel span.s1 {
        font-size: 14px !important;
    }
    #header .tel {
        margin-right: 48px;
    }

    /* 导航字体 */
    .hdao li a {
        font-size: 15px !important;
        padding: 0 15px !important;
    }

    /* 侧边导航每行一个 */
    #menu li {
        width: 100% !important;
    }

    /* 正文字体 */
    #news .c p {
        font-size: 13px !important;
        line-height: 26px !important;
    }

    /* 页脚 */
    .yyxx p {
        font-size: 11px !important;
        line-height: 24px !important;
    }
}
