/**
 * 个人中心样式 - 熏习15分钟
 * Profile Page Styles
 * 移动端优先 - 紧凑精致
 */

/* 页面容器 */
.profile-page {
    min-height: calc(100vh - 86px);
    background: var(--bg-page);
    padding-bottom: 60px;
}

/* 冥想风格头部 */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 24px 20px 32px;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 - 月亮光晕 */
.profile-header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 40%, transparent 70%);
    border-radius: 50%;
    animation: moon-glow 4s ease-in-out infinite;
}

.profile-header::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    box-shadow: 
        60px 10px 0 rgba(255,255,255,0.4),
        100px -5px 0 rgba(255,255,255,0.3),
        150px 15px 0 rgba(255,255,255,0.5),
        200px 5px 0 rgba(255,255,255,0.2);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes moon-glow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.profile-title {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.profile-title h1 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    letter-spacing: 1px;
}

.profile-id {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.profile-logout {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.profile-logout:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* 冥想风格标签导航 */
.profile-tabs {
    display: flex;
    background: var(--bg-content);
    padding: 8px 12px;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    margin-top: -16px;
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 20px;
}

.profile-tab {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: none;
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-tab span {
    position: relative;
    z-index: 1;
}

.profile-tab:hover {
    color: var(--primary-color);
}

.profile-tab.active {
    color: #fff;
}

.profile-tab.active::before {
    opacity: 1;
    animation: breathe 3s ease-in-out infinite;
}

/* 选中标签的发光效果 */
.profile-tab.active::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.4;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.98); }
    50% { opacity: 0.5; transform: scale(1.02); }
}

/* 标签页内容 */
.profile-tab-content {
    display: none;
    padding: 16px 12px;
    animation: fadeIn 0.3s ease;
}

.profile-tab-content.active {
    display: block;
}

/* 资料表单 */
.profile-form {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 12px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* profile特定表单样式 */
.profile-form .form-input,
.profile-form .form-select,
.profile-form .form-textarea {
    padding: 10px 12px;
    font-size: 14px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* 单选按钮组 */
.form-radio-group {
    display: flex;
    gap: 20px;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-normal);
}

.form-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

/* 地区选择 */
.form-group-region .region-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 积分汇总 */
.points-summary {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.points-label {
    font-size: 12px;
    color: var(--text-light);
}

.points-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 收听统计 */
.listening-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    white-space: nowrap;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .listening-summary {
        gap: 8px;
    }

    .stat-card {
        padding: 10px 6px;
        gap: 4px;
    }

    .stat-card .stat-value {
        font-size: 18px;
    }

    .stat-card .stat-label {
        font-size: 9px;
        white-space: nowrap;
    }
}

.listening-chart {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 14px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.chart-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-normal);
}

.chart-total {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100px;
    gap: 6px;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.bar {
    width: 100%;
    min-height: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 3px 3px 0 0;
    position: relative;
    transition: height 0.3s ease;
}

.bar-item.today .bar {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.bar-value {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--text-light);
    white-space: nowrap;
}

.bar-label {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 6px;
}

.bar-item.today .bar-label {
    color: var(--accent-color);
    font-weight: 500;
}

/* 月度图表 */
.chart-bars.month {
    gap: 12px;
}

.month-bar {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

/* ===== 用户组样式 ===== */

/* 用户组徽章 - 小巧精致 */
.user-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--group-color) 15%, white) 0%, color-mix(in srgb, var(--group-color) 8%, white) 100%);
    border: 1px solid color-mix(in srgb, var(--group-color) 30%, transparent);
    border-radius: 12px;
    font-size: 11px;
    color: var(--group-color);
    white-space: nowrap;
    animation: badge-glow 2s ease-in-out infinite alternate;
}

.user-group-badge.badge-sm {
    padding: 1px 6px;
    font-size: 10px;
    border-radius: 10px;
}

.user-group-badge .badge-icon {
    font-size: 12px;
}

.badge-sm .badge-icon {
    font-size: 10px;
}

/* 当前等级卡片 */
.group-current-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 16px;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
}

