/* 移动端优先设计 - 南昌富婆模拟器 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #2b003d 0%, #000000 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* 主容器 - 移动端优先 */
.main-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px 80px 15px;
    min-height: calc(100vh - 140px);
}

/* 顶部财富状态栏 */
.wealth-status {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #ff006e, #8338ec);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(255, 0, 110, 0.3);
    backdrop-filter: blur(10px);
}

.wealth-item {
    text-align: center;
    flex: 1;
}

.wealth-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.wealth-value {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* NPC 区域 */
.npc-section, .conquered-section {
    margin: 20px 0;
}

.section-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff006e, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.npc-list, .conquered-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}

/* NPC 卡片设计 - 移动端优化 */
.npc-card {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.2), rgba(255, 0, 110, 0.1));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 100px; /* 确保足够高度 */
}

.npc-card:active {
    transform: scale(0.95);
    box-shadow: 0 5px 25px rgba(255, 0, 110, 0.4);
}

.npc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.npc-card:hover::before {
    left: 100%;
}

.npc-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff006e, #8338ec);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
    margin-top: 5px;
}

.npc-info {
    flex: 1;
    min-width: 0; /* 允许文本截断 */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.npc-name {
    font-size: 14px;
    font-weight: bold;
    color: #00ff88;
    line-height: 1.2;
    word-break: break-all; /* 允许长名字换行 */
}

.npc-details {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.3;
    word-break: break-all; /* 允许长职业名换行 */
    max-height: 2.6em; /* 限制最多2行 */
    overflow: hidden;
}

.npc-tags {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.npc-tag {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 9px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    white-space: nowrap;
}

.npc-status {
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.charm-rating {
    color: #ff006e;
    font-size: 12px;
}

.pursue-btn {
    background: linear-gradient(45deg, #ff006e, #8338ec);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
    font-weight: bold;
    white-space: nowrap;
}

.pursue-btn:active {
    transform: scale(0.9);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #2b003d, #1a0026);
    display: flex;
    padding: 10px 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    padding: 10px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 48px;
}

.nav-btn:active {
    transform: scale(0.9);
    background: rgba(255, 0, 110, 0.2);
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    font-size: 10px;
    opacity: 0.8;
}

/* 表白弹窗 */
.confession-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #2b003d, #1a0026);
    border: 2px solid #ff006e;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(255, 0, 110, 0.3);
}

.modal-content .npc-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    font-size: 32px;
}

.modal-content .npc-name {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00ff88;
}

.confession-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.9;
}

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

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.accept-btn {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
}

.reject-btn {
    background: linear-gradient(45deg, #ff006e, #cc0055);
    color: #fff;
}

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

/* 金币掉落动画 */
.coin-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1500;
}

.coin {
    position: absolute;
    font-size: 20px;
    animation: coinFall 2s ease-in forwards;
    pointer-events: none;
}

@keyframes coinFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 截图分享遮罩 */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2b003d 0%, #000000 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.share-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.share-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff006e, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-wealth {
    background: rgba(255, 0, 110, 0.1);
    border: 2px solid #ff006e;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.share-npc {
    margin-bottom: 30px;
}

.close-share {
    background: linear-gradient(45deg, #ff006e, #8338ec);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    min-height: 48px;
}

/* 滚动条美化 */
.npc-list::-webkit-scrollbar,
.conquered-list::-webkit-scrollbar {
    width: 4px;
}

.npc-list::-webkit-scrollbar-track,
.conquered-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.npc-list::-webkit-scrollbar-thumb,
.conquered-list::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border-radius: 2px;
}

/* 大屏幕适配 */
@media (min-width: 768px) {
    .main-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .bottom-nav {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
    }
    
    .wealth-status {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* 已攻略状态样式 */
.npc-card.conquered {
    border-color: rgba(0, 255, 136, 0.6);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(131, 56, 236, 0.1));
}

.npc-card.conquered .npc-name {
    color: #00ff88;
}

.conquered-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00ff88;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}
/* 升级版新增样式 */

/* 好感度进度条 - 移动端优化 */
.favor-container {
    margin-top: 6px;
}

