:root {
    --primary-green: #2db84b;
    --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;
    /* 顶层模块统一 16px 间距 */
    gap: 16px;
}

body > header,
body > section,
body > footer {
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 992px) {
    .container-sm {
        width: 760px;
    }
}

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);
}

/* ========== 顶部导航栏 ========== */
.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 {
    display: inline;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin: 0;
}

.brand-domain {
    font-size: 14px;
    color: var(--text-gray);
    margin-left: 2px;
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Menlo', monospace;
    letter-spacing: 0.3px;
}

.brand-badge {
    background-color: var(--primary-green);
    color: #fff;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: #555;
    margin-left: auto;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

.nav-links a {
    color: #555;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* ========== 搜索区 ========== */
.search-section {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 12px;
}

.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(59, 130, 246, 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;
    transition: background-color 0.15s;
}

.search-btn:hover {
    background-color: var(--primary-green-dark);
}

/* ========== 通用卡片 ========== */
.panel-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    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-title .icon {
    font-size: 18px;
}

.panel-more {
    font-size: 15px;
    color: var(--text-gray);
    text-decoration: none;
    cursor: pointer;
}

.panel-more:hover {
    color: var(--primary-green);
}

/* ========== 搜索结果列表 ========== */
.list-table {
    margin-top: 4px;
}
.list-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
}
.list-row:last-child {
    border-bottom: none;
}
.list-col-no {
    flex: 0 0 50px;
    text-align: center;
    color: #9ca3af;
}
.list-col-song {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-right: 10px;
    overflow: hidden;
}
.list-col-song .song-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: var(--text-dark);
}
.list-col-song .song-artist {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-col-dl {
    flex: 0 0 58px;
    text-align: right;
}
.dl-btn {
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    background: #fff;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}
.dl-btn:hover {
    background: var(--primary-green);
    color: #fff;
}
.dl-btn.dl-active {
    background: var(--primary-green);
    color: #fff;
}
.list-col-play {
    flex: 0 0 58px;
    text-align: right;
    margin-right: 4px;
}
.play-btn {
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    background: #fff;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}
.play-btn:hover {
    background: var(--primary-green);
    color: #fff;
}

/* ========== 播放器 ========== */
.player-row {
    display: block;
    padding: 10px 0;
}
.aplayer-mount {
    border-radius: 6px;
    overflow: hidden;
}
.list-col-empty {
    flex: 1;
    text-align: center;
    color: #9ca3af;
    padding: 20px 0;
}
.text-gray {
    color: #9ca3af;
    margin-right: 6px;
}
.search-count {
    font-size: 13px;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 2px 10px;
    border-radius: 12px;
}

/* ========== 热门搜索 ========== */
.hot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.hot-links a {
    font-size: 14px;
    color: var(--text-gray);
}

.hot-links a:hover {
    color: var(--primary-green);
}

/* ========== 黑色页脚 ========== */
.site-footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 32px 16px 20px;
    margin-top: auto;
    font-size: 13px;
    line-height: 1.7;
}

.site-footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: var(--primary-green);
}

.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-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);
}

.footer-copy {
    color: #6b7280;
}

.footer-contact {
    color: #6b7280;
}

.footer-contact a {
    color: #6b7280;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 16px 14px;
    }

    .footer-top {
        display: none !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 4px !important;
        padding-top: 0 !important;
        border: none !important;
        font-size: 11.5px !important;
    }

    /* 导航栏移动端适配 */
    .site-header .container-sm {
        flex-wrap: nowrap;
        gap: 6px 10px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .brand-domain,
    .brand-badge {
        display: none;
    }

    .nav-links {
        font-size: 13px;
        gap: 8px;
    }

    /* 搜索结果列表移动端适配（保留播放/下载按钮，仅收窄） */
    .list-col-dl {
        flex: 0 0 48px !important;
    }

    .dl-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .list-col-play {
        flex: 0 0 48px !important;
        margin-right: 4px;
    }

    .play-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 12px;
    }
}

/* ========== 下载弹窗（夸克网盘 / 口令校验） ========== */
.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);
}
