* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 字体 */
@font-face {
    font-family: 'Bisten';
    src: url('../fonts/Bisten.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Bisten', Arial, 'Microsoft YaHei', sans-serif;
    color: white;
    position: relative;
}

/* 背景 */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top left, #09361A 0%, #2A5B46 37%, #89A56B 76%, #F0E194 100%);
    z-index: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* 主容器 */
.portal-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.logo-container {
    text-align: center;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.logo-container .letter {
    pointer-events: auto;
}

/* ANDOVER 字母 */
.andover-logo {
    font-size: 120px;
    font-weight: 900;
    font-family: 'Bisten', Arial, 'Microsoft YaHei', sans-serif;
    letter-spacing: 30px;
    color: white;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.75),
        0 0 18px rgba(255, 255, 255, 0.7),
        0 0 30px rgba(255, 255, 255, 0.6),
        0 4px 20px rgba(0, 0, 0, 0.55);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.letter {
    display: inline-block !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.75),
        0 0 18px rgba(255, 255, 255, 0.7),
        0 0 30px rgba(255, 255, 255, 0.6),
        0 14px 30px rgba(0, 0, 0, 0.55) !important;
    padding: 10px !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    will-change: transform !important;
}

.andover-logo .letter:hover,
.letter:hover {
    transform: scale(1.5) translateY(-20px) !important;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.35),
        0 0 30px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.5),
        0 8px 30px rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    filter: brightness(1.3) !important;
}

.letter:active {
    transform: scale(1.4) translateY(-15px) !important;
}

/* 提示框 */
.tooltip {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 250px;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.tooltip.show {
    opacity: 0.9;
    transform: translateY(0);
}

.tooltip-name {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Bisten', Arial, 'Microsoft YaHei', sans-serif;
    color: #89A56B;
    margin-bottom: 10px;
}

.tooltip-desc {
    font-size: 16px;
    font-family: 'Bisten', Arial, 'Microsoft YaHei', sans-serif;
    color: #89A56B;
    margin-bottom: 10px;
}

.tooltip-url {
    display: none !important;
}

/* 响应式 */
@media (max-width: 1200px) {
    .andover-logo {
        font-size: 80px;
        letter-spacing: 20px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .andover-logo {
        font-size: 60px;
        letter-spacing: 15px;
        gap: 10px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .andover-logo {
        font-size: 40px;
        letter-spacing: 10px;
        gap: 8px;
    }
}
