/* ===== 商店 ===== */
.shop-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
}

.shop-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
}

.shop-item.locked {
    opacity: 0.5;
}

.shop-price {
    font-size: 12px;
    color: var(--text-gold);
}

.locked-text {
    font-size: 11px;
    color: #e06060;
}

.btn-shop {
    background: linear-gradient(135deg, rgba(96, 192, 224, 0.15), rgba(96, 192, 224, 0.05));
    border-color: rgba(96, 192, 224, 0.3);
}

.btn-inventory {
    background: linear-gradient(135deg, rgba(160, 160, 160, 0.15), rgba(160, 160, 160, 0.05));
    border-color: rgba(160, 160, 160, 0.3);
}

/* ===== 神庭面板 ===== */
/* ===== 九霄神庭卡片统一风格 ===== */
.court-card {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.court-card-header {
    font-size: 13px;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0.85;
}

.court-card-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
    text-align: center;
}

/* sect-card \u5df2\u8fc1\u79fb\u81f3 court-card, \u4fdd\u7559\u6ce8\u91ca\u4ee5\u5907\u67e5 */

.court-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.court-title-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.court-title-row:first-of-type {
    padding-top: 0;
}

.court-label {
    color: var(--text-muted);
    font-size: 12px;
}

.court-value {
    color: var(--text-gold);
    font-size: 13px;
    font-weight: 500;
}

.btn-court-salary {
    background: linear-gradient(135deg, rgba(201, 153, 58, 0.2), rgba(201, 153, 58, 0.08));
    border: 1px solid rgba(201, 153, 58, 0.35);
    color: var(--text-gold);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-court-salary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(201, 153, 58, 0.3), rgba(201, 153, 58, 0.15));
    transform: translateY(-1px);
}

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

/* 试炼面板 */
.trial-boss-stats {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.trial-boss-stats b {
    color: var(--text-gold);
    font-weight: 600;
}

.trial-status-msg {
    font-size: 12px;
    text-align: center;
    margin: 8px 0 0;
    line-height: 1.5;
}

.btn-trial {
    background: linear-gradient(135deg, rgba(224, 96, 64, 0.2), rgba(224, 96, 64, 0.08));
    border: 1px solid rgba(224, 96, 64, 0.35);
    color: #e08050;
}

.btn-trial:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(224, 96, 64, 0.3), rgba(224, 96, 64, 0.15));
    transform: translateY(-1px);
}

.btn-trial-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* 试炼结果弹窗 */
.trial-result-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    backdrop-filter: blur(4px);
}

.trial-result-dialog {
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 20px 24px;
    width: 90%;
    max-width: 380px;
    max-height: 80vh;
    overflow-y: auto;
}

.trial-result-success {
    color: var(--accent-jade);
    text-align: center;
    font-size: 18px;
    margin-bottom: 8px;
}

.trial-result-fail {
    color: #e06060;
    text-align: center;
    font-size: 18px;
    margin-bottom: 8px;
}

.trial-promotion-text {
    color: var(--text-gold);
    text-align: center;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.trial-log-container {
    max-height: 40vh;
    overflow-y: auto;
    padding: 8px 0;
}

.trial-log {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 2px 0;
}

.trial-log-round {
    font-size: 11px;
    color: var(--text-muted);
}

.trial-log-victory {
    color: var(--accent-jade);
    font-weight: 500;
}

.trial-log-defeat {
    color: #e06060;
    font-weight: 500;
}

/* 散修绑定账号 */
.court-bind-section {
    padding: 0 4px;
}

.court-bind-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: rgba(var(--accent-jade-rgb, 120, 200, 180), 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--accent-jade);
}

.bind-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bind-field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.bind-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--bg-input, rgba(255, 255, 255, 0.05));
    color: var(--text-primary);
    font-size: 13px;
    box-sizing: border-box;
}

.bind-field input:focus {
    outline: none;
    border-color: var(--accent-jade);
}

.bind-code-input {
    display: flex;
    gap: 8px;
}

.bind-code-input input {
    flex: 1;
}

