
/* ---------- 历练副本节点地图详情面板 ---------- */
#dungeon-detail-panel {
    background: #0a0a0f !important;
}

.dungeon-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    background: linear-gradient(90deg, rgba(20,20,30,0.95), rgba(10,10,15,0.98));
    border-bottom: 1px solid rgba(212,175,55,0.25);
    padding: 0 12px;
    flex-shrink: 0;
}

.dungeon-detail-back {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gold-light);
    font-size: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.dungeon-detail-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 2px;
}

.dungeon-detail-sweep {
    padding: 5px 12px;
    background: linear-gradient(90deg, #b8860b, #d4af37);
    border: 1px solid #f0d78c;
    border-radius: 12px;
    color: #1a1200;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.dungeon-detail-sweep:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dungeon-map-scroll {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.dungeon-map-wrap {
    position: relative;
    min-height: 100%;
    height: 110vh;
}

.dungeon-map-bg {
    position: absolute;
    inset: 0;
    background: center top / cover no-repeat;
    filter: brightness(0.85);
}

.dungeon-map-path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dungeon-map-nodes {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.dungeon-node {
    position: absolute;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.15s;
}

.dungeon-node:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.dungeon-node-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: url('../assets/images/icons/dungeon_node.jpg?v=119') center / cover no-repeat;
    box-shadow: 0 0 20px rgba(212,175,55,0.55), 0 0 40px rgba(212,175,55,0.25);
    border: 2px solid rgba(240,215,140,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dungeon-node-layer {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #b8860b, #d4af37);
    border: 1px solid #f0d78c;
    border-radius: 50%;
    color: #1a1200;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.dungeon-node-name {
    margin-top: 6px;
    font-size: 12px;
    color: var(--gold-light);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    white-space: nowrap;
}

.dungeon-node-power {
    margin-top: 2px;
    font-size: 10px;
    color: var(--cyan);
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    white-space: nowrap;
}

.dungeon-node-hint {
    margin-top: 2px;
    font-size: 9px;
    color: var(--text-muted);
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    white-space: nowrap;
}

/* ---------- 历练副本卡片（背景图铺满 + 文字可读） ---------- */
.adv-dungeon-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 12px 12px;
    min-height: 180px;
    border: 1px solid rgba(212,175,55,0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    background: #0d0d14;
}

.adv-dungeon-card.locked {
    filter: grayscale(0.55);
    opacity: 0.85;
}

.adv-dungeon-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.adv-dungeon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,18,0.18) 0%,
        rgba(10,10,18,0.32) 45%,
        rgba(8,8,16,0.62) 78%,
        rgba(6,6,12,0.82) 100%
    );
    z-index: 1;
}

.adv-dungeon-body {
    position: relative;
    z-index: 2;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
}

.adv-dc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.adv-dc-title {
    font-size: 17px;
    font-weight: 800;
    color: #f0d78c;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

.adv-dc-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

.adv-dc-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #e8e0f0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.adv-dc-label {
    color: #b8b0c8;
}

.adv-dc-val {
    font-weight: 700;
    color: #f0e8ff;
}

.adv-dc-val.power {
    color: #7ee8ff;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.9);
}

.adv-dc-drops {
    font-size: 11px;
    line-height: 1.45;
    color: #c8c0d8;
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.adv-dc-drops strong {
    color: #e8c874;
}

.adv-dc-btn {
    width: 100%;
    padding: 9px 0;
    border-radius: 8px;
    border: 1px solid rgba(240,215,140,0.45);
    background: linear-gradient(90deg, rgba(184,134,11,0.9), rgba(212,175,55,0.9));
    color: #1a1200;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.adv-auto-btn {
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(212,175,55,0.4);
    background: rgba(20,18,36,0.75);
    color: #e8c874;
    font-size: 11px;
    cursor: pointer;
}

.adv-dc-locked-mask {
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    background: rgba(0,0,0,0.5);
    color: #b8b0c8;
    font-size: 12px;
    border: 1px dashed rgba(212,175,55,0.3);
}

/* ---------- 宗门大陆地图 ---------- */
.sect-continent-map {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('../assets/images/scenes/sect_continent_bg.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.sect-continent-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(8,8,14,0.92) 0%, rgba(8,8,14,0.4) 100%);
    border-bottom: 1px solid rgba(212,175,55,0.18);
    box-sizing: border-box;
}

.sect-continent-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 800;
    color: #f0d78c;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.sect-continent-markers {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    margin-top: 52px;
}

.sect-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, filter 0.18s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

.sect-marker:active {
    transform: translate(-50%, -50%) scale(0.96);
}

.sect-marker-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 52%, rgba(0,0,0,0) 72%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 52%, rgba(0,0,0,0) 72%);
    background: transparent;
}

