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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: white;
    background-color: #000;
}

/* 导航栏样式 */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* 背景图片样式 */
header img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* 按钮样式 */
button, a[href] {
    cursor: pointer;
}

/* 白色按钮样式（湖绿色字体） */
.white-btn {
    background-color: white;
    color: #2bbd94;
    border: 2px solid white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(43, 189, 148, 0.3);
    text-transform: uppercase;
}

.white-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(43, 189, 148, 0.2), transparent);
    transition: left 0.5s ease;
}

.white-btn:hover {
    background-color: white;
    color: #24a382;
    box-shadow: 0 0 20px rgba(43, 189, 148, 0.5), 0 0 40px rgba(43, 189, 148, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.white-btn:hover::before {
    left: 100%;
}

.white-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 0 10px rgba(43, 189, 148, 0.4);
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    animation: fadeInUp 1s ease-out;
}

p {
    animation: fadeInUp 1s ease-out 0.2s both;
}

div.flex {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem !important;
    }
    
    p {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    nav .text-2xl {
        font-size: 1.5rem;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: fadeIn 0.8s ease-in;
}

/* 图片效果增强 */
img {
    transition: transform 0.5s ease;
}

/* 减少闪烁 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 鼠标悬停效果 */
:hover {
    transition: all 0.3s ease;
}

/* 防止内容溢出 */
.container {
    overflow-x: hidden;
}

/* 文字选择样式 */
::selection {
    background-color: rgba(43, 189, 148, 0.3);
}

/* 移动端菜单样式 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    text-decoration: none;
}

/* 优化触摸体验 */
@media (hover: none) and (pointer: coarse) {
    a, button {
        padding: 10px 15px;
        min-height: 44px;
        min-width: 44px;
    }
}