:root {
    --tri-L: 600px;
    --tri-H: calc(var(--tri-L) * 0.8660254);
    --tri-l: calc(var(--tri-L) / 2);
    --tri-h: calc(var(--tri-l) * 0.8660254);
    --tri-active-opacity: 0.33;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

input, textarea, [contenteditable] {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.triangle-container {
    position: relative;
    width: var(--tri-L);
    height: var(--tri-H);
    z-index: 10;
}

.tri {
    position: absolute;
    width: var(--tri-l);
    height: var(--tri-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    box-sizing: border-box;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(135, 206, 235, 0.02);
    backdrop-filter: blur(0.1px);
    -webkit-backdrop-filter: blur(0.1px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.tri-1 {
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.tri-2 {
    top: 0;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.tri-3 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    z-index: 5;
}

.tri-3 .tri-center-content {
    transform: translateY(50%);
}

.tri-4 {
    top: var(--tri-h);
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* 添加柔和边缘效果 */
.tri-1, .tri-2, .tri-4 {
    filter: drop-shadow(0 0 5px rgba(135, 206, 235, 0.6));
}

.tri-3 {
    filter: drop-shadow(0 0 4px rgba(135, 206, 235, 0.6));
}

.tri:hover, .tri.selected {
    z-index: 10;
    background: rgba(255, 255, 255, var(--tri-active-opacity));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tri:hover {
    transform: scale(1.5);
    box-shadow: 0 8px 30px rgba(135, 206, 235, 0.25);
}

.tri.selected {
    transform: scale(3.0);
    z-index: 20;
    box-shadow: 0 12px 40px rgba(135, 206, 235, 0.25);
}

.tri:hover .tri-center-content,
.tri.selected .tri-center-content {
    opacity: 1;
}

.tri-3:hover {
    background: rgba(255, 180, 0, 0.2);
    transform: translateX(-50%) scale(0.5);
}

.tri-4:hover {
    transform: translateX(-50%) scale(1.5);
}

.tri-1:hover .tri-center-content,
.tri-2:hover .tri-center-content,
.tri-4:hover .tri-center-content {
    transform: translateY(-20%) scale(calc(1 / 1.5));
}

.tri-3:hover .tri-center-content {
    transform: translateY(35%) scale(calc(1 / 1.5));
}

.tri.selected {
    transform: scale(3.0);
    z-index: 20;
    box-shadow: 0 12px 40px rgba(135, 206, 235, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.tri-3.selected, .tri-4.selected {
    transform: translateX(-50%) scale(3.0);
}

.tri-1.selected .tri-center-content,
.tri-2.selected .tri-center-content,
.tri-4.selected .tri-center-content {
    transform: translateY(-20%) scale(calc(1 / 3.0));
}

.tri-3.selected .tri-center-content {
    transform: translateY(35%) scale(calc(1 / 3.0));
}

.tri-logo-title {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 2.2rem;
    color: var(--mandarin);
    letter-spacing: 0.3em;
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.8), 0 0 40px rgba(255, 165, 0, 0.4);
    margin-bottom: 10px;
}

.tri-logo-subtitle {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 0.5em;
    text-shadow: 0 0 15px rgba(135, 206, 235, 0.7), 0 0 30px rgba(135, 206, 235, 0.3);
}

.tri-title {
    font-family: 'ZCOOL KuaiLe', 'STKaiti', 'KaiTi', cursive, serif;
    font-size: 1.4rem;
    color: #87CEEB;
    margin-bottom: 15px;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px rgba(135, 206, 235, 0.7), 0 0 30px rgba(135, 206, 235, 0.3);
}

.tri-content {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    opacity: 0.95;
}

.tri-1 .tri-content,
.tri-2 .tri-content {
    display: none;
}

.tri-1.selected .tri-content,
.tri-2.selected .tri-content {
    display: block;
}

.tri-1:not(.selected) .tri-center-content,
.tri-2:not(.selected) .tri-center-content,
.tri-4:not(.selected) .tri-center-content {
    transform: translateY(-20%);
}

.tri-4:not(:hover):not(.selected) .footer-content p:last-child {
    display: none;
}

.tri-4:not(:hover):not(.selected) .footer-content {
    transform: translateY(-45%);
}

.tri-4:not(:hover):not(.selected) .footer-line1-hover {
    display: none;
}

.tri-4:hover .footer-line1-nohover,
.tri-4.selected .footer-line1-nohover {
    display: none;
}

.tri:not(:hover):not(.selected) .tri-center-content {
    opacity: 0;
}

.tri-content p {
    margin-bottom: 8px;
}

.tri-content p:last-child {
    margin-bottom: 0;
}

.tri-content ul {
    padding-left: 15px;
    margin: 0;
}

.tri-content li {
    margin-bottom: 6px;
    text-align: left;
    font-size: 0.9rem;
}

.footer-content {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.9;
    text-align: center !important;
    width: 100%;
    transform: translateY(-30%);
}

.footer-content p {
    text-align: center !important;
    margin: 0;
    padding: 0;
}

.footer-content p:first-child,
.footer-line1-nohover,
.footer-line1-hover {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.3rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(135, 206, 235, 0.7), 0 0 30px rgba(135, 206, 235, 0.3);
}

.footer-content p:last-child {
    font-family: 'ZCOOL KuaiLe', cursive;
    line-height: 1.6;
}

.footer-content span {
    color: var(--accent);
}

.chika-dock {
    z-index: 50;
}