.sect-marker-name {
    margin-top: 6px;
    padding: 4px 12px;
    background: rgba(10,10,18,0.72);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 14px;
    color: #f0d78c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    white-space: nowrap;
}

.sect-marker-current .sect-marker-img {
    box-shadow: 0 0 24px rgba(93,222,126,0.45), 0 0 0 2px rgba(93,222,126,0.35);
}

.sect-marker-current .sect-marker-name {
    color: #5dde7e;
    border-color: rgba(93,222,126,0.35);
}

/* 宗门详情弹窗 */
.sect-detail-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 86vh;
    overflow: hidden;
    background: linear-gradient(180deg, #16141f 0%, #0e0c16 100%);
    border: 1px solid rgba(212,175,55,0.45);
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0,0,0,0.75), 0 0 0 1px rgba(212,175,55,0.1) inset;
}

.sect-detail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.sect-detail-bg img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 110%;
    min-height: 110%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(22px) brightness(0.45) saturate(1.2);
    opacity: 0.85;
}

.sect-detail-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 0%, rgba(212,175,55,0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(139,90,43,0.18) 0%, transparent 50%),
        linear-gradient(180deg, rgba(18,15,26,0.82) 0%, rgba(10,9,14,0.92) 50%, rgba(10,9,14,0.96) 100%);
}

.sect-detail-glow {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #e8c96a 50%, transparent 100%);
    box-shadow: 0 0 20px rgba(232,201,106,0.5);
    z-index: 1;
}

.sect-detail-body {
    position: relative;
    z-index: 2;
    padding: 16px;
    max-height: 86vh;
    overflow-y: auto;
}

.sect-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212,175,55,0.18);
}

.sect-detail-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(212,175,55,0.45);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.sect-detail-title {
    flex: 1;
}

.sect-detail-name {
    font-size: 18px;
    font-weight: 800;
    color: #f0d78c;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.sect-detail-rank {
    font-size: 12px;
    color: #a89bb8;
}

.sect-detail-section {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(20,16,28,0.48);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.sect-detail-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #e8c874;
    margin-bottom: 6px;
}

.sect-detail-text {
    font-size: 13px;
    line-height: 1.55;
    color: #c8c0d8;
}

.sect-skill-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sect-skill-tag {
    padding: 4px 10px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 10px;
    font-size: 11px;
    color: #f0d78c;
}

.sect-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.sect-detail-actions .btn {
    flex: 1;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    color: #f0d78c;
    background: rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.1s;
}

.sect-detail-actions .btn-primary {
    color: #1a1510;
    background: linear-gradient(180deg, #e8c96a 0%, #b8933b 100%);
    box-shadow: 0 4px 14px rgba(232,201,106,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

.sect-detail-actions .btn-primary:disabled {
    color: #8a8098;
    background: rgba(255,255,255,0.08);
    box-shadow: none;
}

.sect-detail-actions .btn-danger {
    color: #ff9e9e;
    background: rgba(180,60,60,0.18);
    border: 1px solid rgba(255,120,120,0.25);
}

.sect-detail-actions .btn-small {
    flex: none;
    padding: 7px 12px;
    font-size: 12px;
}

/* ---------- 宗门内部地图 ---------- */
.sect-inner-map {
    position: relative;
    width: 100%;
    height: 100%;
    background: center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.sect-inner-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(8,8,14,0.92) 0%, rgba(8,8,14,0.4) 100%);
    border-bottom: 1px solid rgba(212,175,55,0.18);
    box-sizing: border-box;
}

.sect-inner-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 800;
    color: #f0d78c;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.sect-inner-markers {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    margin-top: 52px;
}

.sect-inner-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, filter 0.18s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

.sect-inner-marker:active {
    transform: translate(-50%, -50%) scale(0.96);
}

.sect-inner-marker-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 52%, rgba(0,0,0,0) 72%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 52%, rgba(0,0,0,0) 72%);
    background: transparent;
}

