/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cambria', 'Georgia', serif;
}

/* UO经典羊皮纸和中世纪风格背景 */
body {
    background: #0a1a2a url('https://via.placeholder.com/1920x1080/0a1a2a/1a3a5a?text=UO+Classic+Background');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #e0d0b0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://via.placeholder.com/100x100/000000/1a1a1a?text=UO');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: -1;
}

/* 导航栏样式 - UO经典风格 */
.uo-header {
    background: linear-gradient(to bottom, #2a1a0a 0%, #1a0a05 100%);
    border-bottom: 4px double #d4af37;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8), inset 0 -1px 10px rgba(212,175,55,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 60px;
    height: 60px;
    border: 2px solid #d4af37;
    border-radius: 50%;
    background: #1a0a05;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.logo h1 {
    color: #d4af37;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000, 0 0 10px rgba(212,175,55,0.3);
    letter-spacing: 1px;
    font-family: 'Palatino', 'Cambria', serif;
}

.uo-nav {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.uo-nav li {
    margin: 0;
}

.uo-nav a {
    display: block;
    padding: 10px 15px;
    background: linear-gradient(to bottom, #5a3921 0%, #3a2108 100%);
    color: #f0e0b0;
    text-decoration: none;
    border: 2px outset #8b4513;
    border-radius: 0;
    font-weight: bold;
    text-align: center;
    min-width: 90px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px #000;
    font-family: 'Palatino', serif;
    position: relative;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .uo-nav {
        flex-wrap: wrap;
        white-space: normal;
    }
    
    .uo-nav a {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

.uo-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(212,175,55,0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.uo-nav a:hover {
    background: linear-gradient(to bottom, #7a5931 0%, #5a3921 100%);
    border: 2px outset #b5651d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.uo-nav a:hover::before {
    transform: translateX(100%);
}

.uo-nav a.active {
    background: linear-gradient(to bottom, #8b5a31 0%, #6b3a18 100%);
    border: 2px solid #b5651d;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    transform: translateY(0);
    padding: 10px 15px; /* 确保与普通链接有相同的内边距 */
}

/* 主内容区 */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    flex: 1;
}

/* 英雄区域 - UO经典风格 */
.hero-section {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(26, 10, 5, 0.9) 0%, rgba(42, 26, 10, 0.9) 100%);
    border: 3px double #d4af37;
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), inset 0 0 50px rgba(212,175,55,0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212,175,55,0.3);
    pointer-events: none;
}

.hero-section h2 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px #000, 0 0 20px rgba(212,175,55,0.5);
    font-family: 'Palatino', serif;
    letter-spacing: 2px;
}

.uo-gif-container {
    max-width: 800px;
    margin: 0 auto 25px;
    border: 4px inset #8b4513;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

.uo-gif-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(212,175,55,0.1) 50%, transparent 100%);
    pointer-events: none;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.uo-gif-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.uo-gif-container:hover img {
    transform: scale(1.02);
}

/* 内容区域 - 羊皮纸和中世纪风格 */
.content-section {
    background: linear-gradient(135deg, rgba(30, 40, 50, 0.95) 0%, rgba(20, 30, 40, 0.95) 100%);
    border: 3px outset #8b4513;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.content-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.content-section h3 {
    color: #d4af37;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px #000;
    font-family: 'Palatino', serif;
    position: relative;
}

.content-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: #d4af37;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.content-section ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.content-section li::before {
    content: '◆';
    color: #d4af37;
    position: absolute;
    left: -15px;
    font-size: 0.7rem;
}

/* 视频容器 - UO风格 */
.video-container {
    position: relative;
    width: 100%;
    height: 240px;
    border: 3px inset #8b4513;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background: #1a0a05;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://via.placeholder.com/100x100/000000/2a1a0a?text=UO');
    background-repeat: repeat;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/* 快速链接 - UO羊皮纸风格 */
.quick-links {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.quick-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.quick-links li::before {
    content: '❖';
    color: #d4af37;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
    text-shadow: 0 0 5px rgba(212,175,55,0.5);
}

.quick-links a {
    color: #d4af37;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: all 0.3s ease;
    background: rgba(42, 26, 10, 0.3);
    border-left: 2px solid transparent;
    text-shadow: 1px 1px 2px #000;
}

.quick-links a:hover {
    color: #f0e0b0;
    background: rgba(42, 26, 10, 0.6);
    border-left: 2px solid #d4af37;
    transform: translateX(5px);
}

/* 统计信息 - UO游戏风格 */
.stats {
    background: rgba(10, 20, 30, 0.7);
    border: 2px inset #8b4513;
    padding: 15px;
    margin-bottom: 15px;
}

.stats p {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #8b4513;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.stats strong {
    color: #d4af37;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(212,175,55,0.3);
}

/* 页脚 - UO经典风格 */
.uo-footer {
    background: linear-gradient(to bottom, #1a0a05 0%, #2a1a0a 100%);
    border-top: 4px double #d4af37;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.7), inset 0 1px 10px rgba(212,175,55,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: #d4af37;
    opacity: 0.5;
}

.footer-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #c0b090;
}

/* 服务器信息 - UO游戏风格 */
.server-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
    padding: 15px;
    background: rgba(10, 20, 30, 0.5);
    border: 2px outset #8b4513;
}

.server-info div {
    background: rgba(40, 30, 20, 0.8);
    padding: 12px 20px;
    border: 2px inset #8b4513;
    min-width: 180px;
    font-family: 'Courier New', monospace;
    position: relative;
    transition: all 0.3s ease;
}

.server-info div:hover {
    background: rgba(40, 30, 20, 1);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* 响应式设计 - 适应各种设备的UO风格 */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .uo-gif-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-bottom: 15px;
        flex-direction: column;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .uo-nav {
        width: 100%;
        justify-content: space-around;
    }
    
    .uo-nav a {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-width: 75px;
    }
    
    .hero-section {
        padding: 20px;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .server-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .server-info div {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .uo-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .uo-nav li {
        width: 100%;
        max-width: 200px;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .video-container {
        height: 180px;
    }
}

/* 职业页面样式 - UO经典职业展示 */
.profession-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.profession-item {
    background: linear-gradient(135deg, rgba(30, 40, 50, 0.95) 0%, rgba(20, 30, 40, 0.95) 100%);
    border: 3px outset #8b4513;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    overflow: hidden;
}

.profession-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.profession-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    border-color: #d4af37;
}

.profession-item h4 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Palatino', serif;
    text-shadow: 1px 1px 2px #000;
}

.profession-item p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.profession-item ul {
    padding-left: 20px;
}