/* ========================================
   公共样式文件 - 提取重复代码
   Common Styles - Extracted Duplicate Code
   ======================================== */

/* 动态背景样式 - 所有页面通用 */
.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.2) 0%, rgba(0, 245, 255, 0.1) 50%, transparent 70%);
    animation: float 20s infinite linear;
    opacity: 0.6;
}

.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(-40px) translateX(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) translateX(5px) rotate(270deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
        opacity: 0.3;
    }
}

/* 底部导航栏样式 - 所有页面通用 */
.footer-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95) 0%, rgba(45, 55, 72, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 245, 255, 0.3);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 245, 255, 0.1);
}

.footer-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-nav-links a {
    color: rgba(176, 176, 176, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-nav-links a:hover {
    color: #00f5ff;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.footer-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f5ff, transparent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.footer-nav-links a:hover::after {
    width: 100%;
}

.footer-nav-links a.active {
    color: #00f5ff;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.3);
}

/* 导航下拉菜单样式 - 所有页面通用 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(176, 176, 176, 0.9);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 0.3rem;
}

.nav-dropdown-menu a:hover {
    color: #00f5ff;
    background: rgba(0, 245, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.3);
}

.nav-dropdown-menu a:last-child {
    margin-bottom: 0;
}

/* WhatsApp浮动按钮样式 - 所有页面通用 */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #2ee66d 0%, #1a9b8a 100%);
}

.whatsapp-icon {
    font-size: 1.2rem;
}

.whatsapp-text {
    white-space: nowrap;
}

/* 主体容器样式 - 所有页面通用 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* 页面标题样式 - 所有页面通用 */
.main-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00f5ff 0%, #ffffff 50%, #00f5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    line-height: 1.2;
}

.title-line-1 {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.title-line-2 {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    opacity: 0.9;
}

/* 副标题样式 - 所有页面通用 */
.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 描述文本样式 - 所有页面通用 */
.description {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 高亮文本样式 - 所有页面通用 */
.highlight {
    color: #00f5ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.highlight.updating {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 响应式设计 - 所有页面通用 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .title-line-1 {
        font-size: 2.5rem;
    }
    
    .title-line-2 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .footer-nav-links {
        gap: 1rem;
    }
    
    .footer-nav-links a {
        font-size: 0.8rem;
    }
    
    .whatsapp-float {
        bottom: 90px;
        right: 15px;
    }
    
    .whatsapp-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .title-line-1 {
        font-size: 2rem;
    }
    
    .title-line-2 {
        font-size: 1.5rem;
    }
    
    .footer-nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-dropdown-menu {
        min-width: 150px;
    }
}

/* 页面底部间距 - 所有页面通用 */
body {
    padding-bottom: 80px;
}
