/* 公共样式文件 - 提取所有页面的重复样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #1a1f2e;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 动态背景效果 - 公共组件 */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 25%, #1a1f2e 50%, #2d3748 75%, #1a1f2e 100%);
    background-size: 400% 400%;
    z-index: -2;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 浮动球体效果 - 公共组件 */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, rgba(0, 245, 255, 0.05) 50%, transparent 100%);
    animation: float 20s infinite linear;
}

.orb:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.orb:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.orb:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 20s;
}

.orb:nth-child(4) {
    width: 180px;
    height: 180px;
    top: 30%;
    left: 70%;
    animation-delay: -15s;
    animation-duration: 35s;
}

.orb:nth-child(5) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 50%;
    animation-delay: -20s;
    animation-duration: 28s;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
        opacity: 0.3;
    }
}

/* 主容器 - Glassmorphism效果 - 公共组件 */
.main-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 245, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    animation: containerGlow 4s ease-in-out infinite alternate;
}

@keyframes containerGlow {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                    0 0 0 1px rgba(0, 245, 255, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                    0 0 0 1px rgba(0, 245, 255, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* 页面标题 - 渐变文字效果 - 公共组件 */
.page-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffe44d, #00f5ff, #ff6b6b, #4ecdc4, #ffe44d);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 3s ease infinite;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 内容区域样式 - 公共组件 */
.content-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(0, 245, 255, 0.1);
}

.content-section h2 {
    color: #00f5ff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-section p {
    line-height: 1.6;
    color: #e0e1dd;
    margin-bottom: 1rem;
}

/* 玻璃按钮样式 - 公共组件 */
.glass-button {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 12px;
    color: #00f5ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.glass-button:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: #00f5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.2);
}

/* 页脚导航 - 公共组件 */
.footer-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(13,27,42,0.98) 60%, rgba(65,90,119,0.92) 100%);
    box-shadow: 0 -4px 32px 0 rgba(0,245,255,0.10), 0 0 0 2px var(--neon-cyan) inset;
    z-index: 1200;
    border-top: 2px solid var(--cosmic-accent);
    border-radius: 28px 28px 0 0;
    backdrop-filter: blur(8px);
    padding-bottom: env(safe-area-inset-bottom, 0);
    animation: navGlow 3s infinite alternate;
}

.footer-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 2rem;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
}

.footer-nav-links a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-nav-links a:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateY(-2px);
}

@keyframes navGlow {
    0% { box-shadow: 0 -4px 32px 0 rgba(0,245,255,0.10), 0 0 0 2px var(--neon-cyan) inset; }
    100% { box-shadow: 0 -8px 48px 0 rgba(0,245,255,0.18), 0 0 0 3px var(--neon-cyan) inset; }
}
