@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_Sans_SC_Black.woff2') format('woff2'),
         url('../fonts/HarmonyOS_Sans_SC_Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_Sans_SC_Regular.woff2') format('woff2'),
         url('../fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

body {
    font-family: 'HarmonyOS Sans SC', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    color: #3360AB;
    text-align: center;
}

/* 导航栏 */
nav {
    background: #3360AB;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 32px;
}
nav .brand {
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    margin-right: 36px;
    letter-spacing: 2px;
}
nav .brand:hover {
    color: #fff;
}
nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 900;
    margin-right: 28px;
    font-size: 15px;
    transition: color 0.2s;
}
nav a:hover {
    color: #fff;
}
.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 0;
}
.search-form input {
    margin-left: 20px;
    width: 240px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px 0 0 6px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.search-form input::placeholder {
    color: rgba(255,255,255,0.5);
}
.search-form input:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}
.search-form button {
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 0 6px 6px 0;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    box-sizing: border-box;
    margin-left: -1px;
}
.search-form button:hover {
    background: rgba(255,255,255,0.3);
}

/* 列表 */
li {
    display: flex;
    align-items: center;
}
ul {
    list-style: none;
    padding: 0;
}

/* 歌曲卡片网格（两栏） */
.song-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 40px;
}
.song-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #dce4f2;
    border-radius: 8px;
    gap: 16px;
    max-width: 45vw;
    transition: box-shadow 0.2s;
}
.song-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.song-card-num {
    font-weight: 900;
    font-size: 40px;
    color: #8aaddd;
    min-width: 50px;
    text-align: right;
    flex-shrink: 0;
    margin-right: 8px;
}
.song-card-img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 8px;
}
.song-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}
.song-card-title {
    font-weight: 900;
    font-size: 24px;
    color: #3360AB;
    text-decoration: none;
    white-space: nowrap;
    max-width: 600px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-card-title:hover {
    color: #1e4180;

}
.song-card-singers {
    max-width: 600px;
    font-size: 16px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-card-singers a {
    color: #888;
    text-decoration: none;
}
.song-card-singers a:hover {
    color: #3360AB;
}

/* 歌曲详情卡片 */
.song-detail {
    display: flex;
    gap: 56px;
    padding: 24px 40px;
    margin: 0 auto 24px;
    align-items: flex-start;
    justify-content: center;
    max-width: 80vw;
}
.song-detail-img {
    width: 320px;
    height: 320px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.song-detail-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-left: 2px solid #3360AB;
    padding-left: 56px;
}
.song-detail-title {
    font-weight: 900;
    font-size: 96px;
    color: #3360AB;
    line-height: 1;
    margin-bottom: 30px;
}
.song-detail-source {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 20px;
}
.song-detail-source a {
    color: #888;
    text-decoration: none;
}
.song-detail-source a:hover {
    color: #3360AB;
}
.song-detail-singers {
    font-weight: 900;
    font-size: 20px;
    color: #555;
    line-height: 1.3;
}
.song-detail-singers a {
    color: #555;
    text-decoration: none;
}
.song-detail-singers a:hover {
    color: #3360AB;
}
.song-player {
    margin-top: 36px;
    margin-left: 0;
    display: block;
    border: none;
}

/* 歌手详情卡片 */
.singer-profile {
    display: flex;
    gap: 56px;
    padding: 24px 40px;
    margin: 0 auto 32px;
    align-items: flex-start;
    max-width: 70vw;
}
.singer-profile-img {
    width: 320px;
    height: 320px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.singer-profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-left: 2px solid #3360AB;
    padding-left: 56px;
}
.singer-profile-name {
    font-weight: 900;
    font-size: 96px;
    color: #3360AB;
    line-height: 1;
    margin-bottom: 30px;
}
.singer-profile-source {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 20px;
}
.singer-profile-source a {
    color: #888;
    text-decoration: none;
}
.singer-profile-source a:hover {
    color: #3360AB;
}
.singer-profile-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

/* 歌词 */
.lyrics {
    text-align: center;
    max-width: 80vw;
    margin: 32px auto;
    padding: 0 24px;
    font-size: 16px;
    color: #444;
    column-gap: 48px;
    column-rule: 1px solid #dce4f2;
}
.lyric-line {
    display: block;
    line-height: 2;
    transition: all 0.1s;
    cursor: default;
    break-inside: avoid;
}
.lyric-line:hover {
    font-weight: 900;
    color: #3360AB;
}

/* 搜索 Tab 切换 */
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}
.search-tab {
    display: inline-block;
    padding: 8px 32px;
    border: 1px solid #3360AB;
    background: #fff;
    color: #3360AB;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.15s;
    width: 100px;
    text-align: center;
}
.search-tab:first-child {
    border-radius: 6px 0 0 6px;
    border-right: none;
}
.search-tab:last-child {
    border-radius: 0 6px 6px 0;
}
.search-tab:hover {
    background: #e8eef7;
}
.search-tab.active {
    background: #3360AB;
    color: #fff;
    font-weight: 900;
}

/* 标签切换 */
.tab-nav button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}
.tab-nav button.active {
    background: #fff;
    border-bottom: 2px solid #3360AB;
    font-weight: 900;
}
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 分页 */
.pagination {
    margin-top: 32px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: #555;
    transition: all 0.15s;
}
.pagination a:hover {
    background: #e8eef7;
    color: #3360AB;
}
.pagination .disabled {
    color: #ccc;
}
.pagination .current-page {
    background: #3360AB;
    color: #fff;
    font-weight: 900;
}
.page-jump {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}
.page-jump input {
    width: 48px;
    height: 34px;
    border: 1px solid #dce4f2;
    border-radius: 4px;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    color: #555;
}
.page-jump input:focus {
    outline: none;
    border-color: #3360AB;
}
.page-jump button {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #3360AB;
    border-radius: 4px;
    background: #3360AB;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    margin-left: 4px;
    transition: background 0.15s;
}
.page-jump button:hover {
    background: #1e4180;
    border-color: #1e4180;
}

