:root {
    /* ===== 品牌主色：站群换色只改这一行，变量名保持不变 ===== */
    --primary-green: #3b82f6;
    --primary-green-dark: color-mix(in srgb, var(--primary-green) 80%, #000);
    --primary-soft: color-mix(in srgb, var(--primary-green) 10%, transparent);
    --primary-ring: color-mix(in srgb, var(--primary-green) 15%, transparent);
    --accent-blue: var(--primary-green);
    --accent-blue-dark: var(--primary-green-dark);

    /* ===== 中性色：页面底色 / 文字层级 / 分隔线 ===== */
    --bg-page: #ffffff;
    --bg-hover: #f5f5f5;
    --text-title: #333333;
    --text-body: #374151;
    --text-strong: #1f2937;
    --text-muted: #6b7280;
    --text-faint: #9ca3af;
    --line: #e5e7eb;
    --line-soft: #f3f4f6;
    --field-line: #dddddd;
    --overlay: rgba(0, 0, 0, 0.45);

    /* ===== 语义色 ===== */
    --danger: #ef4444;
    --rank-1: #ef4444;
    --rank-2: #f97316;
    --rank-3: #eab308;
    --rank-n: #9ca3af;

    /* ===== 热搜标签色 ===== */
    --tag-blue: #3b82f6;
    --tag-orange: #f97316;
    --tag-green: #22c55e;
    --tag-red: #ef4444;
    --tag-purple: #a855f7;
    --tag-pink: #ec4899;
    --tag-teal: #14b8a6;
    --tag-yellow: #d97706;
    --tag-indigo: #6366f1;
    --tag-gray: #6b7280;

    /* ===== 页脚（深色区，独立成组） ===== */
    --footer-bg: #1f2937;
    --footer-line: #374151;
    --footer-strong: #f3f4f6;
    --footer-text: #9ca3af;
    --footer-muted: #6b7280;

    /* ===== 兼容旧变量 ===== */
    --border-gray: var(--line);
    --text-gray: var(--text-muted);
    --text-dark: var(--text-strong);

    /* ===== 内容区宽度：宽屏锁定对齐，窄屏各自自适应 ===== */
    --content-max: 760px;
    --content-gutter: 12px;
}
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
    font-size: 16px; background-color: var(--bg-page); color: var(--text-strong);
    margin: 0; padding: 0; line-height: 1.5; min-height: 100vh;
    display: flex; flex-direction: column;
}
body > header, body > section, body > footer { flex-shrink: 0; width: 100%; }
a { color: var(--text-title); text-decoration: none; }
a:hover { color: var(--primary-green); text-decoration: none; }
.song-title { word-break: break-all; color: var(--text-title); }
.song-title:hover { color: var(--primary-green); }
.link-blue { color: var(--primary-green); }
.link-blue:hover { color: var(--primary-green-dark); }

/* 顶部导航 */
.site-header {
    background-color: var(--bg-page); padding: 10px 0; border-bottom: none;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 4px color-mix(in srgb, var(--primary-green) 30%, transparent);
}
.site-header .container-sm {
    max-width: 760px; margin: 0 auto; display: flex; align-items: center;
    justify-content: space-between; padding: 0 12px;
}
.brand-wrap { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.brand-logo { width: 36px; height: 36px; border-radius: 6px; object-fit: contain; display: block; }
.brand-name { font-size: 22px; font-weight: bold; color: var(--text-title); line-height: 1; margin: 0; }
.brand-badge {
    background-color: var(--primary-green); color: #fff; font-size: 13px;
    padding: 2px 8px; border-radius: 10px; margin-left: 4px; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text-muted); margin-left: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; }
.nav-links a:hover { color: var(--primary-green); }

/* 搜索框上方 Banner */
.banner-section { max-width: var(--content-max); margin: 0 auto; padding: var(--content-gutter) var(--content-gutter) 0; }
.banner-section img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 3px; }

