html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.wrap > .container {
    padding: 30px 15px 15px 15px; /* 调整顶部间距为30px */
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
    padding: 1rem 1rem; /* 减小jumbotron的内边距，使其更短 */
    margin-bottom: 15px; /* 减小底部外边距 */
}

.jumbotron .btn {
    font-size: 24px; /* 加大按钮 */
    padding: 16px 32px; /* 加大按钮 */
    border-radius: 8px; /* 圆角按钮 */
    background-color: #28a745; /* 更明显的绿色背景 */
    border-color: #28a745; /* 边框颜色 */
    color: white; /* 白色文字 */
    font-weight: bold; /* 粗体文字 */
    transition: all 0.3s ease; /* 添加过渡效果 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 添加阴影 */
}

.jumbotron .btn:hover {
    background-color: #218838; /* 悬停时的颜色 */
    transform: translateY(-2px); /* 悬停时上移 */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* 悬停时增强阴影 */
}

.jumbotron .display-4 {
    font-size: 2.5rem;
    margin: 10px 0; /* 减小标题的上下边距 */
}

.jumbotron .lead {
    margin: 10px 0; /* 减小描述文字的上下边距 */
}

/* 时间筛选表单样式 */
.date-filter-form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.date-filter-form .form-group {
    margin-right: 15px;
    margin-bottom: 10px;
}

.date-filter-form label {
    margin-right: 5px;
    font-weight: bold;
}

.date-filter-form .form-control {
    display: inline-block;
    width: auto;
}

.date-filter-form .btn {
    margin-right: 5px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
    
    .jumbotron .display-4 {
        font-size: 1.8rem;
    }
    
    .jumbotron .btn {
        font-size: 20px; /* 移动端按钮字体 */
        padding: 14px 28px; /* 移动端按钮大小 */
    }
    
    .body-content .row {
        margin: 0 -10px;
    }
    
    .body-content .row [class*="col-"] {
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .wrap > .container {
        padding: 30px 10px 10px 10px; /* 移动端顶部padding保持一致 */
    }
    
    /* 移动端时间筛选表单样式调整 */
    .date-filter-form .form-group {
        display: block;
        margin-right: 0;
    }
    
    .date-filter-form .form-control {
        width: 100%;
        margin-top: 5px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .wrap > .container {
        padding: 30px 10px 10px 10px;
    }
    
    .footer .pull-left,
    .footer .pull-right {
        float: none !important;
        text-align: center;
    }
    
    .footer p {
        margin-bottom: 5px;
    }
    
    .text-justify {
        text-align: left !important;
    }
    
    .jumbotron {
        padding: 0.8rem 0.5rem; /* 移动端更小的内边距 */
    }
}

@media (max-width: 480px) {
    .jumbotron .display-4 {
        font-size: 1.5rem;
    }
    
    .jumbotron .btn {
        font-size: 18px; /* 小屏幕按钮字体 */
        padding: 12px 24px; /* 小屏幕按钮大小 */
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .wrap > .container {
        padding: 30px 5px 5px 5px;
    }
    
    .jumbotron {
        padding: 0.6rem 0.3rem; /* 小屏幕更小的内边距 */
    }
}