/* ============================
   免费代理IP - 主样式表
   页面宽度：1500px
   设计风格：高端清爽大气
   ============================ */

/* 基础重置 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f0f2f5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: #333; transition: color 0.3s; }
a:hover { color: #e74c3c; }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; }

/* 页面包裹器 1500px */
.site-wrapper { max-width: 1500px; margin: 0 auto; background: #fff; min-height: 100vh; box-shadow: 0 0 30px rgba(0,0,0,0.08); }

/* ============ 头部第一行 ============ */
.header-top {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.header-top-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo-area { flex-shrink: 0; }
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 55px; height: 55px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
    transition: transform 0.3s;
}
.logo-link:hover .logo-icon { transform: rotate(-10deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 22px; font-weight: 700; color: #222; letter-spacing: 1px; }
.logo-sub { font-size: 12px; color: #999; letter-spacing: 2px; margin-top: 2px; }
.header-ads { display: flex; gap: 15px; align-items: center; }
.header-ad { width: 240px; height: 60px; flex-shrink: 0; overflow: hidden; border-radius: 6px; }
.header-ad img { width: 100%; height: 100%; object-fit: cover; display: block; }
.header-ad .ad-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
    border: 1px dashed #d0d5dd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
}

/* ============ 导航栏 ============ */
.main-nav {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}
.nav-list { display: flex; gap: 5px; height: 100%; }
.nav-item { height: 100%; }
.nav-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 20px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}
.nav-item a:hover,
.nav-item.active a {
    background: rgba(0,0,0,0.15);
    color: #fff;
}
.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #fff;
    border-radius: 3px 3px 0 0;
}
.nav-contact { flex-shrink: 0; }
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s;
    cursor: pointer;
}
.contact-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* ============ 主内容区 ============ */
.main-content { padding: 25px; }

