/* ===== 首页 (index.html) 样式 ===== */

/* 核心面板 */
.ui-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    pointer-events: none;
    background: transparent;
}

.home-page .hud-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 30px 20px !important;
    width: calc(100% - 40px);
    max-width: 900px;
    min-height: auto;
}

.hud-panel {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 48px;
    border-radius: 20px;
    pointer-events: all;
    width: 500px;
    min-height: 250px;
    box-sizing: border-box;
    text-align: center;
}

.hud-panel h1 {
    margin: 20px 0;
    font-size: 2.5rem;
}

.hud-panel .trilingual-slogan {
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hud-panel .btn-warp {
    margin-top: 30px;
}

/* 对比展示容器 */
.contrast-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    padding-top: 80px;
    box-sizing: border-box;
    overflow-y: auto;
    background: rgba(5, 7, 10, 0.95);
}

.contrast-container.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contrast-content {
    display: flex;
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    align-items: flex-start;
}

.contrast-item {
    flex: 1;
    min-height: 520px;
    max-height: 560px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.contrast-item h2 {
    color: var(--pulse-cyan);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contrast-item .data-flow,
.contrast-item .game-scene {
    height: 300px;
    width: 100%;
    max-width: 100%;
}

.contrast-item.complex {
    border-color: rgba(255, 100, 100, 0.5);
}

.contrast-item.complex h2 {
    color: #ff6464;
}

.contrast-item.simple {
    border-color: rgba(100, 200, 255, 0.5);
}

.contrast-item.simple h2 {
    color: #64c8ff;
}

.simple .npc-panel {
    margin-top: 18px;
    padding: 14px;
    background: rgba(0, 150, 255, 0.12);
    border: 1px solid rgba(0, 200, 255, 0.35);
    border-radius: 12px;
    position: relative;
    color: #d7f8ff;
    font-family: 'Segoe UI', sans-serif;
    text-align: left;
    width: calc(100% - 22px);
}

.simple .npc-panel::after {
    content: '';
    position: absolute;
    left: 20px;
    top: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(0, 150, 255, 0.35);
}

.simple .npc-panel .npc-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.simple .npc-panel .npc-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #bdefff;
}

/* 复杂数据流效果 */
.data-flow {
    height: 300px;
    background: linear-gradient(180deg, rgba(255, 100, 100, 0.15), rgba(10, 10, 20, 0.75));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.typewriter {
    width: 100%;
    max-width: 100%;
    color: #9bf4ff;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    text-align: left;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    padding: 14px;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0, 160, 255, 0.3), 0 0 14px rgba(255, 100, 100, 0.25);
    backdrop-filter: blur(2px);
}

.debug-code {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    color: #9bf4ff;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.debug-code code {
    display: block;
}

.data-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6464, transparent);
    animation: flow-animation 3s linear infinite;
}

@keyframes flow-animation {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* 游戏场景模拟 */
.game-scene {
    height: 300px;
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.15), rgba(124, 58, 237, 0.15));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-object {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border-radius: 10px;
    animation: float-animation 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.game-object-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    border-radius: 50%;
    position: absolute;
    left: 20%;
    animation: float-animation 4s ease-in-out infinite reverse;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
}

/* ===== 科技官网首页覆盖层 ===== */
.ui-container {
    min-height: 100vh;
    height: auto;
    padding: 120px 20px 60px;
    align-items: center;
}

.home-page .hud-panel {
    max-width: 980px;
    text-align: left;
    padding: 54px 48px !important;
    border-radius: 22px;
    background:
        linear-gradient(110deg, rgba(53, 181, 255, 0.15), rgba(50, 210, 179, 0.08) 45%, rgba(7, 17, 34, 0.22) 100%) !important;
    border: 1px solid rgba(122, 188, 255, 0.36) !important;
    box-shadow: 0 26px 44px rgba(2, 9, 20, 0.42) !important;
}

.hud-panel h1 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    letter-spacing: 0.6px;
}

.hud-panel .trilingual-slogan {
    margin: 0;
    color: #d4e8ff;
    max-width: 720px;
    font-size: clamp(1.02rem, 2.3vw, 1.32rem);
    line-height: 1.8;
}

.hud-panel .btn-warp {
    margin-top: 30px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
}

.contrast-container {
    padding: 104px 20px 36px;
    background: rgba(4, 11, 23, 0.95);
}

.contrast-content {
    gap: 24px;
    width: min(1120px, 100%);
}

.contrast-item {
    min-height: 460px;
    max-height: none;
    border-radius: 16px;
    padding: 28px;
    background: rgba(8, 20, 40, 0.78);
    border: 1px solid rgba(120, 190, 255, 0.3);
    box-shadow: 0 14px 28px rgba(2, 10, 23, 0.36);
}

.contrast-item h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.contrast-item p {
    color: #bed7f8;
}

.contrast-item.complex {
    border-color: rgba(79, 149, 224, 0.48);
}

.contrast-item.simple {
    border-color: rgba(77, 196, 174, 0.5);
}

.data-flow,
.game-scene {
    border-radius: 12px;
}

.data-flow {
    background: linear-gradient(180deg, rgba(32, 86, 147, 0.36), rgba(8, 20, 40, 0.9));
}

.game-scene {
    background: linear-gradient(135deg, rgba(49, 118, 189, 0.2), rgba(50, 210, 179, 0.15));
}

@media (max-width: 900px) {
    .contrast-content {
        flex-direction: column;
    }

    .contrast-item {
        min-height: auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .home-page .hud-panel {
        padding: 34px 24px !important;
    }

    .hud-panel h1 {
        font-size: 1.8rem;
    }

    .hud-panel .btn-warp {
        width: 100%;
    }
}

.game-object-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #00d4ff;
    position: absolute;
    right: 12%;
    top: 30%;
    filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.7));
    animation: float-animation 3.8s ease-in-out infinite;
}

@keyframes float-animation {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}
