:root {
    --text-hover: #ee4149;
    --main-blur-bg-color: rgba(46, 46, 46, 0.65);
    --main-bg-color: #2D2E2F;
    --main-radius: 5px;
    --main-color: #b4b8bf;
    --muted-color: #73757a;
    --muted-shadow: rgba(116, 116, 116, 0.1);
    --main-shadow: rgba(0, 0, 0, 0.1);
    --accent: #f1404b;
    --orange: #ff8a18;
}


/* 全局基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


a {
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #1b1d1f;
    color: var(--main-color);
}

li {
    list-style: none;
}

/* 提示消息 */
.message {
    display: none;
    position: fixed;
    top: 34%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--main-color);
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 11;
    border-radius: 50px;
}

.drawer_l {
    position: fixed;
    top: 0;
    width: 80%;
    background: #2d2e2f;
    height: 100vh;
    z-index: 7;
    left: -100%;
    transition: left 0.3s ease-in-out;
    padding: 80px 20px 50px 20px;
}

.drawer_l .drawer_l-list {
    padding: 15px;
    background: #343536;
    border-radius: 5px;
}

.drawer_l .drawer_l-list li a {
    display: block;
    color: #b4b8bf;
    padding: 15px 8px;
    font-size: 15px;
}

/* 容器基础样式 */
.menu-user-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-radius: 12px;
}

/* 顶部蓝色渐变卡片 */
.user-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 16px;
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.user-profile-card:hover {
    opacity: 0.95;
}

/* 头像框 */
.user-avatar {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
}

.user-text-info {
    color: #b4b8bf;
}

.user-text-info .user-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: left;
}

.user-text-info .user-desc {
    font-size: 12px;
    opacity: 0.85;
}

/* 底部按钮组：三列平分 */
.user-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* 按钮通用样式 */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background-color: rgba(41, 151, 247, 0.1);
    transition: all 0.2s ease;
}

/* 1. 登录按钮（蓝色系） */
.btn-login {
    color: #38bdf8;
}

.btn-login:hover {
    background-color: #2a98f7;
    color: white;
}

/* 2. 注册按钮（绿色系） */
.btn-register {
    color: #4ade80;
    background: rgba(19, 188, 41, 0.1);
}

.btn-register:hover {
    background-color: #19aa2c;
    color: white;
}

/* 3. 找回密码按钮（橙色系） */
.btn-reset {
    color: #fb923c;
    background: rgba(255, 110, 6, 0.1);
}

.btn-reset:hover {
    background-color: #ff7002;
    color: white;
}

/* 展开状态 */
.drawer_l.turnon {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 3;
    display: none;
}

.overlay.appear {
    display: block;
}

/* Header 整体样式（深色吸顶 + 微弱毛玻璃质感） */
.site-header {
    background-color: var(--main-blur-bg-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 10px;
    z-index: 8;
    margin: 10px;
    border-radius: 8px;
}

/* 容器居中与对齐 */
.header-container {
    max-width: 1400px;
    height: 60px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

/* Logo 样式 */
.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.site-logo .logo-icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 62% 36%, #fff 0 6px, transparent 7px), conic-gradient(from -28deg, var(--accent) 0 67%, transparent 67% 79%, var(--orange) 79% 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    margin: 5px 8px 0 0;
}

.site-logo .logo-icon::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 10px;
    width: 6px;
    height: 18px;
    border-radius: 4px;
    background: #fff;
}

.site-logo .logo-text {
    /* 暗黑风更亮丽的蓝青渐变 */
    background: var(--text-hover);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
}

.m_columnbtn {
    display: none;
    background: none;
    outline: none;
    border: none;
}

.m_columnbtn i {
    font-size: 22px;
    color: var(--main-color);
    transition: all .3s;
}

.m_columnbtn i:active {
    transform: scale(0.85);
    /* 缩小模拟按压 */
    opacity: 0.7;
}

/* 移动端搜索框外层容器 */
.m_searchbox {
    position: fixed;
    left: 0;
    right: 0;
    display: none;
    top: 80px;
    width: 100%;
    padding: 10px;
    z-index: 1;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../img/1.jpg');
    min-height: 280px;
}

.m_columnbtn .ri-close-line {
    font-size: 29px;
}


