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

:root {
    --bg: #0b0a09;
    --bg-2: #141210;
    --bg-3: #1c1917;
    --gold: #e8c46a;
    --gold-2: #b8903a;
    --text: #d9d2c5;
    --text-dim: #8a8175;
    --line: rgba(232, 196, 106, .18);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    font-size: 15px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 10, 9, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.logo { display: flex; align-items: center; gap: 10px; }

/* 新增图片 Logo 的样式 */
.logo-img {
    width: 40px;        /* 控制图标显示宽度 */
    height: 40px;       /* 控制图标显示高度 */
    object-fit: contain; /* 保证图片按比例缩放且不变形 */
    /* 如果你的图片本身没有金色边框，可以保留下面这句给图片加一个框，有框的话就删掉 */
    /* border: 1px solid var(--gold-2); */
}

.logo-text { font-size: 17px; font-weight: 700; color: var(--gold); letter-spacing: 1px; }

.nav { display: flex; gap: 4px; }

.nav a {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-dim);
    border-radius: 2px;
    transition: .2s;
}

.nav a:hover { color: var(--gold); }
.nav a.active { color: var(--gold); background: rgba(232, 196, 106, .08); }

/* ===== 首屏 ===== */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 40%, rgba(181, 52, 44, .35), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(232, 196, 106, .12), transparent 55%),
        linear-gradient(180deg, #100c0a, #0b0a09);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(232,196,106,.03) 39px),
        repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(232,196,106,.03) 39px);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; padding: 70px 20px; }

.hero-tag {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--gold-2);
    margin-bottom: 14px;
}

.hero-title {
    font-size: 46px;
    color: var(--gold);
    letter-spacing: 4px;
    text-shadow: 0 0 24px rgba(232, 196, 106, .35);
    margin-bottom: 14px;
}

.hero-sub { color: var(--text-dim); letter-spacing: 2px; margin-bottom: 34px; }

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 11px 30px;
    font-size: 14px;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: .25s;
    cursor: pointer;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #1a1408;
    font-weight: 700;
}

.btn-gold:hover { filter: brightness(1.12); box-shadow: 0 0 20px rgba(232,196,106,.35); }

.btn-ghost {
    border-color: var(--line);
    color: var(--gold);
}

.btn-ghost:hover { border-color: var(--gold-2); background: rgba(232,196,106,.06); }

/* ===== 公告滚动条 ===== */
.notice-bar { border-bottom: 1px solid var(--line); background: var(--bg-2); }

.notice-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 46px;
    overflow: hidden;
}

.notice-label {
    flex: none;
    font-size: 12px;
    color: #1a1408;
    background: var(--gold);
    padding: 2px 10px;
    font-weight: 700;
}

.notice-track { flex: 1; overflow: hidden; }

.notice-move {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: notice-scroll 30s linear infinite;
}

.notice-item { font-size: 13px; color: var(--text-dim); }

@keyframes notice-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== 区块 ===== */
.section { padding: 64px 0; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
    font-size: 24px;
    color: var(--gold);
    letter-spacing: 2px;
    position: relative;
    padding-left: 16px;
    margin-bottom: 28px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 22px;
    background: linear-gradient(var(--gold), var(--gold-2));
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.more { font-size: 13px; color: var(--text-dim); }
.more:hover { color: var(--gold); }

/* ===== 特色卡 ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 32px 24px;
    text-align: center;
    transition: .25s;
}

.feature-card:hover {
    border-color: var(--gold-2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.feature-icon {
    width: 54px; height: 54px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-2);
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(145deg, #241d14, #100d09);
}

.feature-card h3 { color: var(--text); font-size: 17px; margin-bottom: 10px; }
.feature-card p  { color: var(--text-dim); font-size: 13px; }

/* ===== 新闻列表 ===== */
.news-list li { border-bottom: 1px dashed rgba(232,196,106,.12); }

.news-list li:last-child { border-bottom: 0; }

.news-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 6px;
    transition: .2s;
}

.news-list a:hover { background: rgba(232, 196, 106, .05); }
.news-list a:hover .news-title { color: var(--gold); }

.news-cat {
    flex: none;
    font-size: 12px;
    color: var(--gold);
    border: 1px solid var(--line);
    padding: 1px 9px;
}

.news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: .2s;
}

.news-date { flex: none; font-size: 13px; color: var(--text-dim); }

.news-list-full li { padding: 6px 0; }

.news-summary {
    font-size: 13px;
    color: var(--text-dim);
    padding: 0 6px 16px;
    margin-top: -6px;
}

/* ===== 职业卡 ===== */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.class-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 18px;
    transition: .25s;
}

.class-card:hover {
    border-color: var(--gold-2);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}

