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

body {
    font-family: 'Arial', sans-serif;
    scroll-behavior: smooth;
    background-color: #f7fafc;
    color: #1a202c;
}

/* 导航栏样式 - 增强交互体验 */
nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

nav.scrolled {
    background-color: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e6c200;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    transform: translateY(-2px);
    color: #e6c200 !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* 英雄区域样式 - 优化高度和视觉效果 */
.wow-bg {
    background-image: url('https://images.unsplash.com/photo-1579138233294-3d686605902a?q=80&w=1000&auto=format&fit=crop&blur=20');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 80vh; /* 减小开屏页面高度 */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.wow-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    animation: bgPulse 5s infinite alternate;
}

.wow-bg > div {
    position: relative;
    z-index: 1;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
}

@keyframes bgPulse {
    0% { background-color: rgba(0, 0, 0, 0.4); }
    100% { background-color: rgba(0, 0, 0, 0.6); }
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 卡片样式 - 增强悬浮效果 */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

/* 按钮样式 - 丰富交互效果 */
.btn-primary {
    background-color: #0071bc;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover {
    background-color: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -8px rgba(0, 113, 188, 0.4);
}

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

.btn-primary:active {
    transform: translateY(0);
}

/* 表格样式 - 增强交互 */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 1rem;
    transition: all 0.2s ease;
}

th {
    background-color: #0071bc;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

th::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% { left: 200%; }
}

tr:nth-child(even) {
    background-color: #f9fafb;
}

tr:hover {
    background-color: #f3f4f6;
    transform: scale(1.01);
}

/* 表单样式 - 增强交互反馈 */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0071bc;
    box-shadow: 0 0 0 4px rgba(0, 113, 188, 0.15);
    transform: translateY(-1px);
}

/* 核心文本样式 */
.text-primary {
    color: #0071bc;
}

.text-secondary {
    color: #e6c200;
}

.text-accent {
    color: #c8102e;
}

.text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 核心工具类 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 3rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0071bc, transparent);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 113, 188, 0.3);
    border-radius: 50%;
    border-top-color: #0071bc;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 图片悬停效果 */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* 区域标题动画 */
section h2 {
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #0071bc;
    transition: width 0.3s ease;
}

section:hover h2::after {
    width: 60%;
}

/* 阵营列表交互效果 */
.camp-item {
    transition: all 0.3s ease;
    border-left: 4px solid #0071bc;
}

.camp-item:hover {
    transform: translateX(10px);
    border-left-color: #e6c200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 响应式断点优化 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .wow-bg {
        min-height: 70vh;
    }
}