/* 今日卡片样式 - 与日历卡片保持一致 */
/* .tibetan-today-card {
    width: 220px;
    min-height: 160px;
    max-height: 400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(244, 219, 149, 0.81);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    color: inherit;
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.18),
        0 6px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    overflow: visible !important;
}

自定义滚动条样式 */
/* .tibetan-today-card::-webkit-scrollbar {
    width: 4px;
}

.tibetan-today-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.tibetan-today-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.tibetan-today-card::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
} */

/* .tibetan-today-card:hover:not(.hidden) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
}

.tibetan-today-card:active:not(.hidden) {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.12),
        0 3px 10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
} */

/* 磨砂玻璃光泽效果 */
/* .tibetan-today-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 16px 16px 0 0;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.tibetan-today-card:hover::before {
    opacity: 1;
    height: 3px;
}

/* 磨砂玻璃内部光泽 */
/* .tibetan-today-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 30%, 
        rgba(0, 0, 0, 0.03) 70%, 
        transparent 100%);
    border-radius: 14px;
    pointer-events: none;
    transition: all 0.4s ease;
}

.tibetan-today-card:hover::after {
    opacity: 0.9;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 25%, 
        rgba(0, 0, 0, 0.05) 75%, 
        transparent 100%);
} */ */

.today-card-tags {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
}

.today-card-date {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

.today-card-weekday {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}

.today-card-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.today-card-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    margin-bottom: 2px;
}

.today-card-label-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: white;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.today-card-label-tag.lunar {
    background: #6b7280;
}

.today-card-label-tag.tibetan {
    background: #3b82f6;
}

.today-card-label-text {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
}

.today-card-label-text.lunar {
    color: #6b7280;
}

.today-card-label-text.tibetan {
    color: #3b82f6;
}

.today-card-events {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.3;
    overflow: visible;
    margin-bottom: 4px;
}

.today-card-event-item {
    color: #dc2626;
    margin-bottom: 2px;
    white-space: normal;
    overflow: visible;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 9px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.today-card-haircut-item {
    color: #059669 !important;
    margin-bottom: 2px;
    white-space: normal;
    overflow: visible;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 9px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.today-card-haircut-days {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.today-card-haircut-days-title {
    font-size: 10px;
    color: #059669;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.today-card-haircut-days-list {
    font-size: 9px;
    color: #059669;
    line-height: 1.4;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
}

.haircut-day-name {
    font-weight: 700;
    color: #047857;
}

.haircut-day-desc {
    font-weight: 400;
    color: #059669;
}

.today-card-solar-term {
    color: rgb(13, 110, 48) !important;
    font-weight: 700;
    font-size: 10px;
    margin-bottom: 2px;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.9);
}

.today-card-festival {
    color: #dc2626 !important;
    font-weight: 700;
    font-size: 10px;
    margin-bottom: 2px;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.9);
}

.today-card-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 600;
    color: white;
    margin: 6px;
}

.today-card-tag.auspicious {
    background: #ec4899;
}

.today-card-tag.inauspicious {
    background: #92400e;
}

.today-card-tag.special {
    background: #dc2626;
}

.today-card-tag.fasting {
    background: #eab308;
}

.today-card-tag.month-name {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: #584235;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.today-card-tag.month-name.month-color-default {
    background: rgba(126, 87, 194, 0.15);
    color: #5a35a3;
    border-color: rgba(126, 87, 194, 0.2);
}
.today-card-tag.month-name.month-color-1 {
    background: rgba(249, 115, 22, 0.18);
    color: #9a3412;
    border-color: rgba(249, 115, 22, 0.32);
}
.today-card-tag.month-name.month-color-2 {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.32);
}
.today-card-tag.month-name.month-color-3 {
    background: rgba(250, 204, 21, 0.18);
    color: #854d0e;
    border-color: rgba(250, 204, 21, 0.32);
}
.today-card-tag.month-name.month-color-4 {
    background: rgba(34, 197, 94, 0.18);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.32);
}
.today-card-tag.month-name.month-color-5 {
    background: rgba(20, 184, 166, 0.18);
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.32);
}
.today-card-tag.month-name.month-color-6 {
    background: rgba(14, 165, 233, 0.18);
    color: #075985;
    border-color: rgba(14, 165, 233, 0.32);
}
.today-card-tag.month-name.month-color-7 {
    background: rgba(99, 102, 241, 0.18);
    color: #3730a3;
    border-color: rgba(99, 102, 241, 0.32);
}
.today-card-tag.month-name.month-color-8 {
    background: rgba(168, 85, 247, 0.18);
    color: #6b21a8;
    border-color: rgba(168, 85, 247, 0.32);
}
.today-card-tag.month-name.month-color-9 {
    background: rgba(236, 72, 153, 0.18);
    color: #9d174d;
    border-color: rgba(236, 72, 153, 0.32);
}
.today-card-tag.month-name.month-color-10 {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.32);
}
.today-card-tag.month-name.month-color-11 {
    background: rgba(132, 204, 22, 0.18);
    color: #3f6212;
    border-color: rgba(132, 204, 22, 0.32);
}
.today-card-tag.month-name.month-color-12 {
    background: rgba(56, 189, 248, 0.18);
    color: #0f4c81;
    border-color: rgba(56, 189, 248, 0.32);
}