/* 歌手卡片网格 */
.singer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0 40px;
}
.singer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px 16px 32px;
    border: 1px solid #dce4f2;
    border-radius: 8px;
    text-decoration: none;
    color: #3360AB;
    transition: box-shadow 0.2s;
    gap: 12px;
}
.singer-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.singer-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}
.singer-card-name {
    font-weight: 900;
    font-size: 20px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 评论列表 */
.comment-list {
    max-width: 70vw;
    margin: 0 auto;
}
.comment-card {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f2;
}
.comment-card:last-child {
    border-bottom: none;
}
.comment-meta {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 240px;
    text-align: right;
    padding-right: 20px;
}
.comment-name {
    font-weight: 900;
    font-size: 22px;
    color: #3360AB;
    line-height: 1.6;
    overflow-wrap: break-word;
    text-wrap: balance;
}
.comment-date {
    font-weight: 400;
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}
.comment-divider {
    width: 2px;
    background: #dce4f2;
    flex-shrink: 0;
    align-self: stretch;
    margin-right: 20px;
}
.comment-body {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    flex: 1;
    min-width: 0;
}
.comment-delete-form {
    flex-shrink: 0;
    margin-left: 12px;
}

/* 底部固定评论输入栏 */
.comment-form-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51,96,171,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(51,96,171,0.12);
    padding: 16px 0;
    z-index: 100;
}
.comment-form-label {
    max-width: 56vw;
    margin: 0 auto 10px;
    text-align: center;
    font-weight: 900;
    font-size: 18px;
    color: #3360AB;
}
.comment-form-bar form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 56vw;
    margin: 0 auto;
}
.comment-nickname-input {
    width: 100px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dce4f2;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    outline: none;
    box-shadow: none;
    flex-shrink: 0;
    box-sizing: border-box;
}
.comment-nickname-input:focus {
    border-color: #3360AB;
    box-shadow: none;
}
.comment-form-bar textarea {
    flex: 1;
    height: 38px;
    padding: 9px 12px;
    border: 1px solid #dce4f2;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    outline: none;
    box-shadow: none;
    resize: none;
    box-sizing: border-box;
}
.comment-form-bar textarea:focus {
    border-color: #3360AB;
    box-shadow: none;
}
.comment-form-bar button {
    height: 38px;
    padding: 0 24px;
    background: #3360AB;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: none;
    transition: background 0.15s;
}
.comment-form-bar button:hover {
    background: #1e4180;
}
.comment-anon-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}
.comment-anon-label input {
    margin: 0;
}

/* 导航栏用户 */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.nav-user {
    color: #fff;
    font-weight: 900;
    margin-right: 28px;
}
.nav-auth a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 900;
    margin-right: 28px;
    font-size: 15px;
    transition: color 0.2s;
}
.nav-auth a:hover {
    color: #fff;
}
.nav-auth a:last-child {
    margin-right: 0;
}

