/* 六国山河 - 战国时代风格样式 */
/* 专为第三部任务设计的视觉风格 */

/* ==================== 对话框样式 ==================== */
.warring-era-dialog {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 50%, #1a0f0a 100%);
    border: 3px solid #DAA520;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.3), inset 0 0 60px rgba(0,0,0,0.5);
}

.warring-era-dialog .story-dialog-header h3 {
    color: #DAA520;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.warring-era-dialog .story-chapter {
    color: #D2691E;
    font-size: 14px;
}

.warring-era-dialog .story-dialog-body {
    padding: 20px;
}

.warring-era-dialog .story-scene {
    color: #F5DEB3;
}

.warring-era-dialog .scene-location {
    color: #DAA520;
    font-size: 14px;
    margin-bottom: 10px;
}

.warring-era-dialog .scene-description {
    color: #F5DEB3;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.warring-era-dialog .scene-target {
    color: #C4A484;
    font-size: 14px;
    font-style: italic;
}

/* ==================== 整体色调 ==================== */
.warring-era {
    --warring-primary: #8B4513; /* 青铜色 */
    --warring-secondary: #D2691E; /* 赭色 */
    --warring-accent: #DAA520; /* 金色 */
    --warring-dark: #2F1810; /* 深褐 */
    --warring-text: #F5DEB3; /* 小麦色 */
    --warring-border: #8B7355; /* 鞣色 */
}

/* ==================== 分支对话框 ==================== */
.branch-dialog {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 50%, #1a0f0a 100%);
    border: 3px solid #DAA520;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.3), inset 0 0 60px rgba(0,0,0,0.5);
}

.branch-dialog .story-header {
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.3), transparent);
    border-bottom: 2px solid #DAA520;
    padding: 15px 20px;
}

.branch-dialog .story-title {
    color: #DAA520;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.branch-dialog .story-chapter {
    color: #D2691E;
    font-size: 14px;
}

/* ==================== 分支问题 ==================== */
.branch-question {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.question-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

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

.question-text {
    color: #F5DEB3;
    font-size: 18px;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
}

/* ==================== 分支选项 ==================== */
.branch-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px 20px;
}

.branch-option {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(47, 24, 16, 0.5) 100%);
    border: 2px solid #8B7355;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.branch-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.2), transparent);
    transition: left 0.5s ease;
}

.branch-option:hover::before {
    left: 100%;
}

.branch-option:hover {
    border-color: #DAA520;
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(218, 165, 32, 0.3);
}

.option-title {
    color: #F5DEB3;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.option-desc {
    color: #C4A484;
    font-size: 14px;
    line-height: 1.4;
}

.option-effect {
    color: #90EE90;
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.option-effect::before {
    content: '💕';
}

.option-skill {
    color: #FFD700;
    font-size: 12px    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.option-skill::before {
    content: '✨';
}

/* ==================== NPC好感度面板 ==================== */
.warring-npc-panel {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 100%);
    border: 2px solid #8B7355;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.warring-npc-panel .panel-title {
    color: #DAA520;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #8B7355;
}

.npc-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(139, 69, 19, 0.15);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.npc-card:hover {
    background: rgba(139, 69, 19, 0.25);
    border-color: rgba(218, 165, 32, 0.3);
}

.npc-avatar {
    font-size: 40px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 24, 16, 0.5);
    border-radius: 50%;
    border: 2px solid #8B7355;
}

.npc-info {
    flex: 1;
}

.npc-name {
    color: #F5DEB3;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.npc-title {
    color: #C4A484;
    font-size: 12px;
}

.npc-status {
    text-align: right;
}

.npc-affection-bar {
    width: 120px;
    height: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.npc-affection-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #9b59b6);
    transition: width 0.5s ease;
}

.npc-affection-text {
    color: #C4A484;
    font-size: 11px;
}

/* ==================== 玉佩收集界面 ==================== */
.jade-collection-panel {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 100%);
    border: 2px solid #DAA520;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.jade-collection-panel .panel-header {
    text-align: center;
    margin-bottom: 20px;
}

.jade-collection-panel .panel-title {
    color: #DAA520;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.jade-collection-panel .panel-subtitle {
    color: #C4A484;
    font-size: 14px;
}

.jade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.jade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(139, 69, 19, 0.15);
    border-radius: 10px;
    border: 2px solid #8B7355;
    transition: all 0.3s ease;
}

.jade-item.obtained {
    border-color: #DAA520;
    background: rgba(218, 165, 32, 0.1);
}

.jade-item.obtained::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    color: #90EE90;
    font-weight: bold;
    font-size: 18px;
}

.jade-item.missing {
    opacity: 0.6;
    border-style: dashed;
}

.jade-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.jade-name {
    color: #F5DEB3;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.jade-desc {
    color: #C4A484;
    font-size: 10px;
    text-align: center;
}

.jade-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-top: 15px;
}

.jade-progress-text {
    color: #F5DEB3;
    font-size: 14px;
}

.jade-progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
}

.jade-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71);
    transition: width 0.5s ease;
}