.favor-label {
    font-size: 9px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.favor-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.favor-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff006e, #00ff88);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.favor-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: favorShine 2s ease-in-out infinite;
}

/* 锁定的NPC卡片 */
.npc-card.locked {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.2), rgba(50, 50, 50, 0.1));
}

.locked-avatar {
    background: linear-gradient(45deg, #666, #333) !important;
    color: #999;
}

.locked-name {
    color: #999 !important;
}

.unlock-condition {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
}

.locked-status {
    color: #999;
    font-size: 12px;
}

/* 财富阶梯显示 */
.wealth-status[data-tier="rookie"] {
    background: linear-gradient(90deg, #666, #999);
}

.wealth-status[data-tier="citizen"] {
    background: linear-gradient(90deg, #8338ec, #ff006e);
}

.wealth-status[data-tier="elite"] {
    background: linear-gradient(90deg, #ff006e, #00ff88);
}

.wealth-status[data-tier="legend"] {
    background: linear-gradient(90deg, #ffd700, #ff6b35);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* 送礼弹窗 */
.gift-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.gift-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.gift-btn {
    background: linear-gradient(45deg, #8338ec, #ff006e);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gift-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.gift-btn:not(:disabled):active {
    transform: scale(0.95);
}

/* 拒绝弹窗 */
.rejection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.rejection-content {
    border-color: #ff006e;
    text-align: center;
}

.rejection-text {
    color: #ff006e;
    font-weight: bold;
    margin: 15px 0;
}

.requirement-hint {
    background: rgba(255, 0, 110, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin: 15px 0;
}

/* 商店弹窗 */
.shop-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.shop-content {
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(131, 56, 236, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    color: #00ff88;
    margin-bottom: 5px;
}

.item-desc {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.item-effects {
    font-size: 11px;
    color: #ff006e;
}

.buy-btn {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    min-width: 80px;
}

.buy-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

.buy-btn:not(:disabled):active {
    transform: scale(0.95);
}

/* 投资区域 */
.investment-section {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.invest-btn {
    background: linear-gradient(45deg, #ff006e, #8338ec);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

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

/* 投资弹窗 */
.investment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.investment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.investment-btn {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.2), rgba(255, 0, 110, 0.1));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.investment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.investment-btn:not(:disabled):hover {
    border-color: rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

.investment-btn:not(:disabled):active {
    transform: scale(0.95);
}

.investment-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.investment-amount {
    color: #00ff88;
    margin-bottom: 3px;
}

.investment-risk {
    color: #ff006e;
    font-size: 12px;
}

/* 段位显示 */
.tier-display {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 53, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 15px;
}

/* 滚动条优化 */
.shop-content::-webkit-scrollbar {
    width: 4px;
}

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

.shop-content::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff006e, #8338ec);
    border-radius: 2px;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .shop-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .investment-options {
        gap: 10px;
    }
    
    .gift-options {
        gap: 8px;
    }
}
/* 重构升级版新增样式 */

/* 解锁差距提示 */
.unlock-gap {
    font-size: 10px;
    color: #ff006e;
    margin-top: 3px;
    font-weight: bold;
}

/* 暴击效果 */
.critical-hit {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    color: #000;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    z-index: 3000;
    opacity: 0;
    scale: 0.5;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    border: 3px solid #fff;
}

.critical-hit.show {
    opacity: 1;
    scale: 1;
    animation: criticalPulse 2s ease-in-out;
}

@keyframes criticalPulse {
    0%, 100% { scale: 1; }
    50% { scale: 1.1; }
}

/* 随机事件弹窗 */
.random-event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 20px;
}

.event-content {
    background: linear-gradient(135deg, #2b003d, #1a0026);
    border: 2px solid #00ff88;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0, 255, 136, 0.3);
}

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

.event-title {
    font-size: 20px;
    color: #00ff88;
    margin-bottom: 15px;
}

.event-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* 女王巡街按钮特效 */
.nav-btn:first-child {
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    color: #000;
    font-weight: bold;
}

.nav-btn:first-child:active {
    transform: scale(0.9);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.nav-btn:first-child .nav-icon {
    animation: queenWalk 2s ease-in-out infinite;
}

@keyframes queenWalk {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* 底部导航适配5个按钮 */
.bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 8px 5px;
}

.nav-btn {
    padding: 8px 3px;
    font-size: 10px;
}

.nav-icon {
    font-size: 18px;
}

.nav-text {
    font-size: 9px;
}

/* 好感度进度条增强 */
.favor-progress {
    background: linear-gradient(90deg, #ff006e, #00ff88);
    position: relative;
    overflow: hidden;
}

.favor-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: favorShine 2s ease-in-out infinite;
}

@keyframes favorShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 锁定NPC卡片优化 */
.npc-card.locked {
    position: relative;
    overflow: hidden;
}

.npc-card.locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 0, 110, 0.1) 10px,
        rgba(255, 0, 110, 0.1) 20px
    );
    pointer-events: none;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .critical-hit {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-icon {
        font-size: 36px;
    }
    
    .nav-btn {
        padding: 6px 2px;
    }
    
    .nav-icon {
        font-size: 16px;
    }
    
    .nav-text {
        font-size: 8px;
    }
}

/* 赚钱倍率显示 */
.wealth-status::after {
    content: attr(data-multiplier);
    position: absolute;
    top: -5px;
    right: 10px;
    background: rgba(255, 215, 0, 0.8);
    color: #000;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
}
/* 隐藏功能：存款文字可点击提示 */
.wealth-value {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.wealth-value:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.wealth-value:active {
    transform: scale(0.95);
}
/* 新功能样式 */

/* 刷新按钮和标题区域 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.refresh-btn {
    background: linear-gradient(45deg, #8338ec, #ff006e);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 36px;
}

.refresh-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 15px rgba(131, 56, 236, 0.5);
}

.refresh-btn:hover {
    background: linear-gradient(45deg, #ff006e, #8338ec);
}

/* NPC赠送礼物弹窗 */
.gift-from-npc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 20px;
}

.gift-content {
    background: linear-gradient(135deg, #2b003d, #1a0026);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.3);
}

.gift-content .npc-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    font-size: 28px;
}

.gift-icon {
    font-size: 48px;
    margin: 15px 0;
    animation: giftBounce 2s ease-in-out infinite;
}

@keyframes giftBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.gift-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0;
    opacity: 0.9;
    font-style: italic;
}

.gift-reward {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

/* 女王巡街按钮特殊样式 */
.nav-btn:first-child {
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    color: #000;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.nav-btn:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: walkShine 3s ease-in-out infinite;
}

@keyframes walkShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.nav-btn:first-child:active {
    transform: scale(0.9);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* 响应式优化 */
@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .refresh-btn {
        width: 100%;
        padding: 10px;
    }
    
    .gift-content {
        padding: 20px;
    }
    
    .gift-icon {
        font-size: 36px;
    }
}
/* 后宫头衔管理系统样式 */

/* NPC头衔显示 */
.npc-title {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* 头衔管理按钮 */
.title-manage-btn {
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    color: #000;
    border: none;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 3px;
}

.title-manage-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* 头衔管理弹窗 */
.title-management-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 20px;
}

.title-content {
    background: linear-gradient(135deg, #2b003d, #1a0026);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.3);
}

.title-content h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 20px;
}

.title-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.title-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 53, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 12px 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: bold;
}

.title-btn:hover {
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 107, 53, 0.2));
    transform: translateY(-2px);
}

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

.title-btn[data-title=""] {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.1));
    border-color: rgba(255, 0, 110, 0.3);
}

.title-btn[data-title=""]:hover {
    border-color: rgba(255, 0, 110, 0.6);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.3), rgba(131, 56, 236, 0.2));
}

/* 存档提示 */
.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 255, 136, 0.8);
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.save-indicator.show {
    opacity: 1;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .title-content {
        padding: 20px;
    }
    
    .title-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .title-btn {
        padding: 10px;
        font-size: 11px;
    }
    
    .npc-title {
        font-size: 9px;
        padding: 1px 6px;
    }
    
    .title-manage-btn {
        font-size: 9px;
        padding: 3px 6px;
    }
}