/* Form 表单整体样式 */
.mobile-search-form {
    display: flex;
    align-items: center;
    background-color: var(--main-bg-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* select 样式：去除默认箭头并撑满 */
.mobile-select {
    width: 100%;
    height: 100%;
    background: #272728;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 14px;
    padding-left: 12px;
    padding-right: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.mobile-select option {
    background-color: #161b22;
    color: #f8fafc;
}


/* 中间输入框区域 */
.input-wrap {
    flex: 1;
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    background: #272728;
}

.mobile-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 14px;
}

.mobile-input::placeholder {
    color: var(--muted-color);
}

/* 右侧搜索按钮 */
.mobile-search-btn {
    width: 52px;
    height: 80%;
    background-color: #ef4444;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 5px;
    margin-right: 5px;
}

.mobile-search-btn:active {
    background-color: #dc2626;
}

/* 搜索栏整体容器 */
.search-box {
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: #272728;
    width: 800px;
}

/* 原生 select 样式重置：去掉默认箭头，并撑满容器 */
.search-select {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    margin-right: 5px;
}

/* 下拉菜单展开时的文字颜色（针对部分浏览器的深色适配） */
.search-select option {
    background-color: #161b22;
    color: #f8fafc;
}

/* 中间输入框区域 */
.search-input-wrap {
    flex: 1;
    padding: 0 16px;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--muted-color);
}

/* 右侧搜索按钮 */
.search-btn {
    background-color: #ef4444;
    border: none;
    width: 56px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 5px;
    margin: 5px;
}

.search-btn:hover {
    background-color: #dc2626;
}

/* 导航区域布局 */
.site-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: 30px;
}

.header-container .r {
    flex: 1;
    text-align: right;
    position: relative;
}

.header-container .r span {
    font-size: 14px;
}

.header-container .r>a {
    color: var(--main-color);
}

.header-container .r .usericon {
    margin-left: 15px;
}

.header-container .r .cushion {
    display: none;
    width: 312px;
    height: 80px;
    background: #2a2e32;
    position: absolute;
    right: -27px;
    top: 78px;
    z-index: -1;
    border-radius: 5px;
}

.header-container .r .usericon:hover {
    color: var(--text-hover);
}


/* 侧边栏折叠状态（收起时隐藏所有文字，只展示图标） */
.sidebar.collapsed {
    width: 70px;
}

/* 核心修复：当 sidebar 处于 collapsed 状态时，隐藏里面所有的文字 span */
.sidebar.collapsed .sidebar-list li a .text {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* 导航链接通用样式 */
.nav-links a {
    text-decoration: none;
    color: var(--main-color);
    font-size: 15px;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
    font-size: 15px;
}

/* 链接 Hover 效果及激活状态 */
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-hover);
}

/* 动态下划线特效（亮蓝色） */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: var(--text-hover);
    transition: width 0.2s ease;
    border-radius: 7px;
    top: 37px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 30%;
}

/* ================= 主体内容区 (Main Layout) ================= */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

.main-container {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* 左侧栏目：Sticky 定位 */
.sidebar {
    width: 220px;
    background-color: #272728;
    border-radius: 12px;
    padding: 12px;
    position: sticky;
    top: 94px;
    transition: width 0.3s ease;
    backdrop-filter: blur(8px);
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--main-color);
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sidebar-list li a i {
    font-size: 18px;
}

.sidebar-list li a:hover {
    color: var(--text-hover);
}

.sidebar-list .m_pack {
    display: none;
    position: relative;
}

.sidebar-list .m_pack::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    height: 1px;
    background: #3b3f45;
    bottom: 46px;
}


/* 右侧内容展示区域 */
.content-sections {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 每个分类模块卡片容器 */
.content-module {
    border-radius: var(--main-radius);
    transition: background-color 0.3s;
}

#paid-top .website-grid li:nth-child(3n+1) a h3 {
    color: #f97316;
}

#paid-top .website-grid li:nth-child(3n+2) a h3 {
    color: #74c0fc;
}

#paid-top .website-grid li:nth-child(3n) a h3 {
    color: #69db7c;
}

#paid-top .website-grid li:nth-child(4n) a h3 {
    color: #db69c8;
}

#hot-recommend .website-grid li:nth-child(3n+1) a h3 {
    color: #f97316;
}

#hot-recommend .website-grid li:nth-child(3n+2) a h3 {
    color: #74c0fc;
}

#hot-recommend .website-grid li:nth-child(3n) a h3 {
    color: #69db7c;
}


.bc {
    background-color: var(--main-bg-color);
    padding: 12px;
}