@media (max-width: 768px) {
    .tibetan-today-card {
        width: 100%;
        max-width: 200px;
        min-height: 110px;
        height: auto;
        max-height: 300px;
    }
    
    .tibetan-today-card:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    /* 小屏幕：标签改为圆点 */
    .today-card-tag,
    .today-card-solar-term,
    .today-card-festival {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        padding: 0;
        min-width: 8px;
        font-size: 0;
        margin: 6px;
    }
    
    .today-card-tag.auspicious {
        background: #ec4899;
    }
    
    .today-card-tag.inauspicious {
        background: #92400e;
    }
    
    .today-card-tag.special {
        background: #dc2626;
    }
    
    .today-card-tag.fasting {
        background: #eab308;
    }
    
    .today-card-tag.month-name {
        background: rgba(245, 245, 220, 0.8);
    }
    
    .today-card-solar-term {
        background: rgb(13, 110, 48);
    }
    
    .today-card-festival {
        background: #dc2626;
    }
}

/* 确保去除所有下划线 */
.tibetan-today-card,
.tibetan-today-card:hover,
.tibetan-today-card:focus,
.tibetan-today-card:active {
    text-decoration: none !important;
    outline: none;
}

/* 悬浮卡片特殊样式 */
.tibetan-today-card.floating {
    position: fixed;
    top: 200px;
    right: 20px;
    z-index: 9999;
    transition: transform 0.3s ease;
}

/* 确保卡片在所有页面上都可见 */
.tibetan-today-card.floating {
    pointer-events: auto;
}

/* 隐藏按钮样式 - 使用!important确保显示 */
.hide-button {
    position: absolute !important;
    left: -30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 50px !important;
    background: rgba(244, 219, 149, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    z-index: 10000 !important;
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* 确保小卡片容器有相对定位 */
.tibetan-today-card {
    position: relative;
}

.hide-button:hover {
    background: rgba(244, 219, 149, 1);
    transform: translateY(-50%) scale(1.05);
}

.hide-icon {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/* 展开把手样式（初始隐藏） - 使用!important确保样式 */
.expand-handle {
    position: absolute !important;
    left: -30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 50px !important;
    background: rgba(244, 219, 149, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    cursor: pointer !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    z-index: 10000 !important;
    transition: all 0.3s ease !important;
}

.expand-handle:hover {
    background: rgba(244, 219, 149, 1);
    transform: translateY(-50%) scale(1.05);
}

.expand-icon {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/* 卡片内容样式 */
.card-content {
    display: block;
    text-decoration: none !important;
    color: inherit;
    width: 100%;
    height: 100%;
}

/* 确保卡片内所有文字都没有下划线 */
.tibetan-today-card * {
    text-decoration: none !important;
}

.tibetan-today-card a {
    text-decoration: none !important;
}

.tibetan-today-card a:hover {
    text-decoration: none !important;
}

/* 隐藏状态样式 */
.tibetan-today-card.hidden {
    transform: translateX(calc(100% + 20px)) !important;
    transition: transform 0.3s ease !important;
}

.tibetan-today-card.hidden .hide-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.tibetan-today-card.hidden .expand-handle {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 确保展开把手在隐藏状态下正确显示 */
.expand-handle {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.tibetan-today-card.hidden .expand-handle {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 在小屏幕上调整位置 */
@media (max-width: 768px) {
    .tibetan-today-card.floating {
        top: 100px;
        right: 10px;
        width: 160px;
        min-height: 120px;
        height: auto;
        max-height: 250px;
    }
    
    .hide-button,
    .expand-handle {
        width: 25px;
        height: 40px;
        left: -25px;
    }
    
    .tibetan-today-card.hidden {
        transform: translateX(calc(100% + 10px)) !important;
    }
}

/* 在超小屏幕上进一步调整 */
@media (max-width: 480px) {
    .tibetan-today-card.floating {
        top: 100px;
        right: 5px;
        width: 140px;
        min-height: 100px;
        height: auto;
        max-height: 200px;
    }
    
    .hide-button,
    .expand-handle {
        width: 20px;
        height: 35px;
        left: -20px;
    }
    
    .hide-icon,
    .expand-icon {
        font-size: 12px;
    }
    
    .tibetan-today-card.hidden {
        transform: translateX(calc(100% + 5px)) !important;
    }
    
    /* 超小屏幕：进一步缩小圆点 */
    .today-card-tag,
    .today-card-solar-term,
    .today-card-festival {
        width: 6px;
        height: 6px;
        min-width: 6px;
    }
}
