:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-sub: #b0b0b0;
    --accent: #00d2ff;
    --accent-grad: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    width: 100%;
    max-width: 1000px;
    padding: 50px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.search-box {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    width: 60%;
    border: 1px solid #333;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    width: 100%;
    outline: none;
    margin-left: 10px;
}

#clock { font-size: 1.8rem; font-weight: 300; letter-spacing: 2px; }

/* 响应式自适应布局 */
main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; 
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

.area-divider {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 40px 0 10px;
}

.area-divider h2 {
    font-size: 1.4rem;
    margin: 0 20px;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.area-divider::before, .area-divider::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, #444, transparent);
}

.category-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #2a2a2a;
    width: calc(33.33% - 20px);
    min-width: 300px;
    position: relative;
    transition: border-color 0.3s;
}

.category-title {
    display: flex; align-items: center;
    margin-bottom: 15px; font-size: 1.1rem; color: var(--accent);
}

.link-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* 按钮点击效果 */
.link-item {
    text-decoration: none;
    color: var(--text-sub);
    background: #252525;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.link-item:hover { background: #2a2a2a; border-color: var(--accent); }

/* 详情弹出窗样式 */
.detail-popup {
    position: fixed;
    z-index: 1000;
    background: #252525;
    border: 1px solid var(--accent);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 280px;
}

.detail-popup.active { pointer-events: auto; opacity: 1; transform: scale(1); }

.popup-title { font-size: 1.3rem; font-weight: bold; color: var(--accent); margin-bottom: 10px; }
.popup-desc { font-size: 0.85rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 20px; }

/* 渐显按钮 */
.go-btn {
    display: block;
    text-align: center;
    background: var(--accent-grad);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.2s;
}

.detail-popup.active .go-btn { opacity: 1; transform: translateY(0); }

.popup-mask {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: none; z-index: 999;
}

/* 境外专区马赛克 */
.mosaic-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 30, 30, 0.8); backdrop-filter: blur(15px);
    display: flex; justify-content: center; align-items: center;
    border-radius: 12px; z-index: 10;
}

/* 免责弹窗 */
.modal-mask {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: none;
    justify-content: center; align-items: center; z-index: 9999;
}

.modal-content {
    background: #1e1e1e; padding: 35px; border-radius: 20px;
    max-width: 500px; width: 90%; border: 1px solid var(--accent);
    transform: scale(0); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-mask.show .modal-content { transform: scale(1); }
