/**
 * 老婆与排行榜系统 - 前端样式
 */

/* ==============================
   排行榜样式
   ============================== */

.wr-ranking-container {
    max-width: 100%;
    margin: 20px 0;
}

.wr-ranking-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}

.wr-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    position: relative;
    transition: color 0.3s;
}

.wr-tab.active {
    color: #e91e63;
}

.wr-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e91e63;
}

.wr-ranking-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wr-ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.3s;
}

.wr-ranking-item:hover {
    background: #fafafa;
}

.wr-rank-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    font-size: 14px;
}

.wr-top-1 .wr-rank-number {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #fff;
    border-radius: 50%;
}

.wr-top-2 .wr-rank-number {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #fff;
    border-radius: 50%;
}

.wr-top-3 .wr-rank-number {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
    border-radius: 50%;
}

.wr-rank-avatar {
    margin: 0 12px;
}

.wr-rank-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.wr-rank-info {
    flex: 1;
}

.wr-rank-name {
    display: block;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-bottom: 3px;
}

.wr-rank-name:hover {
    color: #e91e63;
}

.wr-rank-meta {
    font-size: 12px;
    color: #999;
}

.wr-rank-meta span {
    margin-right: 10px;
}

.wr-likes-count {
    color: #e91e63;
}

.wr-favorites-count {
    color: #ffc107;
}

.wr-rank-value {
    font-size: 18px;
    font-weight: bold;
    color: #e91e63;
    min-width: 80px;
    text-align: right;
}

/* ==============================
   用户排名小工具
   ============================== */

.wr-user-rank-box {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wr-user-rank-item {
    text-align: center;
}

.wr-user-rank-item .wr-rank-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.wr-user-rank-item .wr-rank-value {
    font-size: 24px;
    font-weight: bold;
    color: #e91e63;
}

/* ==============================
   老婆卡片样式
   ============================== */

.wr-waifu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.wr-waifu-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.wr-waifu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 边框样式 - 使用图片边框 */
/* 稀有度边框样式 - 使用CSS渐变实现 */
/* 重置所有可能的边框图片 */
.wr-frame-n::before,
.wr-frame-n::after,
.wr-frame-r::before,
.wr-frame-r::after,
.wr-frame-sr::before,
.wr-frame-sr::after,
.wr-frame-ssr::before,
.wr-frame-ssr::after,
.wr-frame-ur::before,
.wr-frame-ur::after,
.wr-frame-ur-easter::before,
.wr-frame-ur-easter::after,
.wr-frame-exr::before,
.wr-frame-exr::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
}

.wr-frame-n {
    position: relative;
    border: 3px solid #b0b0b0 !important;
    box-shadow: 0 0 8px rgba(176, 176, 176, 0.4);
}

.wr-frame-r {
    position: relative;
    border: 3px solid #4caf50 !important;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.wr-frame-sr {
    position: relative;
    border: 3px solid #2196f3 !important;
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.5), inset 0 0 20px rgba(33, 150, 243, 0.15);
}

.wr-frame-ssr {
    position: relative;
    border: 4px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #9c27b0, #e91e63, #9c27b0) border-box !important;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.5), inset 0 0 25px rgba(156, 39, 176, 0.1);
}

.wr-frame-ur {
    position: relative;
    border: 4px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #ffd700, #ff8c00, #ffd700, #ffeb3b) border-box !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.15);
    animation: wr-gold-pulse 2s ease-in-out infinite;
}
@keyframes wr-gold-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.15); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), inset 0 0 40px rgba(255, 215, 0, 0.2); }
}

.wr-frame-ur-easter {
    position: relative;
    border: 4px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #ab47bc, #7b1fa2, #e91e63, #ab47bc) border-box !important;
    box-shadow: 0 0 20px rgba(171, 71, 188, 0.6), inset 0 0 30px rgba(171, 71, 188, 0.15);
    animation: wr-easter-pulse 2s ease-in-out infinite;
}
@keyframes wr-easter-pulse {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.wr-frame-exr {
    position: relative;
    border: 5px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #ff0080, #ff8c00, #00ff88, #00bfff, #8000ff, #ff0080) border-box !important;
    background-size: 100% 100%, 300% 300% !important;
    box-shadow: 0 0 25px rgba(255, 0, 128, 0.6);
    animation: wr-rainbow-border 4s ease infinite;
}
@keyframes wr-rainbow-border {
    0% { background-position: 100% 100%, 0% 50%; }
    50% { background-position: 100% 100%, 100% 50%; }
    100% { background-position: 100% 100%, 0% 50%; }
}

@keyframes wr-rainbow-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), 0 0 30px rgba(255, 127, 0, 0.3);
    }
    25% {
        box-shadow: 0 0 20px rgba(255, 255, 0, 0.5), 0 0 30px rgba(0, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 0, 255, 0.3);
    }
    75% {
        box-shadow: 0 0 20px rgba(75, 0, 130, 0.5), 0 0 30px rgba(148, 0, 211, 0.3);
    }
}

.wr-waifu-card.wr-not-owned {
    opacity: 0.7;
}

.wr-waifu-image {
    aspect-ratio: 240/350;
    overflow: hidden;
}

.wr-waifu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s;
}

.wr-waifu-image img.wr-grayscale {
    filter: grayscale(100%);
}

.wr-waifu-card:hover .wr-grayscale {
    filter: grayscale(50%);
}

.wr-waifu-info {
    padding: 10px;
    background: #fff;
    text-align: center;
}

.wr-waifu-name {
    font-weight: 500;
    color: #333;
    display: block;
}

.wr-waifu-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-top: 5px;
}

.wr-tag-limited {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #fff;
}

