/**
 * Corner 小角落主题 - 适配 Xiuno BBS
 * 移植自 Typecho Corner 主题
 */

/**
 *  reset
 */

/** 清除内外边距 **/
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td {
    margin: 0;
    padding: 0;
}

/** 设置默认字体 **/
body, button, input, select {
    font: 14px/1.5 arial, sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
}

address, cite, dfn, em, var {
    font-style: normal;
}

code, kbd, pre, samp {
    font-family: courier new, courier, monospace;
}

small {
    font-size: 12px;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: #4B8DC5;
}

a:hover {
    text-decoration: none;
}

fieldset, img {
    border: 0;
}

button, input, select, textarea {
    font-size: 100%;
}

textarea {
    resize: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a img {
    border-width: 0;
}

body {
    margin: 0;
    background: no-repeat #E9E9E9;
    padding-top: 62px;
}

/* Container */
.corner-container {
    margin: 0px auto;
    width: 960px;
}

/* Main Content */
.corner-main {
    float: left;
    width: 590px;
    background-color: #FFFFFF;
}

/* 左侧内容容器 - 用于包裹多个独立白色框 */
.corner-left {
    float: left;
    width: 590px;
}

.corner-left .corner-main {
    float: none;
    width: 100%;
}

/* Logo */
.corner-logo {
    font-size: 18px;
    font-weight: 900;
    margin-right: 15px;
    float: left;
    line-height: 42px;
}

/* Navigation */
.corner-nav {
    font-size: 14px;
    font-weight: 900;
    margin: 0;
    float: left;
}

.corner-nav li {
    display: inline;
}

.corner-pro .reg_link li a, .corner-nav li a {
    color: #E9E9E9;
    display: inline-block;
    font-weight: 800;
    line-height: 42px;
    padding: 0 15px;
    text-decoration: none;
}

.corner-pro li a {
    color: #E9E9E9;
    display: inline-block;
    padding: 0 10px;
    text-decoration: none;
}

.corner-nav li a:hover, .corner-pro li a:hover {
    background-color: #4A708B;
    text-decoration: none;
}

.corner-pro {
    margin: 0;
    float: right;
}

.corner-pro li {
    display: inline;
}

/* Header Container */
.corner-header-container {
    -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    background: none repeat scroll 0 0 #2B5166;
    margin-bottom: 20px;
    color: #E9E9E9;
    height: 42px;
    opacity: 0.85;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 999;
}

/* Sidebar */
.corner-sidebar {
    float: right;
    width: 360px;
}

/* Comment Panel */
.corner-comment {
    position: fixed;
    width: 300px;
    margin-left: 660px;
    top: 0;
    bottom: 0;
    border-radius: 0;
    -moz-border-radius: 0;
    border-left: 1px solid #D9DCE0;
    background-color: #E9F0F8;
}

.corner-comments-items {
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    margin-bottom: 10px;
    position: relative;
    top: 0;
}

.corner-comment-item {
    left: 0;
    overflow: hidden;
    padding: 8px 0px;
    position: relative;
    top: 0;
    border-top: 1px solid #f2f2f2;
}

.corner-comment-item:first-child,
.corner-comment-item-first {
    border-top: none;
}

.corner-comment-item .icon, .corner-comment-item .icon-s {
    float: left;
    margin-top: 1px;
}

.corner-comment-item .content {
    left: 0;
    line-height: 1.4em;
    margin-left: 70px;
    position: relative;
    top: 0;
}

.corner-comment-item .content-s {
    left: 0;
    line-height: 1.4em;
    margin-left: 30px;
    position: relative;
    top: 0;
}

.corner-comment-item .icon img {
    height: 48px;
    width: 48px;
    vertical-align: middle;
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px 3px 3px 3px;
}

.corner-comment-item .icon-s img {
    height: 22px;
    width: 22px;
    vertical-align: middle;
}

.corner-comment-item .content p, .corner-comment-item .content-s p {
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
}

.corner-comment-item .content p a, .corner-comment-item .content-s p a {
    color: #808080;
}

.corner-comment-item .comment-time {
    color: #B3B3B3;
    font-size: 12px;
    margin-right: 5px;
}

/* Box */
.corner-box {
    padding: 10px;
    background-color: #FFFFFF;
    border-radius: 5px 5px 5px 5px;
    -moz-border-radius: 5px 5px 5px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Stream Item (帖子列表项) */
.corner-stream-item {
    border-bottom: 1px solid #EFF1F2;
    left: 0;
    overflow: hidden;
    position: relative;
    top: 0;
}

.corner-stream-item .mod {
    height: auto !important;
    overflow: visible;
    padding: 10px;
}

.corner-stream-item .mod .hd {
    position: absolute;
}

.corner-stream-item .mod .hd .icon {
    display: block;
}

.corner-stream-item .mod .hd .icon img {
    width: 22px;
    height: 22px;
    -moz-border-radius: 2px 2px 2px 2px;
    border-radius: 2px 2px 2px 2px;
}

.corner-stream-item .mod .text {
    overflow: hidden;
    padding-left: 35px;
}

.corner-stream-item .mod .text a {
    line-height: 22px;
}

.corner-stream-item.hover, .corner-stream-item.opened {
    cursor: pointer;
}

.corner-stream-item.hover {
    background-color: #FAFAFA;
    border-color: #E0E3E6;
}

.corner-stream-item.opened, .corner-stream-item.opened:hover {
    background-color: #E9F0F8;
}

/* Home Header */
.corner-home-header {
    border-bottom: 1px solid #E2E2E2;
    border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    background: none repeat scroll 0 0 #FAFAFA;
    padding: 5px 5px 10px 5px;
}

/* Radius */
.corner-radius {
    border-radius: 5px 5px 5px 5px;
    -moz-border-radius: 5px 5px 5px 5px;
}

.corner-radius-top {
    border-radius: 5px 5px 0px 0px;
    -moz-border-radius: 5px 5px 0px 0px;
}

.corner-radius-left {
    border-radius: 5px 0px 0 0;
    -moz-border-radius: 5px 0px 0 0;
}

.corner-radius-both {
    border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
}

/* Text styles */
.corner-text a {
    color: #4B8DC5;
    text-decoration: none;
    font-size: 15px;
}

a.visited, .corner-text a:visited {
    color: #8DB6CD;
}

/* Comments count */
.corner-stream-item .icon-comments {
    display: inline-block;
    line-height: 12px;
    top: 16px;
    color: #808080;
    float: right;
    line-height: 22px;
    margin-right: 10px;
    cursor: pointer;
}

.corner-stream-item .comments-count {
    -moz-border-radius: 12px 12px 12px 12px;
    border-radius: 12px 12px 12px 12px;
    background-color: #c4c4c4;
    color: white;
    font-weight: bold;
    line-height: 12px;
    padding: 2px 0px;
    font-size: 12px;
    width: 30px;
    display: inline-block;
    text-align: center;
}

.corner-stream-item.opened .comments-count {
    background-color: #AAB0C6;
}

/* Item Node (标签) */
.corner-item-node {
    background-color: #eee;
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px 3px 3px 3px;
    display: inline-block;
    font-size: 14px;
    line-height: 13px;
    margin: 3px;
    padding: 4px;
    color: #636A86;
}

.corner-item-node-add {
    display: inline-block;
    margin-top: 5px;
}

.corner-item-node:hover {
    background-color: #9999aa;
    color: #fff;
    text-decoration: none;
}

/* Tag styles - Corner 风格标签 */
.corner-stream-item a.tag, a.tag {
    cursor: pointer;
    margin: 0 2px;
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px 3px 3px 3px;
    color: #FFFFFF;
    padding: 1px 3px 2px;
    margin-right: 5px;
    text-decoration: none;
}

a.tag:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* 标签预设颜色 */
.corner-tag-0 { background: #B02B2C; }
.corner-tag-1 { background: #D15600; }
.corner-tag-2 { background: #C79810; }
.corner-tag-3 { background: #73880A; }
.corner-tag-4 { background: #6BBA70; }
.corner-tag-5 { background: #3F4C6B; }
.corner-tag-6 { background: #356AA0; }
.corner-tag-7 { background: #D01F3C; }
.corner-tag-8 { background: #FF0084; }
.corner-tag-9 { background: #008C00; }
.corner-tag-10 { background: #FF7400; }
.corner-tag-11 { background: #CC0000; }
.corner-tag-12 { background: #FF1A00; }
.corner-tag-13 { background: #36393D; }
.corner-tag-14 { background: #4096EE; }

/* 返回顶部 - Corner 风格 */
.corner-gotoTop {
    display: none;
    width: 54px;
    height: 54px;
    background-image: url(../../view/img/kehua.jpg);
    background-color: #fff;
    background-position: 0 54px;
    position: fixed;
    right: 15px;
    bottom: 60px;
    cursor: pointer;
    opacity: 0.5;
    filter: Alpha(opacity=50);
}

.corner-gotoTop:hover {
    opacity: 0.85;
    filter: Alpha(opacity=85);
}

/* 首页链接 / 相关话题链接 */
.corner-homepage-links a {
    color: #4B8DC5;
    text-decoration: none;
}

.corner-homepage-links a:hover {
    text-decoration: underline;
}

.corner-homepage-links div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Register/Login styles */
.corner-reg-title {
    font-size: 18px;
}

.corner-reg-memo {
    font-size: 12px;
    color: #808080;
    margin-bottom: 10px;
}

.corner-reg-item {
    font-size: 14px;
    color: #333;
}

.corner-title {
    height: 25px;
    padding: 5px;
    width: 220px;
    font-size: 1.5em;
    border: 1px solid #BBBBBB;
    margin: 8px 0;
}

input[type=text]:focus, input[type=password]:focus,
input.text:focus, input.corner-title:focus,
textarea:focus {
    border-color: #F6C86F;
}

.corner-reg-bottom {
    font-size: 16px;
    font-weight: bold;
    height: 35px;
    width: 100px;
    margin-top: 8px;
    box-sizing: border-box;
    line-height: 35px;
    vertical-align: top;
}

.corner-reg-form {
    width: 400px;
    float: left;
}

/* Topic styles */
.corner-topic {
    padding: 10px 16px 25px 16px;
}

.corner-topic-header {
    padding-bottom: 10px;
    margin-top: 5px;
}

.corner-topic-info {
    margin-top: 5px;
}

.corner-topic-info span, .corner-topic-admin a {
    color: #A8B1BA;
    font-size: 12px;
    margin-right: 15px;
}

/* 侧边栏帖子信息 - Corner 风格 */
.topic_info {
    margin-top: 5px;
}

.topic_info span, .topic_admin a {
    color: #A8B1BA;
    font-size: 12px;
    margin-right: 15px;
}

.corner-topic-content {
    margin-top: 15px;
    line-height: 23px;
    overflow: hidden;
    word-wrap: break-word;
}

.corner-topic-content p {
    margin-bottom: 15px;
}

.corner-topic-content p:last-child {
    margin-bottom: 0;
}

/* Comment box */
.corner-comment-box textarea {
    background-color: #fff;
    border: 1px solid #CCCCCC;
    height: 60px;
    line-height: 1.3;
    overflow-y: auto;
    padding: 5px;
    white-space: pre-wrap;
    width: 90%;
    word-wrap: break-word;
    margin: 10px 0px;
}

.corner-comment-submit .submit {
    background: none repeat scroll 0 0 #F0F0F0;
    border-color: #B9B9B9;
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px 3px 3px 3px;
    border-style: solid;
    border-width: 1px;
    color: #999999;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    overflow: hidden;
    padding: 4px 10px;
    text-shadow: 0 1px #F0F0F0;
}

/* Submit button */
.corner-submit-input {
    background: none repeat scroll 0 0 #F0F0F0;
    border-color: #B9B9B9;
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px 3px 3px 3px;
    border-style: solid;
    border-width: 1px;
    color: #999999;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    height: 37px;
    line-height: 24px;
    overflow: hidden;
    padding: 0 15px;
    text-shadow: 0 1px #F0F0F0;
    vertical-align: baseline;
}

/* Post button (发布新话题) */
.corner-btn-post {
    text-decoration: none !important;
    vertical-align: middle;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;
    padding: 8px 10px;
    background: #8ab923;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#adda4d',endColorstr='#86b846');
    background: -webkit-gradient(linear,0 0,0 100%,from(#adda4d),to(#86b846));
    background: -moz-linear-gradient(top,#adda4d,#86b846);
    -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,0 1px 0 rgba(0,0,0,.2);
    -moz-box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,0 1px 0 rgba(0,0,0,.2);
    -o-box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,0 1px 0 rgba(0,0,0,.2);
    box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,0 1px 0 rgba(0,0,0,.2);
    text-shadow: 0 1px 0 rgba(255,255,255,.3);
    border: 0px;
    color: #3e5e00 !important;
    min-width: 56px;
    font-weight: 800;
}

/* 清除浮动 */
.corner-clearfix {
    width: 100%;
    clear: both;
}

.corner-clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* 消息提示 */
.corner-message {
    padding: 8px 10px;
    border-radius: 2px;
}

.corner-message a {
    font-weight: bold;
    text-decoration: underline;
}

.corner-error {
    background: #FBE3E4;
    color: #8A1F11;
}

.corner-error a {
    color: #8A1F11;
}

.corner-notice {
    background: #FFF6BF;
    color: #8A6D3B;
}

.corner-notice a {
    color: #8A6D3B;
}

.corner-success {
    background: #E6EFC2;
    color: #264409;
}

.corner-success a {
    color: #264409;
}

.corner-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 8px 0;
    border: none;
    width: 100%;
    z-index: 10000;
    text-align: center;
    border-radius: 0;
}

.corner-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.corner-popup ul li {
    display: inline-block;
    margin-right: 10px;
}

/* Pagination */
.corner-pagination {
    padding: 15px 8px;
    text-align: center;
}

.corner-pagination a, .corner-pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #666;
}

.corner-pagination a:hover {
    background: #f5f5f5;
}

.corner-pagination .current {
    background: #2B5166;
    color: #fff;
    border-color: #2B5166;
}

/* Reply styles */
.corner-reply-ta {
    float: right;
    margin-right: 15px;
    color: gray;
    cursor: pointer;
}

.corner-reply-time {
    float: right;
    margin-right: 15px;
    color: #9E9E9E;
}

/* 回复TA悬停效果 */
.corner-comment-item .comment-time .corner-reply-ta {
    display: none;
}

.corner-comment-item:hover .corner-reply-time {
    display: none;
}

.corner-comment-item:hover .corner-reply-ta {
    display: inline-block;
}

/* Loading */
.corner-loading {
    text-align: center;
    padding: 20px;
    color: #808080;
}

/* Hidden utility */
.corner-hidden {
    display: none !important;
}

/* 适配原有 Bootstrap 样式覆盖 */
#header.navbar {
    display: none !important;
}

main#body {
    padding-top: 0;
}

main#body > .container {
    width: 960px;
    max-width: none;
    padding: 0;
}

/* 隐藏原有的页脚 */
footer.navbar {
    display: none !important;
}

/* ===== Corner 风格回复区域 ===== */

/* 主容器样式 - 在 corner-main 内部的元素 */
.corner-main .main.radius {
    background-color: #FFFFFF;
    border-radius: 5px;
    -moz-border-radius: 5px;
}

/* 回复列表区域 */
.corner-main .main.radius.normal-replies {
    background-color: #FFFFFF;
    border-radius: 5px;
    -moz-border-radius: 5px;
}

/* 回复框区域 */
.corner-main .main.radius.reply_box {
    background-color: #FFFFFF;
    border-radius: 5px;
    -moz-border-radius: 5px;
}

/* 回复列表容器 */
.reply_list {
    padding: 10px 16px;
}

/* 单条评论/回复项 */
.comment-item {
    left: 0;
    overflow: hidden;
    padding: 8px 0px;
    position: relative;
    top: 0;
    border-top: 1px solid #f2f2f2;
}

.comment-item:first-child {
    border-top: none;
}

/* 评论头像 */
.comment-item .icon {
    float: left;
    margin-top: 1px;
}

.comment-item .icon img {
    height: 48px;
    width: 48px;
    vertical-align: middle;
    border-radius: 3px;
    -moz-border-radius: 3px;
}

/* 评论内容区 */
.comment-item .content {
    left: 0;
    line-height: 1.4em;
    margin-left: 70px;
    position: relative;
    top: 0;
}

.comment-item .content p {
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
}

.comment-item .content p a {
    color: #808080;
}

/* 评论用户信息行 */
.comment-item .reply_user {
    margin: 0;
}

.comment-item .reply_user .to {
    font-size: 14px;
    color: #808080;
}

/* 评论时间和楼层 */
.comment-item .comment-time {
    color: #B3B3B3;
    font-size: 12px;
    margin-right: 5px;
}

.comment-item .comment-time .floor {
    color: #e0e0e0;
}

.comment-item .comment-time .to,
.comment-item .comment-time .talk,
.comment-item .comment-time .reply-ta {
    color: gray;
}

/* 回复时间 */
.reply_time {
    float: right;
    margin-right: 15px;
    color: #9E9E9E;
}

/* 回复TA链接 */
.comment-item .reply-ta {
    float: right;
    margin-right: 15px;
    color: gray;
    cursor: pointer;
}

/* 悬停效果 - 显示回复TA，隐藏时间 */
.comment-item .comment-time:hover .reply_time {
    display: none;
}

.comment-item .comment-time:hover .reply-ta {
    display: inline-block;
}

/* 评论文本内容 */
.comment-item .comment-text {
    line-height: 23px;
    color: #333;
}

/* 回复框标题 */
.reply_box h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

/* 回复框文本域 */
.reply_box textarea.title {
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    padding: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.reply_box textarea.title:focus {
    border-color: #F6C86F;
    outline: none;
}

/* ===== Corner 风格注册/登录表单样式 ===== */

/* 表单输入框 */
.title {
    height: 25px;
    padding: 5px;
    width: 220px;
    font-size: 1.5em;
    border: 1px solid #BBBBBB;
    margin: 8px 0;
    border-radius: 3px;
}

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
input.text:focus, input.title:focus,
textarea:focus {
    border-color: #F6C86F;
    outline: none;
}

/* 注册标题 */
.reg_title {
    font-size: 18px;
    margin-bottom: 5px;
}

/* 注册描述 */
.reg_memo {
    font-size: 12px;
    color: #808080;
    margin-bottom: 10px;
}

/* 表单项标签 */
.reg_item {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

/* 通用注册/提交按钮样式 */
.reg_bottom {
    font-size: 16px;
    font-weight: bold;
    height: 35px;
    width: 100px;
    margin-top: 8px;
    box-sizing: border-box;
    line-height: 35px;
    vertical-align: top;
}

.reg_bottom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 左侧表单容器 */
.reg_form {
    width: 400px;
    float: left;
}

/* 右侧提示区域 */
.reg_side {
    width: 200px;
    float: left;
    border-left: 1px solid #A0A0A0;
    line-height: 25px;
    margin-top: 50px;
    padding-left: 20px;
    padding-top: 20px;
}

.reg_side a {
    color: #4B8DC5;
}

/* 用户页面特殊样式 - 右侧信息栏自适应高度 */
.corner-container .reg_side {
    height: auto;
    min-height: 70px;
}

/* 表单输入区域 */
.reg_input {
    margin-top: 15px;
}

/* 回复框提交按钮 */
.reply_box .reg_bottom {
    min-width: 100px;
}

/* 未登录提示区域样式 */
.reply_box .reg_bottom_highlight {
    background: #8ab923;
    color: #3e5e00;
    border-color: #86b846;
}

/* 热门标签样式 */
.item_node {
    background-color: #eee;
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px 3px 3px 3px;
    display: inline-block;
    font-size: 14px;
    line-height: 13px;
    margin: 3px;
    padding: 4px;
    color: #636A86;
}

.item_node_add {
    display: inline-block;
    margin-top: 5px;
}

.item_node:hover {
    background-color: #9999aa;
    color: #fff;
    text-decoration: none;
}

/* 回复引用样式 - 简化为corner风格 */
.reply_list .blockquote,
.comment-text .blockquote,
.corner-comments-items .blockquote,
#comments_list .blockquote {
    background: #f9f9f9;
    border-left: 3px solid #ddd;
    margin: 0 0 10px 0;
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
}

/* 隐藏引用中的头像 */
.reply_list .blockquote img.avatar-1,
.comment-text .blockquote img.avatar-1,
.reply_list .blockquote .user img,
.comment-text .blockquote .user img,
.corner-comments-items .blockquote img.avatar-1,
.corner-comments-items .blockquote .user img,
#comments_list .blockquote img.avatar-1,
#comments_list .blockquote .user img {
    display: none !important;
}

/* 引用中的用户名样式 */
.reply_list .blockquote .user,
.comment-text .blockquote .user,
.corner-comments-items .blockquote .user,
#comments_list .blockquote .user {
    color: #808080;
    font-size: 12px;
    margin-right: 5px;
}

/* 引用中的用户名前添加@符号 */
.reply_list .blockquote .user::before,
.comment-text .blockquote .user::before,
.corner-comments-items .blockquote .user::before,
#comments_list .blockquote .user::before {
    content: "@";
}

/* Bootstrap Modal 弹窗修复 - Corner 风格 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 100px auto;
    pointer-events: none;
}

.modal-dialog.modal-md {
    max-width: 500px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 5px;
    outline: 0;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: #f8f9fa;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.modal-header .close {
    padding: 0;
    margin: -5px -5px -5px auto;
    background-color: transparent;
    border: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    cursor: pointer;
}

.modal-header .close:hover {
    opacity: .75;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 20px;
}

.modal-body h5 {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.modal-footer .btn {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
}

.modal-footer .btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border: 1px solid #6c757d;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: .5;
}

/* 防止页面滚动 */
body.modal-open {
    overflow: hidden;
}

