/* css/portal.css */
/* 传奇2官网 - 门户外网专用高端美化样式 */

@import url('https://fonts.geekzu.org/css2?family=Cinzel:wght@600;800&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --color-bg: #070504;
    --color-surface: #120e0c;
    --color-surface-light: #1c1714;
    --color-border: #4d260c;
    --color-border-glow: #a85114;
    --color-gold-light: #fef08a;
    --color-gold: #eab308;
    --color-gold-dark: #ca8a04;
    --color-text-muted: #a1a1aa;
    --color-text-light: #f4f4f5;
    --font-heading: 'Cinzel', 'Outfit', "Microsoft YaHei", serif;
    --font-body: 'Outfit', "Microsoft YaHei", sans-serif;
}

/* 高端自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #070504;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ca8a04, #4d260c);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #eab308;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-light);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
a:hover {
    color: var(--color-gold-light);
    text-shadow: 0 0 10px rgba(254, 224, 71, 0.4);
}

/* 高端头部导航栏 */
.header-nav {
    background: linear-gradient(180deg, rgba(7, 5, 4, 0.98) 0%, rgba(18, 14, 12, 0.96) 100%);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffe066 0%, #ca8a04 50%, #4d260c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    cursor: pointer;
}
.logo-subtitle {
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 400;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.nav-menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}
.nav-menu li a:hover::after, .nav-menu li.active a::after {
    transform: scaleX(1);
}
.nav-menu li.active a {
    color: var(--color-gold-light);
    background: rgba(234, 179, 8, 0.08);
}

/* 巨幕 Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    background: radial-gradient(circle at 50% 50%, rgba(133, 77, 14, 0.25) 0%, rgba(10, 8, 7, 1) 85%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding-top: 80px;
    overflow: hidden;
    box-shadow: inset 0 -30px 100px rgba(0, 0, 0, 0.8);
}
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 高端玻璃板块文字外层包装 */
.hero-title-box {
    z-index: 2;
    margin-bottom: 20px;
    background: rgba(7, 5, 4, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(77, 38, 12, 0.4);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8), inset 0 0 15px rgba(234, 179, 8, 0.03);
    max-width: 85%;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 6px;
    margin: 0;
    background: linear-gradient(180deg, #fff 0%, #fef08a 30%, #eab308 70%, #ca8a04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(234, 179, 8, 0.4));
    animation: gold-shine 4s ease-in-out infinite alternate;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    letter-spacing: 3px;
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* 网站通用巨幕背景粒子效果 */
.particle {
    position: absolute;
    background: rgba(234, 179, 8, 0.35);
    border-radius: 50%;
    pointer-events: none;
    bottom: -20px;
    animation: float-up 6s infinite ease-in-out;
    z-index: 1;
}
@keyframes float-up {
    0% { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-420px) translateX(var(--x-shift)) scale(1.3); opacity: 0; }
}

/* 通用巨幕随后的内容容器紧密排布 */
.hero-section + .main-wrapper,
.hero-section + .wiki-container,
.hero-section + .news-container,
.hero-section + .download-container,
.hero-section + .article-container {
    margin-top: 40px !important;
}

/* 高端扫光效果下载按钮 */
.download-group {
    display: flex;
    gap: 20px;
    z-index: 5;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-dl {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #854d0e 0%, #eab308 50%, #ca8a04 100%);
    border: 1px solid var(--color-gold-light);
    border-radius: 8px;
    padding: 14px 35px;
    color: #000;
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(234, 179, 8, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
}
.btn-dl span.btn-text {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    text-align: left;
}
.btn-dl .sub {
    font-size: 11px;
    color: #fef08a;
    font-weight: 400;
    margin-top: 2px;
}
.btn-dl::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: all 0.5s;
}
.btn-dl:hover::before {
    left: 140%;
    transition: all 0.8s ease-in-out;
}
.btn-dl:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(234, 179, 8, 0.4);
    border-color: #fff;
}

/* 游戏版本亮点看板 */
.server-highlights {
    background: #0d0a09;
    border-bottom: 1px solid var(--color-border);
    padding: 40px 0;
}
.highlight-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 30px;
}
.highlight-card {
    background: linear-gradient(135deg, rgba(24, 19, 16, 0.8) 0%, rgba(15, 12, 10, 0.95) 100%);
    border: 1px solid rgba(77, 38, 12, 0.5);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}
.highlight-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.12);
}
.highlight-icon {
    font-size: 28px;
    color: var(--color-gold);
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
}
.highlight-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-gold-light);
    margin-bottom: 8px;
}
.highlight-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* 主内容布局 */
.main-wrapper {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
}

/* 统一卡片设计 (Glassmorphic dark design) */
.box-panel {
    background: linear-gradient(135deg, rgba(18, 14, 12, 0.95) 0%, rgba(10, 8, 7, 0.98) 100%);
    border: 1px solid rgba(77, 38, 12, 0.6);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.box-panel:hover {
    border-color: rgba(234, 179, 8, 0.7);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(234, 179, 8, 0.08);
    transform: translateY(-2px);
}
.box-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.panel-header {
    border-bottom: 1px solid rgba(77, 38, 12, 0.4);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.panel-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--color-gold-light), var(--color-border));
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.8);
}