/* 登录/注册卡片 */
.auth-card {
    max-width: 380px;
    margin: 80px auto;
    padding: 40px;
    border: 1px solid #dce4f2;
    border-radius: 12px;
    text-align: center;
}
.auth-title {
    font-weight: 900;
    font-size: 28px;
    color: #3360AB;
    margin-bottom: 24px;
}
.auth-error {
    color: #e33;
    font-size: 14px;
    margin-bottom: 16px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-form input {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #dce4f2;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    outline: none;
}
.auth-form input:focus {
    border-color: #3360AB;
}
.auth-form button {
    height: 42px;
    background: #3360AB;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.15s;
}
.auth-form button:hover {
    background: #1e4180;
}
.auth-link {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}
.auth-link a {
    color: #3360AB;
    text-decoration: none;
    font-weight: 900;
}
.auth-link a:hover {
    text-decoration: underline;
}

/* 收藏按钮 */
.song-detail-left,
.singer-profile-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}
.fav-form {
    display: flex;
}
.fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 4px 10px;
    border: 1px solid #dce4f2;
    border-radius: 6px;
    background: #fff;
    color: #888;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.fav-btn:hover {
    border-color: #3360AB;
    color: #3360AB;
}
.fav-btn.favorited {
    border-color: #3360AB;
    color: #3360AB;
    background: #e8eef7;
}
.fav-icon {
    display: block;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
}

/* 个人主页 */
.profile-avatar-placeholder {
    width: 320px;
    height: 320px;
    border-radius: 8px;
    background: #e8eef7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-avatar-placeholder::after {
    content: "暂无头像";
    color: #8aaddd;
    font-size: 20px;
    font-weight: 900;
}
.profile-edit-link {
    display: inline-block;
    margin-top: 16px;
    color: #3360AB;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
}
.profile-edit-link:hover {
    text-decoration: underline;
}
.profile-file-label {
    font-size: 14px;
    color: #888;
    text-align: left;
}
.profile-file-label input {
    border: none;
    padding: 0;
}
.auth-form textarea {
    padding: 10px 14px;
    border: 1px solid #dce4f2;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    outline: none;
    resize: vertical;
}
.auth-form textarea:focus {
    border-color: #3360AB;
}

/* 个人主页评论卡片 */
.profile-comment-card {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border: 1px solid #dce4f2;
    border-radius: 8px;
    text-decoration: none;
    gap: 16px;
    transition: box-shadow 0.2s;
}
.profile-comment-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.profile-comment-card .song-card-info {
    width: 340px;
    flex-shrink: 0;
}
.profile-comment-card .song-card-title {
    max-width: 100%;
}
.profile-comment-card .song-card-singers {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-comment-divider {
    width: 2px;
    background: #dce4f2;
    align-self: stretch;
    flex-shrink: 0;
}
.profile-comment-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.profile-comment-text {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
}
.profile-comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #aaa;
}
.profile-like-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #999;
    mask-image: url('/static/web/img/like.svg');
    -webkit-mask-image: url('/static/web/img/like.svg');
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    vertical-align: middle;
}

/* 评论操作区 */
.comment-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    margin-left: 12px;
    gap: 6px;
}
.comment-like-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.comment-like-form {
    display: flex;
}
.comment-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    opacity: 0.4;
    transition: opacity 0.15s;
}
.comment-like-btn:hover {
    opacity: 0.7;
}
.comment-like-btn.liked {
    opacity: 1;
}
.comment-like-btn.liked:hover {
    opacity: 0.8;
}
.comment-like-icon {
    display: block;
    width: 18px;
    height: 18px;
    background-color: #999;
    mask-image: url('/static/web/img/like.svg');
    -webkit-mask-image: url('/static/web/img/like.svg');
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}
.comment-like-btn.liked .comment-like-icon {
    background-color: #3360AB;
}
.comment-like-count {
    font-size: 13px;
    color: #999;
}
.comment-delete-form {
    display: flex;
}
.comment-delete-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-family: inherit;
    transition: color 0.15s;
}
.comment-delete-btn:hover {
    color: #e33;
}

/* 底部留白防止被固定栏遮挡 */
.comment-list {
    padding-bottom: 80px;
}
.song-bottom-spacer {
    height: 80px;
}