.btn-send-code {
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid var(--accent-jade);
    border-radius: 6px;
    background: transparent;
    color: var(--accent-jade);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send-code:hover:not(:disabled) {
    background: var(--accent-jade);
    color: var(--bg-panel);
}

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

/* ===== 装备样式 ===== */
.inventory-item.equipped {
    border-color: rgba(201, 153, 58, 0.4);
    background: rgba(201, 153, 58, 0.06);
}

.equip-badge {
    font-size: 11px;
    color: var(--text-gold);
    margin-left: 6px;
}

/* 祭炼等级标记 */
.refine-badge {
    font-size: 11px;
    color: #60c0e0;
    margin-left: 4px;
    font-weight: 600;
}

/* 本命法宝标记 */
.natal-badge {
    font-size: 10px;
    color: #e0a040;
    margin-left: 4px;
    padding: 1px 4px;
    background: rgba(224, 160, 64, 0.15);
    border-radius: 3px;
    font-weight: 600;
}

/* 祭炼/本命按钮 */
.btn-refine {
    background: rgba(96, 192, 224, 0.15) !important;
    color: #60c0e0 !important;
    border-color: rgba(96, 192, 224, 0.3) !important;
}
.btn-refine:hover {
    background: rgba(96, 192, 224, 0.25) !important;
}
.btn-natal {
    background: rgba(224, 160, 64, 0.15) !important;
    color: #e0a040 !important;
    border-color: rgba(224, 160, 64, 0.3) !important;
}
.btn-natal:hover {
    background: rgba(224, 160, 64, 0.25) !important;
}
.btn-natal-unbind {
    background: rgba(224, 96, 96, 0.12) !important;
    color: #e06060 !important;
    border-color: rgba(224, 96, 96, 0.3) !important;
}
.btn-natal-unbind:hover {
    background: rgba(224, 96, 96, 0.25) !important;
}

/* 祭炼面板 */
.refine-panel {
    text-align: left;
}
.refine-title {
    font-size: 16px;
    color: var(--text-gold);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.refine-natal-tag {
    font-size: 11px;
    color: #e0a040;
    background: rgba(224, 160, 64, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}
.refine-level, .refine-bonus, .refine-bind, .refine-rate {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.refine-level strong, .refine-bonus strong {
    color: #60c0e0;
}
.refine-rate strong {
    color: #8fcf8f;
}
.refine-rate-warn {
    color: #e0a040 !important;
}
.refine-cost {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}
.refine-cost span {
    color: #e06060;
    font-weight: 500;
}
.refine-exp-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0 4px;
}
.refine-exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #3a8ab0, #60c0e0);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.refine-exp-preview {
    height: 100%;
    background: linear-gradient(90deg, rgba(143,207,143,0.6), rgba(143,207,143,0.9));
    transition: width 0.3s ease;
    border-radius: 0 4px 4px 0;
}
.refine-exp-text {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 10px;
}

/* 投喂材料列表 */
.refine-feed-section {
    margin-top: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}
.refine-feed-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.refine-feed-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.refine-feed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.refine-feed-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.refine-feed-cb {
    accent-color: #60c0e0;
}
.refine-feed-qty {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.refine-feed-exp {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-green-light);
    flex-shrink: 0;
    font-weight: 500;
}
.refine-feed-summary {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px 10px;
    margin-top: 6px;
    background: rgba(201, 153, 58, 0.06);
    border: 1px solid rgba(201, 153, 58, 0.15);
    border-radius: 6px;
}
.refine-empty {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
}

/* ===== 功法与技能 ===== */
.technique-section {
    margin-bottom: 20px;
}

/* 配置方案栏 */
.loadout-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.loadout-bar .btn-loadout {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.loadout-bar .btn-loadout:hover {
    border-color: rgba(201, 153, 58, 0.5);
    background: rgba(201, 153, 58, 0.1);
}

.loadout-bar .btn-loadout-save {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(201, 153, 58, 0.12);
    border: 1px dashed rgba(201, 153, 58, 0.4);
    color: var(--text-gold);
    cursor: pointer;
    transition: all 0.2s;
}

.loadout-bar .btn-loadout-save:hover {
    background: rgba(201, 153, 58, 0.2);
}

.loadout-bar .btn-loadout-del {
    font-size: 10px;
    margin-left: 4px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.loadout-bar .btn-loadout-del:hover {
    color: #e74c3c;
}

.loadout-bar .btn-loadout-update {
    font-size: 10px;
    margin-left: 2px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.loadout-bar .btn-loadout-update:hover {
    color: var(--text-gold);
}

.technique-section-title {
    font-size: 13px;
    color: var(--text-gold);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(201, 153, 58, 0.2);
}

.technique-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.technique-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

.technique-item.technique-active {
    border-color: rgba(201, 153, 58, 0.4);
    background: rgba(201, 153, 58, 0.06);
}

.technique-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.technique-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.technique-grade {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.grade-普通 {
    background: color-mix(in srgb, var(--rarity-1) 15%, transparent);
    color: var(--rarity-1);
}

.grade-优良 {
    background: color-mix(in srgb, var(--rarity-2) 15%, transparent);
    color: var(--rarity-2);
}

.grade-稀有 {
    background: color-mix(in srgb, var(--rarity-3) 15%, transparent);
    color: var(--rarity-3);
}

.grade-史诗 {
    background: color-mix(in srgb, var(--rarity-4) 15%, transparent);
    color: var(--rarity-4);
}

.grade-传说 {
    background: color-mix(in srgb, var(--rarity-5) 15%, transparent);
    color: var(--rarity-5);
}



.technique-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 4px;
    line-height: 1.4;
}

.technique-bonuses {
    font-size: 11px;
    color: #8fcf8f;
    margin-bottom: 6px;
}

.technique-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.technique-badge {
    font-size: 11px;
    color: var(--text-gold);
    background: rgba(201, 153, 58, 0.12);
    padding: 2px 8px;
    border-radius: 3px;
}

.btn-sm {
    padding: 3px 10px;
    font-size: 11px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-technique {
    background: rgba(96, 192, 224, 0.2);
    color: #60c0e0;
}

.btn-technique:hover {
    background: rgba(96, 192, 224, 0.35);
}

.btn-technique-off {
    background: rgba(201, 153, 58, 0.15);
    color: var(--text-gold);
}

.btn-technique-off:hover {
    background: rgba(201, 153, 58, 0.3);
}

.technique-empty {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
}

/* 自创技能词条槽 */
.custom-affix-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 6px;
}
.custom-affix-slot {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}
.custom-affix-slot.empty {
    color: var(--text-muted);
    border-style: dashed;
    border-color: rgba(255,255,255,0.08);
}
.custom-affix-slot.grade-3 { color: #e0a030; border-color: rgba(224,160,48,0.3); background: rgba(224,160,48,0.08); }
.custom-affix-slot.grade-2 { color: #60c0e0; border-color: rgba(96,192,224,0.3); background: rgba(96,192,224,0.08); }
.custom-affix-slot.grade-1 { color: #8fcf8f; border-color: rgba(143,207,143,0.3); background: rgba(143,207,143,0.08); }

/* 自创技能弹窗 */
.cs-modal {
    padding: 20px 22px;
    max-width: 340px;
    width: 90%;
}
.cs-modal h4 {
    margin: 0 0 16px;
    color: var(--text-gold, #d4a843);
    font-family: var(--font-serif, serif);
    font-size: 15px;
    letter-spacing: 2px;
    text-align: center;
    border-bottom: 1px solid rgba(212,168,67,0.15);
    padding-bottom: 12px;
}
.cs-modal label {
    display: block;
    color: var(--text-muted, #888);
    font-size: 12px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.cs-modal select,
.cs-modal input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    margin-bottom: 14px;
    background: var(--bg-card, #1a1f30);
    color: var(--text-primary, #e8e0d0);
    border: 1px solid var(--border-color, #2a3040);
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.cs-modal select:focus,
.cs-modal input[type="text"]:focus {
    border-color: var(--accent-gold, #d4a843);
}
.cs-modal .cs-btn {
    width: 100%;
    padding: 10px;
    background: var(--bg-card, #1a1f30);
    border: 1px solid var(--border-color, #2a3040);
    border-radius: 8px;
    color: var(--text-primary, #e8e0d0);
    font-family: var(--font-serif, serif);
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
    margin-top: 4px;
}
.cs-modal .cs-btn:hover {
    border-color: var(--accent-gold, #d4a843);
    background: var(--bg-card-hover, #222840);
    transform: translateY(-1px);
}
.cs-modal .cs-btn:active {
    transform: translateY(0);
}
.cs-modal .cs-btn-accept {
    border-color: rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}
.cs-modal .cs-btn-accept:hover {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}
.cs-modal .cs-btn-reject {
    border-color: rgba(231, 76, 60, 0.3);
    color: var(--text-muted, #888);
}
.cs-modal .cs-btn-reject:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}
.cs-modal .cs-preview-old {
    color: var(--text-muted, #888);
    font-size: 13px;
    margin-bottom: 6px;
}
.cs-modal .cs-preview-old span { color: #e74c3c; }
.cs-modal .cs-preview-new {
    color: var(--text-muted, #888);
    font-size: 13px;
    margin-bottom: 6px;
}
.cs-modal .cs-preview-new span { color: #2ecc71; }
.cs-modal .cs-preview-type {
    color: var(--text-muted, #888);
    font-size: 11px;
    margin-bottom: 16px;
    opacity: 0.7;
}
.cs-modal .cs-btn-row {
    display: flex;
    gap: 8px;
}
.cs-modal .cs-btn-row .cs-btn {
    flex: 1;
}
.cs-modal .cs-hint {
    color: var(--text-muted, #888);
    font-size: 12px;
    margin-bottom: 14px;
    line-height: 1.5;
}
.cs-wash-slots {
    margin-bottom: 14px;
}
.cs-wash-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border-color, #2a3040);
    border-radius: 6px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.02);
}
.cs-wash-slot-idx {
    color: var(--text-muted, #888);
    font-size: 11px;
    min-width: 14px;
    text-align: center;
    opacity: 0.6;
}
.cs-wash-slot-desc {
    flex: 1;
    font-size: 12px;
    color: var(--text-muted, #888);
}
.cs-wash-slot-desc.grade-3 { color: #e0a030; }
.cs-wash-slot-desc.grade-2 { color: #60c0e0; }
.cs-wash-slot-desc.grade-1 { color: #8fcf8f; }
.cs-wash-btn {
    width: auto !important;
    min-width: 48px;
    padding: 4px 10px !important;
    font-size: 12px !important;
    margin-top: 0 !important;
}