/* 搜索区 */
.search-section { max-width: var(--content-max); margin: 0 auto; padding: var(--content-gutter) var(--content-gutter) 0; }
.search-guide { font-size: 15px; font-weight: normal; color: var(--text-muted); text-align: center; margin: 0 0 10px; }
.search-input {
    width: 100%; height: 42px; border: 1px solid var(--accent-blue);
    border-radius: 3px; padding: 0 16px; font-size: 16px; color: var(--text-title);
    outline: none; text-align: center; box-sizing: border-box;
}
.search-input:focus { border-color: var(--accent-blue-dark); box-shadow: 0 0 0 2px var(--primary-ring); }
.search-input::placeholder { color: var(--text-faint); }
.search-btn {
    width: 100%; height: 42px; margin-top: 8px; background-color: var(--primary-green);
    color: #fff; border: none; border-radius: 3px; font-size: 17px; font-weight: 500;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.search-btn:hover { background-color: var(--primary-green-dark); }

/* 通用卡片 */
.panel-card { max-width: 760px; margin: 14px auto 0; padding: 0 12px; }
.panel-inner { border: 1px solid var(--line); border-radius: 6px; background-color: var(--bg-page); padding: 14px 16px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: bold; color: var(--text-title); margin: 0; }
.page-h1 { font-size: 18px; font-weight: bold; color: var(--text-title); margin: 0 0 12px; text-align: center; }
.panel-more { font-size: 15px; color: var(--text-muted); text-decoration: none; cursor: pointer; }
.panel-more:hover { color: var(--primary-green); }

/* 热搜标签 */
.hot-tags-wrap { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 2px 0 6px; }
.hot-tag { font-size: 14.5px; line-height: 1.8; text-decoration: none; }
.hot-tag.c-blue { color: var(--tag-blue); } .hot-tag.c-orange { color: var(--tag-orange); }
.hot-tag.c-green { color: var(--tag-green); } .hot-tag.c-red { color: var(--tag-red); }
.hot-tag.c-purple { color: var(--tag-purple); } .hot-tag.c-pink { color: var(--tag-pink); }
.hot-tag.c-teal { color: var(--tag-teal); } .hot-tag.c-yellow { color: var(--tag-yellow); }
.hot-tag.c-indigo { color: var(--tag-indigo); } .hot-tag.c-gray { color: var(--tag-gray); }
.hot-tag:hover { text-decoration: underline; }

/* 列表 */
.listen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.listen-grid > div { min-width: 0; }
.listen-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; min-width: 0; }
.listen-item:last-child { border-bottom: none; }
.listen-song { display: block; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; margin-right: 10px; }
.listen-song:hover { color: var(--primary-green); text-decoration: underline; }
.listen-time { flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; background-color: var(--primary-soft); color: var(--primary-green); font-size: 13px; padding: 1px 7px; border-radius: 3px; white-space: nowrap; }