/* ============ 首页 - 三栏布局 ============ */
.home-row-3col {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* 轮播图 */
.carousel {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    height: 320px;
}
.carousel-inner { height: 100%; position: relative; }
.carousel-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.carousel-item.active { opacity: 1; }
.carousel-bg {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 40px;
}
.carousel-icon { font-size: 60px; margin-bottom: 20px; opacity: 0.9; }
.carousel-bg h3 { font-size: 24px; margin-bottom: 10px; letter-spacing: 2px; }
.carousel-bg p { font-size: 14px; opacity: 0.85; }
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active { background: #fff; width: 24px; border-radius: 5px; }

/* 版块卡片 */
.section-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f7fa;
}
.section-header h3 { font-size: 15px; color: #333; }
.section-header h3 i { color: #e74c3c; margin-right: 6px; }
.section-header .more { font-size: 12px; color: #999; }
.section-header .more:hover { color: #e74c3c; }

/* 文章列表紧凑 */
.article-list-compact { flex: 1; overflow-y: auto; }
.article-list-compact li { padding: 9px 0; border-bottom: 1px dashed #f0f0f0; }
.article-list-compact li:last-child { border-bottom: none; }
.article-list-compact li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    transition: all 0.3s;
}
.article-list-compact li a:hover { color: #e74c3c; padding-left: 5px; }
.article-dot { color: #e74c3c; font-size: 8px; flex-shrink: 0; }

/* 公告列表 */
.notice-list { flex: 1; overflow-y: auto; }
.notice-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li i { color: #e74c3c; font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.notice-list li span { flex: 1; font-size: 13px; color: #555; }
.notice-list li small { width: 100%; color: #bbb; font-size: 11px; padding-left: 22px; }

/* ============ 代理IP表格 ============ */
.proxy-section { margin-bottom: 25px; }
.section-header-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.section-header-main h2 { font-size: 20px; color: #222; }
.section-header-main h2 i { color: #e74c3c; margin-right: 8px; }
.section-header-main p { color: #999; font-size: 13px; flex: 1; }
.proxy-actions { display: flex; gap: 10px; }
.btn-api, .btn-refresh, .btn-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-api { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #fff; }
.btn-api:hover { box-shadow: 0 4px 15px rgba(79,172,254,0.4); color: #fff; transform: translateY(-2px); }
.btn-refresh { background: #f5f7fa; color: #555; text-decoration: none; }
.btn-refresh:hover { background: #e0e0e0; }
.btn-check { background: linear-gradient(135deg, #27ae60, #2ecc71); color: #fff; text-decoration: none; }
.btn-check:hover { box-shadow: 0 4px 15px rgba(39,174,96,0.4); color: #fff; transform: translateY(-2px); }

.proxy-table-wrap {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.proxy-table { width: 100%; border-collapse: collapse; }
.proxy-table thead { background: linear-gradient(180deg, #fafbfc, #f5f7fa); }
.proxy-table th {
    padding: 14px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e8ecf1;
    white-space: nowrap;
}
.proxy-table td {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid #f5f7fa;
    color: #555;
}
.proxy-table tbody tr { transition: background 0.2s; }
.proxy-table tbody tr:hover { background: #fafbfe; }
.ip-code {
    background: #f5f7fa;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #e74c3c;
}
.port-badge {
    background: #e74c3c;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.type-tag {
    background: #eaf4fe;
    color: #4facfe;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.delay { font-weight: 600; font-size: 13px; }
.delay-good { color: #27ae60; }
.delay-normal { color: #f39c12; }
.delay-bad { color: #e74c3c; }
.delay-unknown { color: #999; }
.status-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.status-ok { background: #eafaf1; color: #27ae60; }
.status-fail { background: #fdedec; color: #e74c3c; }
.status-pending { background: #fef9e7; color: #f39c12; }
.btn-copy {
    padding: 5px 12px;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    transition: all 0.3s;
}
.btn-copy:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* 空状态 */
.empty-row td { padding: 50px 20px; }
.empty-state { text-align: center; color: #999; }
.empty-state i { font-size: 48px; display: block; margin-bottom: 15px; color: #ddd; }
.empty-state .hint { font-size: 12px; color: #ccc; margin-top: 5px; }

/* ============ 分页 ============ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.page-info { font-size: 13px; color: #999; margin-right: 10px; }
.page-btn, .page-num {
    display: inline-block;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    transition: all 0.3s;
}
.page-btn:hover, .page-num:hover { border-color: #e74c3c; color: #e74c3c; }
.page-num.active { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.page-dots { padding: 7px 4px; color: #999; }

/* ============ 广告位区域 ============ */
.ads-section { margin-bottom: 25px; }
.ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.ad-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 120px;
}
.ad-card a { display: block; width: 100%; height: 100%; }
.ad-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-placeholder-card {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    gap: 5px;
}
.ad-placeholder-card i { font-size: 28px; }
.ad-placeholder-card span { font-size: 13px; }
.ad-placeholder-card small { font-size: 11px; color: #ccc; }

/* ============ 文章卡片区 ============ */
.article-cards-section { margin-bottom: 25px; }
.article-cards-section .section-header-main { margin-bottom: 15px; }

/* 三栏文章列表（新版热门推荐） */
.article-columns-section { margin-bottom: 25px; }
.article-columns-section .section-header-main { margin-bottom: 15px; }
.article-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.article-column {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
/* 第一篇：图文卡片 */
.article-column-card {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.acc-img-link { flex-shrink: 0; }
.acc-img-bg {
    width: 120px; height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 28px;
    transition: transform 0.3s;
    overflow: hidden;
}
.acc-img-link:hover .acc-img-bg { transform: scale(1.05); }
.acc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.acc-title {
    font-size: 14px; font-weight: 500; color: #333; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 8px;
}
.acc-title:hover { color: #e74c3c; }
.acc-meta { display: flex; gap: 12px; font-size: 12px; color: #aaa; }
.acc-meta i { margin-right: 2px; }
/* 其余文章：文字列表 */
.article-column-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px dashed #f5f5f5;
}
.article-column-item:last-child { border-bottom: none; }
.ac-dot { color: #e74c3c; font-size: 8px; flex-shrink: 0; }
.article-column-item a {
    flex: 1; font-size: 13px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color 0.3s;
}
.article-column-item a:hover { color: #e74c3c; }
.ac-time { font-size: 11px; color: #bbb; flex-shrink: 0; }
.section-header-main .more-link { font-size: 13px; color: #999; white-space: nowrap; }
.section-header-main .more-link:hover { color: #e74c3c; }
.article-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.article-card-img { height: 140px; overflow: hidden; }
.card-img-bg {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 40px;
}
.article-card-body { padding: 15px; }
.article-card-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
}
.article-card-title:hover { color: #e74c3c; }
.article-card-meta { display: flex; gap: 15px; font-size: 12px; color: #999; }
.article-card-meta i { margin-right: 3px; }

/* ============ 友情链接 ============ */
.links-section { margin-bottom: 25px; }
.links-block {
    background: #fff;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.links-header h3 { font-size: 15px; color: #333; }
.links-header h3 i { color: #e74c3c; margin-right: 6px; }
.apply-link {
    font-size: 12px;
    color: #999;
    padding: 5px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s;
}
.apply-link:hover { color: #e74c3c; border-color: #e74c3c; }
.links-body {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
}
.link-item {
    display: block;
    padding: 8px 5px;
    text-align: center;
    font-size: 13px;
    color: #666;
    background: #f9fafb;
    border-radius: 4px;
    transition: all 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link-item:hover { background: #e74c3c; color: #fff; }

/* ============ 两栏布局（列表页/文章页） ============ */
.page-2col { display: flex; gap: 25px; }
.col-main { flex: 1; min-width: 0; }
.col-sidebar { width: 340px; flex-shrink: 0; }

/* 面包屑 */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #e74c3c; }
.breadcrumb span { margin: 0 5px; }

/* 侧边栏 */
.sidebar-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f7fa;
}
.sidebar-title i { color: #e74c3c; margin-right: 6px; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { font-size: 13px; color: #555; display: flex; align-items: center; gap: 8px; }
.sidebar-list li a:hover { color: #e74c3c; }
.hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    padding: 5px 12px;
    background: #f5f7fa;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
}
.tag-item:hover { background: #e74c3c; color: #fff; }

/* 文章列表项 */
.article-list-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
}
.article-list-item:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.ali-img { width: 240px; height: 160px; flex-shrink: 0; }
.ali-img-bg {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 36px;
}
.ali-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ali-body h3 { font-size: 18px; margin-bottom: 10px; }
.ali-body h3 a { color: #333; }
.ali-body h3 a:hover { color: #e74c3c; }
.ali-excerpt { font-size: 13px; color: #888; line-height: 1.7; flex: 1; margin-bottom: 12px; }
.ali-meta { display: flex; gap: 15px; font-size: 12px; color: #aaa; }
.ali-meta i { margin-right: 3px; }

/* 文章详情 */
.article-detail { background: #fff; border-radius: 10px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.article-header { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.article-header h1 { font-size: 24px; color: #222; line-height: 1.4; margin-bottom: 15px; }
.article-meta-bar { display: flex; gap: 20px; font-size: 13px; color: #999; }
.article-meta-bar i { margin-right: 4px; color: #ccc; }
.article-body { font-size: 15px; color: #444; line-height: 1.9; }
.article-body p { margin-bottom: 16px; }
.article-body h2 { font-size: 20px; margin: 25px 0 15px; color: #222; }
.article-body h3 { font-size: 17px; margin: 20px 0 12px; color: #333; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 15px 0; }
.article-body code {
    background: #f5f7fa; padding: 2px 8px; border-radius: 3px;
    font-family: 'Consolas','Monaco',monospace; font-size: 13px; color: #e74c3c;
}
.article-body pre {
    background: #282c34; color: #abb2bf; padding: 20px; border-radius: 8px;
    overflow-x: auto; margin: 15px 0; font-size: 13px; line-height: 1.6;
}

.article-tags { margin-top: 25px; padding-top: 15px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #999; }
.article-tags .tag { padding: 3px 10px; background: #f5f7fa; border-radius: 4px; color: #666; font-size: 12px; }
.article-tags .tag:hover { background: #e74c3c; color: #fff; }
.article-nav { margin-top: 20px; padding: 15px 0; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.article-nav a { font-size: 13px; color: #666; }
.article-nav a:hover { color: #e74c3c; }

.related-articles { margin-top: 30px; }
.related-articles h3 { font-size: 16px; margin-bottom: 15px; color: #333; }
.related-articles h3 i { color: #e74c3c; margin-right: 6px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-item { font-size: 13px; color: #555; padding: 10px; background: #f9fafb; border-radius: 6px; display: flex; align-items: center; gap: 8px; transition: all 0.3s; }
.related-item:hover { background: #e74c3c; color: #fff; }
.related-dot { color: #e74c3c; }

/* ============ 通用页面样式 ============ */
.page-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.page-content h1 { font-size: 22px; margin-bottom: 20px; color: #333; }
.page-content p { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 15px; }
.page-content h2 { font-size: 18px; margin: 25px 0 15px; color: #333; }

/* ============ 底部 ============ */
.site-footer {
    background: linear-gradient(180deg, #1a1a2e, #16213e);
    color: rgba(255,255,255,0.6);
    padding: 30px 0;
    text-align: center;
}
.footer-inner { max-width: 1500px; margin: 0 auto; padding: 0 25px; }
.footer-info p { font-size: 13px; margin-bottom: 8px; }
.footer-info .icp { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-desc { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 10px; }

/* ============ 广告占位 ============ */
.ad-placeholder {
    width: 100%; height: 250px;
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
}

/* ============ 响应式 ============ */
@media (max-width: 1500px) {
    .site-wrapper { max-width: 100%; }
}

/* 平板横屏 / 小笔记本 */
@media (max-width: 1100px) {
    .home-row-3col { grid-template-columns: 1fr 1fr; }
    .home-col-left { grid-column: 1 / -1; }
    .article-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .article-columns-grid { grid-template-columns: repeat(2, 1fr); }
    .ads-grid { grid-template-columns: repeat(2, 1fr); }
    .links-body { grid-template-columns: repeat(5, 1fr); }
    .page-2col { flex-direction: column; }
    .col-sidebar { width: 100%; }
    .related-grid { grid-template-columns: 1fr; }
    .main-content { padding: 20px 15px; }
}

/* 平板竖屏 */
@media (max-width: 768px) {
    .header-top-inner { flex-direction: column; height: auto; padding: 12px 15px; gap: 10px; }
    .logo-area { width: 100%; justify-content: center; }
    .logo-icon { width: 42px; height: 42px; font-size: 20px; border-radius: 10px; }
    .logo-title { font-size: 18px; }
    .header-ads { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px; }
    .header-ad { width: 48%; height: 48px; border-radius: 4px; }
    .nav-inner { height: auto; flex-wrap: wrap; padding: 0; gap: 0; }
    .nav-list { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; padding: 0 5px; white-space: nowrap; }
    .nav-item a { padding: 12px 12px; font-size: 12px; white-space: nowrap; }
    .nav-contact { padding: 8px 12px; width: 100%; text-align: center; }
    .contact-btn { display: block; text-align: center; }
    .main-content { padding: 12px 10px; }
    .home-row-3col { grid-template-columns: 1fr; gap: 12px; }
    .carousel { height: 200px; }
    .carousel-bg { padding: 20px; }
    .carousel-bg h3 { font-size: 18px; }
    .carousel-icon { font-size: 36px; }
    .section-card { height: auto; max-height: 280px; }
    .article-cards-grid { grid-template-columns: 1fr; }
    .article-columns-grid { grid-template-columns: 1fr; gap: 12px; }
    .article-card { margin-bottom: 0; }
    .article-card-img { height: 160px; }
    .acc-img-bg { width: 100px; height: 70px; }
    .ads-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ad-card { height: 90px; }
    .links-body { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .link-item { font-size: 12px; padding: 6px 4px; }
    .article-list-item { flex-direction: column; }
    .ali-img { width: 100%; height: 160px; }
    .ali-body { padding: 14px; }
    .ali-body h3 { font-size: 16px; }
    .page-2col { flex-direction: column; gap: 15px; }
    .col-sidebar { width: 100%; }
    .article-detail { padding: 16px; }
    .article-header h1 { font-size: 20px; }
    .article-body { font-size: 14px; }
    .related-grid { grid-template-columns: 1fr; }
    .section-header-main { flex-wrap: wrap; gap: 8px; }
    .section-header-main h2 { font-size: 17px; }
    .proxy-actions { width: 100%; }
    .proxy-actions .btn-api,
    .proxy-actions .btn-refresh,
    .proxy-actions .btn-check { flex: 1; text-align: center; justify-content: center; font-size: 12px; padding: 8px 10px; }
    .breadcrumb { font-size: 12px; }
    .pagination { gap: 3px; }
    .page-btn, .page-num { padding: 6px 10px; font-size: 12px; }
    .footer-inner { padding: 0 15px; }
    .proxy-top-ads { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
}

/* 手机竖屏 */
@media (max-width: 480px) {
    .logo-link { gap: 8px; }
    .logo-icon { width: 36px; height: 36px; font-size: 18px; }
    .logo-title { font-size: 16px; }
    .logo-sub { font-size: 10px; }
    .header-ad { width: 47%; height: 40px; }
    .nav-item a { padding: 10px 8px; font-size: 11px; gap: 3px; }
    .carousel { height: 170px; }
    .carousel-bg h3 { font-size: 16px; }
    .carousel-bg p { font-size: 12px; }
    .carousel-icon { font-size: 30px; }
    .section-header h3 { font-size: 14px; }
    .section-header-main h2 { font-size: 15px; }
    .ads-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ad-card { height: 75px; }
    .links-body { grid-template-columns: repeat(2, 1fr); }
    .article-card-img { height: 130px; }
    .ali-img { height: 130px; }
    .article-detail { padding: 12px; }
    .article-header h1 { font-size: 18px; }
    .article-body { font-size: 13px; padding: 0; }
    .article-meta-bar { flex-wrap: wrap; gap: 10px; font-size: 12px; }
    .acc-img-bg { width: 80px; height: 60px; font-size: 20px; }
    .acc-title { font-size: 13px; }
    .article-column-item a { font-size: 12px; }
    .article-list-compact li a { font-size: 12px; }
    .page-content { padding: 15px; }
    .page-content h1 { font-size: 18px; }
    .page-content h2 { font-size: 16px; }
    .site-footer { padding: 20px 0; font-size: 12px; }
    .proxy-actions .btn-api,
    .proxy-actions .btn-refresh,
    .proxy-actions .btn-check { font-size: 11px; padding: 7px 6px; }
    .proxy-top-ads { gap: 6px !important; }
}

/* 代理IP表格：移动端横向滚动 */
.proxy-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.proxy-table { min-width: 700px; }

/* 通用移动端优化 */
@media (max-width: 768px) {
    .btn, button, [role="button"] { min-height: 40px; }
    a, button { -webkit-tap-highlight-color: transparent; }
    input, select, textarea { font-size: 16px; }

    /* 移动端汉堡菜单按钮 */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px; height: 36px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    .nav-toggle span {
        display: block;
        width: 100%; height: 3px;
        background: rgba(255,255,255,0.9);
        border-radius: 2px;
        transition: all 0.3s;
    }
    .nav-inner { position: relative; flex-wrap: nowrap; }
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #c0392b;
        flex-direction: column;
        padding: 0;
        z-index: 1000;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        overflow-x: visible;
        white-space: normal;
    }
    .nav-inner.nav-open .nav-list { display: flex; }
    .nav-inner.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-inner.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-inner.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .nav-item a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); white-space: normal; }
    .nav-list { display: none; }
}
@media (min-width: 769px) {
    .nav-toggle { display: none; }
    .nav-list { display: flex !important; }
}
