/* 宗门系统样式 */
.sect-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    padding: 20px;
}

/* 左侧导航 */
.sect-navigation {
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.sect-emblem {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #3a3a4a;
    margin-bottom: 20px;
}

.emblem-image {
    width: 60px;
    height: 60px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.emblem-image i {
    font-size: 30px;
    color: #88aade;
}

.sect-status {
    flex: 1;
}

.sect-name {
    font-size: 18px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 5px;
}

.sect-level {
    font-size: 14px;
    color: #88aade;
}

.navigation-menu {
    margin-bottom: 20px;
}

.menu-item {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    color: #ccc;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #88aade;
}

.menu-item:hover {
    background: rgba(40, 40, 50, 0.6);
    color: #d4b48c;
}

.menu-item.active {
    background: linear-gradient(to right, #3a3a55, #2a2a45);
    border: 1px solid #4a4a6a;
    color: #d4b48c;
}

.player-sect-status {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    padding: 15px;
}

.status-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #d4b48c;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.status-label {
    color: #88aade;
}

.status-value {
    color: #ccc;
    font-weight: 500;
}

/* 右侧内容区域 */
.sect-content {
    flex: 1;
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 20px;
}

/* 宗门概况页 */
.sect-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #3a3a4a;
}

.overview-header h3 {
    margin: 0;
    color: #d4b48c;
    font-size: 22px;
    font-weight: bold;
}

.sect-rank {
    padding: 5px 12px;
    background: linear-gradient(to right, #4a4a65, #3a3a55);
    color: #d4b48c;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid #5a5a7a;
}

.sect-info-card {
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    overflow: hidden;
}

.sect-banner {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.sect-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sect-motto {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #d4b48c;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    font-style: italic;
}

.sect-description {
    padding: 20px;
}

.sect-description p {
    margin: 0 0 15px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
}

.sect-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 20px 20px 20px;
}

.stat-item {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-icon {
    font-size: 24px;
    color: #88aade;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 16px;
    color: #d4b48c;
    font-weight: bold;
}

/* 宗门设施区域 */
.facilities-section, .announcements-section {
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
}

.facilities-section h3, .announcements-section h3 {
    margin: 0 0 20px 0;
    color: #d4b48c;
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a4a;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.facility-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: all 0.2s ease;
}

.facility-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(40, 40, 50, 0.6);
}

.facility-card.locked {
    opacity: 0.7;
    cursor: not-allowed;
}

.facility-card.locked:hover {
    transform: none;
    box-shadow: none;
    background: rgba(30, 30, 40, 0.6);
}

.facility-icon {
    width: 50px;
    height: 50px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #88aade;
    flex-shrink: 0;
}

.facility-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.facility-name {
    font-size: 16px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 3px;
}

.facility-level {
    font-size: 12px;
    color: #88aade;
    margin-bottom: 8px;
}

.facility-desc {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.facility-btn {
    padding: 5px 0;
    background: linear-gradient(to bottom, #3a3a55, #2a2a45);
    border: 1px solid #4a4a6a;
    color: #ccc;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.facility-btn:hover {
    background: linear-gradient(to bottom, #4a4a65, #3a3a55);
    color: #d4b48c;
}

.facility-btn.disabled {
    background: linear-gradient(to bottom, #333340, #232330);
    color: #666;
    cursor: not-allowed;
}

/* 宗门公告区域 */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-item {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 15px;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #3a3a4a;
}

.announcement-title {
    font-size: 16px;
    font-weight: bold;
    color: #d4b48c;
}

.announcement-date {
    font-size: 12px;
    color: #888;
}

.announcement-content {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

/* 师门关系页样式 */
.sect-relationships {
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
}

.relationships-header {
    margin-bottom: 25px;
}

.relationships-header h3 {
    color: #d4b48c;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.relationship-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.relationship-card:hover {
    background: rgba(40, 40, 50, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid #4a5a8a;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info {
    flex: 1;
}

.name {
    font-size: 18px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 5px;
}

.title {
    font-size: 14px;
    color: #88aade;
    margin-bottom: 3px;
}

.level {
    font-size: 14px;
    color: #88aade;
}

.relationship-status {
    padding: 5px 10px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 4px;
    font-size: 14px;
    color: #88aade;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border: 1px solid #4a4a6a;
    border-radius: 4px;
    background: linear-gradient(to bottom, #3a3a55, #2a2a45);
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.action-btn i {
    margin-right: 5px;
}

.action-btn:hover {
    background: linear-gradient(to bottom, #4a4a65, #3a3a55);
    color: #d4b48c;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #88aade;
    margin-right: 15px;
}

/* 宗门任务页样式 */
.sect-missions {
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
}

.missions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.missions-header h3 {
    color: #d4b48c;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.mission-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #88aade;
}

.missions-tabs {
    display: flex;
    border-bottom: 1px solid #3a3a4a;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s;
    color: #ccc;
}

.tab:hover {
    color: #d4b48c;
}

.tab.active {
    color: #d4b48c;
    border-bottom-color: #d4b48c;
}

.mission-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.mission-card:hover {
    background: rgba(40, 40, 50, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.mission-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.mission-type.daily {
    background: rgba(25, 118, 210, 0.2);
    color: #88aade;
    border: 1px solid #4a5a8a;
}

.mission-type.urgent {
    background: rgba(216, 67, 21, 0.2);
    color: #ff9e80;
    border: 1px solid #8a4a4a;
}

.mission-type.special {
    background: rgba(123, 31, 162, 0.2);
    color: #ce93d8;
    border: 1px solid #6a4a8a;
}

.mission-title {
    font-size: 18px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 8px;
}

.mission-desc {
    color: #ccc;
    margin-bottom: 15px;
}

.mission-progress {
    margin-bottom: 15px;
}

.progress-bar {
    height: 6px;
    background: rgba(40, 50, 80, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #4a5a8a, #6a7aaa);
    transition: width 0.3s;
}

.mission-rewards {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.reward {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #88aade;
}

/* 宗门仓库页样式 */
.sect-storage {
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
}

.storage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.storage-header h3 {
    color: #d4b48c;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.storage-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-quality,
.filter-level {
    padding: 8px;
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 4px;
    min-width: 120px;
    color: #ccc;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 4px;
    color: #ccc;
}

.search-box input::placeholder {
    color: #666;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.storage-item {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.storage-item:hover {
    background: rgba(40, 40, 50, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.item-quality {
    margin-right: 15px;
}

.item-quality.high {
    color: #ffa726;
}

.item-quality.medium {
    color: #9ccc65;
}

.item-icon {
    width: 40px;
    height: 40px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #88aade;
}

.item-name {
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 3px;
}

.item-desc {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 3px;
}

.item-quantity {
    font-size: 14px;
    color: #88aade;
}

.storage-operations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.operation-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
}

.operation-icon {
    width: 40px;
    height: 40px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #88aade;
    margin-right: 15px;
}

.operation-info {
    flex: 1;
}

.operation-name {
    color: #d4b48c;
    font-weight: bold;
    margin-bottom: 3px;
}

.operation-desc {
    color: #ccc;
    font-size: 14px;
}

.operation-btn {
    padding: 5px 15px;
    background: linear-gradient(to bottom, #3a3a55, #2a2a45);
    border: 1px solid #4a4a6a;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.operation-btn:hover {
    background: linear-gradient(to bottom, #4a4a65, #3a3a55);
    color: #d4b48c;
}

/* 通用状态样式 */
.locked {
    position: relative;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 25, 0.8);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}

.lock-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #88aade;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .sect-container {
        grid-template-columns: 1fr;
    }
    
    .sect-navigation {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .storage-filters {
        flex-direction: column;
    }
    
    .mission-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* 宗门贡献页样式 */
.sect-contribution {
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
}

.contribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.contribution-header h3 {
    color: #d4b48c;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.contribution-ways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.way-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.way-card:hover {
    background: rgba(40, 40, 50, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.way-icon {
    width: 50px;
    height: 50px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #88aade;
    font-size: 20px;
}

.way-info {
    flex: 1;
}

.way-name {
    font-size: 16px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 5px;
}

.way-desc {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
}

.way-progress {
    margin-top: 10px;
}

.way-btn {
    padding: 8px 20px;
    background: linear-gradient(to bottom, #3a3a55, #2a2a45);
    border: 1px solid #4a4a6a;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.way-btn:hover {
    background: linear-gradient(to bottom, #4a4a65, #3a3a55);
    color: #d4b48c;
}

.contribution-rewards {
    margin-top: 30px;
}

.contribution-rewards h4 {
    color: #d4b48c;
    font-size: 18px;
    margin-bottom: 20px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.reward-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
}

.reward-card:hover {
    background: rgba(40, 40, 50, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.reward-cost {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 4px;
    color: #88aade;
    font-size: 14px;
}

.reward-icon {
    width: 40px;
    height: 40px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #88aade;
    font-size: 20px;
    margin-bottom: 15px;
}

.reward-name {
    color: #d4b48c;
    font-weight: bold;
    margin-bottom: 5px;
}

.reward-desc {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.reward-btn {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(to bottom, #3a3a55, #2a2a45);
    border: 1px solid #4a4a6a;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.reward-btn:hover {
    background: linear-gradient(to bottom, #4a4a65, #3a3a55);
    color: #d4b48c;
}

/* 宗门秘境页样式 */
.sect-realm {
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
}

.realm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.realm-header h3 {
    color: #d4b48c;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.realms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.realm-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.realm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(40, 40, 50, 0.6);
}

.realm-banner {
    position: relative;
    height: 150px;
    background: rgba(25, 25, 35, 0.8);
}

.realm-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.realm-difficulty {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 8px;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid #4a5a8a;
    border-radius: 4px;
    color: #ffd700;
    font-size: 14px;
}

.realm-content {
    padding: 20px;
    background: rgba(30, 30, 40, 0.6);
}

.realm-name {
    font-size: 18px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 5px;
}

.realm-desc {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.realm-rewards {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.realm-rewards .reward {
    padding: 4px 8px;
    background: rgba(40, 50, 80, 0.3);
    border: 1px solid #4a5a8a;
    border-radius: 4px;
    color: #88aade;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.realm-btn {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(to bottom, #3a3a55, #2a2a45);
    border: 1px solid #4a4a6a;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.realm-btn:hover {
    background: linear-gradient(to bottom, #4a4a65, #3a3a55);
    color: #d4b48c;
}

.realm-btn.disabled {
    background: linear-gradient(to bottom, #2a2a35, #1a1a25);
    border: 1px solid #3a3a4a;
    color: #666;
    cursor: not-allowed;
}

.realm-records {
    margin-top: 30px;
}

.realm-records h4 {
    color: #d4b48c;
    font-size: 18px;
    margin-bottom: 20px;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.record-item {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.record-time {
    color: #888;
    font-size: 14px;
    min-width: 80px;
}

.record-info {
    flex: 1;
}

.record-title {
    color: #d4b48c;
    font-weight: bold;
    margin-bottom: 3px;
}

.record-desc {
    color: #ccc;
    font-size: 14px;
}

.record-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.record-status.success {
    background: rgba(40, 80, 40, 0.2);
    border: 1px solid #4a6a4a;
    color: #8aad8a;
}

.record-status.warning {
    background: rgba(80, 60, 20, 0.2);
    border: 1px solid #6a5a3a;
    color: #d4b48c;
}

/* 宗门外交页样式 */
.sect-diplomacy {
    background: rgba(35, 35, 45, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
}

.diplomacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.diplomacy-header h3 {
    color: #d4b48c;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.sect-relations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.relation-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.relation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.relation-banner {
    position: relative;
    height: 150px;
}

.relation-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relation-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.relation-card.ally .relation-status {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #81c784;
}

.relation-card.neutral .relation-status {
    background: rgba(158, 158, 158, 0.1);
    border: 1px solid #9e9e9e;
    color: #bdbdbd;
}

.relation-card.hostile .relation-status {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #e57373;
}

.relation-content {
    padding: 20px;
}

.relation-name {
    font-size: 18px;
    font-weight: bold;
    color: #d4b48c;
    margin-bottom: 5px;
}

.relation-level {
    color: #88aade;
    font-size: 14px;
    margin-bottom: 10px;
}

.relation-desc {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.relation-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.relation-actions .action-btn {
    flex: 1;
    min-width: 100px;
}

.action-btn.battle {
    background: linear-gradient(to bottom, #4a2a2a, #3a1a1a);
    border: 1px solid #5a3a3a;
    color: #ff9e80;
}

.action-btn.battle:hover {
    background: linear-gradient(to bottom, #5a3a3a, #4a2a2a);
    color: #ffb74d;
}

.action-btn.battle.disabled {
    background: linear-gradient(to bottom, #2a2a35, #1a1a25);
    border: 1px solid #3a3a4a;
    color: #666;
    cursor: not-allowed;
}

.diplomacy-events {
    margin-top: 30px;
}

.diplomacy-events h4 {
    color: #d4b48c;
    font-size: 18px;
    margin-bottom: 20px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-time {
    color: #888;
    font-size: 14px;
    min-width: 80px;
}

.event-info {
    flex: 1;
}

.event-title {
    color: #d4b48c;
    font-weight: bold;
    margin-bottom: 3px;
}

.event-desc {
    color: #ccc;
    font-size: 14px;
}

.event-result {
    background: rgba(40, 80, 40, 0.2);
    border: 1px solid #4a6a4a;
    color: #8aad8a;
}

.event-result.negative {
    background: rgba(80, 40, 40, 0.2);
    border: 1px solid #6a4a4a;
    color: #ff9e80;
}

/* 师门关系树型结构样式 */
.relationship-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}

.tree-level {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

/* 连接线样式 */
.tree-level::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #4a5a8a, #3a3a4a);
    z-index: 1;
}

.tree-level:last-child::before {
    display: none;
}

.tree-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 横向连接线 */
.tree-level:not(.level-1) {
    position: relative;
}

.tree-level:not(.level-1)::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(to right, #4a5a8a, #3a3a4a);
    z-index: 1;
}

/* 垂直连接线 */
.tree-node::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #4a5a8a, #3a3a4a);
    z-index: 1;
}

.level-1 .tree-node::before {
    display: none;
}

/* 层级特殊样式 */
.level-1 {
    width: 400px;
}

.level-2 {
    width: 800px;
}

.level-3 {
    width: 1000px;
}

.level-4 {
    width: 100%;
}

/* 关系卡片样式优化 */
.relationship-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    width: 300px;
    position: relative;
    z-index: 2;
}

.relationship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(40, 40, 50, 0.6);
}

/* 不同身份的卡片样式 */
.relationship-card.master {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.8), rgba(30, 30, 40, 0.8));
    border: 1px solid #4a5a8a;
    box-shadow: 0 0 20px rgba(70, 90, 150, 0.2);
}

.relationship-card.sibling {
    background: linear-gradient(135deg, rgba(35, 35, 50, 0.7), rgba(30, 30, 40, 0.7));
    border: 1px solid #4a4a6a;
}

.relationship-card.disciple {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid #3a3a4a;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .level-1, .level-2, .level-3 {
        width: 100%;
    }

    .tree-level {
        flex-wrap: wrap;
        gap: 20px;
    }

    .relationship-card {
        width: 100%;
        max-width: 300px;
    }
} 