.sect-inner-marker-name {
    margin-top: 5px;
    padding: 3px 10px;
    background: rgba(10,10,18,0.72);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    color: #f0d78c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    white-space: nowrap;
}

/* 宗门建筑详情弹窗 */
.sect-building-card {
    width: 100%;
    max-width: 400px;
    max-height: 86vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #16141f 0%, #0e0c16 100%);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0,0,0,0.75);
}

.sect-building-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212,175,55,0.18);
}

.sect-building-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(212,175,55,0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.sect-building-title {
    flex: 1;
}

.sect-building-name {
    font-size: 17px;
    font-weight: 800;
    color: #f0d78c;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.sect-building-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #c8c0d8;
    margin-bottom: 16px;
}

.sect-building-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sect-building-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
}

/* ---------- 宗门主殿（用户背景版） ---------- */
.sect-hall-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sect-hall-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.sect-hall-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 30%, rgba(0,0,0,0.15) 0%, transparent 45%),
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.sect-hall-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 100%);
    box-sizing: border-box;
}

.sect-hall-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    font-weight: 800;
    color: #f0d78c;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.95);
}

.sect-hall-side-btns {
    position: absolute;
    top: 58px;
    right: 8px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: auto;
}

.sect-hall-side-btn {
    position: relative;
    width: 100px;
    aspect-ratio: 1368 / 342;
    background: url('../assets/images/start/btn_golden_frame.jpg?v=119') center / 100% 100% no-repeat;
    border: none;
    color: #3a1f00;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    letter-spacing: 2px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 0 8px rgba(255,255,255,0.35);
    cursor: pointer;
    opacity: 1;
    transition: transform 0.1s, filter 0.15s;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6)) brightness(0.88) contrast(1.15);
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sect-hall-side-btn::before {
    content: '';
    position: absolute;
    top: -5px; right: -5px; bottom: -5px; left: -5px;
    background: rgba(0,0,0,0.55);
    border-radius: 12px;
    z-index: -1;
    border: 1px solid rgba(212,175,55,0.35);
}

.sect-hall-side-btn:active {
    transform: scale(0.97);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)) brightness(0.82) contrast(1.15);
}

.sect-hall-positions {
    position: absolute;
    top: 58px;
    left: 8px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 130px;
    pointer-events: auto;
}

.sect-hall-position-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.42);
    border: 1px solid rgba(212,175,55,0.22);
    border-radius: 8px;
    color: #f0d78c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.95);
    white-space: nowrap;
}

.sect-hall-position-item.leader {
    background: rgba(184,134,11,0.22);
    border-color: rgba(232,201,106,0.45);
    color: #fff8d6;
}

.sect-hall-position-name {
    flex: none;
}

.sect-hall-position-holder {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff8d6;
}

.sect-hall-position-holder.empty {
    color: rgba(200,192,180,0.5);
    font-weight: 500;
}

.sect-hall-stage {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    height: calc(100% - 48px);
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.sect-hall-stage > * {
    pointer-events: auto;
}

.sect-hall-seat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    text-align: center;
}

.sect-hall-seat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    border: 1px solid rgba(212,175,55,0.25);
}

.sect-hall-seat-title {
    font-size: 9px;
    color: #f0d78c;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.95);
    white-space: nowrap;
}

.sect-hall-seat-name {
    font-size: 10px;
    color: #fff8d6;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(232,201,106,0.8), 0 1px 3px rgba(0,0,0,0.95);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sect-hall-seat-name.empty {
    color: rgba(240,230,180,0.5);
    font-weight: 500;
}

