/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.logo a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #0066cc;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: #f0f7ff;
    color: #0066cc;
}

.search form {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2px;
    transition: all 0.3s ease;
}

.search form:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.search input[type="text"] {
    padding: 10px 16px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    width: 240px;
    background-color: transparent;
}

.search input[type="text"]:focus {
    outline: none;
}

.search button {
    padding: 10px 20px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search button:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    z-index: 1001;
    position: relative;
}

#mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1002;
    outline: none;
}

#mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    border-radius: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1003;
    opacity: 1;
}

#mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* 主要内容样式 */
main {
    padding: 50px 0;
}

/* 分类导航 */
.category-nav {
    margin-bottom: 40px;
}

.category-nav .container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-nav h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.category-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 12px;
}

.category-nav ul li a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f8f9fa;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-nav ul li a:hover,
.category-nav ul li a.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

/* 最新网站和热门网站通用样式 */
.latest-websites,
.popular-websites,
.category-websites {
    margin-bottom: 50px;
}

.latest-websites .container,
.popular-websites .container,
.category-websites .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.latest-websites h2,
.popular-websites h2,
.category-websites h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.latest-websites h2::after,
.popular-websites h2::after,
.category-websites h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #0066cc;
    border-radius: 2px;
}

/* 网站网格 */
.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.website-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.website-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #0066cc;
}

.website-title a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.website-title a:hover {
    color: #0066cc;
}

.website-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.website-info .category {
    background-color: #f0f7ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.website-info .visits,
.website-info .date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.website-description {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.website-url {
    font-size: 13px;
}

.website-url a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
    transition: all 0.3s ease;
}

.website-url a:hover {
    text-decoration: underline;
    color: #0052a3;
}

/* 分类更多按钮 */
.category-more {
    margin-top: 30px;
    text-align: center;
}

/* 网站列表 */
.website-list {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.website-list h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.website-list h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #0066cc;
    border-radius: 2px;
}

.website-table table {
    width: 100%;
    border-collapse: collapse;
}

.website-table th,
.website-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.website-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.website-table tr:hover {
    background-color: #f8f9fa;
}

.website-table .website-description {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,102,204,0.2);
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.3);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    font-size: 16px;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
    box-shadow: 0 2px 4px rgba(220,53,69,0.2);
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220,53,69,0.3);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.pagination a {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover,
.pagination a.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 30px;
}

.empty p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 搜索结果 */
.search-results {
    margin-bottom: 50px;
}

.search-results .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-info {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.search-info h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.search-info p {
    margin-bottom: 10px;
    color: #666;
    font-size: 16px;
}

/* 网站详情 */
.website-detail {
    margin-bottom: 50px;
}

.website-detail .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail-header h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #666;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-meta .category a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.detail-meta .category a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.detail-content {
    margin-bottom: 50px;
}

.website-info h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
    width: 100%;
}

.info-item {
    margin-bottom: 25px;
	width:100%;
}

.info-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p,
.info-item a {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.info-item .website-url {
    font-size: 16px;
}

.info-item .website-url a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
    transition: all 0.3s ease;
}

