/* PC端导航样式 */
.navbar-nav > li > a {
    padding: 10px 10px;  /* 减小导航项之间的间距 */
    font-size: 14px;     /* 减小字体大小 */
}

/* 下拉菜单样式 */
.dropdown-menu {
    font-size: 13px;    /* 下拉菜单字体大小 */
}

/* 移动端汉堡按钮样式 */
.navbar-toggle {
  margin-top: 8px;
    margin-left: 10px;
    padding: 10px;      /* 增大按钮点击区域 */
    border: 2px solid #333;  /* 添加边框使其更显眼 */
}

.navbar-toggle .icon-bar {
    width: 25px;        /* 增加汉堡按钮线条宽度 */
    height: 3px;        /* 增加汉堡按钮线条高度 */
    background-color: #333;  /* 加深颜色 */
    margin: 5px 0;      /* 增加线条间距 */
}

/* 移动端导航菜单样式 */
@media (max-width: 767px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;       /* 将下拉菜单定位到汉堡按钮正下方 */
        left: 0;
        right: 0;
        background-color: white;
        border-top: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .navbar-nav {
        margin: 0;
        padding: 10px 0;
    }

    .navbar-nav > li > a {
        padding: 12px 20px;  /* 增加移动端导航项的可点击区域 */
    }

    .dropdown-menu {
        padding: 0;
        float: none;
        position: static;
        box-shadow: none;
        background-color: #f8f8f8;
    }

    .dropdown-menu > li > a {
        padding: 10px 30px;  /* 增加下拉菜单项的可点击区域 */
    }
}

@media (max-width: 768px) {
  #header {
    height: 20vh;
    min-height: 20vh;
    width: 100%;
    object-fit: cover;
  }

  /* 图片适配 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 表格适配 */
  table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  td {
    min-width: 100px;
    word-break: break-word;
  }

  /* 历史页面特殊处理 */
  .history-content img {
    width: 100%;
    margin: 10px 0;
  }

  .history-table {
    font-size: 14px;
  }

  .history-table td {
    padding: 8px;
  }
}

/* 响应式图片和表格样式 */
.text-center img {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
}

.container img {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
}

table {
    width: 100%;
    margin-bottom: 20px;
}

table td {
    vertical-align: top;
    padding: 10px;
}

table td img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    table td {
        display: block;
        width: 100%;
        text-align: center;
    }

    .text-center img {
        width: 100%;
        height: auto;
    }

    table td img {
        width: 100%;
        height: auto;
        margin: 10px auto;
    }
} 