.module-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.module-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.module-header .more {
    color: #727982;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}

.module-header .more:hover {
    color: var(--text-hover);
}

.module-header h2 .y {
    color: var(--text-hover);
}


/* 右侧网站列表：Grid 布局，每行 6 个 */
.website-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.website-grid li {
    min-width: 0;
    background: var(--main-bg-color);
    box-shadow: inset 0 0 25px 0 var(--muted-shadow), 0 0 0 0 var(--main-shadow);
    padding: 8px;
    border-radius: 5px;
    transition: all .3s;
}

.website-grid li:hover {
    transform: translateY(-3px);
}

.website-grid li a h3 {
    color: var(--main-color);
    font-size: 14px;
    text-align: center;
}

.website-grid li a .desc {
    color: var(--muted-color);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}


.website-grid li a {
    display: block;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
}

.website-grid li p {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #3f4349;
    margin-top: 5px;
    padding-top: 6px;
    align-items: center;
}

.website-grid li p .c {
    display: block;
    font-size: 10px;
    color: var(--text-hover);
    background: rgba(255, 48, 72, .12);
    height: 20px;
    line-height: 20px;
    padding: 0 6px;
}

.website-grid li p .r {
    margin-left: auto;
    width: 13px;
    height: 13px;
    border: 1px solid #777e87;
    border-radius: 50%;
    color: #9ba2aa;
    display: inline-grid;
    place-items: center;
    font-size: 14px;
    line-height: 1;
}

.website-grid li p .r:hover {
    color: var(--text-hover);
    border: 1px solid var(--text-hover);
}

/* 鼠标悬停时的微光效果 */
.website-grid li a:hover h3 {
    color: var(--text-hover);
}


/* 公告栏容器 */
.notice {
    background-color: #272728;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 2px;
}

/* 左侧标题与文字组合 */
.notice-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 标题样式 */
.notice-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 10px;
}

.notice-title i {
    color: #f97316;
    /* 橙色火焰图标 */
    font-size: 16px;
}

/* 下方描述文字 */
.notice-desc {
    color: var(--muted-color);
    font-size: 16px;
}

/* 右侧按钮样式 */
.promote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #f97316;
    color: #f97316;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* 按钮悬停效果 */
.promote-btn:hover {
    background-color: rgba(249, 115, 22, 0.1);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

/* 遮罩层 */
.mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 8;
    backdrop-filter: blur(2px);
}

.usdticon {
    transform: translateY(8px);
}

/* 推广弹窗容器整体样式 */
.promo-box {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20%;
    background-color: #1b1d1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    color: #f8fafc;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
}

.promo-box #captchaImg {
    width: 77px;
    background: white;
    transform: translateY(11px);
    cursor: pointer;
}