.group-badge-large {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.group-badge-large .badge-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

.group-badge-large .badge-name {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.group-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.group-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.group-stats .stat-num {
    font-size: 20px;
    font-weight: 700;
}

.group-stats .stat-unit {
    font-size: 10px;
    opacity: 0.8;
}

.free-selection-tip {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    font-size: 12px;
}

.free-selection-tip .tip-icon {
    margin-right: 4px;
}

/* 激活状态卡片 */
.activation-status {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid;
}

.activation-status.active {
    border-color: var(--success-color);
    background: linear-gradient(90deg, rgba(122,158,126,0.1) 0%, var(--bg-content) 30%);
}

.activation-status.expired {
    border-color: var(--error-color);
    background: linear-gradient(90deg, rgba(201,123,123,0.1) 0%, var(--bg-content) 30%);
}

.activation-status.notice {
    border-color: var(--warning-color);
    background: linear-gradient(90deg, rgba(201,162,39,0.1) 0%, var(--bg-content) 30%);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.activation-status.active .status-header { color: var(--success-color); }
.activation-status.active .status-icon { background: var(--success-color); }
.activation-status.expired .status-header { color: var(--error-color); }
.activation-status.expired .status-icon { background: var(--error-color); }
.activation-status.notice .status-header { color: var(--warning-color); }
.activation-status.notice .status-icon { background: var(--warning-color); }

.status-info {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

.days-left {
    color: var(--primary-color);
    font-weight: 500;
}

/* 激活表单 */
.activation-form {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
}

.form-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--text-normal);
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-activate {
    padding: 0 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-activate:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 获取激活码说明 */
.activation-guide {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.guide-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.guide-toggle:hover {
    background: var(--bg-page);
}

.toggle-icon {
    font-size: 18px;
}

.toggle-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.toggle-arrow {
    color: var(--text-muted);
    transition: transform 0.3s;
    opacity: 0.7;
}

.guide-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.guide-content {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.guide-item:hover {
    background: linear-gradient(135deg, rgba(139,115,85,0.08) 0%, var(--bg-page) 100%);
}

.guide-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-content);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.guide-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.guide-info p {
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* 等级列表 */
.group-levels {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 12px;
}

.levels-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--bg-page);
    transition: transform 0.2s, box-shadow 0.2s;
}

.level-item.current {
    background: linear-gradient(90deg, rgba(139,115,85,0.15) 0%, var(--bg-page) 50%);
    box-shadow: var(--shadow-sm);
}

.level-item.next {
    border: 1px dashed var(--primary-color);
}

.level-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.level-info {
    flex: 1;
}

.level-name {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.current-tag {
    font-size: 10px;
    padding: 1px 6px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
}

.level-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.level-perk {
    font-size: 10px;
    color: var(--primary-color);
    margin-top: 2px;
}

.level-hours {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

/* 响应式 - 平板 */
@media (min-width: 769px) {
    .profile-page {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ===== 帮助页面样式 ===== */
.help-letter {
    background: var(--bg-content);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.letter-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px 16px;
    text-align: center;
    position: relative;
}

.letter-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.letter-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.letter-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
}

.letter-body {
    padding: 20px 16px;
}

.letter-greeting {
    font-size: 14px;
    color: var(--text-normal);
    margin: 0 0 16px;
    font-weight: 500;
}

.letter-paragraph {
    font-size: 13px;
    color: var(--text-normal);
    line-height: 1.8;
    margin: 0 0 12px;
    text-align: justify;
}

.letter-paragraph strong {
    color: var(--primary-color);
}

.letter-section {
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.letter-section:first-of-type {
    margin-top: 16px;
    padding-top: 0;
    border-top: none;
}

.section-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 10px;
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-top: 10px;
}

.qrcode-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-content);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qr-label {
    font-size: 10px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.4;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 11px;
    color: var(--text-light);
}

.contact-value {
    font-size: 13px;
    color: var(--text-normal);
    font-weight: 500;
}

.contact-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.contact-inline .contact-label {
    flex-shrink: 0;
}

.letter-note {
    font-size: 12px;
    color: var(--text-light);
    margin: 12px 0 0;
    padding: 10px;
    background: linear-gradient(90deg, rgba(139,115,85,0.1) 0%, transparent 100%);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.letter-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.letter-closing {
    font-size: 13px;
    color: var(--text-normal);
    margin: 0 0 8px;
    font-style: italic;
}

.letter-signature {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}


/* ===== 已完成主题区域 ===== */
.completed-categories {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.02) 100%);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.completed-categories .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.completed-categories .section-title {
    font-size: 13px;
    font-weight: 500;
    color: #4CAF50;
}

.completed-categories .section-count {
    font-size: 11px;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.completed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.completed-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-page);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 16px;
    font-size: 12px;
    color: #4CAF50;
    text-decoration: none;
    transition: all 0.2s;
}

.completed-tag:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.completed-tag .tag-icon {
    font-size: 10px;
}

.completed-tag .tag-name {
    font-weight: 500;
}

.completed-tag .tag-posts {
    font-size: 10px;
    opacity: 0.8;
}

.completed-tag.current {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: #fff;
}

.completed-hint {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 10px;
    opacity: 0.8;
}

/* ===== 听取分类汇总 ===== */
.listening-categories {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}

.listening-categories .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listening-categories .section-count {
    font-size: 11px;
    color: var(--text-light);
    background: var(--bg-page);
    padding: 2px 8px;
    border-radius: 10px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(139,115,85,0.1) 0%, rgba(139,115,85,0.05) 100%);
    border: 1px solid rgba(139,115,85,0.2);
    border-radius: 14px;
    font-size: 11px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    max-width: 120px;
}

.category-tag:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.category-tag .tag-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-tag .tag-count {
    font-size: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* 已完成分类标签 */
.category-tag.completed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.category-tag.completed:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: #fff;
    border-color: transparent;
}

.category-tag .tag-status {
    font-size: 10px;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 1px 6px;
    border-radius: 8px;
    flex-shrink: 0;
}

.category-tag.completed:hover .tag-status {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* 当前正在学习的分类 */
.category-tag.current {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.2);
}

.hidden-tag {
    display: none;
}

.tag-more-btn {
    padding: 4px 10px;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    font-size: 11px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-more-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== 听取文章记录 ===== */
.listening-posts {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 14px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== 暂无听取记录样式 ===== */
.empty-posts {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.empty-posts svg {
    margin-bottom: 16px;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-posts p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 16px;
    font-weight: 400;
}

.empty-posts .btn-link {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.empty-posts .btn-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* profile页面特定的post-item样式 */
.listening-posts .post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.listening-posts .post-item:hover {
    background: linear-gradient(90deg, rgba(139,115,85,0.1) 0%, var(--bg-page) 50%);
    transform: translateX(2px);
}

.post-info {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.listening-posts .post-title {
    font-size: 13px;
    color: var(--text-normal);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.listening-posts .post-item:hover .post-title {
    color: var(--primary-color);
}

.listening-posts .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--text-light);
}

.post-category {
    padding: 1px 6px;
    background: rgba(139,115,85,0.1);
    border-radius: 8px;
    color: var(--primary-color);
}

.post-time {
    opacity: 0.8;
    color: var(--text-muted);
}

.post-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.duration-value {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.95;
}

.duration-icon {
    color: var(--primary-color);
    opacity: 0.6;
}

.listening-posts .post-item:hover .duration-icon {
    opacity: 1;
}

/* ===== 模块描述文字 ===== */
.section-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
    opacity: 0.8;
}

/* ===== 正在熏习模块 ===== */
.current-learning {
    background: linear-gradient(135deg, rgba(139,115,85,0.12) 0%, rgba(139,115,85,0.05) 100%);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(139,115,85,0.2);
}

.current-learning .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.current-learning .section-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
}

.current-learning .section-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.current-learning .section-status.active {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.learning-card {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 12px;
}

.learning-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none;
}

.learning-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.learning-main:hover .learning-name {
    color: var(--primary-color);
}

.learning-progress {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

.learning-bar {
    height: 4px;
    background: var(--bg-page);
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.learning-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.learning-continue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.learning-continue:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== 熏习足迹模块 ===== */
.listening-categories {
    background: var(--bg-content);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}

.listening-categories .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.listening-categories .section-count {
    font-size: 11px;
    color: var(--text-light);
    background: var(--bg-page);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== 本周图表增强样式 ===== */
.chart-week {
    font-size: 11px;
    color: var(--text-light);
    background: var(--bg-page);
    padding: 2px 8px;
    border-radius: 10px;
}

.bar-item.future {
    opacity: 0.5;
}

.bar-future {
    width: 100%;
    min-height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--border-color) 0px,
        var(--border-color) 2px,
        transparent 2px,
        transparent 4px
    );
    border-radius: 3px 3px 0 0;
}

.today-marker {
    font-size: 9px;
    color: var(--accent-color);
    margin-top: 2px;
    font-weight: 500;
}

.today-label {
    color: var(--accent-color) !important;
    font-weight: 600 !important;
}

.bar-item.today {
    position: relative;
}

.bar-item.today::before {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: -4px;
    bottom: -4px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    opacity: 0.3;
    animation: today-glow 2s ease-in-out infinite;
}

@keyframes today-glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* ===== 月度图表增强样式 ===== */
.bar-item.current-week {
    position: relative;
}

.bar-item.current-week::before {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: -4px;
    bottom: -4px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    opacity: 0.3;
    animation: week-glow 2s ease-in-out infinite;
}

@keyframes week-glow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
}

.current-label {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.current-week-marker {
    font-size: 9px;
    color: var(--primary-color);
    margin-top: 2px;
    font-weight: 500;
}

.month-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.summary-label {
    font-size: 11px;
    color: var(--text-light);
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 月度图表的未来周样式 */
.chart-bars.month .bar-item.future {
    opacity: 0.5;
}

/* ===== 周图表时间线 ===== */
.week-chart {
    padding: 14px;
}

.week-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 2px;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    font-size: 10px;
    position: relative;
}

.timeline-item.today {
    background: linear-gradient(135deg, rgba(139,115,85,0.15) 0%, rgba(139,115,85,0.05) 100%);
    border: 1px solid rgba(139,115,85,0.3);
}

.timeline-item.future {
    opacity: 0.4;
}

.timeline-label {
    color: var(--text-light);
    font-weight: 500;
}

.timeline-item.today .timeline-label {
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 9px;
    margin-top: 2px;
    opacity: 0.9;
}

.timeline-time {
    color: var(--text-normal);
    font-weight: 600;
    margin-top: 4px;
    font-size: 11px;
}

.timeline-time.future {
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.7;
}

.timeline-time.has-data {
    color: var(--primary-color);
}

.timeline-marker {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: #fff;
    background: var(--primary-color);
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

/* 周统计汇总 */
.week-summary {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.week-summary .summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.week-summary .summary-label {
    font-size: 10px;
    color: var(--text-light);
}

.week-summary .summary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 时段日期显示 */
.period-date {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    opacity: 0.9;
}