/* ==================== 八阵图系统 ==================== */
.bagua-formation-panel {
    background: linear-gradient(135deg, #0a0f1a 0%, #10202d 100%);
    border: 2px solid #4a90a4;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.bagua-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.bagua-position {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(74, 144, 164, 0.1);
    border: 2px solid #2c3e50;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bagua-position.active {
    border-color: #4a90a4;
    background: rgba(74, 144, 164, 0.3);
    box-shadow: 0 0 15px rgba(74, 144, 164, 0.5);
}

.bagua-position.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.bagua-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.bagua-name {
    color: #ecf0f1;
    font-size: 12px;
    font-weight: bold;
}

.bagua-effect {
    color: #95a5a6;
    font-size: 10px;
    text-align: center;
}

/* ==================== 炼丹系统 ==================== */
.alchemy-panel {
    background: linear-gradient(135deg, #1a0a0f 0%, #2d1018 100%);
    border: 2px solid #a44a4a;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.alchemy-recipes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.recipe-card {
    padding: 15px;
    background: rgba(164, 74, 74, 0.1);
    border: 2px solid #5a2a2a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recipe-card:hover {
    border-color: #a44a4a;
    background: rgba(164, 74, 74, 0.2);
}

.recipe-card.available {
    border-color: #2ecc71;
}

.recipe-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.recipe-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.recipe-icon {
    font-size: 32px;
}

.recipe-name {
    color: #f5deb3;
    font-size: 15px;
    font-weight: bold;
}

.recipe-rank {
    color: #ffd700;
    font-size: 12px;
}

.recipe-desc {
    color: #c4a484;
    font-size: 12px;
    margin-bottom: 10px;
}

.recipe-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.material-item {
    padding: 4px 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    color: #95a5a6;
    font-size: 11px;
}

.material-item.have {
    color: #2ecc71;
}

.material-item.missing {
    color: #e74c3c;
}

.craft-button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: linear-gradient(135deg, #a44a4a 0%, #8b3a3a 100%);
    border: none;
    border-radius: 6px;
    color: #f5deb3;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.craft-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #c45a5a 0%, #a44a4a 100%);
    transform: translateY(-2px);
}

.craft-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 结局选择界面 ==================== */
.ending-selection-panel {
    background: linear-gradient(135deg, #0a1a2d 0%, #1a2d4a 100%);
    border: 2px solid #4a6a9a;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.ending-selection-panel .panel-title {
    color: #6ab0de;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ending-selection-panel .panel-subtitle {
    color: #8a9aba;
    font-size: 14px;
    margin-bottom: 25px;
}

.available-endings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.ending-card {
    width: 200px;
    padding: 20px;
    background: rgba(74, 106, 154, 0.15);
    border: 2px solid #3a5a7a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ending-card:hover {
    border-color: #6ab0de;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 176, 222, 0.3);
}

.ending-card.legendary {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.ending-card.epic {
    border-color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

.ending-card.rare {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.ending-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.ending-name {
    color: #ecf0f1;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.ending-desc {
    color: #8a9aba;
    font-size: 12px;
    line-height: 1.4;
}

.ending-requirement {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 10px;
    font-style: italic;
}

.ending-requirement.satisfied {
    color: #2ecc71;
}

/* ==================== 成就系统 ==================== */
.achievement-panel {
    background: linear-gradient(135deg, #1a1a2d 0%, #2d2d4a 100%);
    border: 2px solid #6a6a9a;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(106, 106, 154, 0.1);
    border-radius: 10px;
    border: 1px solid #4a4a7a;
}

.achievement-item.completed {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.achievement-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    color: #ecf0f1;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-desc {
    color: #8a8aba;
    font-size: 12px;
}

.achievement-progress {
    color: #ffd700;
    font-size: 12px;
    margin-top: 5px;
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px currentColor; }
    50% { box-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

.warring-animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.warring-animate-slideIn {
    animation: slideIn 0.3s ease-out;
}

.warring-animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* ==================== 材料收集界面 ==================== */
.gather-progress {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.gather-progress p {
    color: #F5DEB3;
    font-size: 16px;
    margin-bottom: 10px;
}

.gather-items {
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.gather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 8px;
}

.gather-item:last-child {
    margin-bottom: 0;
}

.gather-item .item-name {
    color: #F5DEB3;
    font-size: 14px;
    font-weight: bold;
}

.gather-item .item-require {
    color: #C4A484;
    font-size: 12px;
}

.gather-tip {
    color: #DAA520;
    font-size: 13px;
    text-align: center;
    font-style: italic;
    margin-top: 10px;
}

/* ==================== 旅途战斗界面 ==================== */
.journey-battle-info {
    background: rgba(139, 69, 19, 0.2);
    border: 2px solid #DAA520;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
}

.journey-battle-info .battle-count {
    color: #F5DEB3;
    font-size: 18px;
    margin-bottom: 10px;
}

.journey-battle-info .enemy-list {
    color: #C4A484;
    font-size: 14px;
}

.journey-battle-info .current-battle {
    color: #DAA520;
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
}

/* ==================== 同伴招募系统界面 ==================== */
.companion-panel {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 50%, #1a0f0a 100%);
    border: 2px solid #DAA520;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    max-width: 800px;
}

.companion-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.companion-panel-header h3 {
    color: #DAA520;
    font-size: 20px;
    margin: 0;
}

.companion-panel-header .party-info {
    color: #F5DEB3;
    font-size: 14px;
}

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

.companion-tab {
    padding: 10px 20px;
    background: rgba(139, 69, 19, 0.2);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    color: #F5DEB3;
    cursor: pointer;
    transition: all 0.3s;
}

.companion-tab:hover {
    background: rgba(218, 165, 32, 0.2);
}

.companion-tab.active {
    background: rgba(218, 165, 32, 0.3);
    border-color: #DAA520;
    color: #DAA520;
}

.companion-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.companion-card {
    background: rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

.companion-card:hover {
    background: rgba(139, 69, 19, 0.25);
    border-color: rgba(218, 165, 32, 0.4);
    transform: translateY(-2px);
}

.companion-card.in-party {
    border-color: #27ae60;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.3);
}

.companion-card.available {
    border-color: #f39c12;
}

.companion-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.companion-avatar {
    width: 50px;
    height: 50px;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.companion-info h4 {
    color: #F5DEB3;
    font-size: 16px;
    margin: 0 0 4px 0;
}

.companion-info .title {
    color: #C4A484;
    font-size: 12px;
}

.companion-rarity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.companion-rarity.common {
    background: rgba(153, 153, 153, 0.2);
    color: #999;
}

.companion-rarity.rare {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.companion-rarity.epic {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.companion-rarity.legendary {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.companion-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.companion-stat {
    text-align: center;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.companion-stat-label {
    color: #C4A484;
    font-size: 10px;
}

.companion-stat-value {
    color: #F5DEB3;
    font-size: 14px;
    font-weight: bold;
}

.companion-role {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    margin-right: 5px;
}

.companion-role.warrior {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.companion-role.mage {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.companion-role.assassin {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.companion-role.healer {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.companion-role.support {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.companion-skills {
    margin: 10px 0;
}

.companion-skill {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    margin-bottom: 6px;
}

.companion-skill:last-child {
    margin-bottom: 0;
}

.companion-skill-icon {
    width: 24px;
    height: 24px;
    background: rgba(218, 165, 32, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
}

.companion-skill-name {
    color: #F5DEB3;
    font-size: 12px;
    flex: 1;
}

.companion-skill-desc {
    color: #C4A484;
    font-size: 10px;
}

.companion-affection {
    margin: 10px 0;
}

.companion-affection-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.companion-affection-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    transition: width 0.3s;
}

.companion-affection-text {
    color: #C4A484;
    font-size: 11px;
    margin-top: 4px;
}

.companion-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.companion-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.companion-btn-primary {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: #1a0f0a;
}

.companion-btn-primary:hover {
    background: linear-gradient(135deg, #f1c40f, #DAA520);
}

.companion-btn-secondary {
    background: rgba(139, 69, 19, 0.3);
    color: #F5DEB3;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.companion-btn-secondary:hover {
    background: rgba(139, 69, 19, 0.5);
}

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

.companion-req-list {
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.companion-req-item {
    display: flex;
    align-items: center;
    color: #C4A484;
    font-size: 11px;
    margin-bottom: 4px;
}

.companion-req-item:last-child {
    margin-bottom: 0;
}

.companion-req-item.met {
    color: #27ae60;
}

.companion-req-item.unmet {
    color: #e74c3c;
}

.companion-req-icon {
    margin-right: 6px;
}

/* 战斗中的同伴显示 */
.battle-companion-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.battle-companion {
    width: 60px;
    height: 60px;
    background: rgba(26, 15, 10, 0.9);
    border: 2px solid #DAA520;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.battle-companion-avatar {
    font-size: 28px;
}

.battle-companion-hp-bar {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

.battle-companion-hp-fill {
    height: 100%;
    background: #27ae60;
    border-radius: 2px;
}

.battle-companion-action {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: companionAction 0.5s ease-out;
}

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

.companion-dialogue {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 15, 10, 0.95);
    border: 2px solid #DAA520;
    border-radius: 10px;
    padding: 12px 20px;
    color: #F5DEB3;
    font-size: 14px;
    z-index: 1001;
    animation: dialogueFade 3s ease-out forwards;
}

@keyframes dialogueFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* 同招募状态提示 */
.companion-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}

.companion-status-badge.recruited {
    background: rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.companion-status-badge.available {
    background: rgba(243, 156, 18, 0.3);
    color: #f39c12;
}

.companion-status-badge.locked {
    background: rgba(149, 165, 166, 0.3);
    color: #95a5a6;
}

/* 稀有度边框效果 */
.companion-card.rare {
    border-color: rgba(52, 152, 219, 0.5);
}

.companion-card.epic {
    border-color: rgba(155, 89, 182, 0.5);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.2);
}

.companion-card.legendary {
    border-color: rgba(243, 156, 18, 0.5);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
    animation: legendaryGlow 3s ease-in-out infinite;
}

@keyframes legendaryGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(243, 156, 18, 0.3); }
    50% { box-shadow: 0 0 30px rgba(243, 156, 18, 0.5); }
}