/* 头部：标题与关闭按钮 */
.promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.promo-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-tag {
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.promo-title-group h2 {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
}

.close-btn {
    background-color: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--main-color);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* 提示文字 */
.promo-desc {
    font-size: 13px;
    color: var(--main-color);
    line-height: 1.5;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.promo-desc ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.promo-desc ul li {
    padding: 8px 18px;
    font-size: 14px;
    color: var(--text-hover);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.promo-desc ul li:hover {
    background: var(--text-hover);
    color: #eee;
    font-weight: 500;
}

.promo-desc ul li.active {
    background: var(--text-hover);
    color: #eee;
    font-weight: 500;
}

/* 套餐网格布局 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

/* 单个套餐卡片 */
.pricing-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

/* 默认选中状态卡片 */
.pricing-card.active {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.04);
}

.pricing-card:hover {
    border-color: rgba(239, 68, 68, 0.6);
}

/* 卡片内部文字 */
.pricing-card .days {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 6px;
}

.pricing-card small {
    text-decoration: line-through;
}

.pricing-card .sub-price {
    font-size: 12px;
    color: var(--main-color);
}

/* 优惠/特惠角标 */
.badge-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-bottom-left-radius: 6px;
}

.badge-tag.special {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* 表单输入框区域 */
.promo-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.promo-input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 14px;
    color: #f8fafc;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}


.promo-input::placeholder {
    color: var(--muted-color);
}

.promo-input:focus {
    border-color: #ef4444;
}

.renewtip {
    font-size: 13px;
    color: #b4b8bf;
    transform: translateX(6px);
}

/* 底部支付按钮 */
.buttonbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pay-btn,
.renew-btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.renew-btn {
    color: #d7dbe0;
    background-color: #303234;
    transition: background-color 0.2s, box-shadow 0.2s;

}


.renew-btn:hover {
    background-color: #222425;
    box-shadow: 0 4px 12px rgba(12, 3, 3, 0.4);
}

.pay-btn:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.resume-payment-btn {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 6px;
    color: #cbd5e1;
    background: rgba(71, 85, 105, 0.32);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.resume-payment-btn:hover {
    border-color: rgba(203, 213, 225, 0.62);
    color: #ffffff;
    background: rgba(71, 85, 105, 0.62);
}

/* 模块整体容器 */
.friend-links-module {
    background-color: var(--main-bg-color);
    border-radius: 8px;
    padding: 16px 20px;
    color: #f8fafc;
    margin-top: 15px;
}

/* 头部标题样式 */
.friend-links-module .module-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.friend-links-module .module-header i {
    color: #f97316;
    font-size: 16px;
}

/* 友情链接 Grid 布局（一排四个） */
.friend-links-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 20px;
    margin: 0;
    padding: 0;
}

.friend-links-grid li {
    min-width: 0;
}

/* 列表项链接样式 */
.friend-links-grid li a {
    display: block;
    color: var(--main-color);
    font-size: 13px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
    white-space: nowrap;
}

.friend-links-grid li a:hover {
    color: var(--text-hover);
}

.footer {
    max-width: 1400px;
    margin: 16px auto 20px;
    color: #5f666e;
    text-align: center;
    font-size: 12px;
}

/* 返回顶部按钮样式 */
.back-to-top-btn {
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    background-color: var(--main-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--main-color);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: translateY(-115px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 6;
}



/* 悬停微光效果 */
.back-to-top-btn:hover {
    background-color: var(--text-hover);
    border-color: var(--text-hover);
    color: #ffffff;
}

.bulletin-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9;
}

.bulletin-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.bulletin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: calc(100% - 30px);
    padding: 22px 24px;
    background: #272728;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .2);
}

.bulletin-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    transition: .2s;
}

.bulletin-close:hover {
    background: #f5f5f5;
    color: #333;
}

.bulletin-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 30px;
    margin-bottom: 16px;
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
}

.bulletin-header i {
    color: #6366f1;
    font-size: 20px;
}

.bulletin-content {
    color: var(--muted-color);
    font-size: 14px;
    line-height: 1.8;
}

.bulletin-content p {
    margin: 0 0 8px;
}

.bulletin-content p:last-child {
    margin-bottom: 0;
}

.api-url-text {
    cursor: pointer;
    transition: background-color 0.2s;
}

.advertbox {
    position: fixed;
    z-index: 1;
    width: 1400px;
    left: 50%;
    transform: translateX(-50%);
}

.advertboxclosetop,
.advertboxclosebottom {
    position: absolute;
    top: 2px;
    right: 15px;
    font-style: normal;
    font-size: 12px;
    color: #8c8c8c;
    cursor: pointer;
    padding: 4px 13px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
    user-select: none;
}

.advertboxclosetop:hover {
    color: #ff4d4f;
    background-color: rgba(255, 77, 79, 0.1);
}

.advertboxclosebottom:hover {
    color: #ff4d4f;
    background-color: rgba(255, 77, 79, 0.1);
}

.advertbox ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
    width: 100%;
}

.advertbox ul li a {
    display: block;
}

.advertbox ul li a img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.adverticonbox {
    width: 1400px;
    padding-top: 10px;
    margin: 0 auto;
}

.adverticonbox .icon_name {
    display: block;
    text-align: center;
    font-size: 14px;
}

.adverticonbox ul {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 9px;
}

.adverticonbox ul li a {
    display: block;
    text-align: center;
}

.adverticonbox ul li a img {
    width: 56px;
    border-radius: 10px;
    height: 56px;
    object-fit: cover;
}

.banneradvertbox {
    width: 1400px;
    padding-top: 84px;
    margin: 0 auto;

}

.banneradvertbox ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.banneradvertbox ul li a img {
    height: 80px;
    width: 100%;
    object-fit: cover;
}

.m_sidetoggle {
    opacity: 0;
}

