/* default.css - 默认样式文件 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

/* 自定义样式 */
.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

/* 链接样式 */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* 列表样式 */
ul, ol {
    list-style: none;
}

/* 图片样式 */
img {
    height: auto;
    vertical-align: middle;
}

/* 表单元素样式 */
input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

input:focus, button:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #be0202;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top:hover {
    background-color: #ad0202;
    transform: translateY(-5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 下拉菜单基础样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

/* 搜索框基础样式 */
.search-box {
    position: relative;
    display: inline-block;
}

.search-input {
    padding: 6px 30px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 10px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
}

/* 移动飘窗样式 */
#floating-window {
    position: fixed;
    width: 200px;
    background-color: #fff;
    /* border: 2px solid #be0202; */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    overflow: hidden;
}

.floating-content {
    padding: 15px;
}

.floating-content h4 {
    color: #be0202;
    margin-bottom: 10px;
    text-align: center;
}

.floating-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.floating-content p i {
    color: #be0202;
    margin-right: 5px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #be0202;
}