* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0c0c14;
    color: #e0d0b0;
    background-image: url('');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 10px;
    padding-bottom: 80px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.panel {
    background-color: rgba(20, 15, 10, 0.85);
    border: 2px solid #8b7355;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(139, 115, 85, 0.3);
}

.panel-header {
    color: #ffd700;
    border-bottom: 1px solid #8b7355;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header i {
    color: #c0a060;
}

.stats-label {
    color: #c0a060;
}

.stats-value {
    color: #fff;
    font-weight: bold;
}

.hp-bar {
    position: relative;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    margin: 5px 0;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.hp-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, #800000, #ff0000);
    width: 0%;
    z-index: 2;
}

.hp-delay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 100, 100, 0.4);
    width: 0%;
    z-index: 1;
}


.equipment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.equipment-slot {
    background-color: #2a2a2a;
    border: 1px solid #5a4a3a;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.equipment-slot:hover {
    border-color: #ffd700;
    background-color: #3a3a3a;
}

.equipment-slot i {
    font-size: 1.5rem;
    color: #c0a060;
}

.equipment-name {
    font-weight: bold;
    color: #ffd700;
    margin-top: 5px;
    font-size: 0.8rem;
}

.equipment-type {
    color: #c0a060;
    font-size: 0.7rem;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    max-height: 45vh;
    min-height: 150px;
    overflow-y: auto;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.inventory-slot {
    aspect-ratio: 1 / 1;
    background-color: #2a2a2a;
    border: 1px solid #5a4a3a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.inventory-slot .item-name {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    padding: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    line-height: 1;
    z-index: 2;
}

.inventory-slot i {
    font-size: 1.5rem;
    color: #c0a060;
}

.item-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.8rem;
    color: #ffd700;
    font-weight: bold;
}