.info-item .website-url a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.action-buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.related-websites {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.related-websites h2 {
    font-size: 20px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

/* 首页提交网站 */
.submit-website-home {
    margin-bottom: 40px;
}

.submit-website-home .container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.submit-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.submit-text {
    flex: 2;
    min-width: 200px;
}

.submit-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.submit-text p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.submit-form {
    flex: 2;
    min-width: 300px;
}

.submit-form .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.submit-form input[type="url"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submit-form input[type="url"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.submit-form button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .submit-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .submit-text,
    .submit-form {
        width: 100%;
    }
    
    .submit-form .form-row {
        flex-direction: column;
    }
    
    .submit-form input[type="url"] {
        min-width: 100%;
    }
}

/* 提交网站 */
.submit-website {
    margin-bottom: 50px;
}

.submit-website .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.submit-website h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.submit-website p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 16px;
}

.submit-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .required {
    color: #dc3545;
    margin-left: 4px;
}

.form-group .help-text {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.form-actions {
    margin-top: 40px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-size: 16px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #f5c6cb;
    text-align: center;
    font-size: 16px;
}

.submit-rules {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.submit-rules h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.submit-rules ul {
    list-style: disc;
    margin-left: 20px;
    color: #666;
}

.submit-rules li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.backlink-info {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.backlink-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.backlink-info p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.backlink-code {
    margin-bottom: 20px;
}

.backlink-code h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.backlink-code pre {
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.4;
    overflow-x: auto;
    color: #333;
}

.backlink-info ol {
    list-style: decimal;
    margin-left: 20px;
    color: #666;
}

.backlink-info ol li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}



/* 底部样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info,
.footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-info h3,
.footer-links h3 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #fff;
}

.footer-info p {
    line-height: 1.6;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: #0066cc;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}
.footer-copyright a{color: #999;text-decoration:none;}
/* 响应式设计 */
@media (max-width: 992px) {
    .website-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .latest-websites .container,
    .popular-websites .container,
    .category-websites .container,
    .website-detail,
    .search-results,
    .website-list {
        padding: 30px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block !important;
        z-index: 1001;
        position: relative;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .main-nav ul li {
        margin-left: 0;
    }
    
    .main-nav ul li a {
        color: #555;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        padding: 10px 16px;
        border-radius: 6px;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .search {
        position: fixed;
        top: 212px;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .search.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .search form {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .search input[type="text"] {
        width: 100%;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .submit-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .submit-text,
    .submit-form {
        width: 100%;
    }
    
    .submit-form .form-row {
        flex-direction: column;
    }
    
    .submit-form input[type="url"] {
        min-width: 100%;
    }
    
    /* 确保所有容器在移动端都有左右间距 */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 576px) {
    main {
        padding: 30px 10px;
    }
    
    .latest-websites .container,
    .popular-websites .container,
    .website-detail,
    .search-results,
    .website-list {
        padding: 0;
    }
    
    .latest-websites h2,
    .popular-websites h2,
    .search-info h2 {
        font-size: 20px;
    }
    
    .website-item {
        padding: 20px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* 广告位样式 */
.advertisement {
    margin-bottom: 40px;
}

.advertisement .container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 广告网格 */
.ad-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.ad-item {
    margin-bottom: 5px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.ad-item-last {
    margin-right: 0 !important;
}

/* 图片广告 */
.image-ad-grid {
    margin-bottom: 10px;
}

.image-ad-item {
    width: calc(50% - 2.5px);
}

.image-ad-item a {
    display: block;
    /*border-radius: 8px;*/
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-ad-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-ad-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文字广告 */
.text-ad-grid {
    margin-top: 10px;
}

.text-ad-item {
    width: calc(25% - 3.75px);
    border: 1px dashed rgba(0, 0, 0, .2);
    /*border-radius: 6px;*/
    padding: 5px;
    transition: all 0.3s ease;
}

.text-ad-item a {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.text-ad-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.text-ad-item:hover a {
    color: #fff !important;
}

/* 文字广告背景色 */
.ad-bg-1:hover {
    background-color: #0066cc;
}

.ad-bg-2:hover {
    background-color: #4CAF50;
}

.ad-bg-3:hover {
    background-color: #ff9800;
}

.ad-bg-4:hover {
    background-color: #9c27b0;
}

.ad-bg-5:hover {
    background-color: #f44336;
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    /* 图片广告 - 手机端一行1个 */
    .image-ad-item {
        width: 100%;
		margin-right:0;
    }
    
    /* 文字广告 - 手机端一行1个 */
    .text-ad-item {
        width:100%;
		margin-right: 0;
    }
    
    .text-ad-item:nth-child(2n) {
        margin-right: 0 !important;
    }
    
    .advertisement .container {
        padding: 20px;
    }
}

/* 推荐网站和最新点入网站模块样式 */
.recommended-websites,
.latest-visited-websites {
    margin-bottom: 50px;
}

.recommended-websites .container,
.latest-visited-websites .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 模块头部样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin: 0;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #0066cc;
    border-radius: 2px;
}

/* 推荐价格和访问说明样式 */
.recommended-price,
.visited-info {
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* 响应式设计 - 模块头部 */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .recommended-price,
    .visited-info {
        white-space: normal;
        font-size: 13px;
		padding-top:20px;
    }
    
    .recommended-websites .container,
    .latest-visited-websites .container {
        padding: 30px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
}

/* 友情链接样式 */
.links {
    margin-bottom: 40px;
}

.links .container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.links h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.links h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #0066cc;
    border-radius: 2px;
}

/* 友情链接网格 */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.link-item {
    flex: 0 0 auto;
    transition: all 0.3s ease;
}

.link-item a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.link-item a:hover {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

/* 响应式设计 - 友情链接 */
@media (max-width: 768px) {
    .links .container {
        padding: 20px;
    }
    
    .links h2 {
        font-size: 20px;
    }
    
    .links-grid {
        gap: 10px;
    }
    
    .link-item a {
        padding: 6px 12px;
        font-size: 13px;
    }
}
@media (max-width: 768px) {
.pagination{margin-top: 30px;padding-bottom: 20px;}
.pagination a{padding: 0px 5px;}
}