/* ================= 0. 全局变量 ================= */
:root {
    --primary: #13c2c2;
    --primary-hover: #08979c;
    --bg-body: #f4f6f8;
    --text-main: #333;
    --text-sub: #999;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
    background: var(--bg-body);
    margin: 0; padding: 0; color: var(--text-main);
}
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: 0.2s; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
button { outline: none; font-family: inherit; }

.container { width: 1200px; margin: 0 auto; }

/* ================= 1. 顶部导航 (立体质感 + 登录逻辑) ================= */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    height: 68px;
    position: sticky; top: 0; z-index: 1000; margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo-area { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; color: var(--primary); text-shadow: 0 2px 4px rgba(19, 194, 194, 0.1); }
.nav-links { display: flex; gap: 30px; font-size: 16px; font-weight: 500; color: #555; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: bold; transform: translateY(-1px); }

.search-box { position: relative; width: 340px; }
.search-input {
    width: 100%; height: 38px; background: #f0f2f5;
    border: 1px solid transparent; border-radius: 20px;
    padding: 0 40px 0 20px; font-size: 13px; outline: none; transition: 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}
.search-input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 194, 194, 0.15); }
.search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: #999; }

.user-actions { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.btn-open-vip {
    display: flex; align-items: center; gap: 4px; color: #874d00;
    background: linear-gradient(135deg, #ffd666 0%, #ffc53d 100%);
    padding: 6px 18px; border-radius: 20px; font-weight: bold; font-size: 13px;
    box-shadow: 0 4px 10px rgba(255, 197, 61, 0.4); transition: 0.2s;
}
.btn-open-vip:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(255, 197, 61, 0.5); }
.btn-creator { padding: 6px 14px; border: 1px solid #ddd; border-radius: 4px; color: #666; font-size: 13px; background: #fff; }
.btn-creator:hover { border-color: var(--primary); color: var(--primary); }

/* 登录/未登录 切换容器 */
.auth-box { display: flex; align-items: center; gap: 20px; }
.link-login { color: #666; cursor: pointer; }
.link-login:hover { color: var(--primary); }

.user-logged-in { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.user-avatar-small { width: 32px; height: 32px; border-radius: 50%; background: #eee; border: 1px solid #eee; }
.user-nickname { font-weight: bold; color: #333; max-width: 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.link-logout { font-size: 12px; color: #999; margin-left: 5px; }
.link-logout:hover { color: #ff4d4f; }

/* ================== Global Dialog Styles (通用弹窗) ================== */

/* 1. 弹窗容器基础 */
dialog.commonDialog {
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
    /* 默认宽度，具体模块可覆盖 */
    width: 500px;
    max-width: 95vw;
}

/* 遮罩层 */
dialog.commonDialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* 2. 头部区域 */
.commonDialog .dialog-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.commonDialog .dialog-title {
    font-size: 18px;
    font-weight: 800;
    color: #1f1f1f;
}

/* 关闭按钮 (纯文字链接风格) */
.commonDialog .quitDialog {
    font-size: 16px;
    color: #222;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.commonDialog .quitDialog:hover {
    color: #999;
}

/* 3. 内容主体区域 */
.commonDialog .dialog-body {
    padding: 30px 30px 10px 30px;
    font-size: 14px;
}

/* 通用表单行布局 (Flex) */
.commonDialog .form-row {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-start; /* 顶对齐 */
}

/* 左侧标签 (默认宽度 70px) */
.commonDialog .form-label {
    width: 70px;
    text-align: right;
    color: #888;
    margin-right: 20px;
    flex-shrink: 0;
    padding-top: 2px; /* 微调以对齐文字 */
}

/* 右侧内容 */
.commonDialog .form-content {
    flex: 1;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

/* 4. 辅助文本样式 */
/* 价格高亮 (红色) */
.commonDialog .text-price {
    color: #ff4d4f;
    font-size: 20px;
    font-weight: 800;
    font-family: Arial, sans-serif;
    margin-right: 4px;
}

/* 灰色提示块 */
.commonDialog .tips-box {
    margin-top: 6px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

/* 链接颜色 */
.commonDialog .color_link {
    color: #13c2c2;
    text-decoration: none;
    font-weight: bold;
}
.commonDialog .color_link:hover {
    text-decoration: underline;
}

/* 分割线 */
.commonDialog .dialog-divider {
    border-top: 1px dashed #eee;
    margin: 10px 0 20px 0;
}

/* 5. 底部按钮区域 */
.commonDialog .dialog-footer {
    padding: 0 30px 30px;
    display: flex;
    justify-content: center;
}

/* 确认按钮 (渐变青色) */
.commonDialog .yesButton {
    background: linear-gradient(135deg, #4DE3E0 0%, #13c2c2 100%);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 60px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(19, 194, 194, 0.3);
    transition: all 0.2s;
}
.commonDialog .yesButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(19, 194, 194, 0.4);
}

/* ================= 2. 专辑头部 (优化版) ================= */
.product-header {
    background: #fff; padding: 30px; border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06); display: flex; gap: 30px; position: relative;
}
.cover-wrapper { width: 170px; flex-shrink: 0; position: relative; }
.album-cover { width: 170px; height: 170px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.vip-corner { position: absolute; top: 0; left: 0; background: linear-gradient(135deg, #ff4d4f, #cf1322); color: #fff; padding: 2px 8px; border-radius: 8px 0 8px 0; font-size: 12px; font-weight: bold; }

.info-wrapper { flex: 1; display: flex; flex-direction: column; padding-bottom: 2px; padding-right: 24px; border-right: 1px dashed #eee; }
.album-title { font-size: 20px; font-weight: 800; color: #000; margin-bottom: 12px; display: block; line-height: 1.4 }
.badge-score {
    display: inline-block !important;
    background: #fff7e6;
    color: #faad14;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #ffe58f;
    margin-left: 8px;
    vertical-align: 2px;
}

/* 标签合并 */
.album-meta-row { color: #666; font-size: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.meta-divider { color: #e8e8e8; }
.simple-tags span { color: #888; background: #f7f7f7; padding: 2px 6px; border-radius: 4px; font-size: 12px; margin-right: 4px; }

.promo-bar { background: #fffbe6; border: 1px solid #ffe58f; padding: 0 12px; height: 36px; border-radius: 6px; color: #d48806; font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.btn-vote { background: #faad14; color: #fff; border: none; padding: 2px 10px; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: bold;}

/* 按钮组优化 */
.action-row { display: flex; align-items: center; gap: 30px; margin-top: 30px; width: 100%; }
.btn-play-premium {
    background: linear-gradient(135deg, #4DE3E0 0%, #13c2c2 100%); color: #fff; border: none; padding: 0 28px; height: 42px; border-radius: 42px; font-size: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 6px; box-shadow: 0 6px 12px rgba(19, 194, 194, 0.25), inset 0 2px 4px rgba(255,255,255,0.3); transition: all 0.3s;
}
.btn-play-premium:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(19, 194, 194, 0.4), inset 0 2px 4px rgba(255,255,255,0.4); }

.btn-action {
    background: #fff; border: 1px solid #e0e0e0; color: #555; padding: 0 12px; height: 32px; border-radius: 32px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: all 0.2s; font-weight: 500; white-space: nowrap;
}
.btn-action:hover { border-color: var(--primary); color: var(--primary); background: #f0fcfc; }
.btn-action .icon { width: 13px; height: 13px; fill: currentColor; }

/* 分享右对齐 */
.btn-share { margin-left: auto; color: #999; border-color: transparent; }
.btn-share:hover { background: #f5f5f5; color: #666; border-color: transparent;}

.btn-action.is-collect {

}
.btn-action.is-collected {
    background: #fff7e6;
    border-color: #fff7e6;
    color: #faad14;
}
.btn-action.is-collected .icon {
    fill: #faad14;
}

.btn-action.btn-order { border-color: #ff4d4f; color: #ff4d4f; }
.btn-action.btn-order:hover { background: #fff1f0; border-color: #cf1322; color: #cf1322; }
.btn-action.is-purchased {
    background: #f5f5f5;
    border-color: #e8e8e8;
    color: #999;
    cursor: default; /* 鼠标变普通 */
}
.btn-action.is-purchased:hover {
    background: #f5f5f5; /* hover不变量 */
    color: #999;
    border-color: #e8e8e8;
}

.btn-gift { border-color: #ffadd2; color: #eb2f96; background: #fff0f6; }
.btn-gift:hover { border-color: #c41d7f; color: #c41d7f; background: #ffadd2; }

/* 主播区 */
.host-wrapper { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-left: 10px; }
.host-avatar-box { position: relative; margin-bottom: 8px; }
.host-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.host-v { position: absolute; bottom: 0; right: 0; background: #faad14; color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; border: 2px solid #fff; font-weight: bold; }
.host-name { font-size: 15px; font-weight: bold; margin-bottom: 4px; color: #333; }
.host-tagline { font-size: 12px; color: #999; margin-bottom: 10px; }
.host-stats { display: flex; gap: 15px; margin-bottom: 12px; font-size: 12px; color: #666; }
.host-stat-item b { display: block; color: #333; font-size: 14px; }
.btn-follow-host { width: 90%; padding: 5px 0; border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 12px; }
.btn-follow-host:hover { background: var(--primary); color: #fff; }
.btn-followed {
    background: #f5f5f5;
    border-color: transparent;
    color: #999;
}

/* ================= 3. 主体布局 ================= */
.main-body { display: grid; grid-template-columns: 880px 296px; gap: 24px; margin-top: 24px; padding-bottom: 50px;}
.bg-white { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

/* Tab 导航 */
.tab-nav { display: flex; gap: 40px; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.tab-item { padding-bottom: 15px; font-size: 16px; color: #666; cursor: pointer; font-weight: 500; position: relative; }
.tab-item.active { color: var(--primary); font-weight: bold; }
.tab-item.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 2px; }

.section-title { font-size: 18px; font-weight: bold; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; border-left: 4px solid var(--primary); padding-left: 10px; }
.title-extra { font-size: 12px; color: #999; font-weight: normal; }

/* 简介 & 团队 */
.intro-text { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 40px; text-align: justify; }

.cast-grid-compact { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 40px; }
.cast-card-mini { border: 1px solid #f5f5f5; border-radius: 8px; overflow: hidden; text-align: center; transition: all 0.2s; padding-bottom: 8px; position: relative; }
.cast-card-mini:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-3px); }
.cast-bg-mini { height: 35px; background: #f0fcfc; }
.cast-avatar-mini { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #fff; margin-top: -22px; object-fit: cover; background: #eee; }
.cast-name-mini { font-weight: bold; font-size: 12px; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-role-mini { font-size: 12px; color: #999; margin-bottom: 6px; display: block; transform: scale(0.9); }

/* 团队关注按钮 */
.btn-cast-follow {
    font-size: 12px; color: var(--primary); border: 1px solid var(--primary); background: #fff; padding: 1px 8px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; transform: scale(0.9); transition: 0.2s;
}
.btn-cast-follow:hover { background: var(--primary); color: #fff; }
.btn-cast-follow.followed { background: #f5f5f5; border-color: transparent; color: #999; }
.btn-cast-follow.followed:hover { background: #eee; color: #666; }

.poster-zone { margin-top: 30px; border-top: 1px solid #f0f0f0; padding-top: 20px; text-align: center; }
.poster-label {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 12px;
    letter-spacing: 2px;
    display: block;
}
.full-poster { width: 100%; border-radius: 8px; display: block; }

/* 音频目录 (节目列表) - 找回的样式 */
.episode-list { width: 100%; border-collapse: collapse; }
.episode-list tr { border-bottom: 1px solid #f9f9f9; transition: 0.2s; }
.episode-list tr:hover { background: #f5faff; }
.episode-list td { padding: 15px 10px; font-size: 14px; color: #555; }
.ep-idx { color: #999; font-size: 13px; width: 50px; text-align: center; }
.ep-title { color: #333; font-weight: 500; }
.ep-title:hover { color: var(--primary); cursor: pointer; }
.ep-meta { font-size: 12px; color: #aaa; text-align: right; width: 180px; }
.icon-play-small { width: 14px; height: 14px; margin-right: 5px; fill: #ccc; vertical-align: -2px; }
.episode-list tr:hover .icon-play-small { fill: var(--primary); }

/* 评论区 */
.comment-input-area { background: #f9f9f9; padding: 20px; border-radius: 8px; margin-bottom: 30px; display: flex; gap: 15px; }
.my-avatar { width: 40px; height: 40px; border-radius: 50%; background: #ddd; flex-shrink: 0; }
.my-avatar img {width: 100%; height: 100%; border-radius: 50%; }
.input-wrapper { flex: 1; }
.cmt-textarea { width: 100%; height: 80px; padding: 10px; border: 1px solid #eee; border-radius: 6px; font-size: 14px; outline: none; resize: none; background: #fff; transition: 0.3s; }
.cmt-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(19, 194, 194, 0.1); }
.cmt-tools { display: flex; justify-content: flex-end; align-items: center; margin-top: 10px; gap: 15px; }
.char-count { font-size: 12px; color: #999; }
.char-count.limit-reached { color: #ff4d4f; font-weight: bold; }
.btn-submit-cmt { background: var(--primary); color: #fff; border: none; padding: 6px 20px; border-radius: 20px; font-size: 13px; cursor: pointer; font-weight: bold; }
.btn-submit-cmt:hover { background: var(--primary-hover); }

.comment-item { display: flex; gap: 15px; margin-bottom: 25px; border-bottom: 1px solid #f9f9f9; padding-bottom: 20px; }
.cmt-avatar { width: 40px; height: 40px; border-radius: 50%; background: #eee; }
.cmt-content { flex: 1; }
.cmt-user { font-weight: bold; font-size: 14px; margin-bottom: 5px; display: flex; justify-content: space-between;}
.cmt-user-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cmt-time { font-size: 12px; color: #999; font-weight: normal; }
.cmt-text { font-size: 14px; color: #444; line-height: 1.6; margin-bottom: 10px; }
.cmt-actions { font-size: 12px; color: #999; display: flex; gap: 15px; cursor: pointer; }
.cmt-actions span:hover { color: var(--primary); }

/* 2. 标签基础样式 */
.id-tag {
    font-size: 10px;          /* 极小字号，精致 */
    padding: 0 5px;           /* 内边距 */
    height: 16px;
    line-height: 15px;
    border-radius: 3px;       /* 微圆角 */
    font-weight: normal;      /* 标签文字不加粗 */
    border: 1px solid transparent; /* 边框 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* 3. 三种身份的配色方案 */
.badge-capsule {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px 1px 2px; /* 左边少一点，因为图标本身有边距 */
    border-radius: 12px;      /* 胶囊圆角 */
    font-size: 11px;
    font-weight: bold;
    height: 18px;             /* 固定高度，显精致 */
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.5); /* 极淡的内描边增加质感 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);  /* 极淡的阴影 */
    vertical-align: middle;
}

/* 左侧实心图标 (SVG容器) */
.badge-icon-box {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

/* SVG 图标本身 */
.badge-icon-svg {
    width: 100%;
    height: 100%;
    fill: currentColor; /* 跟随文字颜色 */
}

/* 1. 主播 (粉色系 - 对应图2风格) */
.badge-zhubo {
    background: linear-gradient(90deg, #fff0f6 0%, #ffe4ed 100%); /* 淡粉渐变 */
    color: #eb2f96; /* 深粉字/图标 */
    border-color: #ffadd2;
}

/* 2. 运营 (蓝色系) */
.badge-yunyin {
    background: linear-gradient(90deg, #e6f7ff 0%, #d6f0ff 100%); /* 淡蓝渐变 */
    color: #1890ff; /* 深蓝字/图标 */
    border-color: #91d5ff;
}

/* 3. 官方 (红色系 - 权威) */
.badge-guanguang {
    background: linear-gradient(90deg, #fff1f0 0%, #ffeceb 100%); /* 淡红渐变 */
    color: #f5222d; /* 深红字/图标 */
    border-color: #ffa39e;
}

/* --- 新增：楼中楼回复区 --- */
.reply-box {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.reply-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 12px;
}
.reply-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

.reply-avatar { width: 30px; height: 30px; border-radius: 50%; background: #ddd; flex-shrink: 0; }
.reply-avatar img { width: 100%; height: 100%; border-radius: 50%; }
.reply-content { flex: 1; font-size: 13px; line-height: 1.5; }
.reply-user { font-weight: bold; color: #555; margin-right: 5px; }
.reply-target { color: var(--primary); font-weight: 500; margin: 0 5px; }
.reply-text { color: #666; }
.reply-time { display: block; font-size: 12px; color: #bbb; margin-top: 4px; }

/* 侧边栏 */
.side-box { margin-bottom: 24px; }
.side-header { font-weight: bold; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; border-left: 3px solid var(--primary); padding-left: 10px; }
.rank-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #fafafa; }
.rank-num { width: 24px; height: 24px; line-height: 24px; text-align: center; background: #eee; border-radius: 4px; font-size: 12px; font-weight: bold; color: #666; }
.rank-num.top1 { background: #ffec3d; color: #d48806; }
.rank-num.top2 { background: #d9d9d9; color: #555; }
.rank-num.top3 { background: #e6ccb2; color: #874d00; }
.rank-btn { width: 100%; background: #ff4d4f; color: #fff; border: none; padding: 8px; border-radius: 4px; font-weight: bold; margin-top: 15px; cursor: pointer; }

/* 辅助类 */
.icon { fill: currentColor; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.hidden { display: none !important; }