/* 千年MMORPG官网样式 - 武侠风格 */

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

:root {
    --primary-color: #f39c12;
    --secondary-color: #e74c3c;
    --accent-color: #9b59b6;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-muted: #7f8c8d;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(243, 156, 18, 0.1);
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    padding: 100px 20px 50px;
}

.hero-content h1 {
    font-size: 72px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-content .tagline {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 3px;
}

.hero-content .description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* 按钮 */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #e67e22);
    color: #fff;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.6);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(243, 156, 18, 0.1);
    transform: translateY(-3px);
    color: var(--primary-color);
}

.btn-large {
    padding: 20px 50px;
    font-size: 20px;
}

/* 轮播图 */
.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 80px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 50px;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.3), rgba(243, 156, 18, 0.3));
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(155, 89, 182, 0.3));
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(241, 196, 15, 0.3));
}

.carousel-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.carousel-content p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--primary-color);
}

/* 内容区块 */
.section {
    padding: 100px 50px;
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark {
    background: rgba(26, 26, 46, 0.5);
}

.section-gradient {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.3), rgba(22, 33, 62, 0.5));
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid var(--card-border);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 门派卡片 */
.faction-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.faction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.faction-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.faction-name {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.faction-type {
    display: inline-block;
    background: rgba(243, 156, 18, 0.2);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.faction-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.faction-skills {
    color: var(--text-secondary);
    font-size: 14px;
}

.faction-skills strong {
    color: #3498db;
}

/* 页脚 */
.footer {
    background: rgba(26, 26, 46, 0.95);
    padding: 50px;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--card-border);
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .navbar {
        padding: 10px 30px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .hero-content .tagline {
        font-size: 24px;
    }

    .section-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content .tagline {
        font-size: 20px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .carousel {
        height: 400px;
    }

    .carousel-content h2 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .btn-large {
        padding: 15px 35px;
        font-size: 18px;
    }

    .card {
        padding: 20px;
    }

    .card-title {
        font-size: 20px;
    }
}

/* 动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}
