/* AGXCC Theme v2.0 - 黑白简约设计 */

:root {
    --black: #000;
    --white: #fff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eee;
    --gray-300: #ddd;
    --gray-400: #ccc;
    --gray-500: #999;
    --gray-600: #666;
    --gray-700: #444;
    --gray-800: #333;
    --gray-900: #111;
    --primary: #111;
    --accent: #e63946;
    --success: #10A37F;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { font-size: 16px; }

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ==================== Header ==================== */
.site-header {
    background: var(--black);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
}

.logo-icon {
    background: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--white); }

/* 下拉菜单 */
.nav-menu li { position: relative; }
.nav-menu li.menu-item-has-children > a::after { 
    content: ''; 
}
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1000;
}
.nav-menu li.menu-item-has-children:hover .sub-menu {
    display: block;
}
.nav-menu .sub-menu li { padding: 0; }
.nav-menu .sub-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    font-size: 0.85rem;
    border-radius: 0;
}
.nav-menu .sub-menu a:hover {
    background: #f5f5f5;
    color: var(--accent);
}
.nav-menu .sub-menu a i {
    width: 18px;
    color: #999;
}
.nav-menu .sub-menu a:hover i {
    color: var(--accent);
}

/* 移动端隐藏下拉箭头 */
@media (max-width: 768px) {
    .nav-menu .sub-menu { display: none !important; }
}

.header-actions { display: flex; gap: 1rem; align-items: center; }

.header-btn {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
}

.header-btn:hover { color: var(--white); }

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

