/* ============================
   全局基础样式
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#userlogin td {padding:5px;}

/* ==============================
   会员登陆/最新消息/酷站推荐
   ============================== */
/* 容器样式 */
.container {
    max-width: 950px;
    margin: 5px auto;
    display: grid;
    grid-template-columns: 259px 1fr 220px;
    grid-gap: 8px 8px;
}

/* 通用面板样式 */
.panel {
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 标题栏样式 */
.panel-title {
    background-color: #e8f4f8;
    color: #204E7D;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: bold;
}

/* 内容区域样式 */
.panel-content {
    padding: 15px;
    min-height: 60px;
}

/* 会员登录面板特定样式 */
.login-panel .panel-content {
    min-height: 165px;
}

/* 统计信息面板特定样式 */
.stats-panel .panel-content {
    padding-left: 10px;
    font-size: 14px;
    color: #666;
    line-height: 20px;
}

.stats-panel .panel-content img {
    vertical-align: middle;
    margin-right: 5px;
}

/* 最新消息面板样式 */
.news-panel .panel-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 11px 10px;
    height: 395px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    flex: 1;
    white-space: nowrap;       /* 强制不换行 */
    overflow: hidden;          /* 隐藏超出部分 */
    text-overflow: ellipsis;   /* 超出部分显示省略号 */
}

.news-title a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    
}

.news-title a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.news-title img {
    vertical-align: middle;
    margin-bottom: 2px;
    margin-right: 5px;
}

.news-date {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 10px;
}

/* 星站推荐面板样式 */
.recommend-panel .panel-content {
    padding: 10px;
}

.site-info {
    width: 90%;
    margin: 0 auto;
    padding: 10px 0;
    height: 374px;
}

.site-image {
    text-align: center;
    margin-bottom: 15px;
}

.site-image img {
    border: 1px solid #ddd;
    border-radius: 0px;
    max-width: 160px;
    height: auto;
}

.site-name,
.site-intro,
.site-rating {
    margin-bottom: 10px;
    line-height: 20px;
    font-size: 14px;
    color: #333;
}

.site-name {
    font-weight: bold;
    color: #4CAF50;
}

.site-rating img {
    vertical-align: middle;
}

