* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #0a0e27;
    color: #9ca3af;
    min-height: 100vh;
    line-height: 1.6;
}

    /* 背景网格 */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
        background-size: 20px 20px;
        pointer-events: none;
        z-index: 0;
    }

    /* 扫描线效果 */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient( 0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px );
        pointer-events: none;
        z-index: 1;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 顶部标题栏 */
.header {
    background: #1a1f3a;
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.1);
    padding: 24px 0;
    position: relative;
}

    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 2px solid transparent;
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), transparent 40%, transparent 60%, rgba(6, 182, 212, 0.3)) border-box;
        -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    font-size: 48px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

    .header-icon img {
        width:128px;
        height:48px;
        object-fit:contain;
    }

.header-title {
    background: linear-gradient(to right, #22d3ee, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(6, 182, 212, 0.3);
}

@media(max-width:768px){
    .header-title {
        font-size:22px;
    }

    .header-icon img {
        width: 96px;
        height: 36px;
        object-fit: contain;
    }
}

.header-subtitle {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 4px;
    letter-spacing: 2px;
}

.header-nav {
    display: none;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
    }
}

.header-nav span {
    color: #22d3ee;
    cursor: pointer;
}

    .header-nav span.active {
        color: #22d3ee;
        text-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(6, 182, 212, 0.3);
        font-weight: bold;
    }

.nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

    .nav-btn.active {
        background: rgba(6, 182, 212, 0.3);
        border-color: #22d3ee;
    }

.header-nav .separator {
    color: #4b5563;
}

/* 主要内容区域 */
.main-content {
    padding: 32px 0;
}

/* 标题样式 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    margin-bottom: 24px;
}

.section-warp {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.section-collapse-btn {
    width:100px;
    cursor:pointer;
    text-align:center;
}

    .section-collapse-btn img{
        width:20px;
    }

        .section-collapse-btn img.reverse {
            transform: scale(1, -1);
        }

    .section-title .icon {
        animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    .section-title .text {
        font-family: 'Courier New', monospace;
    }

/* 阵营选择卡片 */
.faction-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .faction-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.faction-card {
    position: relative;
    padding: 24px;
    border-radius: 8px;
    border: 2px solid #374151;
    background: #151936;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

    .faction-card:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 40px rgba(6, 182, 212, 0.1);
        border-color: rgba(6, 182, 212, 0.5);
    }

    .faction-card.active {
        border-color: #22d3ee;
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(59, 130, 246, 0.4));
        box-shadow: 0 10px 40px rgba(6, 182, 212, 0.3);
    }

        .faction-card.active::before,
        .faction-card.active::after {
            content: '';
            position: absolute;
            width: 10px;
            height: 10px;
            border-color: rgba(6, 182, 212, 0.5);
            border-style: solid;
        }

        .faction-card.active::before {
            top: -1px;
            left: -1px;
            border-width: 2px 0 0 2px;
        }

        .faction-card.active::after {
            bottom: -1px;
            right: -1px;
            border-width: 0 2px 2px 0;
        }

.faction-card-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 32px;
    opacity: 0.8;
}


.faction-card-icon img{
    width:32px;
    height:32px;
    border-radius:50%;
    overflow:hidden;
    object-fit:cover;
}

.faction-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 0 10px currentColor;
}

.faction-name {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.faction-desc {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 8px;
    line-height: 1.5;
}

/* 类别选择按钮 */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.category-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #374151;
    background: #151936;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1px;
}

    .category-btn:hover:not(:disabled) {
        border-color: rgba(6, 182, 212, 0.5);
        background: #1a2040;
        box-shadow: 0 10px 40px rgba(6, 182, 212, 0.1);
    }

    .category-btn.active {
        border-color: #22d3ee;
        background: rgba(6, 182, 212, 0.5);
        color: #d1fae5;
        box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
    }

    .category-btn:disabled {
        background: #0f1326;
        border-color: #1f2937;
        color: #4b5563;
        cursor: not-allowed;
    }

.category-btn-icon {
    font-size: 20px;
}

.category-btn-count {
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 9999px;
    background: rgba(6, 182, 212, 0.2);
    color: #a5f3fc;
    font-family: 'Courier New', monospace;
}