.inventory-controls {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.inventory-controls .btn:hover {
    background: linear-gradient(to bottom, #7a6048, #5a4a3a);
    border-color: #ffd700;
}

.inventory-count {
    text-align: center;
    color: #c0a060;
    margin-top: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    max-height: 45vh;
    overflow-y: auto;
    padding: 5px;
}

.skill-item {
    background-color: #2a2a2a;
    border: 1px solid #5a4a3a;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.skill-name {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.skill-desc {
    color: #c0c0c0;
    font-size: 0.8rem;
}

.skill-level {
    color: #00ffff;
    font-size: 0.8rem;
    margin-top: 5px;
}

.map-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.map-option {
    padding: 10px;
    background-color: #2a2a2a;
    border: 1px solid #5a4a3a;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

.map-option.selected {
    border-color: #ffd700;
    background-color: #5a4a3a;
}

.map-name {
    font-weight: bold;
    color: #ffd700;
    font-size: 0.9rem;
}

.map-desc {
    font-size: 0.8rem;
    color: #c0c0c0;
}

.btn {
    background: linear-gradient(to bottom, #8b7355, #5a4a3a);
    color: #ffd700;
    border: 1px solid #c0a060;
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(to bottom, #b52e2e, #8b0000);
    border-color: #ff8c00;
    color: #fff3c9;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #d43f3f, #a00000);
    border-color: #ffaa33;
}
.btn-primary:active {
    background: linear-gradient(to bottom, #8b0000, #6b0000);
}

.btn-success {
    background: linear-gradient(to bottom, #2e7d32, #1b5e20);
    border-color: #6fbf6f;
    color: #ffffff;
}
.btn-success:hover {
    background: linear-gradient(to bottom, #3c9e40, #2a7a2e);
    border-color: #a0e0a0;
}
.btn-success:active {
    background: linear-gradient(to bottom, #1b5e20, #0e3a12);
}
.btn-danger {
    background: linear-gradient(to bottom, #b22222, #8b1a1a);
    border-color: #ff6666;
    color: #fff0f0;
}
.btn-danger:hover {
    background: linear-gradient(to bottom, #d43f3f, #a52a2a);
    border-color: #ff8888;
}
.btn-danger:active {
    background: linear-gradient(to bottom, #8b1a1a, #6a1010);
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.combat-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.combat-log {
    height: 35vh;
    min-height: 120px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin-top: 10px;
	height: 200px;
	overflow-y: auto;
	padding: 10px;
	font-family: 'Courier New', monospace;
	font-size: 0.75rem;
	line-height: 1.5;
}
.log-entry {
    margin-bottom: 5px;
    border-bottom: 1px dashed #3a3a3a;
    padding-bottom: 5px;
}

.log-time {
    color: #808080;
    margin-right: 8px;
}

.log-info { color: #ffffff; }
.log-combat { color: #ffa500; }
.log-damage { color: #ff4444; }
.log-heal { color: #44ff44; }
.log-loot { color: #ffd700; }
.log-level { color: #00ffff; }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal .modal-content {
    z-index: 1001;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #1a1510;
    border: 2px solid #8b7355;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
}

.modal-header {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #8b7355;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #c0a060;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #5a4a3a;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .btn {
    flex: 1;
    margin: 0 5px;
}
.modal-buttons .btn:first-child {
    margin-left: 0;
}
.modal-buttons .btn:last-child {
    margin-right: 0;
}
.warning-text {
    color: #ff4444;
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 15, 10, 0.95);
    border-top: 2px solid #8b7355;
    display: flex;
    justify-content: space-around;
    padding: 8px 5px;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #c0a060;
    padding: 5px;
    border-radius: 8px;
    flex: 1;
    max-width: 70px;
    cursor: pointer;
}

.nav-item.active {
    color: #ffd700;
    background-color: rgba(139, 115, 85, 0.3);
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 3px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: bold;
}

@media (min-width: 769px) {
    body {
        max-width: 600px;
        margin: 0 auto;
    }
}

.mobile-panel {
    display: none;
}

.mobile-panel.active {
    display: block;
}

.equipment-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    justify-content: center;
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 5px;
}

@media (min-width: 480px) {
    .equipment-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.equipment-list .equipment-slot {
    min-height: 120px;
    padding: 10px 5px;
    background-color: rgba(42, 42, 42, 0.9);
}

.equipment-list .equipment-slot i {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.global-tip {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid #8b7355;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.global-tip.show {
    opacity: 1;
}

.global-combat-log {
    position: fixed;
    bottom: 80px;
    right: 10px;
    left: auto;
    width: 240px;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 3000;
    pointer-events: none;
}

.combat-log-message {
    background-color: transparent;
    color: #e0d0b0;
    font-size: 0.9rem;
    padding: 8px 12px;
    margin-top: 5px;
    border-left: 4px solid #8b7355;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    width: 100%;
    word-wrap: break-word;
    animation: slideInOutRight 3s forwards;
    transform-origin: right;
}

.combat-log-message.damage { border-left-color: #ff4444; }
.combat-log-message.skill  { border-left-color: #44aaff; }
.combat-log-message.heal   { border-left-color: #44ff44; }
.combat-log-message.loot   { border-left-color: #ffd700; }
.combat-log-message.level  { border-left-color: #00ffff; }
.combat-log-message.info   { border-left-color: #c0a060; }

@keyframes slideInOutRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    10% {
        transform: translateX(0);
        opacity: 1;
    }
    80% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.message-text {
    background-color: rgba(0,0,0,0.7);
    padding: 2px 5px;
    border-radius: 3px;
}

.online-list {
    max-height: 25vh;
    min-height: 100px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
}
.online-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #5a4a3a;
    cursor: pointer;
}
.online-item:hover {
    background: #3a3a3a;
}
.online-name {
    flex: 2;
    color: #ffd700;
    font-weight: bold;
}
.online-level {
    flex: 1;
    color: #c0a060;
    font-size: 0.8rem;
}

.chat-messages {
    height: 30vh;
    min-height: 150px;
    overflow-y: auto;
    background: #1a1510;
    border: 1px solid #5a4a3a;
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.chat-message {
    margin-bottom: 5px;
    padding: 3px 5px;
    border-bottom: 1px dashed #3a3a3a;
    word-break: break-all;
}
.chat-message.private {
    color: #ffaaff;
    background: rgba(255,170,255,0.1);
}
.chat-input-area {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
}

.chat-input-area input {
    flex: 1;
    min-width: 0;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #5a4a3a;
    border-radius: 4px;
    color: #fff;
}

.chat-input-area button {
    flex-shrink: 0;
    white-space: nowrap;
}

.chat-message.system {
    color: red;
	font-weight: bold;
}

#send-public-btn {
    padding: 10px 15px;
}

#map-monsters-content table {
    color: #c0a060;
}
#map-monsters-content th {
    color: #ffd700;
    text-align: left;
}
#map-monsters-content td {
    color: #c0c0c0;
}

#item-action-modal {
    z-index: 2000;
}
.tab-bar { display: flex; border-bottom: 2px solid #5a4a3a; margin-bottom: 10px; }
.tab { padding: 5px 15px; cursor: pointer; color: #c0a060; }
.tab.active { background: #3a2e24; border: 1px solid #5a4a3a; border-bottom: none; border-radius: 5px 5px 0 0; color: #ffd700; }
.board-container { margin-top: 10px; }
.board-messages { max-height: 300px; overflow-y: auto; background: #2a1e14; padding: 5px; border: 1px solid #5a4a3a; }
.board-item { margin-bottom: 8px; border-bottom: 1px dashed #5a4a3a; padding-bottom: 5px; }
.board-sender { color: #ffd700; font-weight: bold; margin-right: 10px; }
.board-time { color: #888; font-size: 0.8rem; }
.board-content { color: #fff; margin-top: 3px; word-wrap: break-word; }
.board-input-area {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    margin-top: 10px;
}

.board-input-area input {
    flex: 1;
    min-width: 0;
    padding: 5px;
    background: #2a1e14;
    border: 1px solid #5a4a3a;
    color: #fff;
}

.board-input-area button {
    flex-shrink: 0;
    white-space: nowrap;
    background: #5a4a3a;
    color: #ffd700;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
}

.rankings-container {
    margin-top: 10px;
}
.rankings-list {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 5px;
}
.rankings-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #5a4a3a;
    cursor: pointer;
}
.rankings-item:hover {
    background: #3a3a3a;
}
.rankings-rank {
    width: 30px;
    color: #ffd700;
    font-weight: bold;
    margin-right: 5px;
}
.rankings-name {
    flex: 2;
    color: #ffd700;
    font-weight: bold;
}
.rankings-level {
    flex: 1;
    color: #c0a060;
    font-size: 0.9rem;
}
.rankings-empty {
    color: #c0a060;
    text-align: center;
    padding: 20px;
}

/* 任务系统样式 */
#task-modal .task-loading {
    text-align: center;
    color: #ffd700;
    margin: 30px 0;
    font-style: italic;
}

#task-modal .task-error {
    text-align: center;
    color: #ff4444;
    margin: 30px 0;
}

#task-modal .task-empty {
    text-align: center;
    color: #ffd700;
    margin: 30px 0;
    padding: 20px;
}


#task-modal .task-detail {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 15px;
}

#task-modal .task-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 5px;
    border-bottom: 1px dashed #3a3a3a;
}

#task-modal .task-label {
    color: #c0a060;
}

#task-modal .task-value {
    color: #ffd700;
    font-weight: bold;
}

#task-modal .task-status-ok {
    color: #44ff44;
}

#task-modal .task-status-missing {
    color: #ff4444;
}

#task-modal .task-progress-container {
    position: relative;
    height: 30px;
    background: #2a2a2a;
    border-radius: 15px;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid #5a4a3a;
}

#task-modal .task-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.3s ease;
}

#task-modal .task-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

#task-modal .task-ready {
    text-align: center;
    color: #44ff44;
    margin: 15px 0 5px;
    padding: 8px;
    background: rgba(68, 255, 68, 0.1);
    border-radius: 5px;
    border: 1px solid #44ff44;
}

#task-modal .task-cooldown {
    text-align: center;
    padding: 30px 20px;
    color: #ffaa00;
}

#task-modal .task-cooldown i {
    color: #ffaa00;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-header {
    position: relative;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #8b1a1a;
    color: #ffd700;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #8b1a1a;
    color: #ffd700;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.modal .close-btn:hover {
    background: #b22222;
    transform: scale(1.1);
}

.modal .close:hover {
    background: #b22222;
    transform: scale(1.1);
}

#lottery-result {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
}

#task-modal .task-progress-bar {
    background: linear-gradient(90deg, #4caf50, #8bc34a, #4caf50);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

#task-modal .task-ready {
    background: rgba(68, 255, 68, 0.15);
    border: 1px solid #44ff44;
    border-radius: 5px;
    padding: 8px;
    text-align: center;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%   { opacity: 0.8; }
    50%  { opacity: 1; }
    100% { opacity: 0.8; }
}

#task-modal .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

#lottery-select .modal-buttons .btn {
    min-width: 80px;
    background: linear-gradient(to bottom, #8b7355, #5a4a3a);
    border: 1px solid #c0a060;
    transition: all 0.2s;
}

#lottery-select .modal-buttons .btn:hover {
    background: linear-gradient(to bottom, #a58b6a, #7a6148);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@media (max-height: 700px) {
    .inventory-grid {
        max-height: 35vh;
    }
    .skills-grid {
        max-height: 35vh;
    }
    .combat-log {
        height: 25vh;
    }
    .online-list {
        max-height: 22vh;
    }
    .chat-messages {
        height: 25vh;
    }
    .equipment-list {
        max-height: 45vh;
    }
    .modal-content {
        max-height: 80vh;
    }
}

.status-tabs,
.equipment-tabs,
.inventory-tabs,
.skill-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tab-btn {
    flex: 1;
    text-align: center;
    background: #2a241c;
    border: 1px solid #6a5a4a;
    color: #c0a060;
    transition: all 0.2s ease;
    font-weight: bold;
    padding: 8px 4px;
    white-space: normal;
    word-break: break-word;
    background-image: none !important;
}

.tab-btn:hover {
    background: #3a2e24;
    border-color: #c0a060;
}

.tab-btn.active {
    background: #4a3a2a;
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

body {
	background-color: #0c0c14;
	color: #e0d0b0;
	background-image: radial-gradient(circle at 10% 20%, #1a1510 0%, #0a0705 100%);
	background-attachment: fixed;
	min-height: 100vh;
	padding: 0;
	padding-top: 0px;
	padding-bottom: 80px;
	overflow-x: hidden !important;
	max-width: 100vw;
}

.game-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1100;
	background: rgba(10, 8, 5, 0.96);
	backdrop-filter: blur(12px);
	border-bottom: 2px solid #c0a060;
	box-shadow: 0 4px 15px rgba(0,0,0,0.5);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding: 6px 12px;
	gap: 8px;
}

.logo-area {
	display: flex;
	align-items: baseline;
	gap: 6px;
	background: linear-gradient(135deg, #2a1e12, #1a1208);
	padding: 4px 12px;
	border-radius: 40px;
	border-left: 3px solid #ffd700;
}

.logo-area h1 {
	font-size: 1.2rem;
	color: #ffd700;
	letter-spacing: 1px;
	margin: 0;
	line-height: 1.2;
	text-shadow: 0 1px 2px black;
}

.logo-area .subtitle {
	font-size: 0.6rem;
	color: #c0a060;
	white-space: nowrap;
}

.player-status-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	background: rgba(0,0,0,0.5);
	padding: 4px 12px;
	border-radius: 60px;
	backdrop-filter: blur(4px);
}

.topbar-stat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	background: rgba(30,25,20,0.7);
	padding: 2px 8px;
	border-radius: 24px;
	white-space: nowrap;
}

.topbar-stat .stat-name {
	color: #c0a060;
	font-weight: normal;
	font-size: 0.7rem;
}

.topbar-stat span:not(.stat-name) {
	color: #ffd966;
	font-weight: bold;
}

.hp-bar-compact {
	gap: 5px;
	background: #2a1e12;
}
.hp-minibar {
	width: 55px;
	height: 10px;
	background-color: #4a2a2a;
	border-radius: 8px;
	overflow: hidden;
	display: inline-block;
	box-shadow: inset 0 0 2px black;
}
.hp-minibar-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #d9534f, #ff7b6b);
	border-radius: 8px;
	transition: width 0.2s ease;
}

.btn-topbar-logout {
	background: #8b1a1a;
	border: none;
	color: #ffd966;
	padding: 4px 12px;
	border-radius: 30px;
	font-size: 0.7rem;
	font-weight: bold;
	cursor: pointer;
	transition: 0.2s;
	white-space: nowrap;
}

.btn-topbar-logout:hover {
	background: #b33;
	transform: scale(0.96);
}

@media (max-width: 560px) {
	body {
		padding-top: 0px;
	}
	.game-topbar {
		flex-direction: column;
		align-items: stretch;
		padding: 8px;
		gap: 6px;
	}
	.logo-area {
		justify-content: center;
		width: 100%;
	}
	.player-status-bar {
		justify-content: center;
		flex-wrap: wrap;
		border-radius: 40px;
		width: 100%;
	}
	.topbar-stat {
		font-size: 0.7rem;
		padding: 2px 6px;
	}
	.hp-minibar {
		width: 45px;
	}
}

.container {
	max-width: 600px;
	margin: 0 auto;
}
.panel {
	background-color: rgba(20, 15, 10, 0.85);
	border: 2px solid #8b7355;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 10px;
	box-shadow: 0 0 15px rgba(139, 115, 85, 0.3);
}
.panel-header {
	color: #ffd700;
	border-bottom: 1px solid #8b7355;
	padding-bottom: 8px;
	margin-bottom: 15px;
	font-size: 1.3rem;
	display: flex;
	align-items: center;
	gap: 10px;
}
.stats-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	padding: 5px;
	border-bottom: 1px dashed #5a4a3a;
    position: relative;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}


.stats-label { color: #c0a060; }
.stats-value { color: #fff; font-weight: bold; }

.enhance-btn {
    background: linear-gradient(to bottom, #5a4a3a, #3a2e24);
    border: 1px solid #c0a060;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    line-height: 1;
}

.enhance-btn:hover {
    background: linear-gradient(to bottom, #8b7355, #5a4a3a);
    border-color: #ffd700;
    transform: scale(1.05);
}

.enhance-btn:active {
    transform: scale(0.95);
    background: #3a2e24;
}

/* 移动端触摸优化： */
@media (max-width: 600px) {
    .enhance-btn {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
    .orb-group {
        max-width: 200px;
    }
    .monster-orb {
        width: 70px;
        overflow: visible;
    }
    .combat-cards {
        max-width: 80px;
    }
    .card-avatar {
        font-size: 1.5rem;
    }
    .monster-icon {
        font-size: 1.5rem;
    }
}
.mobile-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(20, 15, 10, 0.95);
	border-top: 2px solid #8b7355;
	display: flex;
	justify-content: space-around;
	padding: 8px 5px;
	z-index: 999;
}
.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #c0a060;
	padding: 5px;
	border-radius: 8px;
	flex: 1;
	cursor: pointer;
}
.nav-item.active { color: #ffd700; background: rgba(139,115,85,0.3); }
.mobile-panel { display: none; }
.mobile-panel.active { display: block; }

#player-set-bonuses, #hero-set-bonuses {
	background: rgba(0, 0, 0, 0.5);
	border-radius: 12px;
	padding: 12px;
	margin-top: 10px;
	border: 1px solid #8b6b42;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.set-bonuses-title {
	text-align: center;
	font-size: 1.2rem;
	font-weight: bold;
	color: #ffd700;
	text-shadow: 0 0 5px #ffaa00;
	margin-bottom: 15px;
	letter-spacing: 2px;
}

.set-bonuses-title i {
	margin: 0 8px;
	color: #ffaa44;
}

.set-bonuses-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.set-card {
	background: linear-gradient(135deg, #2c241a 0%, #1f1912 100%);
	border-radius: 10px;
	padding: 12px;
	border: 1px solid #5a4a3a;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.3);
	transition: transform 0.2s;
}

.set-card:hover {
	transform: translateY(-2px);
	border-color: #c0a060;
}

.set-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
}

.set-name {
	font-size: 1.1rem;
	font-weight: bold;
	color: #ffd966;
	text-shadow: 0 1px 2px black;
}

.set-progress {
	font-size: 0.8rem;
	background: #3a2e24;
	padding: 2px 8px;
	border-radius: 12px;
	color: #ffd966;
}

.set-progress-bar-container {
	background: #2e241c;
	border-radius: 6px;
	height: 8px;
	margin: 8px 0 12px;
	overflow: hidden;
}

.set-progress-bar-fill {
	background: linear-gradient(90deg, #ffaa44, #ffdd88);
	width: 0%;
	height: 100%;
	border-radius: 6px;
	transition: width 0.3s ease;
}

.set-tiers {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.set-tier {
	background: rgba(0, 0, 0, 0.4);
	border-left: 3px solid #5a4a3a;
	padding: 6px 10px;
	border-radius: 6px;
	transition: all 0.2s;
}

.set-tier.active-tier {
	border-left-color: #ffaa44;
	background: rgba(255, 170, 68, 0.1);
	box-shadow: 0 0 4px rgba(255,170,68,0.3);
}

.tier-name {
	font-size: 0.85rem;
	font-weight: bold;
	color: #c0c0c0;
	margin-bottom: 5px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tier-name i {
	font-size: 0.7rem;
}

.active-tier .tier-name {
	color: #ffaa44;
}

.tier-bonus {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.75rem;
}

.tier-bonus span {
	background: rgba(0, 0, 0, 0.5);
	padding: 2px 6px;
	border-radius: 12px;
	color: #ddd;
}

.tier-bonus span i {
	margin-right: 4px;
	color: #ffaa44;
	font-size: 0.7rem;
}

.set-legacy {
	margin-top: 8px;
	padding: 8px;
	background: rgba(0,0,0,0.3);
	border-radius: 6px;
}

.set-bonuses-empty {
	text-align: center;
	color: #a09070;
	padding: 20px;
	font-style: italic;
}

.set-bonuses-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.toggle-set-btn {
	color: #ffd700;
	transition: transform 0.2s;
}

.toggle-set-btn:hover {
	color: #ffaa44;
}

@keyframes fadeOut {
	0% { opacity: 1; transform: scale(1); }
	80% { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(0.9); display: none; }
}

.monster-rank-tip {
	font-size: 0.6rem;
	color: #ffaa44;
	margin-top: 4px;
	text-align: center;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.monster-card.boss:hover .monster-rank-tip {
	opacity: 1;
}

.rank-item {
	transition: background 0.2s;
}

.rank-item:hover {
	background: rgba(255, 215, 0, 0.1);
}

.rank-1 {
	color: #ffd700 !important;
	text-shadow: 0 0 2px #ffaa00;
}

.rank-2 {
	color: #c0c0c0 !important;
}

.rank-3 {
	color: #cd7f32 !important;
}

.boss-rank-header {
	padding: 10px;
	background: linear-gradient(135deg, #2a1a1a, #1a0e0e);
	border-radius: 8px;
	margin-bottom: 15px;
}

.combat-status-bar {
	background: linear-gradient(135deg, #2a2418, #1a150e);
	border-radius: 12px;
	border: 1px solid #5a4a3a;
	padding: 8px 12px;
}

.status-row {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 12px;
}

.status-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
}

.status-item i {
	color: #ffaa44;
	width: 20px;
}

.status-label {
	color: #c0a060;
}

.status-value {
	color: #ffd966;
	font-weight: bold;
}

.combat-log-container {
	margin-top: 15px;
	background: rgba(0,0,0,0.5);
	border-radius: 12px;
	overflow: hidden;
}

.combat-log-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	background: linear-gradient(135deg, #2a2418, #1a150e);
	border-bottom: 1px solid #5a4a3a;
	color: #ffd700;
	font-size: 0.85rem;
}

.combat-log-header i {
	margin-right: 6px;
	color: #ffaa44;
}

.btn-clear-log {
	background: none;
	border: none;
	color: #c0a060;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: all 0.2s;
}

.btn-clear-log:hover {
	color: #ff6666;
	background: rgba(255,102,102,0.2);
}

.log-entry {
	margin-bottom: 6px;
	padding: 4px 8px;
	border-bottom: 1px dashed #2a2a2a;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.log-entry.new-log {
	animation: logFadeIn 0.3s ease;
}

@keyframes logFadeIn {
	from {
		opacity: 0;
		transform: translateX(-10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.log-time {
	color: #666;
	font-size: 0.65rem;
}

.log-damage {
	color: #ff6666;
}

.log-skill {
	color: #66aaff;
}

.log-heal {
	color: #66ff66;
}

.log-loot {
	color: #ffcc66;
}

.log-level {
	color: #66ffff;
}

.log-combat {
	color: #ffaa66;
}

.log-info {
	color: #aaa;
}

.combat-buttons {
	display: flex;
	gap: 10px;
	margin: 15px 0;
}

.combat-buttons .btn {
	flex: 1;
	padding: 12px 0;
	font-size: 0.9rem;
}

.combat-card, .monster-orb {
	position: relative;
	overflow: visible;
}

.monster-orb .monster-icon {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: #62605e;
}


@keyframes trailMove {
	0% { width: 0; opacity: 1; }
	100% { width: 100px; opacity: 0; }
}

.skill-name-tag {
	display: block;
	font-size: 0.7rem;
	background: rgba(0,0,0,0.7);
	color: #ffaa44;
	padding: 2px 4px;
	border-radius: 4px;
	margin-top: 4px;
	white-space: nowrap;
}


.critical-effect {
	position: absolute;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	font-size: 1.2rem;
	color: #ff0000;
	text-shadow: 0 0 3px #ffff00;
	animation: criticalPop 0.6s ease-out forwards;
	pointer-events: none;
	z-index: 200;
}

.heal-effect {
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translateX(-50%);
	font-size: 1rem;
	color: #44ff44;
	text-shadow: 0 0 3px #00aa00;
	animation: healFloat 0.6s ease-out forwards;
	pointer-events: none;
}

/* ---------- 药店（Pharmacy）---------- */
.pharmacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 10px 0;
}

.pharmacy-card {
    background: linear-gradient(135deg, #2c241a, #1f1912);
    border: 1px solid #8b7355;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pharmacy-card:hover {
    border-color: #ffd700;
    transform: translateY(-3px);
    background: linear-gradient(135deg, #3a2e24, #2a1e14);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.potion-name {
    font-size: 1rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 6px;
}

.potion-recovery {
    color: #66ff66;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.potion-price {
    color: #ffaa44;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.potion-quantity {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.potion-quantity label {
    font-size: 0.75rem;
    color: #c0a060;
}

.potion-qty {
    width: 60px;
    background: #2a1e12;
    color: #ffd700;
    border: 1px solid #5a4a3a;
    border-radius: 4px;
    padding: 4px;
    text-align: center;
}

.potion-total {
    font-size: 0.75rem;
    color: #c0c0c0;
    margin: 6px 0;
}

.total-price {
    color: #ffaa44;
    font-weight: bold;
}

.buy-potion-btn {
    margin-top: 8px;
    width: 100%;
    padding: 6px;
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .pharmacy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}


/* ---------- 农场（Farm）---------- */
.farm-plots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.farm-plot {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #5a4a3a;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.farm-plot:hover {
    border-color: #c0a060;
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.farm-plot.ready {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 8px rgba(255,215,0,0.3);
}

.plot-icon {
    font-size: 48px;
    margin: 10px 0;
}

.plot-name {
    font-weight: bold;
    color: #ffd700;
    font-size: 0.9rem;
}

.plot-timer {
    font-size: 0.8rem;
    color: #aaa;
    margin: 5px 0;
}

.plot-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 合并按钮尺寸：.plot-buttons .btn 与 .btn-sm 共享尺寸 */
.plot-buttons .btn,
.btn-sm {
    padding: 4px 8px;
    font-size: 0.7rem;
}
.btn-sm {
    min-height: 28px;
}

/* 种子卡片 */
.seed-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #5a4a3a;
    transition: 0.2s;
}

.seed-card:hover {
    border-color: #ffd700;
    background: rgba(0,0,0,0.7);
}

.seed-icon {
    font-size: 40px;
}

.seed-info {
    flex: 1;
}

.seed-price {
    color: #ffd700;
    font-size: 0.9rem;
}

.farm-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* ---------- 停车场（Parking） ---------- */
.parking-container {
    padding: 10px;
}

.parking-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #5a4a3a;
}

.parking-section h4 {
    color: #ffd700;
    margin-bottom: 10px;
    border-left: 3px solid #ffaa44;
    padding-left: 8px;
}

/* 当前车辆卡片 */
.current-vehicle-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #8b7355;
}

.current-vehicle-card .vehicle-icon {
    font-size: 2rem;
}

.current-vehicle-card .vehicle-info {
    flex: 1;
}

.current-vehicle-card .vehicle-name {
    font-weight: bold;
    color: #ffd700;
}

.current-vehicle-card .vehicle-level {
    font-size: 0.8rem;
    color: #c0a060;
}

.upgrade-vehicle-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* 车库车辆卡片 */
.garage-vehicles-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.garage-vehicle-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.2s;
    border: 1px solid #5a4a3a;
}

.garage-vehicle-card.current-vehicle {
    border: 2px solid #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.garage-vehicle-card .vehicle-icon {
    font-size: 1.8rem;
}

.garage-vehicle-card .vehicle-info {
    flex: 1;
}

.garage-vehicle-card .vehicle-name {
    font-weight: bold;
    color: #ffd700;
}

.garage-vehicle-card .vehicle-level {
    font-size: 0.7rem;
    color: #c0a060;
}

.vehicle-actions {
    display: flex;
    gap: 8px;
}

.vehicle-actions .btn-sm {
    padding: 4px 12px;
    font-size: 0.75rem;
}

.current-badge {
    background: #2a6b2a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* 车位网格 */
.spots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 固定双排，每列等宽 */
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.spot-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 4px solid #888;
}

.spot-card.occupied {
    border-left-color: #ffd700;
}

.spot-card.empty {
    border-left-color: #888;
    cursor: pointer;
}

.spot-card.empty:hover {
    transform: translateY(-2px);
    border-left-color: #44ff44;
    background: rgba(68, 255, 68, 0.1);
}

.spot-card.occupied:hover {
    transform: translateY(-2px);
}

.spot-header {
    font-weight: bold;
    margin-bottom: 5px;
    color: #c0a060;
}

.spot-vehicle {
    color: #ffd700;
    font-size: 0.9rem;
}

.spot-exp-info {
    font-size: 0.75rem;
    color: #88ff88;
    margin-top: 5px;
}

/* 购买车辆列表双排显示 */
#parking-vehicles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 5px;
}

/* 购买车辆卡片样式（如果之前没有，则添加统一风格） */
.vehicle-buy-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #5a4a3a;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vehicle-buy-card:hover {
    transform: translateY(-2px);
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.6);
}

.vehicle-buy-card .vehicle-icon {
    font-size: 2rem;
}

.vehicle-buy-card .vehicle-info {
    flex: 1;
}

.vehicle-buy-card .vehicle-info strong {
    color: #ffd700;
}

.vehicle-buy-card .buy-vehicle {
    white-space: nowrap;
}

@media (max-width: 360px) {
    .spots-grid {
        gap: 8px;
    }
    .spot-card {
        padding: 8px;
        font-size: 0.8rem;
    }
    .spot-header {
        font-size: 0.85rem;
    }
}

.rent-info {
    color: #ffaa44;
    margin-top: 5px;
    font-size: 0.75rem;
}

.spot-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.spot-actions .btn {
    flex: 1;
    padding: 4px 0;
    font-size: 0.7rem;
}

/* 其他玩家停车位选择 */
.other-spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 5px;
}

.other-spot-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.other-spot-card:hover {
    transform: translateY(-2px);
    border-color: #ffd700;
    background: rgba(0,0,0,0.6);
}

.spot-multiplier {
    font-size: 0.8rem;
    color: #ffaa44;
    margin: 5px 0;
}

.park-here-btn {
    width: 100%;
    padding: 6px;
    font-size: 0.75rem;
}

/* 按钮辅助样式 */
.btn-sm {
    padding: 4px 8px;
    font-size: 0.7rem;
    min-height: 28px;
}

.btn-warning {
    background: linear-gradient(to bottom, #d68a2a, #a55500);
    border-color: #ffaa44;
}

/* 强化商人面板 */
#strength-equip-list,
#strength-zodiac-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.strength-equip-card,
.strength-zodiac-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 10px;
    margin: 0;
    transition: 0.2s;
}

/* 属性强化列表*/
.attr-strength-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #5a4a3a;
    flex-wrap: wrap;
    gap: 8px;
}
.attr-strength-row .attr-name { min-width: 100px; }
.attr-strength-row .attr-level { min-width: 80px; text-align: center; }
.attr-strength-row .attr-cost { min-width: 120px; text-align: right; }

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-40px); }
}
.floating-damage, .floating-heal {
    position: absolute;
    font-size: 16px;
    pointer-events: none;
}

/* ========== MP条样式（状态面板） ========== */
.mp-bar {
    position: relative;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    margin: 5px 0;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}
.mp-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, #003366, #3399ff);
    width: 0%;
    z-index: 2;
}
.mp-delay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0, 100, 200, 0.4);
    width: 0%;
    z-index: 1;
}
/* ---------- 战斗画面强化 ---------- */
.combat-split-layout {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 10px 0;
    min-height: auto;
    align-items: stretch;
}

.combat-divider-vertical {
    width: 0;
    border-left: 2px dashed #c0a060;
    margin: 15px 0;
    opacity: 0.8;
    flex-shrink: 0;
}

.combat-left, .combat-right {
    flex: 1;
    min-width: 0;
}

.monster-group-container {
    width: 100%;
    height: auto;
}

.orb-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
    justify-items: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    overflow: visible !important;
}

.orb-group > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monster-orb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(70px, 15vw, 90px);
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 30% 30%, #2a2418, #1a1208);
    border: 2px solid #c0a060;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
    overflow: hidden;
}

.monster-orb .ring-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;        /* 让血条不拦截点击事件 */
    z-index: 15;
}

.monster-orb.boss {
    border-color: #ff4444;
    background: radial-gradient(circle at 30% 30%, #4a2a2a, #2a1a1a);
}

.monster-orb.world-boss {
    border-color: #ff6600;
    box-shadow: 0 0 15px rgba(255,102,0,0.5);
}

.monster-orb.dead {
    opacity: 0.6;
    filter: grayscale(0.8);
    border-color: #666;
}

.monster-icon {
    font-size: 2rem;
    color: #ffaa44;
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.monster-icon img {
    max-width: 120%;
    max-height: 120%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;  /* 避免干扰点击 */
}

.monster-info {
    position: relative;
    z-index: 20;
    background: rgba(0,0,0,0.5);
    border-radius: 16px;
    padding: 4px 6px;
    margin-top: 8px;
    text-align: center;
    pointer-events: auto;        /* 允许点击查看排行等 */
}

.monster-name {
    font-weight: bold;
    font-size: 0.7rem;
    color: #ffd966;
    text-shadow: 0 0 2px black;
}

.monster-level {
    font-size: 0.7rem;
    color: #c0a060;
    margin: 2px 0;
}

.combat-card.player-card {
    border-color: #4e8b6e;
    background: radial-gradient(circle at 30% 30%, #2a3a2e, #1a2a1e);
}

.combat-card.hero-card {
    border-color: #8b6e4e;
    background: radial-gradient(circle at 30% 30%, #3a2e2a, #2a1e1a);
}

.card-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 1;
    opacity: 0.85;
    pointer-events: none;
    color: #ffd700;
}

/* 卡片外部信息（名字、等级） - 移除血条和数值 */
.card-info {
    position: relative;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    padding: 6px 10px;
    margin-top: 10px;
    width: auto;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.card-name {
    font-weight: bold;
    font-size: 0.7rem;
    color: #ffd966;
}

.card-level {
    font-size: 0.7rem;
    color: #c0a060;
    margin: 2px 0;
}

/* 隐藏 HP/MP 数值显示 */
.card-info .hp-text,
.card-info .mp-text {
    display: none;
}

.monster-info .hp-text {
    display: block;
    font-size: 0.6rem;
    color: #ddd;
    margin-top: 2px;
}

/* 战斗卡片容器 */
.combat-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 120px;
}

/* 召唤英雄后 */
.combat-cards.has-hero {
    justify-content: flex-start;
}

/* 玩家和英雄的包装层宽度一致 */
.player-wrapper,
.hero-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 圆形卡片统一尺寸 */
.combat-card {
    position: relative;
    background: radial-gradient(circle at 30% 30%, #2a2418, #1a1208);
    border: 2px solid #c0a060;
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
    overflow: visible;
    cursor: pointer;
}
/* 世界 Boss */
.orb-group.world-boss-mode {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.orb-group.world-boss-mode > div {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
}

/* 世界 Boss 卡片放大效果 */
.orb-group.world-boss-mode .monster-orb {
    width: clamp(100px, 22vw, 140px);
    border-color: #ff6600;
    box-shadow: 0 0 20px rgba(255,102,0,0.8);
    overflow: visible;
}

/* 世界 Boss 专用容器居中 */
.monster-group-container.world-boss-active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.monster-group-container.world-boss-active .orb-group.world-boss-mode {
    width: 100%;
    margin: 0 auto;
}

/* 隐藏世界 Boss 模式下的空占位怪物 */
.orb-group.world-boss-mode .monster-orb.empty {
    display: none;
}
@keyframes floatUp {
    0% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -60px) scale(1.5); }
}

/* 确保合成模态框高于其他弹窗 */
#craft-modal {
    z-index: 10001 !important;
}

/* 全局提示框的层级稍低，避免遮挡模态框 */
.global-tip {
    z-index: 10000 !important;
}

/* 二次确认对话框也要足够高 */
#game-confirm-modal {
    z-index: 10002 !important;
}
/* 增益容器：完全透明无边框 */
#buff-container {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}
/* 增益卡片：无背景、无边框、无阴影 */
#buff-container .buff-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-left: none !important;
    padding: 4px 8px !important;
    transition: none !important;
}
/* 悬停效果：仅轻微文字颜色变化，无背景/边框变化 */
#buff-container .buff-card:hover {
    background: transparent !important;
    transform: none !important;
}
#buff-container .buff-card:hover .buff-name {
    color: #ffaa44;
}
/* 调整文字间距，保持可读性 */
#buff-container .buff-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: #ffd966;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
    white-space: nowrap;
}
#buff-container .buff-time {
    font-size: 0.65rem;
    color: #c0c0c0;
    font-family: monospace;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}
#buff-container .buff-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}
/* 移动端微调 */
@media (max-width: 600px) {
    #buff-container .buff-name { font-size: 0.7rem; max-width: 120px; }
    #buff-container .buff-time { font-size: 0.6rem; }
    #buff-container .buff-icon { font-size: 1rem; }
}

/* 深红色致命一击 */
.floating-damage.lethal {
    text-shadow: 0 0 5px #ff4444;
    animation: floatUp 0.8s ease-out forwards;
}

/* 深绿色中毒飘字 */
.floating-damage.poison {
    text-shadow: 0 0 5px #00aa00;
    animation: floatUp 1.2s ease-out forwards;
}
.music-control-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
}
.btn-music {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.2rem;
    cursor: pointer;
}
.btn-music.active {
    color: #00ff00;
    text-shadow: 0 0 3px #00ff00;
}
#music-volume {
    width: 80px;
    cursor: pointer;
}
.music-volume-label {
    color: #ffd700;
    font-size: 0.8rem;
}
.paralyze-overlay {
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}