:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #0D1117;
    color: #E6EDF3;
}

.search-container {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.95) 0%, rgba(22, 27, 34, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 110, 123, 0.15);
}

.card {
    background: linear-gradient(135deg, #161B22 0%, #0D1117 100%);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 110, 123, 0.15);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0A81AB;
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.server-select {
    position: relative;
}

.server-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
}

.server-select.active .server-options {
    display: block;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2D333B;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #0A81AB;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* 分割 */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

#loading-overlay {
    transition: opacity 0.5s ease;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #1A1A1A;
    color: #E6EDF3;
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0A81AB;
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.blue-team {
    background-color: rgba(0, 0, 255, 0.1);
    border: 1px solid rgba(0, 0, 255, 0.2);
}

.red-team {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mode-selector {
    position: relative;
}

.mode-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
}

.mode-selector.active .mode-options {
    display: block;
}

.match-card {
    transition: all 0.3s ease;
}

.match-card.expanded {
    margin-bottom: 16px;
}

.match-details {
    display: none;
}

.match-card.expanded .match-details {
    display: block;
}

.summoner-level {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background-color: #0A81AB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #1A1A1A;
}

.rank-icon {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}




/* 添加自定义CSS */
.champion-icon img,
.summoner-icon img,
.item-icon img {
border-radius: 8px;
}
.champion-icon,
.summoner-icon,
.item-icon {
border-radius: 8px;
overflow: hidden;
}
.space-y-2 > div {
padding: 4px 0;
}
.nickname {
    width: 120px;  /* 固定宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom; /* 保持文本底部对齐 */
}
.text-sm {
font-size: 0.75rem;
}
.text-xs {
font-size: 0.65rem;
}
.text-name {
    font-size: 20px;
    }
.champion-icon {
width: 40px;
height: 40px;
}
.summoner-icon,
.item-icon {
width: 16px;
height: 16px;
}
.skill-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.equipment-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.match-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    table-layout: fixed;
}

.match-details-table td {
    padding: 8px 12px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-details-table th {
    padding: 8px 12px;
    text-align: left;
    color: #9CA3AF;
    font-weight: 500;
    font-size: 0.875rem;
    background: #2A2A2A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blue-team-table td {
    background: rgba(0, 120, 255, 0.05);
}

.red-team-table td {
    background: rgba(255, 70, 70, 0.05);
}

.blue-team-table.current-player td {
    background: rgba(0, 120, 255, 0.15);
}

.red-team-table.current-player td {
    background: rgba(255, 70, 70, 0.15);
}

.team-header {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

.blue-team-header {
    color: rgb(0, 120, 255);
    background: rgba(0, 120, 255, 0.1);
}

.red-team-header {
    color: rgb(255, 70, 70);
    background: rgba(255, 70, 70, 0.1);
}
/* 分割 */

.match-card.win {
    background: linear-gradient(to right, rgba(0, 119, 255, 0.315), transparent);
    border-left: 4px solid rgb(0, 120, 255);
}

.match-card.lose {
    background: linear-gradient(to right, rgba(255, 70, 70, 0.315), transparent);
    border-left: 4px solid rgb(255, 70, 70);
}

.skill-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.equipment-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.match-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    table-layout: fixed;
}

.match-details-table td {
    padding: 8px 12px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-details-table th {
    padding: 8px 12px;
    text-align: left;
    color: #9CA3AF;
    font-weight: 500;
    font-size: 0.875rem;
    background: #2A2A2A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-details-table th {
    padding: 8px 12px;
    text-align: left;
    color: #9CA3AF;
    font-weight: 500;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.match-details-table td {
    padding: 8px 12px;
    vertical-align: middle;
}
.djdj {
    color: #fff;
    font-size: 12px;
}
.blue-team-table td {
    background: rgba(0, 120, 255, 0.1);
}

.red-team-table td {
    background: rgba(255, 70, 70, 0.1);
}

.blue-team-table.current-player td {
    background: rgba(0, 120, 255, 0.2);
}

.red-team-table.current-player td {
    background: rgba(255, 70, 70, 0.2);
}

.team-header {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

.blue-team-header {
    color: rgb(0, 120, 255);
    background: rgba(0, 120, 255, 0.1);
}

.red-team-header {
    color: rgb(255, 70, 70);
    background: rgba(255, 70, 70, 0.1);
}

/*分割*/
    /* 覆盖原有背景色 */
    .bg-\[\#212121\] { background: var(--bg-secondary) !important; }
    .bg-\[\#232323\] { background: var(--bg-secondary) !important; }
    
    /* 覆盖文字颜色 */
    .text-white { color: var(--text-primary) !important; }
    .text-gray-300 { color: var(--text-secondary) !important; }
    .text-gray-400 { color: var(--text-secondary) !important; }
    
  
    
    /* 覆盖滚动条 */
    .scrollbar-thin::-webkit-scrollbar-thumb {
        background: var(--text-secondary);
    }
    .bg-\[\#2A2A2A\]:not(.match-card) { 
        background: var(--bg-secondary) !important; 
    }
    
    .border-gray-700:not(.match-card) {
        border-color: var(--border-primary) !important;
    }

    :root {
        --bg-primary: #f3f4f6;
        --bg-secondary: #ffffff;
        --text-primary: #111827;
        --text-secondary: #4b5563;
        --border-primary: #e5e7eb;
    }

    .dark-theme {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2A2A2A;
        --text-primary: #ffffff;
        --text-secondary: #d1d5db;
        --border-primary: #374151;
    }

    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    /* 主题切换按钮 */

   /* 强制锁定layer弹窗默认配色 */
.layui-layer,
.layui-layer-shade {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #ddd !important;
}

/* 标题栏 */
.layui-layer-title {
    background: #f8f8f8 !important;
    color: #333 !important;
    border-bottom: 1px solid #ddd !important;
}

/* 内容区域 */
.layui-layer-content {
    color: #666 !important;
}

/* 按钮区域 */
.layui-layer-btn a {
    background: #0A81AB !important;
    color: white !important;
    border: none !important;
}

.layui-layer-btn .layui-layer-btn1 { /* 取消按钮 */
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

/* 输入框 */
.layui-layer-input input {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}

/* 图标颜色 */
.layui-layer-setwin a {
    color: #666 !important;
}

.layui-layer-setwin a:hover {
    color: #333 !important;
}

/* loading动画 */
.layui-layer-load {
    background: url(//res.layui.com/layui/dist/images/loading-1.gif) no-repeat center center #fff !important;
}

/* 提示图标 */
.layui-layer-ico {
    background-image: url(//res.layui.com/layui/dist/images/layer/icon.png) !important;
}

/* 分割 */

:root {
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border-primary: #e5e7eb;
    --border-secondary: #d1d5db;
}

.dark-theme {
    --bg-primary: #0d1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #1C2128;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --border-primary: #30363D;
    --border-secondary: #21262d;
}



    /* 覆盖背景色 */
    .bg-\[\#161B22\] { background: var(--bg-secondary) !important; }
    .bg-\[\#1C2128\] { background: var(--bg-tertiary) !important; }
    .bg-\[\#2D333B\] { background: var(--bg-tertiary) !important; }
    
    /* 覆盖文字颜色 */
    .text-white { color: var(--text-primary) !important; }
    .text-gray-300 { color: var(--text-secondary) !important; }
    .text-gray-400 { color: var(--text-secondary) !important; }
    
    /* 覆盖边框颜色 */
    .border-\[\#30363D\] { border-color: var(--border-primary) !important; }
    
    /* 保留特殊元素的固定颜色 */
    .bg-\[\#9333EA\]\/10 { background-color: rgba(147, 51, 234, 0.1) !important; }
    .border-\[\#9333EA\]\/10 { border-color: rgba(147, 51, 234, 0.1) !important; }
    
    /* 渐变文字保持原色 */
    .bg-gradient-to-r.from-primary.to-secondary {
        background-image: linear-gradient(to right, #0A81AB, #FFA41B) !important;
    }



/*分割*/
.win-bg {
    background-color: rgba(59, 130, 246, 0.15);
    }
    .lose-bg {
    background-color: rgba(239, 68, 68, 0.15);
    }
    .match-record::-webkit-scrollbar {
    width: 6px;
    }
    .match-record::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 8px;
    }
    .match-record::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 8px;
    }
    .match-record::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
    }

    /*分割*/
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }
    .modal-content {
        background-color: #1a1a1a;
        margin: 2rem auto;
        width: 95%;
        max-width: 1440px;
        position: relative;
        border-radius: 16px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    .modal-close {
        position: absolute;
        right: 1.5rem;
        top: 1.5rem;
        width: 2rem;
        height: 2rem;
        background: #2a2a2a;
        border: 1px solid #3f3f3f;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #fff;
        transition: all 0.2s;
    }
    .modal-close:hover {
        background: #3f3f3f;
    }
    .modal.show {
        display: block;
    }
    .trigger-button {
        background: #3b82f6;
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        border: none;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }
    .trigger-button:hover {
        background: #2563eb;
    }
    body.modal-open {
        overflow: hidden;
    }


/* 历史记录弹窗滚动条样式 */
.history-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #4B5563 #2D333B;
}

.history-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.history-scrollbar::-webkit-scrollbar-track {
    background: #2D333B;
    border-radius: 4px;
}

.history-scrollbar::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.history-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* 历史记录项样式 */
.history-item {
    padding: 12px;
    background: #2D333B;
    border-radius: 8px;
    transition: background 0.2s;
}

.history-item:hover {
    background: #374151;
}


/*云顶 */
.star {
    position: absolute;
    top: -4px;
    right: -4px;
    color: gold;
    font-size: 12px;
    }
    .equipment {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    }
    .equipment-item {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    }
    .synergy-item {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 4px;
    }
    .match-row {
    transition: all 0.3s ease;
    }
    .match-row:hover {
    background-color: var(--bg-tertiary);
    }
    .match-detail {
    display: none;
    }
    .match-detail.active {
    display: block;
    }
    .tier-badge {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 1px solid #4a4a4a;
    }
    .champion-container {
    position: relative;
    width: 35px;
    height: 35px;
    margin: 3px 2px;
    }
    .pagination-button {
    transition: all 0.2s ease;
    }
    .pagination-button:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.1);
    }
    .pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    }
    .match-rank-1 { color: #ffd700; }
    .match-rank-2 { color: #c0c0c0; }
    .match-rank-3 { color: #cd7f32; }
    .match-rank-4 { color: #a0a0a0; }
    .match-rank-5, .match-rank-6, .match-rank-7, .match-rank-8 { color: #ff6b6b; }
    .synergy-1 { background-color: rgba(75, 85, 99, 0.6); }
    .synergy-2 { background-color: rgba(59, 130, 246, 0.6); }
    .synergy-3 { background-color: rgba(139, 92, 246, 0.6); }
    .synergy-4 { background-color: rgba(236, 72, 153, 0.6); }
    .star-1::after { content: "★"; }
    .star-2::after { content: "★★"; }
    .star-3::after { content: "★★★"; }
    .equipment-blue { background-color: #3b82f6; }
    .equipment-purple { background-color: #8b5cf6; }
    .equipment-orange { background-color: #f97316; }
    .equipment-green { background-color: #10b981; }
    .toggle-button {
    transition: transform 0.3s ease;
    }
    .toggle-button.active {
    transform: rotate(180deg);
    }
    /*云顶 */
    textarea {
      resize: none;
      min-height: 120px;
      background-color: #1C2128;
      color: #E6EDF3;
      border: 1px solid #30363D;
      transition: all 0.3s ease;
      }
      textarea:focus {
      border-color: #0A81AB;
      box-shadow: 0 0 0 2px rgba(10, 129, 171, 0.2);
      outline: none;
      }
      .plan-item.selected {
  border-color: #3B82F6;
  background-color: #353d47;
}
.plan-item:hover {
  background-color: #353d47;
}