* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #fafafa;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.social-icons {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.social-icons.left {
    left: 30px;
}

.social-icons.right {
    right: 30px;
}

.icon-btn {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #222;
    box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1.6px solid #333;
}

.icon-btn:hover {
    transform: scale(1.08);
    background: #f7f7f7;
}

.icon {
    width: 21px;
    height: 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon text {
    fill: currentColor;
    stroke: none;
}

.taiji-container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#taiji-svg {
    width: 700px;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

#taiji-main {
    animation: rotate 20s linear infinite;
    transform-origin: 400px 400px;
    will-change: transform;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#circle-text {
    animation: rotate-reverse 30s linear infinite;
    transform-origin: 400px 400px;
    will-change: transform;
}

@keyframes rotate-reverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.copyright {
    margin-top: 20px;
    color: #666;
    font-size: 12px;
    text-align: center;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    #taiji-svg {
        width: 410px;
    }
}

@media (max-width: 380px) {
    #taiji-svg {
        width: 340px;
    }

    .social-icons {
        flex-direction: row;
        top: auto;
        width: 100%;
        justify-content: center;
        gap: clamp(4px, 1.6vw, 8px);
        padding: 0 10px;
        pointer-events: none;
    }
    
    .social-icons.left {
        left: 0;
        bottom: 56px;
        transform: none;
    }
    
    .social-icons.right {
        right: auto;
        left: 0;
        bottom: 12px;
        transform: none;
    }
    
    .icon-btn {
        width: clamp(28px, 8.5vw, 40px);
        height: clamp(28px, 8.5vw, 40px);
        pointer-events: auto;
    }

    .icon {
        width: clamp(17px, 5vw, 21px);
        height: clamp(17px, 5vw, 21px);
    }

    .copyright {
        margin-top: 14px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .taiji-container,
    #taiji-main,
    #circle-text {
        animation: none;
    }

    .icon-btn {
        transition: none;
    }
}