/* 榜单 */
.charts-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 14px auto 30px; padding: 0 12px; }
.chart-card { border: 1px solid var(--line); border-radius: 6px; background-color: var(--bg-page); padding: 14px 16px; }
.chart-item { display: flex; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.chart-item:last-child { border-bottom: none; }
.chart-rank { flex-shrink: 0; width: 22px; height: 22px; border-radius: 4px; text-align: center; line-height: 22px; font-size: 13px; font-weight: bold; color: #fff; margin-right: 10px; }
.rank-1 { background-color: var(--rank-1); } .rank-2 { background-color: var(--rank-2); }
.rank-3 { background-color: var(--rank-3); color: var(--text-title); } .rank-n { background-color: var(--rank-n); }
.chart-song { flex: 1; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-song:hover { color: var(--primary-green); text-decoration: underline; }

/* 搜索结果列表 */
.list-row { display: flex; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.list-row:last-child { border-bottom: none; }
.list-col-no { flex: 0 0 32px; color: var(--text-muted); }
.list-col-song { flex: 1; min-width: 0; }
.list-col-song a { color: var(--text-strong); }
.list-col-song a:hover { color: var(--primary-green); }
.list-col-artist { flex: 0 0 140px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-col-artist a { color: var(--text-muted); }
.list-col-empty { color: var(--text-muted); padding: 20px 4px; }

/* 歌手云 */
.tags { line-height: 2; }
.tags a { display: inline-block; padding: 4px 10px; margin: 0 6px 6px 0; border: 1px solid var(--field-line); color: var(--text-title); text-decoration: none; font-size: 13px; }
.tags a:hover { background: var(--bg-hover); }
.tags a .count { color: var(--text-faint); font-size: 11px; margin-left: 4px; }

/* 播放页 */
.player-wrap { margin: 0 0 16px 0; }
#aplayer { border-radius: 6px; overflow: hidden; }
.lyric-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.download-hint { font-size: 13px; color: var(--text-faint); flex: 1; min-width: 120px; }
.action-btns { display: flex; gap: 10px; }
.btn-link { display: inline-block; padding: 6px 16px; font-size: 14px; color: var(--primary-green); border: 1px solid var(--primary-green); border-radius: 3px; background-color: var(--bg-page); cursor: pointer; text-decoration: none; }
.btn-link:hover { background-color: var(--primary-green); color: #fff; text-decoration: none; }
.lyric-content { font-size: 15px; line-height: 2; color: var(--text-body); white-space: normal; word-break: break-word; }
.lyric-content p { margin: 0 0 6px; }

/* 下载弹窗 */
.xc_wsee_clear { clear: both; }
.xc_wsee_clear:after { clear: both; display: table; content: " "; }
.xc_wsee_load {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    text-align: center;
    background-color: var(--overlay);
    z-index: 999999;
}
.xc_wsee_load .xc_wsee_alert {
    width: 100%;
    max-width: 300px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-page);
    padding: 20px 10px;
    border-radius: 5px;
}
.xc_wsee_load .xc_wsee_atip {
    font-size: 12px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    box-sizing: border-box;
    padding-top: 2.5px;
}
.xc_wsee_load .xc_wsee_atip > div {
    display: inline-block;
    user-select: none;
}
.xc_wsee_load .xc_wsee_atip img {
    width: 25px;
    height: 25px;
    float: left;
    display: inline-block;
}
.xc_wsee_load .xc_wsee_atip span {
    font-size: 16px;
    float: left;
    height: 25px;
    line-height: 25px;
    font-weight: bold;
    color: var(--danger);
}
.xc_wsee_load .xc_wsee_atip span i {
    color: var(--danger);
    font-weight: bold;
    margin: 0 0 0 5px;
}
.xc_wsee_load .xc_wsee_aimg {
    padding: 20px;
}
.xc_wsee_load .xc_wsee_aimg img {
    width: 180px;
    height: 180px;
    max-width: 100%;
}
.xc_wsee_load .xc_wsee_keys {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.xc_wsee_load .xc_wsee_keys i {
    color: var(--danger);
    font-style: normal;
    font-weight: bold;
}
.xc_wsee_load .xc_wsee_apst {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 250px;
    margin: 0 auto;
    box-sizing: border-box;
}
.xc_wsee_load .xc_wsee_apst input {
    flex: 1;
    height: 36px;
    border: 1px solid var(--primary-green);
    border-radius: 3px;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}
.xc_wsee_load .xc_wsee_apst button {
    height: 36px;
    padding: 0 16px;
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
}
.xc_wsee_load .xc_wsee_apst button:hover {
    background-color: var(--primary-green-dark);
}
.xc_wsee_load .xc_wsee_close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--bg-page);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* 页脚 */
.site-footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 32px 16px 20px; margin-top: auto; font-size: 13px; line-height: 1.7; }
.footer-inner { max-width: 760px; margin: 0 auto; padding: 0 12px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--footer-line); }
.footer-brand-col { flex: 1; min-width: 200px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-brand .brand-logo { width: 30px; height: 30px; border-radius: 4px; }
.footer-brand-name { font-size: 16px; font-weight: bold; color: var(--footer-strong); }
.footer-desc { color: var(--footer-muted); font-size: 12.5px; max-width: 320px; }
.footer-links-col { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links-col h4 { color: var(--footer-strong); font-size: 13px; font-weight: bold; margin: 0 0 12px 0; }
.footer-links-col ul { list-style: none; margin: 0; padding: 0; }
.footer-links-col li { margin-bottom: 8px; }
.footer-links-col a { font-size: 13px; color: var(--footer-text); }
.footer-links-col a:hover { color: var(--primary-green); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 16px; font-size: 12px; color: var(--footer-muted); }
.footer-bottom a { color: var(--footer-muted); } .footer-bottom a:hover { color: var(--primary-green); }
/* 友情链接 */
.site-friends { border-top: 1px solid var(--border-gray); padding: 18px 16px; }
.site-friends-inner { max-width: 760px; margin: 0 auto; padding: 0 12px; }
.site-friends h4 { margin: 0 0 10px 0; font-size: 14px; font-weight: bold; color: var(--text-dark); }
.friend-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.friend-links a { font-size: 13px; color: var(--text-gray); }
.friend-links a:hover { color: var(--primary-green); }

.empty-tip { color: var(--text-muted); text-align: center; padding: 30px 0; }

@media (max-width: 640px) {
    .listen-grid { grid-template-columns: 1fr; }
    .charts-wrap { grid-template-columns: 1fr; }
    .list-col-artist { display: none; }
    .brand-badge { display: none; }
    .brand-name { font-size: 16px; }
    .nav-links { gap: 9px; font-size: 12.5px; }
}
