/* ==================== 仙路长青 - 样式表 ==================== */

body {
    background-color: #111827;
    color: #e5e7eb;
    font-family: 'Noto Serif SC', 'SimSun', serif;
}

/* 灵根多段滑条容器 */
.root-slider-container {
    width: 100%;
    height: 32px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}
.root-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    text-shadow: 0px 0px 2px rgba(255,255,255,0.8);
    transition: width 0.1s ease-out;
}
.bg-metal { background: linear-gradient(135deg, #fbbf24, #d97706); }
.bg-wood { background: linear-gradient(135deg, #4ade80, #16a34a); }
.bg-water { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.bg-fire { background: linear-gradient(135deg, #f87171, #dc2626); }
.bg-earth { background: linear-gradient(135deg, #a8a29e, #78716c); }

.slider-handle {
    position: absolute;
    top: 0; bottom: 0;
    width: 12px;
    margin-left: -6px;
    background-color: rgba(255,255,255,0.9);
    border: 1px solid #9ca3af;
    cursor: col-resize;
    z-index: 10;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: background-color 0.2s;
}
.slider-handle:hover, .slider-handle.active {
    background-color: #fbbf24;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* 性别选择样式 */
.gender-option {
    cursor: pointer;
    transition: all 0.2s;
}
.gender-option.selected {
    border-color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.15);
}
.gender-option.selected .gender-indicator {
    background: #fbbf24;
    border-color: #fbbf24;
}
.gender-indicator {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #6b7280;
    display: inline-block;
    transition: all 0.2s;
}

/* 游戏世界样式 */
#game-world {
    display: none;
}

/* 左侧导航栏 */
.nav-item {
    transition: all 0.2s;
    cursor: pointer;
}
.nav-item:hover {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: #fbbf24;
}
.nav-item.active {
    background: rgba(251, 191, 36, 0.2);
    border-left-color: #fbbf24;
    color: #fbbf24;
}

/* 子标签页 */
.sub-tab {
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}
.sub-tab:hover {
    color: #fbbf24;
}
.sub-tab.active {
    color: #fbbf24;
    border-bottom-color: #fbbf24;
}

/* 地图样式 */
.map-province {
    cursor: pointer;
    transition: all 0.3s;
    stroke: #4b5563;
    stroke-width: 1.5;
}
.map-province:hover {
    filter: brightness(1.3);
    stroke: #fbbf24;
    stroke-width: 2.5;
}
.map-city {
    cursor: pointer;
    transition: all 0.2s;
}
.map-city:hover {
    filter: brightness(1.4);
}
.map-city circle {
    transition: r 0.2s;
}
.map-city:hover circle {
    r: 6;
}

/* 善恶值/秩序值 滑条 */
.karma-bar {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #dc2626, #6b7280, #16a34a);
    position: relative;
}
.karma-indicator {
    width: 8px; height: 20px;
    background: #fbbf24;
    border-radius: 2px;
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
}

/* 过渡动画 */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1f2937; }
::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 3px; }

/* 城市悬浮提示 */
.city-tooltip {
    display: none;
    position: absolute;
    background: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

/* 地区列表样式 */
.region-item {
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}
.region-item:hover {
    background: rgba(251, 191, 36, 0.1);
}
.region-item.active {
    background: rgba(251, 191, 36, 0.2);
    border-left: 3px solid #fbbf24;
}
.region-cities {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.city-list-item {
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 4px;
}
.city-list-item:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* 人体状态SVG样式 */
.body-svg {
    width: 100%;
    max-width: 220px;
    height: auto;
}
.body-svg [id^="body-"] {
    transition: fill 0.4s ease, stroke 0.4s ease;
    cursor: pointer;
}
.body-svg [id^="body-"]:hover {
    filter: brightness(1.4);
    stroke: #fbbf24;
    stroke-width: 2;
}
/* 丹田特殊hover */
#body-dantian:hover {
    filter: brightness(1.6);
    stroke: #fff;
    stroke-width: 2.5;
}

/* 耐久度颜色图例 */
.durability-legend {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 12px;
    border-radius: 4px;
    overflow: hidden;
}
.durability-legend-block {
    flex: 1;
    height: 100%;
}