/* 新闻与公告 */
.news-list {
    display: flex;
    flex-direction: column;
}
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(77, 38, 12, 0.15);
    transition: all 0.3s;
}
.news-item:hover {
    background: rgba(234, 179, 8, 0.03);
    padding-left: 15px;
}
.news-title-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e4e4e7;
    font-size: 14px;
}
.news-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.tag-公告 { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #fca5a5; }
.tag-活动 { background: rgba(234, 179, 8, 0.2); border: 1px solid #eab308; color: #fef08a; }
.tag-新闻 { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #a7f3d0; }
.tag-攻略 { background: rgba(168, 85, 24, 0.2); border: 1px solid #a85114; color: #fdba74; }
.news-date {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* 职业介绍 Tab 页 */
.job-tabs {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.3);
}
.job-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.3s;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    border-right: 1px solid var(--color-border);
}
.job-tab:last-child {
    border-right: none;
}
.job-tab:hover, .job-tab.active {
    color: var(--color-gold-light);
    background: linear-gradient(180deg, rgba(140, 63, 13, 0.15), rgba(77, 38, 12, 0.3));
    text-shadow: 0 0 10px rgba(254, 224, 71, 0.5);
}
.job-tab.active {
    background: linear-gradient(180deg, rgba(140, 63, 13, 0.3), rgba(77, 38, 12, 0.5));
    box-shadow: inset 0 -5px 15px rgba(234, 179, 8, 0.15);
}

.job-content {
    display: none;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    animation: fade-in 0.5s ease;
    align-items: center;
}
.job-content.active {
    display: grid;
}
.job-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #d4d4d8;
}
.job-image-frame {
    border: 2px solid var(--color-border);
    padding: 6px;
    background: #000;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(77, 38, 12, 0.3);
    transition: all 0.3s;
}
.job-image-frame:hover {
    border-color: var(--color-gold);
    box-shadow: 0 8px 30px rgba(234, 179, 8, 0.3);
}
.job-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.job-attrs {
    margin-top: 20px;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(77,38,12,0.25);
}
.attr-bar-container {
    margin-bottom: 12px;
}
.attr-bar-container:last-child {
    margin-bottom: 0;
}
.attr-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}
.attr-bar {
    height: 10px;
    background: #0d0a08;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(77, 38, 12, 0.6);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}
.attr-fill {
    height: 100%;
    background: linear-gradient(90deg, #854d0e 0%, #ca8a04 50%, #eab308 100%);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--color-gold);
}

/* 开服表卡片 */
.server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(7, 5, 4, 0.7);
    border: 1px solid rgba(77, 38, 12, 0.4);
    border-radius: 6px;
    margin-bottom: 15px;
    transition: all 0.3s;
}
.server-item:hover {
    border-color: var(--color-gold);
    background: rgba(77, 38, 12, 0.15);
    box-shadow: 0 5px 15px rgba(234,179,8,0.1);
}
.server-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.server-time {
    font-size: 11px;
    color: var(--color-text-muted);
}
.server-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}
.status-online { background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #34d399; }
.status-countdown { background: rgba(234, 179, 8, 0.15); border: 1px solid #eab308; color: #fde047; }

/* 快捷版块样式 */
.board-badge-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(77, 38, 12, 0.3);
    border-radius: 4px;
    margin-bottom: 8px;
    color: #d4d4d8;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}
.board-badge-link:hover {
    border-color: var(--color-gold);
    background: rgba(77, 38, 12, 0.2);
    color: var(--color-gold-light);
    transform: translateX(4px);
}

/* 炫酷画廊展示 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}
.gallery-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    aspect-ratio: 16 / 10;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-card:hover img {
    transform: scale(1.15);
}
.gallery-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 8px;
    font-size: 12px;
    color: var(--color-gold-light);
    font-weight: 700;
}

/* 页脚 */
.footer {
    background: #030202;
    border-top: 1px solid var(--color-border);
    padding: 40px 30px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 12px;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-gold);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

@keyframes gold-shine {
    0% { filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.3)); }
    100% { filter: drop-shadow(0 0 25px rgba(234, 179, 8, 0.6)) drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 职业展示板块外层包裹限制宽度以对齐其他版块 */
.class-showcase-section {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* 响应式样式适配 */
@media (max-width: 1200px) {
    .main-wrapper {
        grid-template-columns: 1.8fr 1fr;
        padding: 0 20px;
    }
    .class-showcase-section {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .highlight-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .header-nav {
        position: relative;
    }
    .hero-section {
        height: auto;
        padding: 60px 20px;
    }
    .hero-title-box {
        padding: 20px;
    }
    .hero-title {
        font-size: 36px;
        letter-spacing: 5px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .job-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .job-image-frame {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .highlight-container {
        grid-template-columns: 1fr;
    }
    .download-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-dl {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