.wr-tag-easter {
    background: linear-gradient(135deg, #ab47bc, #8e24aa);
    color: #fff;
}

.wr-waifu-detail {
    background: rgba(255,255,255,0.95);
    padding: 10px;
    font-size: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.wr-waifu-card:hover .wr-waifu-detail {
    max-height: 100px;
    padding: 10px;
}

.wr-waifu-desc,
.wr-waifu-hint {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.wr-waifu-hint {
    color: #e91e63;
}

.wr-set-display {
    display: block;
    width: 100%;
    padding: 8px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    transition: background 0.3s;
}

.wr-set-display:hover {
    background: #e91e63;
    color: #fff;
}

.wr-waifu-card.wr-displayed .wr-set-display {
    background: #e91e63;
    color: #fff;
}

/* ==============================
   老婆收集页
   ============================== */

.wr-waifu-collection {
    padding: 20px;
}

.wr-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wr-collection-header h3 {
    margin: 0;
}

.wr-collection-progress {
    color: #e91e63;
    font-weight: 500;
}

/* ==============================
   作者信息框
   ============================== */

.wr-author-box {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
    gap: 15px;
}

.wr-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.wr-author-info {
    flex: 1;
}

.wr-author-name {
    margin: 0 0 10px;
}

.wr-author-name a {
    color: #333;
    text-decoration: none;
}

.wr-author-name a:hover {
    color: #e91e63;
}

.wr-author-ranks {
    display: flex;
    gap: 20px;
}

.wr-author-ranks .wr-rank-item {
    display: flex;
    flex-direction: column;
}

.wr-author-ranks .wr-rank-label {
    font-size: 12px;
    color: #999;
}

.wr-author-ranks .wr-rank-value {
    font-size: 18px;
    font-weight: bold;
    color: #e91e63;
}

.wr-author-waifu {
    width: 100px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.wr-author-waifu img {
    width: 100%;
    display: block;
}

.wr-author-waifu .wr-waifu-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(233,30,99,0.9);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

/* ==============================
   展示老婆样式
   ============================== */

.wr-displayed-waifu {
    border-radius: 8px;
    overflow: hidden;
}

.wr-displayed-waifu img {
    width: 100%;
    display: block;
}

.wr-size-small {
    width: 80px;
}

.wr-size-medium {
    width: 150px;
}

.wr-size-large {
    width: 240px;
}

/* ==============================
   老婆轮播
   ============================== */

.wr-user-waifus-display {
    margin: 20px 0;
}

.wr-waifus-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wr-carousel-prev,
.wr-carousel-next {
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.wr-carousel-prev:hover,
.wr-carousel-next:hover {
    background: #e91e63;
    color: #fff;
}

.wr-waifus-track {
    display: flex;
    gap: 10px;
    overflow: hidden;
    flex: 1;
}

.wr-waifu-thumb {
    width: 120px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
}

.wr-waifu-thumb img {
    width: 100%;
    display: block;
}

/* ==============================
   小工具样式
   ============================== */

.wr-widget-ranking {
    padding: 10px 0;
}

.wr-widget-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.wr-widget-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: color 0.3s;
}

.wr-widget-tab.active {
    color: #e91e63;
    border-bottom: 2px solid #e91e63;
}

.wr-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wr-widget-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.wr-item-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #999;
}

.wr-rank-1 .wr-item-rank {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #fff;
    border-radius: 50%;
}

.wr-rank-2 .wr-item-rank {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #fff;
    border-radius: 50%;
}

.wr-rank-3 .wr-item-rank {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
    border-radius: 50%;
}

.wr-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0 10px;
}

.wr-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.wr-item-name {
    color: #333;
    font-size: 13px;
}

.wr-item-info:hover .wr-item-name {
    color: #e91e63;
}

.wr-item-value {
    font-size: 14px;
    font-weight: bold;
    color: #e91e63;
}

/* 老婆小工具 */
.wr-waifu-widget {
    text-align: center;
    border-radius: 8px;
    overflow: visible;
    background: #fff;
}

.wr-waifu-widget img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.wr-waifu-widget .wr-waifu-name {
    display: block;
    padding: 10px;
    background: #fff;
    font-weight: 500;
    color: #333;
    text-align: center;
}

/* 小工具老婆名称稀有度颜色 - 高优先级 */
.wr-waifu-widget .wr-waifu-name.wr-rarity-text-N { color: #9e9e9e !important; }
.wr-waifu-widget .wr-waifu-name.wr-rarity-text-R { color: #4caf50 !important; }
.wr-waifu-widget .wr-waifu-name.wr-rarity-text-SR { color: #2196f3 !important; }
.wr-waifu-widget .wr-waifu-name.wr-rarity-text-SSR { color: #9c27b0 !important; }
.wr-waifu-widget .wr-waifu-name.wr-rarity-text-UR { color: #ff8c00 !important; text-shadow: 0 0 8px rgba(255, 140, 0, 0.5); }
.wr-waifu-widget .wr-waifu-name.wr-rarity-text-EXR { 
    color: #ff6b95 !important; 
    text-shadow: 0 0 10px rgba(255, 107, 149, 0.6);
    animation: wr-exr-glow 2s ease-in-out infinite;
}

.wr-waifu-widget .wr-waifu-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.wr-waifu-widget .wr-waifu-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    color: #fff;
}

.wr-badge-limited {
    background: linear-gradient(135deg, #ffd700, #ffb800);
}

.wr-badge-easter {
    background: linear-gradient(135deg, #ab47bc, #8e24aa);
}

/* 空状态样式 */
.wr-waifu-widget.wr-empty {
    padding: 20px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
}

.wr-waifu-widget.wr-empty .wr-no-waifu {
    margin: 0 0 5px;
    color: #666;
    font-size: 14px;
}

.wr-waifu-widget.wr-empty .wr-hint {
    margin: 0 0 15px;
    color: #e91e63;
    font-size: 12px;
}

.wr-waifu-widget.wr-empty .wr-login-hint {
    margin: 0;
    color: #999;
}

/* 小工具按钮组 */
.wr-waifu-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.wr-widget-btn {
    flex: 1;
    display: inline-block;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none !important;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wr-btn-manage {
    background: #f5f5f5;
    color: #666 !important;
}

.wr-btn-manage:hover {
    background: #e91e63;
    color: #fff !important;
}

.wr-btn-apply {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
}

.wr-btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

/* 获取按钮样式 */
.wr-get-waifu-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.wr-get-waifu-btn:hover {
    background: linear-gradient(135deg, #c2185b, #ad1457);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

/* 用户排名小工具 */
.wr-user-rank-widget {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
}

.wr-user-rank-widget .wr-rank-box {
    text-align: center;
}

.wr-user-rank-widget .wr-rank-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.wr-user-rank-widget .wr-rank-number {
    font-size: 24px;
    font-weight: bold;
    color: #e91e63;
}

/* ==============================
   响应式
   ============================== */

@media (max-width: 768px) {
    .wr-waifu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .wr-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .wr-author-ranks {
        justify-content: center;
    }
    
    .wr-author-waifu {
        width: 80px;
    }
    
    .wr-ranking-item {
        padding: 10px 5px;
    }
    
    .wr-rank-avatar img {
        width: 35px;
        height: 35px;
    }
    
    .wr-rank-value {
        font-size: 14px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .wr-waifu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==============================
   前台老婆管理页面
   ============================== */

.wr-waifu-manage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 需要登录提示 */
.wr-manage-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.wr-manage-login-required p {
    margin: 0 0 20px;
    color: #666;
    font-size: 16px;
}

.wr-login-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.wr-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* 标签切换 */
.wr-manage-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.wr-manage-tab {
    padding: 12px 24px;
    border: none;
    background: #f5f5f5;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wr-manage-tab:hover {
    background: #eee;
}

.wr-manage-tab.active {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
}

.wr-tab-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.wr-manage-tab.active .wr-tab-count {
    background: rgba(255,255,255,0.3);
}

/* 面板 */
.wr-manage-panel {
    display: none;
}

.wr-manage-panel.active {
    display: block;
}

/* 当前展示 */
.wr-current-display {
    background: linear-gradient(135deg, #fff5f8, #fce4ec);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wr-current-label {
    color: #666;
}

.wr-current-name {
    font-weight: 600;
    color: #e91e63;
    font-size: 16px;
}

.wr-manage-hint {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
}

/* 空状态 */
.wr-empty-waifus {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.wr-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.wr-empty-waifus p {
    margin: 0 0 10px;
    color: #666;
}

.wr-empty-hint {
    color: #e91e63 !important;
}

/* 卡片网格 */
.wr-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.wr-collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.wr-manage-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s;
    cursor: pointer;
}

.wr-manage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.wr-manage-card.wr-is-displayed {
    box-shadow: 0 0 0 3px #e91e63, 0 10px 30px rgba(233, 30, 99, 0.3);
}

.wr-manage-card-inner {
    display: flex;
    flex-direction: column;
}

.wr-manage-image {
    position: relative;
    aspect-ratio: 290/420;
    overflow: hidden;
}

.wr-collection-grid .wr-manage-image {
    width: 290px;
    height: 420px;
}

.wr-manage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wr-manage-card:hover .wr-manage-image img {
    transform: scale(1.05);
}

.wr-displayed-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e91e63;
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

.wr-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

.wr-lock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    opacity: 0.8;
}

.wr-manage-info {
    padding: 12px 15px;
}

.wr-manage-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.wr-manage-desc {
    display: block;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.wr-manage-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 8px;
}

.wr-set-display-btn,
.wr-view-detail-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.wr-set-display-btn {
    background: #f5f5f5;
    color: #666;
}

.wr-set-display-btn:hover {
    background: #e91e63;
    color: #fff;
}

.wr-set-display-btn.wr-btn-displayed {
    background: #e91e63;
    color: #fff;
}

.wr-view-detail-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.wr-view-detail-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
}

/* 图鉴进度 */
.wr-collection-stats {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.wr-stats-progress {
    display: block;
    margin-bottom: 10px;
    color: #666;
}

.wr-stats-progress strong {
    color: #e91e63;
    font-size: 18px;
}

.wr-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.wr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e91e63, #ff4081);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 未拥有的老婆 */
.wr-manage-card.wr-not-owned {
    opacity: 0.7;
}

.wr-manage-card.wr-not-owned:hover {
    opacity: 1;
}

/* 弹窗 */
.wr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.wr-modal.active {
    display: flex;
}

.wr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.wr-modal-content {
    position: relative;
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.wr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s;
}

.wr-modal-close:hover {
    background: #e91e63;
    color: #fff;
}

.wr-modal-body {
    display: flex;
    gap: 20px;
    padding: 25px;
}

.wr-modal-image {
    flex: 0 0 200px;
}

.wr-modal-image img {
    width: 100%;
    border-radius: 10px;
}

.wr-modal-info {
    flex: 1;
}

.wr-modal-name {
    margin: 0 0 15px;
    color: #333;
    font-size: 20px;
}

.wr-modal-desc {
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px;
}

.wr-modal-meta {
    font-size: 13px;
    color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
    .wr-manage-tabs {
        flex-wrap: wrap;
    }
    
    .wr-manage-tab {
        flex: 1;
        justify-content: center;
    }
    
    .wr-manage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .wr-modal-body {
        flex-direction: column;
    }
    
    .wr-modal-image {
        flex: none;
        text-align: center;
    }
    
    .wr-modal-image img {
        max-width: 200px;
    }
}

/* ==============================
   自定义老婆申请页面
   ============================== */

.wr-custom-apply {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wr-apply-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 15px;
}

.wr-apply-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.wr-apply-login-required p {
    margin: 0 0 20px;
    color: #666;
    font-size: 16px;
}

/* 积分信息区 */
.wr-apply-points-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.wr-points-display,
.wr-apply-cost,
.wr-apply-duration {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wr-points-label,
.wr-cost-label,
.wr-duration-label {
    font-size: 12px;
    opacity: 0.8;
}

.wr-points-value {
    font-size: 28px;
    font-weight: bold;
}

.wr-cost-value,
.wr-duration-value {
    font-size: 18px;
    font-weight: 600;
}

/* 申请表单 */
.wr-apply-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.wr-apply-title {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.wr-apply-notice {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wr-notice-warning {
    background: #fff3e0;
    color: #e65100;
}

.wr-form-group {
    margin-bottom: 20px;
}

.wr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.wr-form-group label .required {
    color: #e91e63;
}

.wr-form-group input[type="text"],
.wr-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.wr-form-group input[type="text"]:focus,
.wr-form-group textarea:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    outline: none;
}

/* 图片上传 */
.wr-image-upload {
    position: relative;
}

.wr-image-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.wr-upload-preview {
    width: 200px;
    height: 290px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    overflow: hidden;
}

.wr-upload-preview:hover {
    border-color: #e91e63;
    background: #fff5f8;
}

.wr-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wr-upload-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.wr-upload-text {
    color: #666;
    font-size: 14px;
}

.wr-upload-hint {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* 协议 */
.wr-form-agreement {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wr-form-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.wr-form-agreement input[type="checkbox"] {
    margin-top: 2px;
}

/* 提交按钮 */
.wr-form-actions {
    text-align: center;
}

.wr-submit-btn {
    padding: 14px 50px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.wr-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.wr-submit-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* 申请记录 */
.wr-apply-history {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.wr-history-title {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.wr-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wr-history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s;
}

.wr-history-item:hover {
    background: #f5f5f5;
}

.wr-history-image {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.wr-history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wr-history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wr-history-name {
    font-weight: 600;
    color: #333;
}

.wr-history-date {
    font-size: 12px;
    color: #999;
}

.wr-history-desc {
    font-size: 13px;
    color: #666;
}

.wr-history-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.wr-badge-pending {
    background: #ff9800;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.wr-badge-approved {
    background: #4caf50;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.wr-badge-rejected {
    background: #f44336;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.wr-expires-info {
    font-size: 12px;
    color: #4caf50;
}

.wr-expires-info.wr-expired {
    color: #f44336;
}

.wr-reject-reason {
    font-size: 12px;
    color: #f44336;
    max-width: 150px;
    text-align: right;
}

/* 响应式 */
@media (max-width: 600px) {
    .wr-apply-points-info {
        flex-direction: column;
        text-align: center;
    }
    
    .wr-history-item {
        flex-wrap: wrap;
    }
    
    .wr-history-status {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
}

/* ==============================
   轮播样式
   ============================== */

.wr-waifu-carousel {
    position: relative;
    overflow: hidden;
}

.wr-carousel-inner {
    position: relative;
    width: 100%;
}

.wr-carousel-item {
    display: none;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: opacity 0.5s ease;
}

.wr-carousel-item.active {
    display: block;
}

.wr-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.wr-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.wr-carousel-dot.active {
    background: #e91e63;
    transform: scale(1.2);
}

.wr-carousel-dot:hover {
    background: #f48fb1;
}

/* ==============================
   操作入口小工具样式
   ============================== */

.wr-waifu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.wr-action-btn {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.wr-action-btn:hover {
    transform: translateX(5px);
}

.wr-action-icon {
    font-size: 18px;
    margin-right: 10px;
}

.wr-action-text {
    flex: 1;
}

.wr-btn-collection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.wr-btn-collection:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
}

.wr-btn-manage {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.wr-btn-manage:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    color: #fff;
}

.wr-btn-purchase {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.wr-btn-purchase:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: #fff;
}

.wr-btn-apply {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.wr-btn-apply:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #fff;
}

/* 喜爱老婆标识 */
.wr-waifu-favorite-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff4081;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.wr-waifu-item.is-favorite {
    border: 2px solid #ff4081;
}

.wr-favorite-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.wr-favorite-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.wr-favorite-btn.is-favorite {
    color: #ff4081;
}

/* ==============================
   老婆图鉴筛选和购买样式
   ============================== */

/* 筛选按钮 */
.wr-collection-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wr-filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.wr-filter-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
}

.wr-filter-btn.active {
    background: #e91e63;
    border-color: #e91e63;
    color: #fff;
}

/* 可购买标识 */
.wr-waifu-purchasable-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    z-index: 5;
    font-weight: bold;
}

/* 可购买卡片样式 */
.wr-waifu-card.wr-purchasable {
    border: 2px solid #4caf50;
}

.wr-waifu-card.wr-purchasable:hover {
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* 购买区域 - 始终显示在卡片底部 */
.wr-waifu-purchase {
    padding: 12px;
    background: linear-gradient(135deg, #e8f5e9, #fff);
    border-top: 2px solid #4caf50;
    margin-top: auto;
    display: block !important;
    position: relative;
    z-index: 10;
}

.wr-waifu-card.wr-purchasable .wr-waifu-purchase {
    display: block !important;
}

/* 可购买卡片的detail区域默认展开显示描述 */
.wr-waifu-card.wr-purchasable .wr-waifu-detail {
    max-height: 80px;
    padding: 10px;
    overflow: hidden;
}

.wr-purchase-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 12px;
}

.wr-price-temp,
.wr-price-perm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
}

.wr-price-temp small,
.wr-price-perm small {
    color: #999;
    font-size: 11px;
}

.wr-purchase-buttons {
    display: flex;
    gap: 8px;
}

.wr-buy-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.wr-buy-btn.wr-buy-temp {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
}

.wr-buy-btn.wr-buy-temp:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
}

.wr-buy-btn.wr-buy-perm {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
}

.wr-buy-btn.wr-buy-perm:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-1px);
}

.wr-buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.wr-login-hint {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin: 0;
    padding: 5px 0;
}

/* 稀有度标签 */
.wr-waifu-rarity {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    margin-left: 5px;
}

.wr-rarity-N { background: #b0b0b0; }
.wr-rarity-R { background: #4caf50; }
.wr-rarity-SR { background: #2196f3; }
.wr-rarity-SSR { background: #9c27b0; }
.wr-rarity-UR { background: linear-gradient(135deg, #ffd700, #ffb800); }
.wr-rarity-UR-easter { background: linear-gradient(135deg, #ff69b4, #ff1493); }
.wr-rarity-EXR { 
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% 100%;
    animation: wr-rainbow-text 3s linear infinite;
}

@keyframes wr-rainbow-text {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* 兼容旧稀有度标签 */
.wr-rarity-blue { background: #2196f3; }
.wr-rarity-purple { background: #9c27b0; }
.wr-rarity-gold { background: linear-gradient(135deg, #ffd700, #ffb800); }

/* 稀有度文字颜色 - v2.8.6 */
.wr-waifu-name[class*="wr-rarity-text-"] {
    font-weight: 600;
}
.wr-rarity-text-N { color: #9e9e9e !important; }
.wr-rarity-text-R { color: #4caf50 !important; }
.wr-rarity-text-SR { color: #2196f3 !important; }
.wr-rarity-text-SSR { color: #9c27b0 !important; }
.wr-rarity-text-UR { color: #ff8c00 !important; text-shadow: 0 0 8px rgba(255, 140, 0, 0.5); }
.wr-rarity-text-EXR { 
    color: #ff6b95 !important;
    text-shadow: 0 0 10px rgba(255, 107, 149, 0.6);
    animation: wr-exr-glow 2s ease-in-out infinite;
}
@keyframes wr-exr-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 107, 149, 0.6); }
    50% { text-shadow: 0 0 20px rgba(255, 107, 149, 0.9), 0 0 30px rgba(255, 143, 171, 0.6); }
}

/* 调整老婆卡片以适应购买按钮 */
.wr-waifu-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
}

/* 可购买卡片增加最小高度，确保按钮不被遮挡 */
.wr-waifu-card.wr-purchasable {
    min-height: 400px;
}

.wr-waifu-card .wr-waifu-detail {
    flex: 1;
}

/* 确保购买按钮在图鉴卡片底部始终可见 */
.wr-waifu-card.wr-purchasable .wr-waifu-purchase {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 15px 12px;
}

.wr-waifu-card.wr-purchasable .wr-purchase-prices {
    color: #fff;
    margin-bottom: 12px;
}

.wr-waifu-card.wr-purchasable .wr-price-temp,
.wr-waifu-card.wr-purchasable .wr-price-perm {
    color: #fff;
    background: rgba(255,255,255,0.15);
    padding: 6px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.wr-waifu-card.wr-purchasable .wr-price-temp small,
.wr-waifu-card.wr-purchasable .wr-price-perm small {
    color: rgba(255,255,255,0.8);
}

.wr-waifu-card.wr-purchasable .wr-buy-btn.wr-buy-temp {
    background: #fff;
    color: #4caf50;
    font-weight: bold;
}

.wr-waifu-card.wr-purchasable .wr-buy-btn.wr-buy-temp:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.wr-waifu-card.wr-purchasable .wr-buy-btn.wr-buy-perm {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
}

.wr-waifu-card.wr-purchasable .wr-login-hint {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .wr-collection-filter {
        justify-content: center;
    }
    
    .wr-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .wr-purchase-buttons {
        flex-direction: column;
    }
    
    .wr-buy-btn {
        padding: 10px;
    }
}

/* ==============================
   老婆详情弹窗样式
   ============================== */

.wr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

.wr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.wr-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wr-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.wr-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.wr-modal-image {
    width: 100%;
    aspect-ratio: 240/350;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wr-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wr-modal-image img.wr-grayscale {
    filter: grayscale(100%);
}

.wr-loading {
    color: #999;
    font-size: 14px;
}

.wr-modal-info {
    padding: 20px;
}

.wr-modal-name {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.wr-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.wr-modal-meta .wr-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.wr-modal-meta .wr-tag-limited {
    background: linear-gradient(135deg, #ffd700, #ffb800);
}

.wr-modal-meta .wr-tag-easter {
    background: linear-gradient(135deg, #ab47bc, #8e24aa);
}

.wr-status-owned {
    color: #4caf50;
    font-weight: 500;
}

.wr-status-not-owned {
    color: #999;
}

.wr-modal-desc {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px;
    font-size: 14px;
}

/* 弹窗购买区域 */
.wr-modal-purchase-area {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.wr-modal-prices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.wr-modal-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wr-price-label {
    color: #666;
    font-size: 14px;
}

.wr-price-value {
    color: #e91e63;
    font-weight: 600;
    font-size: 16px;
}

.wr-modal-buttons {
    display: flex;
    gap: 10px;
}

.wr-modal-buy-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.wr-buy-temp-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
}

.wr-buy-temp-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.wr-buy-perm-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
}

.wr-buy-perm-btn:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.wr-modal-buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.wr-modal-login-hint {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

/* 弹窗响应式 */
@media (max-width: 500px) {
    .wr-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .wr-modal-buttons {
        flex-direction: column;
    }
    
    .wr-modal-buy-btn {
        padding: 14px;
    }
}

/* ==============================
   老婆图鉴 - 新版购买区域样式
   ============================== */

/* 状态标签通用样式 */
.wr-waifu-status {
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #eee;
}

.wr-status-owned-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.wr-status-secret {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
}

.wr-status-hint {
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
}

/* 购买区域 - 新设计 */
.wr-waifu-buy-section {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-top: 2px solid #2196f3;
    padding: 10px;
}

.wr-buy-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.8);
    border-radius: 6px;
}

.wr-buy-price-row:last-child {
    margin-bottom: 0;
}

.wr-buy-label {
    font-size: 12px;
    color: #666;
    min-width: 45px;
}

.wr-buy-amount {
    font-size: 14px;
    font-weight: bold;
    color: #e91e63;
    flex: 1;
    text-align: center;
}

.wr-buy-amount::after {
    content: ' 积分';
    font-size: 11px;
    font-weight: normal;
    color: #999;
}

.wr-buy-btn-new {
    padding: 6px 14px;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 60px;
}

.wr-buy-temp-new {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
}

.wr-buy-temp-new:hover {
    background: linear-gradient(135deg, #45a049, #388e3c);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
}

.wr-buy-perm-new {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
}

.wr-buy-perm-new:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4);
}

.wr-buy-btn-new:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.wr-buy-login-box {
    text-align: center;
    padding: 12px;
    color: #666;
    font-size: 13px;
}

/* 可购买卡片特殊样式 */
.wr-waifu-card.wr-purchasable {
    border: 2px solid #2196f3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.wr-waifu-card.wr-purchasable:hover {
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

/* 可购买标识优化 */
.wr-waifu-purchasable-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 5;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

/* 移动端优化 */
@media (max-width: 480px) {
    .wr-buy-price-row {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .wr-buy-label {
        width: 100%;
        text-align: left;
    }
    
    .wr-buy-amount {
        text-align: left;
    }
    
    .wr-buy-btn-new {
        padding: 8px 16px;
    }
}

/* ==============================
   老婆管理 - 购买老婆面板样式
   ============================== */

/* 购买标签按钮样式 */
.wr-manage-tab.wr-tab-purchase {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    border-color: #ff9800;
}

.wr-manage-tab.wr-tab-purchase:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
}

.wr-manage-tab.wr-tab-purchase.active {
    background: linear-gradient(135deg, #e65100, #d84315);
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.4);
}

/* 购买面板头部 */
.wr-purchase-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.wr-purchase-header h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #e65100;
}

.wr-purchase-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 用户积分条 */
.wr-user-points-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
}

.wr-user-points-bar .wr-my-points {
    color: #e91e63;
    font-size: 24px;
}

.wr-user-points-bar .wr-my-points::after {
    content: ' 积分';
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* 购买老婆网格 */
.wr-purchase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 购买卡片 */
.wr-purchase-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    width: 240px;
}

.wr-purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wr-purchase-card-image {
    position: relative;
    width: 240px;
    height: 420px;
    overflow: hidden;
}

.wr-purchase-card-image img {
    width: 240px;
    height: 420px;
    object-fit: cover;
    transition: transform 0.3s;
}

.wr-purchase-card:hover .wr-purchase-card-image img {
    transform: scale(1.05);
}

.wr-purchase-card-image .wr-rarity-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
}

.wr-purchase-card-info {
    padding: 12px 15px;
    background: #fff;
    text-align: center;
}

.wr-purchase-card-name {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wr-purchase-card-desc {
    margin: 0;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

/* 价格选项区域 - 仿照设为展示按钮样式 */
.wr-purchase-card-prices {
    padding: 0 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wr-price-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wr-price-option .wr-price-label {
    font-size: 12px;
    color: #999;
    min-width: 36px;
}

.wr-price-option .wr-price-value {
    flex: 1;
    font-size: 14px;
    font-weight: bold;
    color: #e91e63;
}

.wr-price-option .wr-price-value::after {
    content: ' 积分';
    font-size: 11px;
    font-weight: normal;
    color: #999;
}

/* 购买按钮 - 仿照设为展示按钮样式 */
.wr-purchase-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 60px;
}

.wr-purchase-btn.wr-purchase-temp {
    background: #f5f5f5;
    color: #666;
}

.wr-purchase-btn.wr-purchase-temp:hover {
    background: #e91e63;
    color: #fff;
}

.wr-purchase-btn.wr-purchase-perm {
    background: #f5f5f5;
    color: #666;
}

.wr-purchase-btn.wr-purchase-perm:hover {
    background: #ff9800;
    color: #fff;
}

.wr-purchase-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 购买老婆网格 - 适应固定宽度卡片 */
.wr-purchase-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .wr-purchase-card {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }
    
    .wr-purchase-card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 240/420;
    }
    
    .wr-purchase-card-image img {
        width: 100%;
        height: 100%;
    }
    
    .wr-user-points-bar {
        flex-direction: column;
    }
}

/* ==============================
   多老婆展示相关样式
   ============================== */

.wr-current-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 10px;
    margin-bottom: 15px;
}

.wr-current-label {
    font-weight: 500;
    color: #666;
}

.wr-current-count {
    background: #e91e63;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
}

.wr-current-names {
    flex: 1;
    color: #333;
    font-weight: 500;
}

/* 展示中按钮样式调整 */
.wr-set-display-btn.wr-btn-displayed {
    background: #e91e63;
    color: #fff;
}

.wr-set-display-btn.wr-btn-displayed:hover {
    background: #c2185b;
}

/* ==============================
   操作入口小工具 - 多种显示样式
   ============================== */

/* 基础样式 */
.wr-waifu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.wr-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.wr-action-btn:hover {
    background: #e91e63;
    color: #fff;
    transform: translateX(5px);
}

/* 隐藏图标 */
.wr-hide-icon .wr-action-icon {
    display: none;
}

/* 图标大小 */
.wr-icon-small .wr-action-icon { font-size: 16px; }
.wr-icon-medium .wr-action-icon { font-size: 20px; }
.wr-icon-large .wr-action-icon { font-size: 28px; }
.wr-icon-xlarge .wr-action-icon { font-size: 36px; }

/* ========== 布局样式 ========== */

/* 列表样式（默认） */
.wr-actions-list {
    flex-direction: column;
}

/* 网格2列 */
.wr-actions-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.wr-actions-grid2 .wr-action-btn {
    flex-direction: column;
    text-align: center;
    padding: 15px 10px;
}

/* 网格3列 */
.wr-actions-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.wr-actions-grid3 .wr-action-btn {
    flex-direction: column;
    text-align: center;
    padding: 12px 8px;
}

.wr-actions-grid3 .wr-action-text {
    font-size: 12px;
}

/* 网格4列 */
.wr-actions-grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.wr-actions-grid4 .wr-action-btn {
    flex-direction: column;
    text-align: center;
    padding: 10px 5px;
}

.wr-actions-grid4 .wr-action-text {
    font-size: 11px;
}

/* 按钮组（横向） */
.wr-actions-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.wr-actions-buttons .wr-action-btn {
    flex: 1;
    min-width: 80px;
    justify-content: center;
    padding: 10px 15px;
}

/* 图标卡片 */
.wr-actions-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.wr-actions-cards .wr-action-btn {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wr-actions-cards .wr-action-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.wr-actions-cards .wr-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

/* 紧凑模式 */
.wr-actions-compact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wr-actions-compact .wr-action-btn {
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
}

.wr-actions-compact .wr-action-text {
    display: none;
}

.wr-actions-compact .wr-action-icon {
    font-size: 20px;
}

/* 胶囊按钮 */
.wr-actions-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.wr-actions-pills .wr-action-btn {
    padding: 8px 18px;
    border-radius: 50px;
    flex: none;
}

/* ========== 按钮风格 ========== */

/* 默认风格 */
.wr-btn-style-default .wr-action-btn {
    background: #f5f5f5;
    color: #333;
}

.wr-btn-style-default .wr-action-btn:hover {
    background: #e91e63;
    color: #fff;
}

/* 渐变风格 */
.wr-btn-style-gradient .wr-action-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.wr-btn-style-gradient .wr-action-btn:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 描边风格 */
.wr-btn-style-outline .wr-action-btn {
    background: transparent;
    border: 2px solid #e91e63;
    color: #e91e63;
}

.wr-btn-style-outline .wr-action-btn:hover {
    background: #e91e63;
    color: #fff;
}

/* 扁平风格 */
.wr-btn-style-flat .wr-action-btn {
    background: transparent;
    color: #666;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.wr-btn-style-flat .wr-action-btn:hover {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
    transform: none;
}

/* 多彩风格 */
.wr-btn-style-colorful .wr-btn-collection {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

.wr-btn-style-colorful .wr-btn-manage {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #fff;
}

.wr-btn-style-colorful .wr-btn-purchase {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: #fff;
}

.wr-btn-style-colorful .wr-btn-apply {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #fff;
}

.wr-btn-style-colorful .wr-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .wr-actions-grid3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wr-actions-grid4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wr-actions-buttons {
        flex-direction: column;
    }
    
    .wr-actions-buttons .wr-action-btn {
        min-width: 100%;
    }
}

/* ========== v1.5.1 移动端适配增强 ========== */

/* 平板适配 */
@media (max-width: 768px) {
    .wr-waifu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .wr-ranking-container {
        padding: 15px;
    }
    
    .wr-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .wr-modal-image img {
        max-height: 250px;
    }
    
    .wr-widget-waifus {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 手机适配 */
@media (max-width: 480px) {
    .wr-waifu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .wr-waifu-card {
        padding: 8px;
    }
    
    .wr-waifu-card img {
        max-height: 120px;
    }
    
    .wr-waifu-name {
        font-size: 12px;
    }
    
    .wr-modal-content {
        padding: 15px;
    }
    
    .wr-modal-name {
        font-size: 18px;
    }
    
    .wr-modal-desc {
        font-size: 13px;
    }
    
    .wr-modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .wr-modal-buy-btn {
        width: 100%;
        padding: 12px;
    }
    
    .wr-ranking-list {
        font-size: 13px;
    }
    
    .wr-ranking-item {
        padding: 10px 8px;
    }
    
    .wr-ranking-avatar {
        width: 35px;
        height: 35px;
    }
    
    .wr-widget-waifus {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .wr-widget-waifu img {
        max-height: 80px;
    }
    
    /* 老婆展示小工具4列在移动端变为2列 */
    .wr-widget-layout-4col .wr-widget-waifus {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 通知样式移动端适配 */
    .wr-notice {
        right: 10px;
        left: 10px;
        max-width: none;
        text-align: center;
    }
    
    /* 标签页移动端适配 */
    .wr-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .wr-tab {
        flex: 1 1 45%;
        text-align: center;
        padding: 8px;
    }
}

/* 极小屏幕适配 */
@media (max-width: 320px) {
    .wr-waifu-grid {
        grid-template-columns: 1fr;
    }
    
    .wr-widget-waifus {
        grid-template-columns: 1fr 1fr;
    }
    
    .wr-modal-prices {
        flex-direction: column;
    }
    
    .wr-modal-price-item {
        width: 100%;
    }
    
    /* v1.6.1 - 极小屏幕适配 */
    .wr-widget-waifu-card {
        padding: 8px;
    }
    
    .wr-widget-waifu-name {
        font-size: 11px;
    }
    
    .wr-ranking-tabs {
        flex-wrap: wrap;
    }
    
    .wr-ranking-tab {
        flex: 1 1 45%;
        text-align: center;
    }
}

/* 触摸设备hover效果优化 */
@media (hover: none) {
    .wr-waifu-card:hover {
        transform: none;
    }
    
    .wr-action-btn:hover {
        transform: none;
    }
    
    .wr-waifu-card:active {
        transform: scale(0.98);
    }
    
    .wr-action-btn:active {
        transform: scale(0.98);
    }
}

/* ========================================
   v1.6.1 - 移动端触摸反馈增强
   ======================================== */

/* 触摸反馈动画 */
@keyframes wr-tap-feedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* 按钮触摸反馈 */
.wr-buy-btn:active,
.wr-set-display:active,
.wr-manage-tab:active,
.wr-login-btn:active {
    animation: wr-tap-feedback 0.2s ease;
}

/* 卡片触摸反馈 */
@media (hover: none) {
    .wr-widget-waifu-card:active {
        transform: scale(0.97);
        transition: transform 0.1s;
    }
    
    .wr-ranking-item:active {
        background: rgba(233, 30, 99, 0.05);
    }
    
    /* 弹窗按钮触摸反馈 */
    .wr-modal-close:active {
        transform: scale(0.9);
    }
}

/* 加载旋转器 - 前端 */
.wr-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: wr-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes wr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 按钮禁用状态 */
.wr-buy-btn:disabled,
.wr-set-display:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 通知消息 */
.wr-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    animation: wr-notice-in 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.wr-notice.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.wr-notice.error {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: #fff;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

@keyframes wr-notice-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==============================
   v1.7.0 - 社交互动样式
   ============================== */

/* 点赞按钮 */
.wr-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #e91e63;
    background: transparent;
    color: #e91e63;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.wr-like-btn:hover,
.wr-like-btn.liked {
    background: #e91e63;
    color: #fff;
}

.wr-like-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* 点赞排行榜 */
.wr-like-ranking {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wr-like-ranking-title {
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e91e63;
    color: #333;
}

.wr-like-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wr-like-ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wr-like-ranking-item:last-child {
    border-bottom: none;
}

.wr-like-ranking-item.wr-top-1 .wr-like-rank { background: linear-gradient(135deg, #ffd700, #ffb300); }
.wr-like-ranking-item.wr-top-2 .wr-like-rank { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.wr-like-ranking-item.wr-top-3 .wr-like-rank { background: linear-gradient(135deg, #cd7f32, #a0522d); }

.wr-like-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-right: 12px;
}

.wr-like-ranking-item.wr-top-1 .wr-like-rank,
.wr-like-ranking-item.wr-top-2 .wr-like-rank,
.wr-like-ranking-item.wr-top-3 .wr-like-rank {
    color: #fff;
}

.wr-like-ranking-avatar {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.wr-like-ranking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wr-like-ranking-name {
    font-weight: 500;
    color: #333;
}

.wr-like-ranking-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #e91e63;
    font-size: 13px;
}

/* 评论区 */
.wr-comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wr-comments-title {
    font-size: 16px;
    margin-bottom: 15px;
}

.wr-comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wr-comment-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.wr-comment-input:focus {
    border-color: #e91e63;
}

.wr-comment-submit {
    padding: 10px 20px;
    background: #e91e63;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.wr-comment-submit:hover {
    background: #c2185b;
}

.wr-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wr-comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.wr-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.wr-comment-content {
    flex: 1;
}

.wr-comment-author {
    font-weight: 500;
    color: #333;
    margin-right: 10px;
}

.wr-comment-time {
    font-size: 12px;
    color: #999;
}

.wr-comment-text {
    margin-top: 5px;
    color: #666;
    line-height: 1.5;
}

/* 赠送记录 */
.wr-gift-history {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wr-gift-history-title {
    font-size: 18px;
    margin: 0 0 15px;
    color: #333;
}

.wr-gift-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wr-gift-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.wr-gift-tab.active {
    background: #e91e63;
    color: #fff;
    border-color: #e91e63;
}

.wr-gift-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wr-gift-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wr-gift-waifu-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.wr-gift-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wr-gift-waifu-name {
    font-weight: 500;
    color: #333;
}

.wr-gift-direction {
    font-size: 13px;
    color: #666;
}

.wr-gift-time {
    font-size: 12px;
    color: #999;
}

/* 赠送弹窗 */
.wr-gift-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.wr-gift-modal.show {
    display: flex;
}

.wr-gift-modal-content {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
}

.wr-gift-modal-title {
    font-size: 18px;
    margin: 0 0 20px;
    text-align: center;
}

.wr-gift-form-group {
    margin-bottom: 15px;
}

.wr-gift-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wr-gift-form-group input,
.wr-gift-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.wr-gift-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.wr-gift-modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.wr-gift-confirm {
    background: #e91e63;
    color: #fff;
}

.wr-gift-cancel {
    background: #f0f0f0;
    color: #666;
}

/* 任务面板 */
.wr-tasks-panel {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wr-tasks-title {
    font-size: 18px;
    margin: 0 0 20px;
    color: #333;
}

.wr-tasks-section {
    margin-bottom: 25px;
}

.wr-tasks-section h4 {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.wr-task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wr-task-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.wr-task-item.completed {
    background: #e8f5e9;
}

.wr-task-info {
    flex: 1;
    min-width: 0;
}

.wr-task-name {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.wr-task-desc {
    font-size: 12px;
    color: #999;
}

.wr-task-progress {
    width: 120px;
    margin: 0 15px;
}

.wr-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 3px;
}

.wr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e91e63, #f48fb1);
    border-radius: 4px;
    transition: width 0.3s;
}

.wr-task-item.completed .wr-progress-fill {
    background: linear-gradient(90deg, #4caf50, #81c784);
}

.wr-progress-text {
    font-size: 11px;
    color: #999;
    text-align: center;
    display: block;
}

.wr-task-reward {
    text-align: right;
    min-width: 60px;
}

.wr-reward-amount {
    font-size: 13px;
    color: #ff9800;
    font-weight: 500;
}

.wr-task-done {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
}

/* 通知中心 */
.wr-notifications-center {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wr-notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.wr-notifications-title {
    font-size: 18px;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wr-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e91e63;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
}

.wr-mark-all-read {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
}

.wr-mark-all-read:hover:not(:disabled) {
    background: #f5f5f5;
}

.wr-mark-all-read:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wr-notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.wr-notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.wr-notification-item:hover {
    background: #f5f5f5;
}

.wr-notification-item.unread {
    background: #fce4ec;
}

.wr-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.wr-noti-like { background: #fce4ec; }
.wr-noti-comment { background: #e3f2fd; }
.wr-noti-gift { background: #fff3e0; }
.wr-noti-challenge { background: #f3e5f5; }
.wr-noti-task_completed { background: #e8f5e9; }

.wr-notification-content {
    flex: 1;
}

.wr-notification-content strong {
    display: block;
    margin-bottom: 3px;
    color: #333;
}

.wr-notification-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.wr-notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    display: block;
}

/* 挑战按钮 */
.wr-challenge-btn {
    padding: 5px 10px;
    background: #9c27b0;
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.wr-challenge-btn:hover {
    background: #7b1fa2;
}

/* 互动动作 */
.wr-waifu-interactive {
    cursor: pointer;
    transition: transform 0.3s;
}

.wr-waifu-interactive:hover {
    transform: scale(1.02);
}

.wr-waifu-dialogue {
    position: absolute;
    background: #fff;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    font-size: 14px;
    max-width: 200px;
    animation: wr-dialogue-in 0.3s ease-out;
    z-index: 100;
}

.wr-waifu-dialogue::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
    border-bottom: none;
}

@keyframes wr-dialogue-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 隐藏剧情解锁 */
.wr-secret-unlocked {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
    animation: wr-secret-glow 2s infinite;
}

@keyframes wr-secret-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 152, 0, 0.8); }
}

/* 响应式 */
@media (max-width: 768px) {
    .wr-task-item {
        flex-wrap: wrap;
    }
    
    .wr-task-progress {
        width: 100%;
        margin: 10px 0;
        order: 3;
    }
    
    .wr-task-reward {
        order: 2;
    }
    
    .wr-notifications-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .wr-gift-item {
        flex-wrap: wrap;
    }
}

/* ==========================================
 * v1.7.2 - 小工具增强样式
 * ========================================== */

/* 老婆点赞排行榜小工具 */
.wr-waifu-like-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wr-waifu-like-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.wr-waifu-like-item:last-child {
    border-bottom: none;
}

.wr-waifu-like-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
    min-width: 0;
}

.wr-waifu-like-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.wr-waifu-like-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wr-waifu-like-name {
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wr-waifu-like-owner {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wr-waifu-like-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wr-waifu-like-actions .wr-like-count {
    font-size: 12px;
    color: #666;
    min-width: 20px;
    text-align: right;
}

.wr-widget-like-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.wr-widget-like-btn:hover {
    border-color: #e91e63;
    background: #fce4ec;
}

.wr-widget-like-btn.liked {
    background: #e91e63;
    border-color: #e91e63;
    color: #fff;
}

.wr-widget-like-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* 我的老婆小工具社交按钮 */
.wr-waifu-social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.wr-widget-social-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.wr-widget-social-btn:hover {
    border-color: #e91e63;
    background: #fce4ec;
}

.wr-widget-social-btn.liked {
    background: #e91e63;
    border-color: #e91e63;
    color: #fff;
}

.wr-widget-social-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.wr-widget-social-btn .wr-like-count {
    font-size: 11px;
}

/* 操作入口徽章 */
.wr-action-icon {
    position: relative;
    display: inline-block;
}

.wr-action-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    font-weight: bold;
}

/* 互动任务小工具 */
.wr-tasks-widget {
    padding: 0;
}

.wr-tasks-widget .wr-tasks-section {
    margin-bottom: 15px;
}

.wr-tasks-widget .wr-tasks-section:last-child {
    margin-bottom: 0;
}

.wr-tasks-widget .wr-tasks-section-title {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.wr-tasks-widget .wr-task-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px;
    margin-bottom: 6px;
    background: #f9f9f9;
    border-radius: 6px;
    position: relative;
}

.wr-tasks-widget .wr-task-item.completed {
    background: #e8f5e9;
}

.wr-tasks-widget .wr-task-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 5px;
}

.wr-tasks-widget .wr-task-name {
    font-size: 12px;
    font-weight: 500;
}

.wr-tasks-widget .wr-task-reward {
    font-size: 11px;
    color: #e91e63;
    font-weight: bold;
}

.wr-tasks-widget .wr-task-progress-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.wr-tasks-widget .wr-task-progress-bar {
    flex: 1;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.wr-tasks-widget .wr-task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e91e63, #f48fb1);
    border-radius: 3px;
    transition: width 0.3s;
}

.wr-tasks-widget .wr-task-item.completed .wr-task-progress-fill {
    background: linear-gradient(90deg, #4caf50, #81c784);
}

.wr-tasks-widget .wr-task-progress-text {
    font-size: 10px;
    color: #999;
    flex-shrink: 0;
}

.wr-tasks-widget .wr-task-done-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #4caf50;
    font-size: 12px;
    font-weight: bold;
}

/* 评论弹窗 */
.wr-comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.wr-comment-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.wr-comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wr-comment-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.wr-comment-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.wr-comment-modal-close:hover {
    color: #333;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .wr-waifu-social-buttons {
        flex-wrap: wrap;
    }
    
    .wr-waifu-like-item {
        flex-wrap: wrap;
    }
    
    .wr-waifu-like-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 5px;
    }
}

/* ==========================================
 * v1.7.3 - 老婆互动功能样式
 * ========================================== */

/* 互动容器 */
.wr-waifu-widget.wr-interactive {
    position: relative;
}

.wr-waifu-widget.wr-interactive .wr-waifu-image-wrap.wr-clickable {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.wr-waifu-widget.wr-interactive .wr-waifu-image-wrap.wr-clickable:hover {
    transform: scale(1.02);
}

.wr-waifu-widget.wr-interactive .wr-waifu-image-wrap.wr-clickable:active {
    transform: scale(0.98);
}

/* 台词气泡 - v1.7.7 位置调整到中部偏上 */
.wr-dialogue-bubble {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #fff 0%, #fef8f9 100%);
    border: 2px solid #e91e63;
    border-radius: 15px;
    padding: 12px 18px;
    max-width: 220px;
    min-width: 120px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.35), 0 0 0 4px rgba(255,255,255,0.8);
    z-index: 99999;
    animation: wr-bubble-appear 0.3s ease;
    pointer-events: none;
}

/* 气泡底部箭头 */
.wr-dialogue-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top-color: #e91e63;
    border-bottom: 0;
}

.wr-dialogue-bubble::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #fff;
    border-bottom: 0;
    z-index: 1;
}

@keyframes wr-bubble-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 互动按钮 */
.wr-waifu-interact-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.wr-interact-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.wr-interact-btn:hover {
    border-color: #e91e63;
    background: #fce4ec;
    transform: scale(1.1);
}

.wr-interact-btn:active {
    transform: scale(0.95);
}

/* 互动提示 */
.wr-interact-hint {
    text-align: center;
    margin-top: 5px;
}

.wr-interact-hint small {
    color: #999;
    font-size: 11px;
}

/* 长按进度条 */
.wr-longpress-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #e91e63, #f48fb1);
    width: 0;
    transition: width 0.1s linear;
    border-radius: 0 0 5px 5px;
}

/* 点击涟漪效果 */
.wr-click-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(233, 30, 99, 0.3);
    transform: scale(0);
    animation: wr-ripple 0.6s linear;
    pointer-events: none;
}

@keyframes wr-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 连击提示 */
.wr-combo-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff5722, #ff8a65);
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    animation: wr-combo-pop 0.3s ease;
}

@keyframes wr-combo-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* 隐藏剧情解锁动画 */
.wr-secret-unlock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: wr-fade-in 0.5s ease;
}

@keyframes wr-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wr-secret-unlock-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #e94560;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    color: #fff;
    animation: wr-secret-appear 0.5s ease 0.3s both;
}

@keyframes wr-secret-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wr-secret-unlock-content h3 {
    color: #e94560;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.wr-secret-unlock-content .wr-secret-story {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    line-height: 1.8;
}

.wr-secret-unlock-content .wr-reward-info {
    color: #ffd700;
    font-size: 14px;
    margin-top: 15px;
}

.wr-secret-unlock-content .wr-close-btn {
    margin-top: 20px;
    background: #e94560;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
}

/* ==============================
   v1.8.0 - 老婆操作入口小工具增强样式
   ============================== */

/* 分组容器 */
.wr-action-group {
    margin-bottom: 15px;
}

.wr-action-group:last-child {
    margin-bottom: 0;
}

/* 分组标题 */
.wr-action-group-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* 紧凑模式 */
.wr-actions-compact .wr-action-btn {
    padding: 6px 10px;
}

.wr-actions-compact .wr-action-icon {
    font-size: 14px;
}

.wr-actions-compact .wr-action-text {
    font-size: 12px;
}

.wr-actions-compact .wr-action-group {
    margin-bottom: 10px;
}

.wr-actions-compact .wr-action-group-title {
    font-size: 11px;
    padding: 5px 0;
    margin-bottom: 5px;
}

/* 网格模式下分组标题占满整行 */
.wr-actions-grid2 .wr-action-group-title,
.wr-actions-grid3 .wr-action-group-title,
.wr-actions-grid4 .wr-action-group-title {
    grid-column: 1 / -1;
}

/* 未读徽章样式 */
.wr-action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

.wr-action-icon {
    position: relative;
}

/* 按钮样式下的徽章 */
.wr-btn-style-gradient .wr-action-badge,
.wr-btn-style-colorful .wr-action-badge {
    background: #fff;
    color: #d63638;
}

/* 登录提示 */
.wr-widget-login-hint {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.wr-widget-login-hint a {
    color: #e91e63;
    text-decoration: none;
}

.wr-widget-login-hint a:hover {
    text-decoration: underline;
}

/* ========== v1.8.3 新增样式 ========== */

/* 现代卡片布局 */
.wr-actions-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.wr-actions-modern .wr-action-group {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 0;
}

.wr-actions-modern .wr-action-group-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 0 0 12px 0;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(233, 30, 99, 0.1);
    letter-spacing: 0.5px;
}

.wr-actions-modern .wr-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 4px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wr-actions-modern .wr-action-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* 极简风格布局 */
.wr-actions-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 0;
}

.wr-actions-minimal .wr-action-group {
    display: contents;
}

.wr-actions-minimal .wr-action-group-title {
    display: none;
}

.wr-actions-minimal .wr-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

.wr-actions-minimal .wr-action-icon {
    font-size: 24px;
}

/* 玻璃拟态风格 */
.wr-btn-style-glass .wr-action-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wr-btn-style-glass .wr-action-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(233, 30, 99, 0.3);
    color: #e91e63;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.12);
}

.wr-btn-style-glass .wr-action-group {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 柔和渐变风格 */
.wr-btn-style-soft .wr-action-btn {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
    border: none;
}

.wr-btn-style-soft .wr-btn-collection {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d5a5a;
}

.wr-btn-style-soft .wr-btn-manage {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    color: #2d5a2d;
}

.wr-btn-style-soft .wr-btn-purchase {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
}

.wr-btn-style-soft .wr-btn-apply {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #4a3a6b;
}

.wr-btn-style-soft .wr-btn-comments,
.wr-btn-style-soft .wr-btn-gift {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #5a3a6b;
}

.wr-btn-style-soft .wr-btn-exchange,
.wr-btn-style-soft .wr-btn-notifications {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #2d5a5a;
}

.wr-btn-style-soft .wr-btn-tasks,
.wr-btn-style-soft .wr-btn-challenge {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #704214;
}

.wr-btn-style-soft .wr-btn-ranking,
.wr-btn-style-soft .wr-btn-user_profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.wr-btn-style-soft .wr-btn-achievements,
.wr-btn-style-soft .wr-btn-shop {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #6b3a5a;
}

.wr-btn-style-soft .wr-btn-intimacy,
.wr-btn-style-soft .wr-btn-interaction_pref {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
}

.wr-btn-style-soft .wr-btn-holiday_events {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d5a5a;
}

.wr-btn-style-soft .wr-btn-feedback,
.wr-btn-style-soft .wr-btn-my_suggestions {
    background: linear-gradient(135deg, #c3cfe2 0%, #c3cfe2 100%);
    color: #4a4a6b;
}

.wr-btn-style-soft .wr-action-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

/* 极简风格特殊处理 */
.wr-actions-minimal.wr-btn-style-glass .wr-action-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wr-actions-minimal.wr-btn-style-glass .wr-action-btn:hover {
    background: rgba(233, 30, 99, 0.08);
    border-color: rgba(233, 30, 99, 0.2);
}

.wr-actions-minimal.wr-btn-style-soft .wr-action-btn {
    border-radius: 16px;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .wr-actions-modern .wr-action-btn {
        padding: 8px 12px;
        margin: 3px;
        font-size: 12px;
    }
    
    .wr-actions-modern .wr-action-icon {
        font-size: 14px;
    }
    
    .wr-actions-minimal {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wr-actions-minimal .wr-action-btn {
        padding: 12px 6px;
    }
    
    .wr-actions-minimal .wr-action-icon {
        font-size: 20px;
    }
    
    .wr-actions-minimal .wr-action-text {
        font-size: 11px;
    }
}

/* ===== v2.9.16 互动动画样式 ===== */
/* v2.9.22 - 添加倒计时跳过 */
.wr-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.wr-animation-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wr-animation-video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.wr-animation-skip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}

/* v2.9.22 倒计时样式 */
.wr-animation-skip .skip-countdown {
    display: inline-block;
    min-width: 16px;
    text-align: center;
    font-weight: bold;
    color: #ff6b9d;
}

.wr-animation-skip.wr-skip-ready {
    cursor: pointer;
    color: #fff;
    background: rgba(255, 107, 157, 0.3);
    border: 1px solid rgba(255, 107, 157, 0.5);
}

.wr-animation-skip.wr-skip-ready:hover {
    background: rgba(255, 107, 157, 0.5);
    transform: translateX(-50%) scale(1.05);
}

/* 动画淡入效果 */
.wr-animation-overlay {
    animation: wr-animation-fadein 0.3s ease;
}

@keyframes wr-animation-fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 视频容器动画 */
.wr-animation-container {
    animation: wr-animation-scalein 0.3s ease;
}

@keyframes wr-animation-scalein {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .wr-animation-video {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 0;
    }
    
    .wr-animation-skip {
        bottom: 20px;
        font-size: 12px;
    }
}

/* ========================================
   v3.3.0 - 前端上传进度条样式
   ======================================== */
.wr-upload-field {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.wr-upload-field input[type="text"] {
    flex: 1;
}

.wr-upload-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.wr-progress-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.wr-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b95, #ff8fab);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.wr-progress-text {
    font-size: 12px;
    color: #ff6b95;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.wr-frontend-upload-btn.uploading {
    opacity: 0.7;
    pointer-events: none;
}

.wr-file-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wr-file-preview video {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wr-file-preview audio {
    max-width: 250px;
    border-radius: 8px;
}

/* 前端文件预览悬浮窗 */
.wr-file-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wrFadeIn 0.3s ease;
}

@keyframes wrFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wr-file-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.wr-file-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff6b95;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 149, 0.3);
    transition: all 0.3s ease;
}

.wr-file-modal-close:hover {
    background: #d63384;
    transform: scale(1.1);
}

.wr-file-modal-content img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 8px;
}

.wr-file-modal-content video {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 8px;
}

/* ===== v3.4.0 亲密度与连击特效 ===== */

/* 亲密度浮动提示 */
.wr-intimacy-float {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 30;
    animation: wrIntimacyFloat 1.5s ease-out forwards;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
}

@keyframes wrIntimacyFloat {
    0% { opacity: 0; transform: translateY(10px) scale(0.8); }
    20% { opacity: 1; transform: translateY(0) scale(1.1); }
    40% { transform: translateY(-5px) scale(1); }
    80% { opacity: 1; transform: translateY(-15px); }
    100% { opacity: 0; transform: translateY(-25px); }
}

/* 连击指示器 */
.wr-combo-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    z-index: 25;
    animation: wrComboPopIn 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

@keyframes wrComboPopIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
    50% { transform: translate(-50%, -50%) scale(0.95); }
    70% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* 等级提升特效 */
.wr-level-up-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #fff;
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    z-index: 35;
    animation: wrLevelUp 2s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wr-level-up-effect .wr-lv-icon {
    font-size: 24px;
    animation: wrLevelUpBounce 0.5s ease-in-out infinite;
}

@keyframes wrLevelUp {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    40% { transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(1.1); }
}

@keyframes wrLevelUpBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 等级提升闪光效果 */
.wr-level-up-flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    z-index: 20;
    animation: wrFlashPulse 0.5s ease-out;
    pointer-events: none;
}

@keyframes wrFlashPulse {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.2); }
}

/* 点击涟漪效果增强 */
.wr-click-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,149,0.6) 0%, transparent 70%);
    pointer-events: none;
    animation: wrRippleExpand 0.6s ease-out forwards;
    z-index: 15;
}

@keyframes wrRippleExpand {
    0% { width: 20px; height: 20px; opacity: 1; }
    100% { width: 150px; height: 150px; margin-left: -75px; margin-top: -75px; opacity: 0; }
}

/* 心形粒子效果（可选） */
.wr-heart-particle {
    position: absolute;
    font-size: 20px;
    animation: wrHeartFloat 1s ease-out forwards;
    pointer-events: none;
    z-index: 40;
}

@keyframes wrHeartFloat {
    0% { opacity: 1; transform: translateY(0) scale(0.5); }
    50% { opacity: 1; transform: translateY(-30px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-60px) scale(0.8); }
}