/* 遮罩层背景 */
.pay-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* 弹窗主体盒子 */
.pay-modal-box {
	max-width: calc(100vw - 24px);
	max-height: 90vh;
	overflow-y: auto;
    background: #1a1a1a;
    width: 380px;
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    position: relative;
    font-family: sans-serif;
    text-align: center;
    box-sizing: border-box;
}

/* 右上角关闭按钮 */
.pay-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    background: #2a2a2a;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.pay-modal-close:hover {
    background: #3a3a3a;
    color: #fff;
}

/* 标题样式 */
.pay-modal-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #f5f5f5;
}

/* 普通文字与应付金额 */
.pay-modal-text {
    font-size: 15px;
    margin: 10px 0;
}

.pay-modal-amount {
    color: #ff5722;
    font-weight: bold;
}

/* 二维码外边框白底 */
.pay-modal-qr-wrap {
    background: #fff;
    padding: 10px;
    display: inline-block;
    border-radius: 8px;
    margin: 10px 0;
}

.pay-modal-qr {
    width: 160px;
    height: 160px;
    display: block;
}

/* 状态提示文字 */
.pay-modal-tip {
    color: #26a69a;
    font-weight: bold;
    margin: 10px 0;
    font-size: 13px;
}

/* 底部警告提示 */
.pay-modal-warn {
    font-size: 11px;
    color: #ffa726;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* 手动检查按钮 */
.pay-modal-btn {
    background: #ff5722;
    color: #fff;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.pay-modal-btn:hover {
    background: #f4511e;
}

.pay-addressbox {
    font-size: 14px;
    color: #f5f5f5;
}

.mobileclearlink3 {
    display: none;
}

.ri-arrow-right-s-line {
    font-size: 12px;
}

/* 响应式适配：在屏幕较小时让右侧 Grid 自动调整列数防止挤压 */
@media (max-width: 1200px) {
    .website-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }

    .bulletin {
        width: 80%;
    }

    .mobileclearlink3 {
        display: block;
    }

    .pcclearlink3 {
        display: none;
    }

    .m_sidetoggle,
    #back-to-top {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .m_sidetoggle.is-scrolling,
    #back-to-top.is-scrolling {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }


    .advertbox {
        padding: 0 10px;
        left: auto;
        transform: none;
        width: 100%;
    }

    .adverticonbox {
        width: 100%;
    }

    .adverticonbox ul {
        grid-template-columns: repeat(5, 1fr);
        padding: 0 10px;
    }

    .adverticonbox ul li {
        width: 100%;
    }

    .adverticonbox .icon_name {
        font-size: 12px;
    }

    .banneradvertbox {
        width: 100%;
        padding: 84px 10px 0 10px;
    }

    .banneradvertbox ul {
        grid-template-columns: repeat(1, 1fr);
    }

    .banneradvertbox ul li a img {
        width: 100%;

    }

    .banneradvertbox ul {
        gap: 0;
    }

    .advertbox ul {
        grid-template-columns: repeat(1, 1fr);
    }

    .advertbox ul li a img {
        width: 100%;
    }

    .renewtip {
        transform: translateY(0) translateX(0);
    }

    .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .pricing-card .price {
        font-size: 16px;
    }

    .header-container .r {
        display: none;
    }

    .sidebar-list {
        height: 100%;
    }

    .footer {
        padding: 0 10px;
    }

    .sidebar-list .m_pack {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0 14px;
    }

    .collapse-item {
        display: none;
    }

    .promo-desc ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-desc ul li {
        padding: 7px 9px;
    }

    .m_sidetoggle {
        left: 30px;
        opacity: 1;
        visibility: visible;
        bottom: 39px;
    }

    .promo-form {
        grid-template-columns: 1fr;
    }

    .promo-box {
        width: 95%;
    }

    .m_columnbtn {
        display: block;
    }

    .header-container {
        padding: 0 18px;
        justify-content: space-between;
    }

    .search-box {
        display: none;
    }

    .hero {
        min-height: 130px;
    }

    .header-container .m {
        display: none;
    }

    .content-sections {
        gap: 15px;
        width: 100%;
    }

    .site-nav {
        display: none;
    }

    .friend-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        width: 60%;
        position: fixed;
        left: -265px;
        z-index: 2;
        height: 80vh;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 20px;
    }

    .m_sidetoggle:active {
        opacity: 0.8;
    }

    .sidebar.collapsed {
        width: 100%;
    }

    .website-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .website-grid li a .desc {
        display: none;
    }

    .notice {
        margin-bottom: 0;
    }
}
