:root {
    --primary-color: #0282ad;
    --primary-light: #04a9e1;
    --primary-500: #0282ad;
    --primary-600: #016f97;
    --primary-700: #015c7e;
    --primary-200: #7dd3fc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

/* 通用工具类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}


.hover-bg-primary-50:hover {
    background-color: var(--gray-50);
}

.hover-border-primary-200:hover {
    border-color: var(--primary-200);
}

.text-primary-500 {
    color: var(--primary-500);
}

.text-primary-600 {
    color: var(--primary-600);
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-relaxed {
    line-height: 1.625;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.p-2 {
    padding: 1vw;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

/* 听单列表样式 */
.tingdan-header {
    margin-bottom: 20px;
}

.tingdan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) { /* 小屏幕 */
    .tingdan-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) { /* 中等屏幕 */
    .tingdan-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1024px) { /* 大屏幕 */
    .tingdan-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* 容器显示/隐藏 */
.hidden {
    display: none !important;
}


.tingdan-item {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
 
.tingdan-item:hover {
    transform: none; /* 移除可能的上移或缩放 */
}

.tingdan-avatar {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.tingdan-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    position: relative;
    z-index: 1;
}

.tingdan-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(65,65,65,0.8) 0%, transparent 100%);
    z-index: 2;
}
 

.tingdan-name-text {
    color: white;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    /* 多重阴影实现描边效果 */
    text-shadow: 
        0.5px 0.5px 0 rgba(0,0,0,0.7),
        -0.5px -0.5px 0 rgba(0,0,0,0.7),
        0.5px -0.5px 0 rgba(0,0,0,0.7),
        -0.5px 0.5px 0 rgba(0,0,0,0.7),
        0 0 3px rgba(255,255,255,0.3); /* 微光效果 */
    
    /* 平滑字体渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* 兼容性方案 */
    padding: 1px 2px; /* 为描边留出空间 */
    position: relative;
}

.tingdan-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-top: 0.5rem;
    text-align: center;
}

/* 听单详情样式 */

/* 播放全部按钮容器 */
.play-all-container {
    text-align: center;
    margin: 1rem 0;
}

/* 播放全部按钮样式 */
.play-all-btn {
    background-color: var(--primary-500);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
    margin-right: 0.5rem;
}

.play-all-btn:hover {
    background-color: var(--primary-600);
}

.play-all-btn i {
    font-size: 0.9rem;
}

/* 收藏按钮样式 */
.favorite-btn {
    background-color: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 3px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.favorite-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.favorite-btn i {
    font-size: 0.9rem;
}

.tingdan-detail-stats-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 8px 0;
}

.tingdan-detail-play-count {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.tingdan-detail-play-count i {
    margin-right: 5px;
    color: var(--primary-500);
}

.tingdan-detail-favorite-count {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.tingdan-detail-favorite-count i {
    margin-right: 5px;
    color: #ff4d4f;
}

.text-red-500 {
    color: #ef4444;
}
.tingdan-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.tingdan-detail-header {
    text-align: center;
//    margin-bottom: 30px;
}

.tingdan-detail-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tingdan-detail-avatar {
    width: 180px;
    height: 180px;
    border-radius: 20%;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.25);
}
 

.tingdan-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tingdan-detail-name {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
 

.tingdan-detail-divider {
    width: 100px;
    height: 3px;
    background-color: var(--primary-500);
    margin: 0 auto 0.1rem;
    border-radius: 3px;
}

.tingdan-detail-desc {
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}

.tingdan-detail-desc h3 {
    color: var(--primary-500);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tingdan-detail-desc h3 i {
    margin-right: 0.75rem;
}

.tingdan-detail-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.2rem;
}

.tingdan-detail-stats i {
    color: var(--primary-500);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.tingdan-detail-stats span {
    color: var(--gray-700);
    font-weight: 600;
}

.tingdan-detail-stats strong {
    color: var(--primary-500);
    margin: 0 0.25rem;
}

/* 作品列表样式 */
.tingdan-detail-works {
    margin-top: 1rem;
    margin-bottom: 4rem;
}

.works-header {
    color: var(--gray-800);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-header i {
    color: var(--primary-500);
    margin-right: 0.75rem;
}

.works-list {
    list-style: none;
}

.work-item {
    padding: 2vw;
    margin: 1vw;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s;
}

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

.work-item:hover {
    background-color: var(--gray-50);
}

.work-item a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    transition: color 0.3s;
}

.work-item a:hover {
    color: var(--primary-500);
}

.no-works {
    text-align: center;
    color: var(--gray-500);
    padding: 2rem 0;
    font-size: 1rem;
}

/* 返回按钮样式 */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.back-button i {
    margin-right: 0.5rem;
}

.back-button:hover {
    background-color: var(--gray-200);
    color: var(--gray-800);
 
}

/* 作品列表展开/收起动画 */
.works-container {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 0;
}

.tingdan-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tingdan-link:hover {
    color: var(--primary-color);
}