/* ===================================
   防止登录状态闪烁
   =================================== */
#authContainer {
    opacity: 0;
}

#authContainer.loaded {
    opacity: 1;
}

/* 强制隐藏规则 - 确保优先级高于其他样式 */
#authContainer .hidden,
#authContainer #loginBtn.hidden,
#authContainer #userInfo.hidden {
    display: none !important;
}

/* ===================================
   Neon按钮样式 (无动画版本)
   =================================== */
.neon-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8rem;
    height: 2.5rem;
    padding: 0;
    color: #23f5eb;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid #23f5eb;
    border-radius: 40px;
    background: transparent;
    box-shadow: 0 0 10px rgba(35, 245, 235, 0.3);
    overflow: hidden;
}

.neon-button:hover {
    background: #23f5eb;
    color: #000;
    box-shadow: 0 0 20px rgba(35, 245, 235, 0.8),
        0 0 40px rgba(35, 245, 235, 0.6),
        0 0 60px rgba(35, 245, 235, 0.4);
}

.neon-button-text {
    position: relative;
    z-index: 1;
}

/* ===================================
   导航栏链接样式 (无动画版本)
   =================================== */
.nav-link {
    position: relative;
}

.nav-link:hover {
    color: #23f5eb;
}

/* 激活状态下划线 - 无动画 */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #23f5eb;
    box-shadow: 0 0 10px rgba(35, 245, 235, 0.8);
}

.nav-link.active {
    color: #23f5eb;
}

/* ===================================
   导航栏背景样式 (毛玻璃)
   =================================== */
.nav-glass {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================================
   Tailwind Overrides
   =================================== */
.max-w-lg {
    max-width: 45rem !important;
}

/* ===================================
   Liquid Button Style
   =================================== */
.liquid-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #23f5eb;
    background: transparent;
    border: 1px solid rgba(35, 245, 235, 0.3);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.liquid-btn span,
.liquid-btn svg {
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}

.liquid-btn:hover span,
.liquid-btn:hover svg {
    color: #000;
}

.liquid-btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #23f5eb;
    transition: top 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.liquid-btn:hover::before {
    top: 0;
}

.liquid-btn::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(35, 245, 235, 0.5);
    border-radius: 40%;
    transform: translate(-50%, 0) rotate(0deg);
    transition: top 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s linear;
    z-index: 0;
}

.liquid-btn:hover::after {
    top: -50%;
    transform: translate(-50%, 0) rotate(180deg);
}

/* ===================================
   Tech Card Glass Effect
   =================================== */
.tech-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(5, 50, 67, 0.1);
    transition: all 0.5s ease;
}

.tech-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(0px);
    box-shadow:
        0 0 20px rgba(12, 103, 101, 0.4),
        0 0 40px rgba(12, 103, 101, 0.2),
        0 0 60px rgba(12, 103, 101, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Card Spotlight Effect */
.card-spotlight {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 194, 150, 0.4) 0%, rgba(16, 194, 150, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(40px);
    z-index: 1;
}

/* ===================================
   Carousel Styles
   =================================== */
.carousel-main {
    position: relative;
    width: 100%;
}

.carousel-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

.carousel-thumb {
    position: relative;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(5, 50, 67, 0.1);
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.carousel-thumb:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(0px);
    box-shadow:
        0 0 20px rgba(12, 103, 101, 0.4),
        0 0 40px rgba(12, 103, 101, 0.2),
        0 0 60px rgba(12, 103, 101, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.2);
}

.carousel-thumb.active {
    background: rgba(16, 194, 150, 0.15);
    border-color: rgba(16, 194, 150, 0.5);
    color: #10c296;
    box-shadow:
        0 0 20px rgba(16, 194, 150, 0.5),
        0 0 40px rgba(16, 194, 150, 0.3),
        0 0 60px rgba(16, 194, 150, 0.1);
}

/* ===================================
   Glow Button (简单发光按钮)
   =================================== */
.glow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    background: #23f5eb;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.glow-btn:hover {
    box-shadow:
        0 0 20px rgba(35, 245, 235, 0.6),
        0 0 40px rgba(35, 245, 235, 0.4),
        0 0 60px rgba(35, 245, 235, 0.2);
    transform: translateY(-2px);
}

.glow-btn:active {
    transform: translateY(0);
}