:root{
    --primary-color:#007FFF;
    --secondary-color:#9FA2A8;
    --text-color:#333;
}

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

/* @font-face {
    font-family: 'DouyuFont';
    src: url('/fonts/DOUYU.ttf') format('truetype');
} */

@font-face {
    font-family: 'PingFang SC'; /* 自定义的字体名称 */
    src: url('/fonts/PingFang SC.ttf') format('truetype'); /* 字体文件路径 */
}

@font-face {
    font-family: 'Haettenschweiler'; /* 自定义的字体名称 */
    src: url('/fonts/Haettenschweiler.ttf') format('truetype'); /* 字体文件路径 */
}

body {
    font-family: 'PingFang SC';
    line-height: 1.6;
    min-width: 1200px; /* 设置最小宽度为1200px，确保内容完整显示 */
    overflow-x: auto; /* 小于最小宽度时显示横向滚动条 */
}

html {
    overflow-x: auto; /* 确保html元素也支持横向滚动 */
}

/* 顶部导航 */
.top-header {
    height: 60px;
    width: 100%;
    padding: 0 100px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.header-logo img {
    height: 35px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 100px;
}

.header-nav a {
    color: #9FA2A8;
    font-size: 16px;
    font-weight: 400;
    padding: 0 20px;
    text-decoration: none;
    position: relative;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary-color);
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #0066CC;
}

/* 底部区域 */
.footer-section {
    background: white;
    padding: 15px 0;
    border-top: 8px solid var(--primary-color);
    /* position: fixed; */
    position: relative;
    bottom: 0;
    width: 100%;
    /* z-index: 1000; */
}

.footer-section .container{
    margin: 0 auto;
}

.footer-info {
    text-align: center;
    margin: 0;
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    margin: 0;
}

