/* ========== 全局 ========== */
body {
    margin: 0;
    background: #111;
    color: #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ========== 顶部区域 ========== */
.site-header {
    background: #1a1a1a;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
/*背景渐变*/
.logo {
    font-size: 1.0rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    min-width: 80px;
    padding: 6px 16px;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff6b6b, #feca57, #aadbfb, #ff9ff3);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    display: inline-block;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/*文字渐变
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    min-width: 80px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}*/
.search-form {
    display: flex;
    flex: 1;
    max-width: 300px;
    margin-left: 10px;
}
.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #444;
    background: #222;
    color: #eee;
    border-radius: 4px 0 0 4px;
    outline: none;
    min-width: 0;
}
.search-form button {
    padding: 8px 16px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    white-space: nowrap;
}

/* 底部区域 */
.site-footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}
.friend-links {
    margin: 15px 0 10px;
    font-size: 0.85rem;
    color: #888;
}
.links-title {
    color: #aaa;
    margin-right: 10px;
}
.friend-links a {
    color: #888;
    text-decoration: none;
    margin: 0 8px;
}
.friend-links a:hover {
    color: #0f0;
}
.copyright {
    color: #555;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* 地区 Tab（已移至顶部） */
.region-tabs {
    display: flex;
    gap: 0px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0px 0;
    justify-content: center;
    margin-top: 0px;
}
.region-tabs::-webkit-scrollbar {
    display: none;
}
.region-tab {
    flex: 0 0 auto;
    padding: 5px 12px;
    background: #222;
    color: #aaa;
    text-decoration: none;
    border-radius: 25px;
    white-space: nowrap;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: 0.2s;
}
.region-tab.active {
    background: #0f0;
    color: #000;
    font-weight: bold;
}
.region-tab:active {
    transform: scale(0.95);
}

/* 手机头部适配 */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: nowrap;
    }
    .search-form {
        max-width: 100%;
        margin-left: 10px;
    }
    .search-form input {
        font-size: 16px;
    }
    .region-tabs {
        justify-content: flex-start;
    }
    .friend-links a {
        display: inline-block;
        margin: 5px 8px;
    }
}