.header-btn.btn-primary:hover { background: #c1121f; }

/* 移动端菜单 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* ==================== Hero ==================== */
.hero {
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .highlight { color: var(--accent); }

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* ==================== Section ==================== */
.section { padding: 4rem 0; }
.section.bg-light { background: var(--gray-50); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i { color: var(--accent); }

.more-link {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    transition: all 0.2s;
}

.more-link:hover {
    background: var(--accent);
    color: var(--white);
}

/* ==================== Cards Grid ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--gray-400);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-link {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
}

.card-link:hover { text-decoration: underline; }

/* ==================== Platforms Grid ==================== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
}

.platform-item:hover {
    border-color: var(--gray-400);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.platform-item i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.platform-item span {
    font-size: 0.75rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* ==================== Footer ==================== */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.footer-social a:hover { background: var(--accent); }

.footer-links-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links-col li { margin-bottom: 0.75rem; }
.footer-links-col a { font-size: 0.875rem; }
.footer-links-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ==================== Modal 浮窗登录/注册 ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-close:hover { color: var(--black); }

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover { background: #c1121f; }

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.modal-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.modal-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }

/* ==================== Responsive 移动端 ==================== */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { 
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-menu.active { display: flex; }
    .nav-menu li { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    .header-actions { display: none; }
    
    .mobile-menu-toggle { display: flex; }
    
    .hero-title { font-size: 1.75rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-num { font-size: 1.75rem; }
    
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .platforms-grid { grid-template-columns: repeat(3, 1fr); }
    
    .section-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .section-header h2 { font-size: 1.25rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 3rem 0 2rem; }
}

/* ==================== Single 详情页 ==================== */
.single-header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.single-header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.single-icon {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.single-info { flex: 1; }

.single-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.single-url {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.single-url:hover { color: var(--accent); }

.single-actions { display: flex; gap: 1rem; }

.btn-visit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-visit:hover { background: #c1121f; color: var(--white); }

.single-content { padding: 3rem 0; }

.content-section { margin-bottom: 2rem; }

.content-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.content-section ul {
    padding-left: 1.5rem;
    list-style: disc;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: var(--gray-100);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* ==================== Archive 列表页 ==================== */
.archive-header {
    padding: 3rem 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.archive-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.archive-count {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* 排名和热门样式 */
.card { position: relative; }
.card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* 前三名热门样式 */
.card:nth-child(1) .card-rank,
.card:nth-child(2) .card-rank,
.card:nth-child(3) .card-rank {
    background: linear-gradient(135deg, var(--accent), #c1121f);
    color: #fff;
}

.card-hot {
    border-color: var(--accent) !important;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.15);
}

/* ==================== 分页样式（加大间隔）==================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 3rem 0;
    padding: 1.5rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.pagination .current,
.pagination .active {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    font-weight: 600;
}

.pagination .dots {
    border: none;
    background: transparent;
    color: #999;
    cursor: default;
}

.pagination .dots:hover {
    background: transparent;
    border-color: transparent;
    color: #999;
    transform: none;
    box-shadow: none;
}

.pagination .prev,
.pagination .next {
    background: #f5f5f5;
    font-weight: 600;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #333;
    border-color: #333;
}

/* 手机端分页（更大按钮） */
@media (max-width: 768px) {
    .pagination {
        gap: 15px;
        margin: 2rem 0;
    }
    
    .pagination a,
    .pagination span {
        min-width: 52px;
        height: 52px;
        padding: 0 18px;
        font-size: 16px;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 0 24px;
        background: #333;
        color: #fff;
        border-color: #333;
    }
    
    .pagination .prev:hover,
    .pagination .next:hover {
        background: #e63946;
        border-color: #e63946;
    }
}

/* 小手机（按钮更大） */
@media (max-width: 480px) {
    .pagination {
        gap: 10px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 48px;
        height: 48px;
        padding: 0 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    /* 只显示上一页下一页和当前页 */
    .pagination .dots,
    .pagination a:not(.prev):not(.next):not(.current):not(.active) {
        display: none;
    }
    
    .pagination .prev,
    .pagination .next {
        display: inline-flex;
    }
}

/* ==================== 页面通用样式 ==================== */
.page-header { background: linear-gradient(135deg, #111 0%, #2a2a2a 100%); color: #fff; padding: 4rem 0; text-align: center; }
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-header h1 i { color: #e63946; margin-right: 0.5rem; }
.page-desc { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* ==================== 分页样式（横排3个数字）==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 3rem 0;
    padding: 1.5rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
}

.pagination .current {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    font-weight: 600;
}

.pagination .dots {
    border: none;
    background: transparent;
    color: #999;
    cursor: default;
}

.pagination .prev,
.pagination .next {
    background: #f5f5f5;
    font-weight: 600;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* 手机端分页 */
@media (max-width: 768px) {
    .pagination {
        gap: 10px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 48px;
        height: 48px;
        font-size: 15px;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 0 16px;
        background: #333;
        color: #fff;
        border-color: #333;
    }
    
    .pagination .prev:hover,
    .pagination .next:hover {
        background: #e63946;
        border-color: #e63946;
    }
}

/* 小手机：只显示上一页下一页和当前页 */
@media (max-width: 480px) {
    .pagination .dots,
    .pagination a:not(.prev):not(.next):not(.current) {
        display: none;
    }
    
    .pagination a,
    .pagination span {
        min-width: 50px;
        height: 50px;
    }
}

/* ==================== 资讯横排卡片 ==================== */
.news-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card-h {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.news-card-h:hover {
    border-color: #e63946;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.news-date-h {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-title-h {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-title-h a {
    color: #333;
    text-decoration: none;
}

.news-title-h a:hover {
    color: #e63946;
}

.news-excerpt-h {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.news-readmore-h {
    font-size: 0.85rem;
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
}

.news-readmore-h:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .news-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-horizontal {
        grid-template-columns: 1fr;
    }
    
    .news-card-h {
        padding: 1.25rem;
    }
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab:hover {
    background: #e0e0e0;
    color: #333;
}

.filter-tab.active {
    background: var(--primary);
    color: #fff;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab:hover {
    background: #e0e0e0;
    color: #333;
}

.filter-tab.active {
    background: var(--primary);
    color: #fff;
}

/* 手机端筛选 - 下拉菜单 */
.mobile-filter {
    display: none;
}

.filter-select {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.95rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

.filter-select option {
    padding: 8px;
}

@media (max-width: 768px) {
    .desktop-filter {
        display: none;
    }
    
    .mobile-filter {
        display: block;
    }
    
    .filter-section {
        top: 0;
        position: relative;
    }
}

/* 首页两列卡片 */
.cards-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
}

.cards-grid-two .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
}

.cards-grid-two .card-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cards-grid-two .card-icon i {
    font-size: 24px;
}

.cards-grid-two .card-title {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.cards-grid-two .card-excerpt {
    font-size: 0.8rem;
    display: none;
}

.cards-grid-two .card-link {
    font-size: 0.85rem;
    margin-top: auto;
}

@media (min-width: 769px) {
    .cards-grid-two {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .cards-grid-two .card {
        padding: 24px 20px;
    }
}

/* 手机端折叠筛选 */
.mobile-filter-wrapper {
    display: none;
}

.filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.filter-toggle i {
    transition: transform 0.2s;
}

.filter-dropdown {
    display: none;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.filter-dropdown.open {
    display: block;
}

.filter-option {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.filter-option:last-child {
    border-bottom: none;
}

.filter-option:hover {
    background: #f5f5f5;
}

.filter-option.active {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .desktop-filter {
        display: none;
    }
    
    .mobile-filter-wrapper {
        display: block;
    }
    
    .filter-section {
        top: 0;
        position: relative;
    }
}

/* 详情页手机端溢出修复 */
@media (max-width: 768px) {
    .single-header {
        padding: 1.5rem 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    .single-header-inner {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .breadcrumb, .single-title, .single-meta {
        max-width: 100%;
        overflow-x: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .single-content {
        padding: 1.5rem 0;
        overflow-x: hidden;
    }
    
    .container, .content-layout, .content-sidebar, .section-box, .content-text {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-visit {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .content-sidebar {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .info-card, .ranking-card {
        width: 100%;
        box-sizing: border-box;
    }
    
    .back-btn, .visit-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .rank-title {
        white-space: normal;
    }
}
