:root {
    --primary-green: #d841d2;
    --primary-green-dark: color-mix(in srgb, #357fe9 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 flex 模式下，直接子元素保持块级特性，避免被压缩/变形 */
body > header,
body > section,
body > footer {
    flex-shrink: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .mt-max-sm-3 {
        margin-top: 1rem !important;
    }
}

@media (min-width: 992px) {
    .container-sm {
        width: 910px;
    }
}

@media (min-width: 1200px) {
    .container-sm {
        width: 910px;
    }
}

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);
}

.fs-11 {
    font-size: 1.25rem !important;
}

.fs-10 {
    font-size: 1rem !important;
}

.fs-9 {
    font-size: 0.9rem !important;
}

.fs-8 {
    font-size: 0.8rem !important;
}

.fs-7 {
    font-size: 0.75rem !important;
}

/* ========== 顶部导航栏 ========== */
.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, #515151 30%, transparent);
}
.site-header .container-sm {
    max-width: 910px;
    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-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: #515151;
    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);
}

.nav-dot {
    color: #999;
}

.music-box-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ff4d4f;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 2px;
}

/* ========== 搜索区 ========== */
.search-section {
    max-width: 910px;
    margin: 0 auto;
    padding: 12px 12px 0;
}

.search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #0f3b7a;
    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: #407de3;
    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 {
    max-width: 910px;
    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-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);
}

/* ========== 热门搜索标签 ========== */
.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; }

.download-tip {
    font-size: 14px;
    color: var(--primary-green);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-gray);
}

/* ========== 网友们在听 ========== */
.listen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
}

.listen-grid > div {
    min-width: 0;
}

@media (max-width: 640px) {
    .listen-grid {
        grid-template-columns: 1fr;
    }
}

.listen-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
}

.listen-item:last-child {
    border-bottom: none;
}

.listen-song {
    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;
    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;
}

/* ========== 榜单区域（两列） ========== */
/* 文章标题下划线样式 */
.title-underline {
    border-bottom: 1px solid #f3f4f6; /* 灰色下划线，与Bootstrap主题色一致 */
    padding-bottom: 2px; /* 调整间距，避免文字与下划线过于紧密 */
    display: inline-block; /* 确保下划线只覆盖文字宽度 */
}
.charts-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 910px;
    margin: 14px auto 30px;
    padding: 0 12px;
}

@media (max-width: 640px) {
    .charts-wrap {
        grid-template-columns: 1fr;
    }
}

.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;
}

/* ========== 黑色页脚 ========== */
.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: 910px;
    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-artist {
        flex: 0 0 80px !important;
    }

    .list-col-no {
        flex: 0 0 36px !important;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .list-col-artist {
        display: none !important;
    }
}
.qa-sdk-wrapper {
  position: fixed;
  width: 400px;
  right: -600px;
  max-height: 530px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease-in-out;
  background: #fff;
}

.qa-sdk-close-btn {
  display: inline-block;
  width: 18px;
  height: 18px;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 16px;
}

.qa-sdk-close-btn:hover {
  border-radius: 50%;
  background-color: #d5d9df;
}

#qa-sdk-iframe {
  width: 400px;
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .qa-sdk-wrapper{
    width: 356px;
  }
  #qa-sdk-iframe {
    width: 356px;
  }
}    