.btn.btn-worship {
    position: absolute;
    left: 50%;
    bottom: 16vh;
    transform: translateX(-50%);
    z-index: 30;
    width: 46%;
    max-width: 180px;
    aspect-ratio: 1368 / 342;
    background: url('../assets/images/start/btn_golden_frame.jpg?v=119') center / 100% 100% no-repeat;
    border: none;
    color: #3a1f00;
    font-size: 15px;
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    letter-spacing: 3px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 0 8px rgba(255,255,255,0.35);
    cursor: pointer;
    transition: transform 0.1s, filter 0.15s;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.85)) brightness(0.78) contrast(1.2);
    pointer-events: auto;
}

.btn.btn-worship::before {
    content: '';
    position: absolute;
    top: -6px; right: -6px; bottom: -6px; left: -6px;
    background: rgba(0,0,0,0.68);
    border-radius: 16px;
    z-index: -1;
    border: 1px solid rgba(212,175,55,0.45);
}

.btn.btn-worship:disabled {
    opacity: 0.85;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.75)) brightness(0.84) contrast(1.18);
}

.btn.btn-worship:active {
    transform: translateX(-50%) scale(0.97);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)) brightness(0.72) contrast(1.2);
}

/* ---------- 宗门成员与榜单弹窗 ---------- */
.sect-list-card {
    width: 100%;
    max-width: 460px;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #16141f 0%, #0e0c16 100%);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0,0,0,0.75);
}

.sect-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212,175,55,0.18);
}

.sect-list-title {
    font-size: 17px;
    font-weight: 800;
    color: #f0d78c;
    letter-spacing: 1px;
}

.sect-list-subtitle {
    font-size: 12px;
    color: #a89bb8;
}

.sect-list-body {
    flex: 1;
    overflow-y: auto;
    max-height: 58vh;
    padding-right: 4px;
}

.sect-list-loading,
.sect-list-empty {
    text-align: center;
    padding: 28px 12px;
    font-size: 13px;
    color: #8a8098;
}

.sect-member-row,
.sect-ranking-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(212,175,55,0.08);
}

.sect-member-rank,
.sect-ranking-rank {
    width: 26px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #a89bb8;
    flex-shrink: 0;
}

.sect-ranking-rank.rank-0 { color: #ffd700; }
.sect-ranking-rank.rank-1 { color: #c0c0c0; }
.sect-ranking-rank.rank-2 { color: #cd7f32; }

.sect-member-info,
.sect-ranking-info {
    flex: 1;
    min-width: 0;
}

.sect-member-name,
.sect-ranking-name {
    font-size: 14px;
    font-weight: 700;
    color: #e8e0f5;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sect-member-meta,
.sect-ranking-meta {
    font-size: 11px;
    color: #8a8098;
}

.sect-member-power,
.sect-ranking-power {
    font-size: 13px;
    font-weight: 800;
    color: #f0d78c;
    flex-shrink: 0;
    white-space: nowrap;
}

.sect-ranking-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(212,175,55,0.3);
    flex-shrink: 0;
}

.sect-stats-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sect-stat-tag {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.22);
    border-radius: 10px;
    font-size: 12px;
    color: #f0d78c;
    font-weight: 700;
}

/* ---------- 宗门成员弹窗（参考布局） ---------- */
.sect-members-panel {
    position: relative;
    min-height: 100%;
    padding: 16px 16px 100px;
    box-sizing: border-box;
    background: transparent;
    overflow: hidden;
}

.sect-members-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.sect-members-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: blur(3px) brightness(1.22) saturate(1.35) contrast(1.18);
    opacity: 1;
}

.sect-members-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 12%, rgba(212,175,55,0.14) 0%, transparent 50%),
        radial-gradient(circle at 50% 35%, rgba(10,9,14,0.12) 0%, transparent 65%),
        radial-gradient(circle at 80% 90%, rgba(139,90,43,0.06) 0%, transparent 45%),
        linear-gradient(180deg, rgba(10,9,14,0.05) 0%, rgba(10,9,14,0.22) 50%, rgba(10,9,14,0.42) 100%);
}

.sect-members-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #e8c96a 50%, transparent 100%);
    box-shadow: 0 0 20px rgba(232,201,106,0.5);
    z-index: 1;
}

.sect-members-topbar,
.sect-members-header,
.sect-members-tabs,
.sect-members-list,
.sect-members-invite-spacer {
    position: relative;
    z-index: 1;
}

.sect-members-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-top: 8px;
}

