/* 全局样式 */
body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    color: #444;
    overflow-x: hidden;
}

/* 导航栏样式 */
#topnav {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    background-color: rgba(47, 47, 47, 0.9);
    backdrop-filter: blur(10px);
}

#topnav.bg-primary-95 {
    background-color: rgba(47, 47, 47, 0.95);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* 桌面导航 */
.md-flex {
    display: flex;
}

.md-hidden {
    display: none;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.text-white {
    color: white;
}

.hover-text-secondary:hover {
    color: #5bc0de;
}

.transition-colors {
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* 产品下拉菜单 */
.relative {
    position: relative;
}

.group {
    position: relative;
}

.group-hover-opacity-100.group:hover .opacity-0 {
    opacity: 1;
}

.group-hover-visible.group:hover .invisible {
    visibility: visible;
}

.group-hover-scale-100.group:hover .scale-95 {
    transform: scale(1);
}

.absolute {
    position: absolute;
}

.left-0 {
    left: 0;
}

.mt-2 {
    margin-top: 0.5rem;
}

.w-48 {
    width: 12rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.bg-primary-95 {
    background-color: rgba(47, 47, 47, 0.95);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.opacity-0 {
    opacity: 0;
}

.invisible {
    visibility: hidden;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.hover-bg-secondary-20:hover {
    background-color: rgba(91, 192, 222, 0.2);
}

/* 移动菜单按钮 */
.md-hidden {
    display: none;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

/* 移动导航 */
.hidden {
    display: none;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.sm:px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.font-medium {
    font-weight: 500;
}

/* 全屏英雄区域 */
.hero-section {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* 自定义工具类 */
.content-auto {
    content-visibility: auto;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

.slide-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-fullscreen.active {
    opacity: 1;
    pointer-events: auto;
}

.feature-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 0;
}

.feature-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    color: white;
    text-align: center;
}

.close-feature {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
}

.close-feature:hover {
    transform: scale(1.1);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-in-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pulse-slow {
    animation: pulseSlow 3s ease-in-out infinite;
}

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

.feature-text-container {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.feature-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* 图片加载失败样式 */
.opacity-70 {
    opacity: 0.7;
}

.animate-slide-in {
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}