:root {
    --primary-green: #45d376;
    --primary-green-dark: color-mix(in srgb, var(--primary-green) 80%, #000);
    --accent-blue: var(--primary-green);
    --accent-blue-dark: var(--primary-green-dark);
    --border-gray: #e5e7eb;
    --text-gray: #6b7280;
    --text-dark: #1f2937;
}
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
    font-size: 16px; background-color: #fff; color: var(--text-dark);
    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: #444; text-decoration: none; }
a:hover { color: var(--primary-green); text-decoration: none; }
.song-title { word-break: break-all; color: #444; }
.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: #fff; 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: #333; line-height: 1; }
.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: #555; margin-left: auto; }
.nav-links a { color: #555; text-decoration: none; }
.nav-links a:hover { color: var(--primary-green); }

/* 搜索区 */
.search-section { max-width: 760px; margin: 0 auto; padding: 12px 12px 0; }
.search-input {
    width: 100%; height: 42px; border: 1px solid var(--accent-blue);
    border-radius: 3px; padding: 0 16px; font-size: 16px; color: #333;
    outline: none; text-align: center; box-sizing: border-box;
}
.search-input:focus { border-color: var(--accent-blue-dark); box-shadow: 0 0 0 2px rgba(69,211,118,0.15); }
.search-input::placeholder { color: #9ca3af; }
.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(--border-gray); border-radius: 6px; background-color: #fff; 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(--border-gray); }
.panel-title { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: bold; color: #333; }
.panel-more { font-size: 15px; color: var(--text-gray); 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: #3b82f6; } .hot-tag.c-orange { color: #f97316; }
.hot-tag.c-green { color: #22c55e; } .hot-tag.c-red { color: #ef4444; }
.hot-tag.c-purple { color: #a855f7; } .hot-tag.c-pink { color: #ec4899; }
.hot-tag.c-teal { color: #14b8a6; } .hot-tag.c-yellow { color: #d97706; }
.hot-tag.c-indigo { color: #6366f1; } .hot-tag.c-gray { color: #6b7280; }
.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 #f3f4f6; font-size: 15px; min-width: 0; }
.listen-item:last-child { border-bottom: none; }
.listen-song { display: block; color: #374151; 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: color-mix(in srgb, var(--primary-green) 10%, transparent); 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(--border-gray); border-radius: 6px; background-color: #fff; padding: 14px 16px; }
.chart-item { display: flex; align-items: center; padding: 7px 0; border-bottom: 1px solid #f3f4f6; 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: #ef4444; } .rank-2 { background-color: #f97316; }
.rank-3 { background-color: #eab308; color: #333; } .rank-n { background-color: #9ca3af; }
.chart-song { flex: 1; color: #374151; 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 #f3f4f6; font-size: 15px; }
.list-row:last-child { border-bottom: none; }
.list-col-no { flex: 0 0 32px; color: var(--text-gray); }
.list-col-song { flex: 1; min-width: 0; }
.list-col-song a { color: #1f2937; }
.list-col-song a:hover { color: var(--primary-green); }
.list-col-artist { flex: 0 0 140px; color: var(--text-gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-col-artist a { color: var(--text-gray); }
.list-col-empty { color: var(--text-gray); padding: 20px 4px; }

/* 歌手云 */
.tags { line-height: 2; }
.tags a { display: inline-block; padding: 4px 10px; margin: 0 6px 6px 0; border: 1px solid #ddd; color: #444; text-decoration: none; font-size: 13px; }
.tags a:hover { background: #f5f5f5; }
.tags a .count { color: #999; 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 #e5e7eb; }
.download-hint { font-size: 13px; color: #9ca3af; 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: #fff; 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: #374151; 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: rgba(0, 0, 0, 0.45);
    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: #fff;
    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: #f00;
}
.xc_wsee_load .xc_wsee_atip span i {
    color: red;
    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: #555;
    margin-bottom: 12px;
}
.xc_wsee_load .xc_wsee_keys i {
    color: #ff4d4f;
    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: #fff;
    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: #1f2937; color: #9ca3af; 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 #374151; }
.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: #f3f4f6; }
.footer-desc { color: #6b7280; font-size: 12.5px; max-width: 320px; }
.footer-links-col { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links-col h4 { color: #f3f4f6; 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: #9ca3af; }
.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: #6b7280; }
.footer-bottom a { color: #6b7280; } .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-gray); 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; }
}
