:root {
    --primary-color: #4e73df;
    --secondary-color: #f8f9fc;
    --accent-color: #2e59d9;
    --sidebar-width: 300px;
    --content-gap: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    color: var(--primary-color);         /* 默认蓝色 */
    text-decoration: none; /* 默认不显示下划线 */
}


a:visited {
color: var(--primary-color);         /* 访问过的链接颜色不变，仍然是蓝色 */
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: var(--content-gap);
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.header h1 a{
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}




.nav-bar {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #f8f8f8;
padding: 10px 20px;
border-bottom: 1px solid #ddd;
box-sizing: border-box; /* 防止 padding 撑破宽度 */
margin-bottom:30px;
}

.nav-bar ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}

.nav-bar li {
margin: 0 5px;
}

.nav-bar a {
display: inline-block;
padding: 8px 16px;
text-decoration: none;
color: #333;
font-weight: bold;
border-radius: 6px;
transition: background-color 0.3s, color 0.3s;
}

.nav-bar a:hover {
background-color: #e6e6e6;
}

.nav-bar a.active {
background-color: #007BFF;
color: #fff;
}








/* 左侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* 主内容区样式 */
.main-content {
    flex-grow: 1;
}

.filter-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background-color: var(--secondary-color);
    padding: 10px;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 8px 20px;
}

.card-group {
    margin-bottom: 15px;
}
.card-group li{
    list-style: none;
    margin: 5px auto;
    width:50%;
    float:left;
}
.card-group li a{
    text-decoration: none;
    color: #666;
}
.card-group li.active a{
    color: var(--primary-color);
    font-weight: bold;
}



.card-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* 程序类型筛选调整为50%宽度 */
.program-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.program-type-item {
    width: calc(50% - 5px);
}