.sect-members-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.35);
    background: rgba(0,0,0,0.35);
    color: #f0d78c;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sect-members-top-title {
    text-align: center;
    flex: 1;
}

.sect-members-main-title {
    font-size: 19px;
    font-weight: 800;
    color: #f0d78c;
    letter-spacing: 2px;
}

.sect-members-sub-title {
    font-size: 12px;
    color: #8a8098;
    margin-top: 3px;
}

.sect-members-top-actions {
    display: flex;
    gap: 10px;
    min-width: 70px;
    justify-content: flex-end;
}

.sect-members-icon {
    font-size: 12px;
    color: #f0d78c;
    padding: 5px 8px;
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 8px;
    background: rgba(212,175,55,0.08);
}

.sect-members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20,16,28,0.42);
    border: 1px solid rgba(212,175,55,0.22);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

.sect-members-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sect-members-badge img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(212,175,55,0.35);
    box-shadow: 0 0 12px rgba(212,175,55,0.18);
}

.sect-members-badge-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sect-members-badge-level {
    font-size: 13px;
    color: #a89bb8;
}

.sect-members-badge-name {
    font-size: 18px;
    font-weight: 800;
    color: #f0d78c;
}

.sect-members-stats {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: right;
}

.sect-members-stat {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
    color: #a89bb8;
}

.sect-members-stat strong {
    font-size: 14px;
    color: #f0d78c;
    font-weight: 800;
    min-width: 48px;
    text-align: right;
}

.sect-members-stat strong.online {
    color: #7ee787;
}

.sect-members-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.sect-members-tabs::-webkit-scrollbar {
    display: none;
}