/* 按钮样式 */
.sub_button_index,
.reg_button_index {
    padding: 3px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.sub_button_index {
    background: linear-gradient(to bottom, #4CAF50, #45a049);
    color: white;
}

.reg_button_index {
    background: linear-gradient(to bottom, #2196F3, #0b7dda);
    color: white;
}

.sub_button_index:hover {
    background: linear-gradient(to bottom, #45a049, #3d8b40);
}

.reg_button_index:hover {
    background: linear-gradient(to bottom, #0b7dda, #0a6fc2);
}

.sub_button_index:active,
.reg_button_index:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 登录表单样式 */
.login-form {
    width: 90%;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 10px;
}

.form-row label {
    display: inline-block;
    width: 60px;
    text-align: right;
    margin-right: 5px;
}

.form-row input[name="username"],
.form-row input[name="password"],
.form-row select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 0px;
    width: 130px;
}

.form-row input[name="verifycode"] {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 0px;
    width: 55px;
}

.form-row select {
    width: auto;
    height: 30px;
}

/* 验证码相关样式 */
.verifycode-img {
    vertical-align: middle;
    cursor: pointer;
    margin-left: 5px;
    border: 1px solid #ddd;
}

/* 链接样式 */
.link-section {
    margin-top: 5px;
    text-align: center;
    
}

.link-section a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.link-section a:hover {
    text-decoration: underline;
}

/* 工具样式 */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 10px;
}

/* ==============================
   响应式适配 - 会员/消息/推荐
   ============================== */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;        
        max-width: 100%;
        font-size: 14px;
    }

    .site-info {
        height: auto;
    }

    .news-panel .panel-content {
        grid-template-columns: 1fr;
        height:auto;
    }

    .form-row input[name="username"],
    .form-row input[name="password"] {
        width: 150px;
    }

    .form-row input[name="verifycode"] {
        width: 75px;
    }
}

/* ==============================
   最新开通/最新推荐主页
   ============================== */
/* 主容器：使用 flex 布局 */
.homepage-modules {
    display: flex;
    gap: 5px;
    max-width: 950px;
    margin: 0 auto;
    padding: 10px 0;
}

/* 第一列：固定宽度 310px */
.module-col.fixed-col {
    width: 260px;
    flex: 0 0 auto; /* 不伸缩、不收缩，固定尺寸 */
}

/* 第二列：占用剩余空间 */
.module-col.fluid-col {
    flex: 1 1 auto; /* 自动伸缩填充剩余空间 */
    min-width: 0; /* 防止内容溢出 */
}

/* 模块通用样式 */
.module-box {
    background: #ffffff;
    box-shadow: 0 0 0 1px #ddd;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%; /* 使两列等高 */
}

.module-title {
    background-color: #e8f4f8;
    padding: 6px 15px;
    margin: 0;
    font-size: 14px;
    color:#204E7D;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.module-content {
    padding: 15px;
    min-height: 250px;
}

/* 最新开通列表 */
.new-users-list .no-data {
    color: #999;
    text-align: center;
    padding: 20px 0;
}

.user-item {
    margin-bottom: 8px;
}

.link-title {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* 推荐站点网格 */
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px 12px;
    padding: 10px 0;
}

.recommended-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.thumb {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 0px;
    background: #f9f9f9;
}

.title {
    font-size: 14px;
    margin-top: 6px;
    text-align: center;
    line-height: 1.4;
    color: #2c5aa0;
}

/* ==============================
   响应式适配 - 最新开通/推荐
   ============================== */
@media (max-width: 768px) {
    .homepage-modules {
        flex-direction: column;
    }

    .module-col.fixed-col,
    .module-col.fluid-col {
        padding:5px 0;
        width: 100%;
        flex: 1 1 auto;
    }
}

/* ==============================
   在线客服/开通流程
   ============================== */
/* 容器样式 */
.main-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

/* 核心布局容器 - 弹性布局实现响应式 */
.content-wrapper {
    display: flex;
    flex-direction: column; /* 默认移动端竖向排列 */
    gap: 5px; /* 替代原table的height=5间距 */
}

/* 在线客服模块 */
.customer-service {
    width: 100%; /* 移动端占满宽度 */
    padding: 0;
}

/* 流程模块 */
.register-process {
    width: 100%; /* 移动端占满宽度 */
}

/* 通用表格样式 */
.card {
    border-radius: 0px;
    box-shadow: 0 0 0 1px #ddd;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
    background-color: #e8f4f8;
    color: #204E7D;
    font-size: 14px;
    padding: 6px 15px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.card-content {
    background-color: #fff;
    padding: 10px;
    min-height: 110px;
}

/* 客服内容样式 */
.service-content {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    min-height: 115px;
}

.qq-box {
    background-color: #1FC1EF;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.qq-box img {
    height: 14px;
    border: 0;
}

.qq-box a {
    color: #FFFFFF;
    font-weight: bold;
}

/* 流程步骤样式 */
.process-table {
    width: 100%;
    font-size: 14px;
}

.process-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 90px;
}

.process-arrow {
    width: 30px;
    text-align: center;
}

.process-item img {
    width: 30px;
    height: auto;
}

.process-item a {
    color: #000000;
}

/* ==============================
   响应式适配 - 客服/流程
   ============================== */
/* PC端适配 */
@media (min-width: 768px) {
    .content-wrapper {
        flex-direction: row; /* PC端横向排列 */
        gap: 0;
    }

    .customer-service {
        width: 260px; /* 固定宽度 */
        flex-shrink: 0; /* 防止被压缩 */
    }

    .register-process {
        flex: 1; /* 占用剩余宽度 */
        margin-left: 5px; /* 模拟原间距 */
    }
}

/* 小屏移动端优化 */
@media (max-width: 479px) {
    .process-row {
        flex-wrap: wrap;
    }

    .process-item {
        margin-bottom: 10px;
    }

    .process-arrow {
        display: none; /* 移动端隐藏箭头 */
    }
}

/* ==============================
   免费空间简介
   ============================== */
/* 主容器 */
.intro-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;    
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

/* 标题栏样式 */
.intro-title {
    background-color: #e8f4f8;
    border-radius: 0px;
    color: #204E7D;
    padding: 6px 15px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

/* 内容区域 */
.intro-content {
    background-color: #fff;
    padding: 15px;
    line-height: 1.9;
}

/* 简介核心内容卡片 */
.intro-desc {
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.intro-desc strong {
    color: #367dc6;
    font-size: 14px;
}

/* 常用操作指引卡片 */
.intro-guide {
    background: #ffffff;
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* 指引标题 */
.guide-title {
    font-size: 14px;
    font-weight: bold;
    color: #367dc6;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #d4e6f1;
}

.guide-title img {
    vertical-align: middle;
    margin-right: 8px;
}

.guide-title span {
    color: #ff4500;
    font-size: 14px;
    font-weight: normal;
    margin-left: 5px;
}

/* 链接列表 */
.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    line-height: 2.2;
}

/* 链接样式 */
.link-list a {
    padding: 3px 8px;
    border-radius: 3px;
    transition: all 0.2s;
    display: inline-block;
}

/* 各链接的渐变背景色 */
.link-list a.link-1 { background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%); color: white; }
.link-list a.link-2 { background: linear-gradient(135deg, #51cf66 0%, #40c057 100%); color: white; }
.link-list a.link-3 { background: linear-gradient(135deg, #20c997 0%, #12b886 100%); color: white; }
.link-list a.link-4 { background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%); color: white; }
.link-list a.link-5 { background: linear-gradient(135deg, #ff6b6b 0%, #fa5252 100%); color: white; }
.link-list a.link-6 { background: linear-gradient(135deg, #cc5de8 0%, #be4bdb 100%); color: white; }
.link-list a.link-7 { background: linear-gradient(135deg, #3bc9db 0%, #22b8cf 100%); color: white; }
.link-list a.link-8 { background: linear-gradient(135deg, #f783ac 0%, #f06595 100%); color: white; }
.link-list a.link-9 { background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%); color: #333; }
.link-list a.link-10 { background: linear-gradient(135deg, #748ffc 0%, #5c7cfa 100%); color: white; font-weight: bold; }
.link-list a.link-11 { background: linear-gradient(135deg, #9775fa 0%, #845ef7 100%); color: white; }

/* 链接悬停效果 */
.link-list a:hover {
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* 各链接悬停渐变 */
.link-list a.link-1:hover { background: linear-gradient(135deg, #339af0 0%, #228be6 100%); }
.link-list a.link-2:hover { background: linear-gradient(135deg, #40c057 0%, #37b24d 100%); }
.link-list a.link-3:hover { background: linear-gradient(135deg, #12b886 0%, #0ca678 100%); }
.link-list a.link-4:hover { background: linear-gradient(135deg, #fd7e14 0%, #f76707 100%); }
.link-list a.link-5:hover { background: linear-gradient(135deg, #fa5252 0%, #f03e3e 100%); }
.link-list a.link-6:hover { background: linear-gradient(135deg, #be4bdb 0%, #ae3ec9 100%); }
.link-list a.link-7:hover { background: linear-gradient(135deg, #22b8cf 0%, #15aabf 100%); }
.link-list a.link-8:hover { background: linear-gradient(135deg, #f06595 0%, #e64980 100%); }
.link-list a.link-9:hover { background: linear-gradient(135deg, #fab005 0%, #f59f00 100%); }
.link-list a.link-10:hover { background: linear-gradient(135deg, #5c7cfa 0%, #4c6ef5 100%); }
.link-list a.link-11:hover { background: linear-gradient(135deg, #845ef7 0%, #7048e8 100%); }

/* ==============================
   响应式适配 - 免费空间简介
   ============================== */
@media (max-width: 767px) {
    /* 移动端减小内边距 */
    .intro-content {
        padding: 10px 8px;
    }

    .link-list a {
        padding: 4px 10px;
        flex: 1 1 calc(50% - 5px);
        text-align: center;
        font-size: 14px;
    }

    /* 小屏手机 */
    @media (max-width: 399px) {
        .link-list a {
            flex: 1 1 100%;
        }
    }
}