.form-check {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.sites-content{
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sites-limited{
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sites-version {
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.sites-version li{
    list-style: none;
    display:inline-block;padding:0 10px;
}
.sites-version li a{
    text-decoration: none;
    color: #666;
}
.sites-version li.active a{
    color: var(--primary-color);
    font-weight: bold;
}


.form-check-input {
    margin-right: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.btn:hover {
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 排序下拉菜单样式 */
.sort-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 广告区域样式 */
.ad-container {
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.mobile-ad-container {
    display: none;
    background-color: white;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.ad-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ad-container img, .mobile-ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 站点列表样式 */
.sites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sites-header h2 {
    font-size: 1.5rem;
}

.result-count {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.feedbackbtn {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor:pointer;
}

.feedbackbtn a{
    color: white;
}

.site-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.site-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    background-color: #21759b;
    color: white;
}

.badge a{
    color: white;
}

.badge1 {
    background-color: #3858e9;
}
.badge2 {
    background-color: #008bc7;
}
.badge3 {
    background-color: #467b96;
}
.badge4 {
    background-color: #ff9000;
}
.badge5 {
    background-color: #59a3fc;
}
.badge6 {
    background-color: #21759b;
}
.badge7 {
    background-color: #E60012;
}
.badge8 {
    background-color: #2b2b2b;
}
.badge9 {
    background-color: #198754;
}
.badge0 {
    background-color: #656de6;
}

.site-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.site-meta span {
    display: flex;
    align-items: center;
}

.site-meta i {
    margin-right: 5px;
}

.site-url {
    color: #666;
    font-size: 0.9rem;
}

.site-description {
    color: #666;
    margin: 10px 0;
}

.detail-btn {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;flex-shrink: 0
}

.detail-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 分页按钮样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.page-item {
    list-style: none;
}
.page-prev{display:none}

.page-link {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #ddd;
    pointer-events: none;
}

.page-next{
        padding-left: 30px;
        padding-right: 30px;
}

/* 提交站点按钮 */
.submit-site-btn {
    margin-top: 20px;
    background-color: #28a745;
}

.submit-site-btn:hover {
    background-color: #218838;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    background-color: var(--secondary-color);
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e3e6f0;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.modal-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.modal-btn-secondary {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}


/* 提交成功提示 */
.success-message {
    text-align: center;
    padding: 20px;
    color: #28a745;
    display: none;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.no-results-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.site-info-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-info-table th,
.site-info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.site-info-table th {
    width: 120px;
    background-color: #f9f9f9;
    color: #333;
    font-weight: bold;
}

.site-info-table tr:last-child th,
.site-info-table tr:last-child td {
    border-bottom: none;
}

.site-info-table td {
    color: #444;
}

.site-info-table td span.software{
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    background-color: #ddd;
    color: white;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .card-group li{
        list-style: none;
        margin: 5px auto;
        width:32%;
        float:left;
    }
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .main-content {
        width: 100%;
    }
    
    .ad-container {
        display: none;
    }
    
    .mobile-ad-container {
        display: block;
    }
    .page-number{display:none}
    .page-prev { display: block; }
    .page-active{display: block;}
}
.userpanel {
    text-align: center;
}

.userpanel .panelbtn{
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.userpanel .panelbtn:hover {
    background-color: #1e40af;
}

.userpanel .regbtn,.userpanel .logout {
    background-color: #ccc;
}



.reg {
    --reg-bg: #ffffff;
    --reg-accent: var(--primary-color);
    --reg-border: #e3e6ea;
    --reg-radius: 8px;
    --reg-gap: 12px;
    display: block;
    max-width: 420px;
    margin: 18px auto;
    padding: 20px;
    background: var(--reg-bg);
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius);
    box-shadow: 0 6px 18px rgba(15, 20, 30, 0.04);
    text-align: left;
}

/* 内部 reset（只影响 .reg 内部） */
.reg * {
    box-sizing: border-box;
}

/* 标题 */
.reg__title {
    margin: 0 0 14px 0;
    font-size: 1.25rem;
    color: #0f1724;
}

/* 每个输入行 */
.reg__field {
    display: block;
    margin-bottom: var(--reg-gap);
}

/* label 文本 */
.reg__label {
    display: block;
    margin-bottom: 6px;
    font-size: .9rem;
    color: #334155;
}

/* 输入框 */
.reg__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--reg-border);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow .12s, border-color .12s;
    background: #fbfdff;
}

.reg__input:focus {
    border-color: var(--reg-accent);
    box-shadow: 0 0 0 4px rgba(43, 140, 255, 0.08);
}

/* 错误提示 */
.reg__error {
    margin: 0 0 8px 0;
    color: #b03131;
    font-size: 0.9rem;
}

/* 按钮 */
.reg__submit {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: var(--reg-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(43, 140, 255, 0.12);
    transition: transform .08s ease, box-shadow .12s;
}

.reg__submit:active {
    transform: translateY(1px);
}

.reg__submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 小提示与链接 */
.reg__hint {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
}

.reg__link {
    color: var(--reg-accent);
    text-decoration: none;
    font-weight: 500;
}

/* 响应式 */
@media (max-width:420px) {
    .reg {
        margin: 12px;
        padding: 16px;
    }

    .reg__title {
        font-size: 1.1rem;
    }
}


.login {
    --login-bg: #ffffff;
    --login-accent: var(--primary-color);
    --login-border: #e3e6ea;
    --login-radius: 8px;
    --login-gap: 12px;
    display: block;
    max-width: 420px;
    margin: 18px auto;
    padding: 20px;
    background: var(--login-bg);
    border: 1px solid var(--login-border);
    border-radius: var(--login-radius);
    box-shadow: 0 6px 18px rgba(15, 20, 30, 0.04);
    text-align: left;
}

/* 内部 reset（只影响 .login 内部） */
.login * {
    box-sizing: border-box;
}

/* 标题 */
.login__title {
    margin: 0 0 14px 0;
    font-size: 1.25rem;
    color: #0f1724;
}

/* 每个输入行 */
.login__field {
    display: block;
    margin-bottom: var(--login-gap);
}

/* label 文本 */
.login__label {
    display: block;
    margin-bottom: 6px;
    font-size: .9rem;
    color: #334155;
}

/* 输入框 */
.login__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--login-border);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow .12s, border-color .12s;
    background: #fbfdff;
}

.login__input:focus {
    border-color: var(--login-accent);
    box-shadow: 0 0 0 4px rgba(43, 140, 255, 0.08);
}

/* 错误提示 */
.login__error {
    margin: 0 0 8px 0;
    color: #b03131;
    font-size: 0.9rem;
}

/* 按钮 */
.login__submit {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: var(--login-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(43, 140, 255, 0.12);
    transition: transform .08s ease, box-shadow .12s;
}

.login__submit:active {
    transform: translateY(1px);
}

.login__submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 小提示与链接 */
.login__hint {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
}

.login__link {
    color: var(--login-accent);
    text-decoration: none;
    font-weight: 500;
}

/* 响应式 */
@media (max-width:420px) {
    .login {
        margin: 12px;
        padding: 16px;
    }

    .login__title {
        font-size: 1.1rem;
    }
}



.change {
    --change-bg: #ffffff;
    --change-accent: var(--primary-color);
    --change-border: #e3e6ea;
    --change-radius: 8px;
    --change-gap: 12px;
    display: block;
    max-width: 420px;
    margin: 18px auto;
    padding: 20px;
    background: var(--change-bg);
    border: 1px solid var(--change-border);
    border-radius: var(--change-radius);
    box-shadow: 0 6px 18px rgba(15, 20, 30, 0.04);
    text-align: left;
}

/* 内部 reset（只影响 .change 内部） */
.change * {
    box-sizing: border-box;
}

/* 标题 */
.change__title {
    margin: 0 0 14px 0;
    font-size: 1.25rem;
    color: #0f1724;
}

/* 每个输入行 */
.change__field {
    display: block;
    margin-bottom: var(--change-gap);
}

/* label 文本 */
.change__label {
    display: block;
    margin-bottom: 6px;
    font-size: .9rem;
    color: #334155;
}

/* 输入框 */
.change__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--change-border);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow .12s, border-color .12s;
    background: #fbfdff;
}

.change__input:focus {
    border-color: var(--change-accent);
    box-shadow: 0 0 0 4px rgba(43, 140, 255, 0.08);
}

/* 错误提示 */
.change__error {
    margin: 0 0 8px 0;
    color: #b03131;
    font-size: 0.9rem;
}

/* 按钮 */
.change__submit {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: var(--change-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(43, 140, 255, 0.12);
    transition: transform .08s ease, box-shadow .12s;
}

.change__submit:active {
    transform: translateY(1px);
}

.change__submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 小提示与链接 */
.change__hint {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
}

.change__link {
    color: var(--change-accent);
    text-decoration: none;
    font-weight: 500;
}

/* 响应式 */
@media (max-width:420px) {
    .change {
        margin: 12px;
        padding: 16px;
    }

    .change__title {
        font-size: 1.1rem;
    }
}

#leftuserpanel li {
    width: 100%;
    float: none;margin-bottom:10px;
}

.usercenter {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fafafa;
}

.usercenter h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.usercenter .user-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    /* 行间距和列间距 */
}

.usercenter .info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
}

.usercenter .label {
    font-weight: 600;
    color: #555;
}

.usercenter .value {
    color: #333;
}

.usercenter .value.vip {
    color: gold;
    font-weight: bold;
}

.usercenter .value.vip a{
    color:#ccc
}

.usercenter .note {
    margin-top: 15px;
    padding: 10px;
    background: #eaf8ea;
    border: 1px solid #b2d8b2;
    color: #2a6b2a;
    border-radius: 4px;
}


.recommendSite {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 20px;
}

.recommendSite table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.recommendSite table th,
.recommendSite table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.recommendSite table th {
    background-color: #f2f2f2;
}

.recommendSite .status-yes {
    color: green;
    font-weight: bold;
}

.recommendSite .status-no {
    color: red;
    font-weight: bold;
}

.recommendSite .note {
    margin-bottom: 15px;
    padding: 10px;
    background: #eaf8ea;
    border: 1px solid #b2d8b2;
    color: #2a6b2a;
    border-radius: 4px;
}


.inviteCode {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 20px;
}

.inviteCode table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.inviteCode table th,
.inviteCode table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.inviteCode table th {
    background-color: #f2f2f2;
}

.inviteCode .status-yes {
    color: green;
    font-weight: bold;
}

.inviteCode .status-no {
    color: red;
    font-weight: bold;
}

.inviteCode .note {
    margin-bottom: 15px;
    padding: 10px;
    background: #eaf8ea;
    border: 1px solid #b2d8b2;
    color: #2a6b2a;
    border-radius: 4px;
}