.class-avatar {
    flex: none;
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    background: radial-gradient(circle at 30% 25%, var(--c), #0b0a09 85%);
    border: 1px solid var(--line);
}

.class-avatar-lg { width: 130px; height: 130px; font-size: 54px; }

.class-info h3 {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.class-info small {
    font-size: 11px;
    font-weight: 400;
    color: var(--gold-2);
    border: 1px solid var(--line);
    padding: 0 6px;
}

.class-info p { font-size: 13px; color: var(--text-dim); }

/* ===== 内页头部 ===== */
.page-head {
    padding: 46px 0 30px;
    background:
        radial-gradient(circle at 15% 0%, rgba(232,196,106,.10), transparent 55%),
        var(--bg-2);
    border-bottom: 1px solid var(--line);
}

.page-head h1 { font-size: 26px; color: var(--gold); letter-spacing: 2px; }

.crumb { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.crumb a:hover { color: var(--gold); }

/* ===== 文章 ===== */
.article { max-width: 820px; }

.article-title { font-size: 24px; color: var(--gold); margin-bottom: 14px; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-dim);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.article-content {
    color: var(--text);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 34px;
    word-break: break-word;
}

/* ===== 职业详情 ===== */
.class-detail {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

.class-detail-left { text-align: center; }

.class-detail-left h2 {
    color: var(--gold);
    font-size: 22px;
    margin: 18px 0 6px;
    letter-spacing: 2px;
}

.class-tag { font-size: 13px; color: var(--text-dim); }

.class-detail-right h3 {
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 3px solid var(--gold-2);
}

.class-detail-right p { color: var(--text); margin-bottom: 26px; }

.skill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

.skill-list li {
    font-size: 13px;
    color: var(--gold);
    border: 1px solid var(--line);
    background: var(--bg-2);
    padding: 5px 14px;
}

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 80px 0; color: var(--text-dim); }
.empty p { margin-bottom: 20px; }

/* ===== 页脚 ===== */
.site-footer {
    margin-top: 20px;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    padding: 46px 20px 30px;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 15px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.footer-col p { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.footer-col a { color: var(--gold); }
.footer-col a:hover { text-decoration: underline; }

.copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding: 16px 20px;
    font-size: 12px;
    color: var(--text-dim);
    border-top: 1px solid var(--line);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 30px; letter-spacing: 2px; }
    .hero { min-height: 380px; }
    .nav a { padding: 8px 10px; font-size: 13px; }
    .logo-text { display: none; }
    .section { padding: 44px 0; }
    .class-detail { grid-template-columns: 1fr; gap: 26px; }
    .news-list a { flex-wrap: wrap; gap: 8px; }
    .news-date { width: 100%; text-align: right; }
}
/* ===== 下载按钮及区域 ===== */
.hero-download {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1408;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #f3da86 0%, #e8c46a 50%, #c49a42 100%);
    border: 2px solid #ffeba1;
    box-shadow: 0 0 15px rgba(232, 196, 106, 0.4), inset 0 2px 0 rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
    transition: .3s;
    cursor: pointer;
    animation: pulse-glow 2s infinite;
}

.btn-download:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(232, 196, 106, 0.7), inset 0 2px 0 rgba(255,255,255,0.6);
    background: linear-gradient(180deg, #ffeaa5 0%, #f3da86 50%, #d9b355 100%);
}

.btn-download::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

.download-icon {
    font-size: 22px;
    font-weight: 900;
    animation: bounce 1.5s infinite;
}

.download-tips {
    margin-top: 12px;
    font-size: 12px;
    color: #8a8175;
    letter-spacing: 1px;
}

/* ===== 动画效果 ===== */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(232, 196, 106, 0.4), inset 0 2px 0 rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 25px rgba(232, 196, 106, 0.8), inset 0 2px 0 rgba(255,255,255,0.4); }
    100% { box-shadow: 0 0 15px rgba(232, 196, 106, 0.4), inset 0 2px 0 rgba(255,255,255,0.4); }
}

@keyframes shine {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
/* ===== 游戏攻略页样式 ===== */
.guide-wrap {
    max-width: 900px; /* 限制阅读宽度，提升阅读体验 */
}

.guide-block {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.guide-title {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(232, 196, 106, 0.2);
}

.guide-text {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.guide-text strong {
    color: var(--gold-2);
}

.guide-list {
    padding-left: 20px;
    list-style-type: disc;
}

.guide-list li {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.guide-list code {
    background: rgba(232, 196, 106, 0.1);
    color: var(--gold);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

/* 道具获取网格卡片 */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.guide-card {
    background: var(--bg-3);
    border: 1px solid rgba(232, 196, 106, 0.1);
    padding: 16px;
    transition: .2s;
}

.guide-card:hover {
    border-color: var(--gold-2);
    background: var(--bg-2);
}

.guide-card h3 {
    color: var(--gold);
    font-size: 15px;
    margin-bottom: 8px;
}

.guide-card p {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
}

.guide-footer-action {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .guide-block { padding: 20px; }
    .guide-title { font-size: 18px; }
    .guide-footer-action { flex-direction: column; }
}
.tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.tool-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(232, 196, 106, 0.1); /* 淡淡的金色背景 */
    color: var(--gold);
    border: 1px solid var(--gold-2);
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}
.tool-btn::after {
    content: "↓";
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.7;
}
.tool-btn:hover {
    background: var(--gold);
    color: #1a1408;
    box-shadow: 0 0 15px rgba(232, 196, 106, 0.4);
    transform: translateY(-2px);
}
.tool-btn:hover::after {
    opacity: 1;
}
/* ===== 轮播图样式 ===== */
.slider-container {
    position: relative;
    width: 100%;
    /* 设定轮播图的固定高度，你可以根据你的图片比例调整，比如 400px 或 500px */
    height: 400px; 
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out; /* 淡入淡出效果 */
    z-index: 1;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片填满容器且不变形 */
    object-position: center;
}

/* 左右按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(11, 10, 9, 0.6);
    color: var(--gold);
    border: 1px solid var(--line);
    width: 44px;
    height: 60px;
    font-size: 20px;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(232, 196, 106, 0.9);
    color: #1a1408;
    border-color: var(--gold);
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* 底部小圆点 */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

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

.dot.active, .dot:hover {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(232, 196, 106, 0.8);
}

/* 响应式：手机端调低高度 */
@media (max-width: 768px) {
    .slider-container { height: 200px; }
    .slider-btn { width: 30px; height: 40px; font-size: 14px; }
}