.sect-members-tabs span {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 13px;
    color: #a89bb8;
    background: rgba(20,16,28,0.45);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.sect-members-tabs span.active {
    color: #1a1510;
    background: linear-gradient(180deg, #e8c96a 0%, #b8933b 100%);
    border-color: rgba(212,175,55,0.5);
    font-weight: 700;
}

.sect-members-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sect-member-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20,16,28,0.38);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 10px;
    padding: 7px 9px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.sect-member-no {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(212,175,55,0.12);
    color: #a89bb8;
    border: 1px solid rgba(212,175,55,0.25);
}
.sect-member-no.r1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #1a1200; border-color: #ffd700; }
.sect-member-no.r2 { background: linear-gradient(135deg, #d8d8d8, #a8a8a8); color: #1a1200; border-color: #c0c0c0; }
.sect-member-no.r3 { background: linear-gradient(135deg, #cd7f32, #a05a1e); color: #fff; border-color: #cd7f32; }

.sect-member-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.sect-member-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212,175,55,0.45);
    background: #1a1510;
}

.sect-member-online-dot {
    display: none;
}

.sect-member-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sect-member-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.sect-member-name {
    font-size: 13px;
    font-weight: 800;
    color: #f0d78c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sect-member-rank-tag {
    font-size: 10px;
    color: #c9b8e0;
    background: rgba(212,175,55,0.1);
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid rgba(212,175,55,0.2);
    flex-shrink: 0;
}

.sect-member-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #8a8098;
    flex-wrap: wrap;
}

.sect-member-stats .sms-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sect-member-stats .sms-item i {
    font-style: normal;
    color: #8a8098;
    opacity: 0.85;
}

.sect-member-stats .sms-item b {
    color: #f0d78c;
    font-weight: 700;
}

.sect-member-stats .sms-sep {
    color: rgba(212,175,55,0.3);
    margin: 0 1px;
}

.sect-member-meta {
    font-size: 11px;
    color: #8a8098;
}

.sect-member-meta .online {
    color: #7ee787;
}

.sect-member-contrib {
    display: none;
}

.sect-member-contrib-text {
    font-size: 11px;
    color: #8a8098;
}

.sect-member-contrib-bar {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.sect-member-contrib-fill {
    height: 100%;
    background: linear-gradient(90deg, #e8c96a 0%, #b8933b 100%);
    border-radius: 3px;
}

.sect-member-view {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.35);
    background: rgba(212,175,55,0.1);
    color: #f0d78c;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.sect-member-view:active {
    background: rgba(212,175,55,0.2);
}

.sect-members-invite-spacer {
    height: 70px;
}

.sect-members-invite {
    position: fixed;
    right: 18px;
    bottom: 26px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,0.45);
    background: linear-gradient(180deg, #e8c96a 0%, #b8933b 100%);
    color: #1a1510;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    z-index: 10;
    cursor: pointer;
}

.sect-members-invite-plus {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.sect-members-invite span:last-child {
    font-size: 10px;
    font-weight: 700;
}

.sect-members-empty {
    text-align: center;
    padding: 40px 16px;
    color: #8a8098;
    font-size: 13px;
}

/* =========================================================
   水墨淡金主题覆盖：sect/宗门/建筑/成员面板（明亮版）
   ========================================================= */

/* 通用宣纸底纹 */
.xx-paper-texture {
    background:
        radial-gradient(circle at 50% 0%, rgba(184, 134, 11, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, rgba(255, 253, 247, 0.96) 0%, rgba(247, 244, 237, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ---------- 宗门详情弹窗 ---------- */
.sect-detail-card {
    background:
        radial-gradient(circle at 50% 0%, rgba(184, 134, 11, 0.10) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 253, 247, 0.96) 0%, rgba(247, 244, 237, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    border: 1px solid rgba(184, 134, 11, 0.30);
    box-shadow: 0 12px 40px rgba(43, 35, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sect-detail-bg-overlay {
    background:
        radial-gradient(circle at 50% 0%, rgba(184, 134, 11, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(139, 106, 43, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 253, 247, 0.78) 0%, rgba(247, 244, 237, 0.92) 50%, rgba(247, 244, 237, 0.96) 100%);
}

.sect-detail-section {
    background: rgba(255, 253, 247, 0.72);
    border: 1px solid rgba(184, 134, 11, 0.18);
}

.sect-detail-section-title {
    color: #8b6914;
}

.sect-detail-name,
.sect-detail-actions .btn {
    color: #2b2318;
}

.sect-detail-actions .btn-primary {
    background: linear-gradient(135deg, #d4a843, #b8860b);
    color: #fff;
    border-color: #e8c96a;
}

/* ---------- 宗门建筑卡片 ---------- */
.sect-building-card {
    background: rgba(255, 253, 247, 0.72);
    border: 1px solid rgba(184, 134, 11, 0.20);
    box-shadow: 0 4px 14px rgba(43, 35, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sect-building-title {
    color: #8b6914;
}

.sect-building-desc {
    color: #7a6e5a;
}

.sect-building-actions .btn {
    background: rgba(255, 253, 247, 0.85);
    border: 1px solid rgba(184, 134, 11, 0.25);
    color: #4a4034;
}

/* ---------- 宗门列表卡片 ---------- */
.sect-list-card {
    background: rgba(255, 253, 247, 0.72);
    border: 1px solid rgba(184, 134, 11, 0.20);
    box-shadow: 0 4px 14px rgba(43, 35, 24, 0.08);
}

.sect-list-title {
    color: #8b6914;
}

.sect-list-subtitle {
    color: #7a6e5a;
}

/* ---------- 宗门成员面板 ---------- */
.sect-members-panel {
    background:
        radial-gradient(circle at 50% 12%, rgba(184, 134, 11, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, rgba(255, 253, 247, 0.96) 0%, rgba(247, 244, 237, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

.sect-members-bg-overlay {
    background:
        radial-gradient(circle at 50% 12%, rgba(184, 134, 11, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 50% 35%, rgba(247, 244, 237, 0.1) 0%, transparent 65%),
        radial-gradient(circle at 80% 90%, rgba(139, 106, 43, 0.04) 0%, transparent 45%),
        linear-gradient(180deg, rgba(247, 244, 237, 0.03) 0%, rgba(247, 244, 237, 0.18) 50%, rgba(247, 244, 237, 0.32) 100%);
}

.sect-members-header {
    background: rgba(255, 253, 247, 0.72);
    border: 1px solid rgba(184, 134, 11, 0.20);
    box-shadow: 0 8px 24px rgba(43, 35, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sect-members-badge-name {
    color: #8b6914;
}

.sect-members-badge-level,
.sect-members-stat {
    color: #7a6e5a;
}

.sect-members-stat strong {
    color: #b8860b;
}

.sect-members-tabs span {
    color: #7a6e5a;
    background: rgba(255, 253, 247, 0.72);
    border: 1px solid rgba(43, 35, 24, 0.06);
}

.sect-members-tabs span.active {
    color: #fff;
    background: linear-gradient(180deg, #e8c96a 0%, #b8860b 100%);
    border-color: rgba(184, 134, 11, 0.45);
}

.sect-member-card {
    background: rgba(255, 253, 247, 0.60);
    border: 1px solid rgba(184, 134, 11, 0.15);
    box-shadow: 0 2px 8px rgba(43, 35, 24, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sect-member-name {
    color: #4a4034;
}

.sect-member-meta {
    color: #7a6e5a;
}

.sect-member-view {
    background: rgba(184, 134, 11, 0.12);
    border: 1px solid rgba(184, 134, 11, 0.25);
    color: #8b6914;
}

.sect-member-view:active {
    background: rgba(184, 134, 11, 0.22);
}

.sect-members-invite {
    background: rgba(255, 253, 247, 0.72);
    border: 1px dashed rgba(184, 134, 11, 0.25);
    color: #8b6914;
}

/* ---------- 通用按钮与卡片 ---------- */
.btn,
.btn.btn-secondary {
    background: rgba(255, 253, 247, 0.85);
    border: 1px solid rgba(184, 134, 11, 0.22);
    color: #4a4034;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a843, #b8860b);
    color: #fff;
    border-color: #e8c96a;
}

.btn-danger {
    background: rgba(196, 92, 62, 0.10);
    border-color: rgba(196, 92, 62, 0.25);
    color: #c45c3e;
}

.btn-success {
    background: rgba(90, 143, 90, 0.10);
    border-color: rgba(90, 143, 90, 0.25);
    color: #5a8f5a;
}

.card {
    background: rgba(255, 253, 247, 0.72);
    border: 1px solid rgba(184, 134, 11, 0.18);
    box-shadow: 0 2px 10px rgba(43, 35, 24, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-title {
    color: #8b6914;
}

.card-desc {
    color: #7a6e5a;
}

/* ---------- 历练副本卡片 ---------- */
.adv-dungeon-card {
    background: rgba(255, 253, 247, 0.90);
    border: 1px solid rgba(184, 134, 11, 0.22);
}

.adv-dc-title {
    color: #8b6914;
}

.adv-dc-row {
    color: #4a4034;
}

.adv-dc-label {
    color: #7a6e5a;
}

.adv-dc-val {
    color: #2b2318;
}

.adv-dc-drops {
    color: #6b6050;
}

.adv-dc-drops strong {
    color: #b8860b;
}

.adv-dc-btn {
    background: linear-gradient(90deg, rgba(184, 134, 11, 0.9), rgba(212, 168, 67, 0.9));
    border-color: rgba(240, 215, 140, 0.45);
    color: #fff;
}

.adv-auto-btn {
    background: rgba(255, 253, 247, 0.85);
    border-color: rgba(184, 134, 11, 0.25);
    color: #8b6914;
}

.adv-dc-locked-mask {
    background: rgba(247, 244, 237, 0.72);
    border-color: rgba(184, 134, 11, 0.22);
    color: #7a6e5a;
}

/* ---------- 副本详情面板 ---------- */
#dungeon-detail-panel {
    background: rgba(247, 244, 237, 0.98) !important;
}

.dungeon-detail-header {
    background: linear-gradient(90deg, rgba(255, 253, 247, 0.95), rgba(247, 244, 237, 0.98));
    border-bottom-color: rgba(184, 134, 11, 0.22);
}

.dungeon-detail-sweep {
    background: linear-gradient(90deg, #b8860b, #d4a843);
    border-color: #f0d78c;
    color: #fff;
}

.dungeon-node-icon {
    border-color: rgba(184, 134, 11, 0.65);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.25), 0 0 40px rgba(184, 134, 11, 0.10);
}

.dungeon-node-name {
    color: #8b6914;
}

.dungeon-node-layer {
    background: linear-gradient(135deg, #b8860b, #d4a843);
    border-color: #f0d78c;
    color: #fff;
}