/* 单位网格 */
.units-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.units-title {
    font-size: 20px;
    font-weight: 600;
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    font-family: 'Courier New', monospace;
}

.units-count {
    margin-left: 12px;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 9999px;
    background: rgba(6, 182, 212, 0.2);
    color: #a5f3fc;
    font-family: 'Courier New', monospace;
}

.units-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .units-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .units-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px){
    .layer-video-pop-skin {
        width:100% !important;
        height:auto !important;
        background-color:#000;
    }

        .layer-video-pop-skin .layui-layer-content {
            width: 100% !important;
            height: auto !important;
        }
}

/* 单位卡片 */
.unit-card {
    background: #151936;
    border-radius: 8px;
    border: 2px solid #374151;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

    .unit-card::before,
    .unit-card::after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        border-color: rgba(6, 182, 212, 0.5);
        border-style: solid;
        pointer-events: none;
    }

    .unit-card::before {
        top: -1px;
        left: -1px;
        border-width: 2px 0 0 2px;
    }

    .unit-card::after {
        bottom: -1px;
        right: -1px;
        border-width: 0 2px 2px 0;
    }

    .unit-card:hover {
        border-color: rgba(6, 182, 212, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
    }

.unit-card-header {
    height: 8px;
    transition: height 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .unit-card-header::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        animation: shimmer 2s infinite;
    }

.unit-card:hover .unit-card-header {
    height: 12px;
}

.unit-card-content {
    padding: 24px;
    position: relative;
}

    .unit-card-content::before {
        content: '';
        position: absolute;
        inset: 0;
        opacity: 0.05;
        background-image: linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
        background-size: 20px 20px;
        pointer-events: none;
    }

.unit-icon-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.unit-icon {
    width: 64px;
    height: 48px;
    background: #0f1326;
    border-radius: 8px;
    border: 2px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all 0.3s ease;
    position: relative;
}

    .unit-icon img {
        width: 64px;
        height: 48px;
        object-fit:cover;
    }

    .unit-icon::before {
        content: '';
        position: absolute;
        inset: 0;
        border: 2px solid transparent;
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), transparent 40%, transparent 60%, rgba(6, 182, 212, 0.3)) border-box;
        -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

.unit-card:hover .unit-icon {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
}

.unit-info {
    flex: 1;
}

.unit-name {
    font-size: 20px;
    font-weight: bold;
    color: #f3f4f6;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.unit-card:hover .unit-name {
    color: #22d3ee;
}

.unit-id {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.unit-description {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 20;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.unit-stats {
    background: #0f1326;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #1f2937;
    position: relative;
    z-index: 1;
}

    .unit-stats::before {
        content: '';
        position: absolute;
        inset: 0;
        border: 2px solid transparent;
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), transparent 40%, transparent 60%, rgba(6, 182, 212, 0.3)) border-box;
        -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        border-radius: 8px;
    }

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.radar-entry {
    width:100%;
    height:300px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #6b7280;
    font-size: 12px;
}

.stat-value {
    color: #d1d5db;
    font-size: 12px;
}

.unit-video {
    width: 100%;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
    text-decoration: none;
}

    .unit-video.has-video {
        background: rgba(6, 182, 212, 0.3);
        border: 1px solid rgba(6, 182, 212, 0.3);
        color: #22d3ee;
    }

        .unit-video.has-video:hover {
            background: rgba(6, 182, 212, 0.5);
        }

    .unit-video .play-icon {
        transition: transform 0.2s ease;
    }

    .unit-video:hover .play-icon {
        transform: scale(1.1);
    }

    .unit-video.no-video {
        background: rgba(31, 41, 55, 0.3);
        border: 1px solid #374151;
        color: #6b7280;
        cursor: default;
    }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    background: #151936;
    border-radius: 8px;
    border: 2px dashed #374151;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.empty-state-text {
    font-size: 20px;
    color: #9ca3af;
    font-family: 'Courier New', monospace;
}

/* 页脚 */
.footer {
    margin-top: 64px;
    padding: 32px 0;
    border-top: 1px solid #1f2937;
    background: rgba(10, 14, 39, 0.5);
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

    .footer p {
        margin-bottom: 8px;
    }

    .footer .copyright {
        color: rgba(6, 182, 212, 0.6);
    }

/* 动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0e27;
}

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #2a4a7f;
    }