/* 二维码区域 */
.qr-float {
    position: fixed;
    bottom: 90px;
    right: 112px;
    text-align: center;
    z-index: 999;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 添加小三角箭头指向工具栏 */
.qr-float::after {
    content: '';
    position: absolute;
    top: 28px; /* 与扫码图标对齐 */
    right: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
}

.qr-float.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.qr-float .qr-code {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qr-float .qr-code img {
    width: 100%;
    height: 100%;
}

.qr-float .qr-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 主banner区域 */
.hero-section {
    width: 100%;
    background: url('/images/pc/首页banner@2x.png') no-repeat center top;
    background-size: contain; /* 完整显示图片，保持原始比例 */
    background-attachment: scroll;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 60px;
    /* 使用padding-bottom技巧来根据图片比例设置高度 */
    height: 0;
    padding-bottom: 31.25%; /* 假设图片是16:9比例，根据实际图片调整 */
}

.hero-content {
    position: absolute;
    bottom: 10%;
    z-index: 1000;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
}

.hero-search {
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.hero-search .layui-form {
    margin: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.layui-form-select {
    background: #fff !important;
    border-radius: 12px !important;
}

/* 下拉框独立样式 */
.hero-search select {
    width: 200px !important;
    height: 48px !important;
    border: none !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 0 20px !important;
    font-size: 16px !important;
    color: #999 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.layui-form-select dl dd.layui-this {
    color: var(--primary-color) !important;
}


/* 输入框+按钮组合容器 */
.search-input-container {
    flex: 1;
    display: flex;
    background: #fff;
    border-radius: 12px;
    height: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero-search input {
    flex: 1 !important;
    height: 48px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 25px !important;
    font-size: 16px !important;
    color: #333 !important;
}

#heroSearchInput {
    width: 230px;
}

.hero-search input::placeholder {
    color: #999 !important;
}

.hero-search input:focus {
    outline: none !important;
}

.hero-search .layui-btn {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 12px !important;
    height: 40px !important;
    margin: 4px !important;
    padding: 0 25px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    min-width: 120px;
}

.hero-search .layui-btn:hover {
    background: #0066CC !important;
}

/* 内容区域 */
.main-content {
    background: #f9fafc;
    min-height: calc(100vh - 60px);
    /* padding: 0 0 100px 0; */
    position: relative;
}

/* 背景线条 */
/* .main-content::after {
    content: '';
    position: absolute;
    bottom: 100px;
    right: 0;
    width: 100%;
    height: 300px;
    background: url('/images/pc/首页背景线条@2x.png') no-repeat bottom right;
    background-size: contain;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
} */

/* 通用容器 */
.main-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 50px;
    position: relative;
    z-index: 10;
}

.layui-btn-primary{
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
}

/* 登录按钮样式覆盖 */
.layui-btn-normal {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 12px !important;
    height: 50px !important;
    line-height: 50px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important;
}

.layui-btn-normal:hover {
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4) !important;
}

.layui-btn-normal:disabled {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   电脑端响应式断点设计
   适配各种电脑屏幕尺寸
======================================== */

/* 小尺寸电脑屏幕 (1200px - 1366px) */
@media (min-width: 1200px) and (max-width: 1366px) {
    .top-header {
        padding: 0 60px;
    }
    
    .container {
        max-width: 1140px;
        padding: 0 15px;
    }
    
    .hero-search select {
        width: 180px !important;
    }
    
    .search-input-container {
        max-width: 600px;
    }
}

/* 标准电脑屏幕 (1367px - 1599px) */
@media (min-width: 1367px) and (max-width: 1599px) {
    .top-header {
        padding: 0 80px;
    }
    
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .hero-search select {
        width: 200px !important;
    }
    
    .search-input-container {
        max-width: 700px;
    }
}

/* 大尺寸电脑屏幕 (1600px - 1919px) */
@media (min-width: 1600px) and (max-width: 1919px) {
    .top-header {
        padding: 0 100px;
    }
    
    .container {
        max-width: 1400px;
        padding: 0 30px;
    }
    
    .hero-search select {
        width: 220px !important;
    }
    
    .search-input-container {
        max-width: 800px;
    }
    
    .org-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
}

/* 高分辨率电脑屏幕 (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .top-header {
        padding: 0 120px;
    }
    
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
    
    .hero-search select {
        width: 240px !important;
    }
    
    .search-input-container {
        max-width: 900px;
    }
    
    .org-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .hero-search .layui-form {
        gap: 25px;
    }
    
    .hero-search .layui-btn {
        min-width: 140px;
        font-size: 18px !important;
    }
}

/* 超大尺寸电脑屏幕 (2560px+) 如4K显示器 */
@media (min-width: 2560px) {
    .top-header {
        padding: 0 150px;
    }
    
    .container {
        max-width: 1800px;
        padding: 0 50px;
    }
    
    .hero-search select {
        width: 260px !important;
        height: 52px !important;
        font-size: 18px !important;
    }
    
    .search-input-container {
        max-width: 1000px;
        height: 52px;
    }
    
    .hero-search input {
        height: 52px !important;
        font-size: 18px !important;
    }
    
    .hero-search .layui-btn {
        height: 44px !important;
        min-width: 160px;
        font-size: 18px !important;
    }
    
    .org-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 35px;
    }
    
    .org-card {
        padding: 30px;
    }
    
    .org-card-title {
        font-size: 20px;
    }
    
    .org-card-desc {
        font-size: 16px;
    }
    
    .hero-search .layui-form {
        gap: 30px;
    }
}

/* 超宽屏适配 (21:9比例等) */
@media (min-aspect-ratio: 21/9) {
    .hero-section {
        padding-bottom: 25%; /* 调整超宽屏下的高度比例 */
    }
    
    .container {
        max-width: 1400px;
    }
    
    .org-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* layui */
.layui-form-radio:hover>*, .layui-form-radioed, .layui-form-radioed>i {
    color: var(--primary-color);
}

.layui-input:focus, .layui-textarea:focus {
    border-color: var(--primary-color) !important;
}

/* layui-laydate */
.layui-laydate .layui-this,
.layui-laydate .layui-this > div {
  background-color: var(--primary-color) !important;
}
.layui-laydate-header i:hover,
.layui-laydate-header span:hover,
.layui-laydate-footer span:hover {
  color: var(--primary-color);
}

.layui-btn {
    border: none;
}

.primary-btn{
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
}

.primary-btn:hover{
    background-color: var(--primary-color);
    color: #fff;
}

.secondary-btn{
    background-color: #9FA2A81A;
    color: #9FA2A8;
    border-radius: 6px;
    font-size: 14px;
}

.secondary-btn:hover{
    background-color: #9FA2A81A;
    color: #9FA2A8;
}

/* ========================================
 * 通用分页样式
 * ======================================== */

/* 分页容器样式 */
.pagination-wrapper {
    padding: 16px 24px;
    display: flex;
    justify-content: end;
    align-items: center;
    flex-shrink: 0;
}

/* 分页加载状态 */
.pagination-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* layui分页组件样式自定义 */
.pagination-wrapper .layui-laypage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-wrapper .layui-laypage a,
.pagination-wrapper .layui-laypage span {
    height: 36px;
    margin: 0 4px;
    text-align: center;
    font-size: 14px;
    border: none;
    background-color: transparent;
}

.pagination-wrapper .layui-laypage .layui-laypage-curr .layui-laypage-em {
    background: transparent !important;
}

.pagination-wrapper .layui-laypage .layui-laypage-curr em {
    color: var(--primary-color) !important;
}

.pagination-wrapper .layui-laypage a:hover {
    color: var(--primary-color);
}

/* 公告分页器特殊样式 - 复用 pagination-wrapper 基础样式 */
.announcement-pagination-wrapper {
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    justify-content: center; /* 覆盖基础样式的 justify-content: end */
}

/* ========================================
 * 微信账号绑定组件样式
 * 适用于 login.html 和 profile.html 等页面
 * ======================================== */

/* === 微信绑定基础样式 === */
.wechat-icon {
    width: 38px;
    height: 38px;
}

.wechat-info {
    flex: 1;
}

.bound-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    height: 38px;
    border: none;
    border-radius: 6px;
    background: #9FA2A81A;
    font-size: 14px;
    color: #9FA2A8;
    box-sizing: border-box;
}

.wechat-status-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.wechat-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* 缩放 */
    transform: scale(0.6);
    transform-origin: center;
    display: block;
    flex-shrink: 0;
}

.wechat-user-name {
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === 二维码弹窗组件样式 === */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.qrcode-content {
    background: white;
    border-radius: 12px;
    padding: 40px 32px 32px;
    text-align: center;
    position: relative;
    width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.qrcode-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #999;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 10;
}

.qrcode-close:hover {
    background: #e8e8e8;
    color: #333;
}

.qrcode-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.qrcode-subtitle {
    font-size: 14px;
    color: #07c160;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qrcode-subtitle::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('/images/pc/wechat-light.svg') no-repeat center;
    background-size: contain;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qrcode-placeholder {
    background: url('/images/pc/空状态.svg') no-repeat center;
    background-size: contain;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qrcode-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.qrcode-status.bound {
    color: #07c160;
}

.qrcode-status.waiting {
    color: #666;
}

.qrcode-status.expired {
    color: #ff4757;
}

.qrcode-refresh {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    margin-top: 8px;
}

.qrcode-refresh:hover {
    color: #333;
    opacity: 0.8;
}

/* === 二维码容器样式 (适用于登录页面) === */
.qr-container {
    text-align: center;
    padding: 20px 0;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
}

.qr-loading .layui-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.qr-loading p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* === 换绑确认弹窗样式 === */
.unbind-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.unbind-content {
    background: white;
    border-radius: 12px;
    padding-top: 40px;
    text-align: center;
    position: relative;
    width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.unbind-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #999;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    z-index: 10;
}

.unbind-close:hover {
    background: #666;
}

.unbind-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 32px;
}

.unbind-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.unbind-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

.unbind-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unbind-btn-confirm {
    background: none;
    color: var(--primary-color);
}

.unbind-btn-cancel {
    background: none;
    color: #666;
}