@charset "UTF-8";
/* =====================================================
   ROM：龙之觉醒 官网仿站样式（自研 CSS）
   风格：暗黑奇幻 · 金棕色系 · PC优先（min-width 1440px）
   ===================================================== */

:root {
    --gold: #92856c;        /* 主金棕色（导航文字） */
    --gold-light: #e3dcd0;  /* 亮金（hover 文字） */
    --gold-bright: #c3a66a; /* 高亮金（描边/焦点） */
    --parchment: #dbc6a5;   /* 羊皮纸色（正文） */
    --red: #8e1111;         /* 品牌红（强调线） */
    --bg-dark: #070707;     /* 头部背景 */
    --panel: #1d1a15;       /* 弹窗面板背景 */
    --line: #575041;        /* 边框线 */
    --font: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Noto Sans KR", Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
html.fix, html.fix body { overflow: hidden; }
body {
    min-width: 100%;
    width: 100%;
    background: #000;
    color: var(--parchment);
    font-family: var(--font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
/* 大屏保持与原站一致的最小宽度 */
@media (min-width: 1441px) {
    body { min-width: 1440px; }
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}
video { display: block; }

/* 屏幕阅读器专用（SEO/无障碍） */
.screen_out {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* =====================================================
   头部导航
   ===================================================== */
#header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    min-height: 70px;
    background: var(--bg-dark);
    z-index: 100;
    transform: translateY(-100%);
    animation: headerIn .6s ease .2s forwards;
}
@keyframes headerIn { to { transform: none; } } /* none 不产生 containing block，避免影响内部 fixed 元素 */

.header_wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 70px;
    transition: height .25s ease-in-out;
    overflow: visible;
}
.header_wrap.open, .header_wrap:focus-within {
    height: 230px;
    background: var(--bg-dark);
    transition: height .25s ease-in-out;
}
.header_wrap.open::after, .header_wrap:focus-within::after {
    content: "";
    position: absolute;
    top: 70px; left: 0;
    width: 100%; height: 1px;
    background: #1f1f1f;
}
.logo { margin: 0 40px 0 45px; }
.logo a {
    display: flex;
    align-items: center;
    height: 70px;
}
.logo img { width: 130px; }

#gnb { flex: 1; }
.gnb_wrap > ul { display: flex; }
.gnb_wrap > ul > li {
    text-align: center;
    padding: 0 34px;
    position: relative;
}
.gnb_wrap > ul > li > a {
    position: relative;
    display: inline-block;
    line-height: 20px;
    padding: 25px 0;
    font-size: 17px;
    color: var(--gold);
    transition: color .2s;
}
.gnb_wrap > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: width .25s ease;
}
.gnb_wrap > ul > li:hover > a,
.gnb_wrap > ul > li.active > a {
    color: var(--gold-light);
    text-shadow: 1px 1px 8px var(--red);
}
.gnb_wrap > ul > li:hover > a::after,
.gnb_wrap > ul > li.active > a::after { width: 100%; }

.sub_menu {
    display: block;
    padding: 12px 0 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease .05s, transform .2s ease .05s;
}
.header_wrap.open .sub_menu,
.header_wrap:focus-within .sub_menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub_menu li a {
    display: block;
    padding: 7px 0;
    font-size: 16px;
    color: var(--gold) !important;
    text-shadow: none !important;
}
.sub_menu li a:hover { color: var(--gold-light) !important; }

.top_right {
    position: absolute;
    top: 0; right: 40px;
    display: flex;
    align-items: center;
}
.share { display: flex; align-items: center; height: 70px; }
.btn_share {
    padding: 0 12px;
    font-size: 15px;
    color: var(--gold);
    transition: color .2s;
}
.btn_share:hover { color: var(--gold-light); }

/* ---- 汉堡菜单按钮（移动端） ---- */
.btn_gnb {
    display: none;
    width: 46px;
    height: 70px;
    margin: 0 18px 0 10px;
    flex-shrink: 0;
}
.btn_gnb span {
    display: block;
    width: 26px; height: 2px;
    margin: 5px auto;
    background: var(--gold);
    transition: transform .3s ease, opacity .3s ease;
}
.btn_gnb[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn_gnb[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.btn_gnb[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- 移动端抽屉导航 ---- */
.m_gnb {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 5, .98);
    z-index: 90;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.m_gnb.open { display: block; }
.m_gnb ul { padding: 14px 0 50px; }
.m_gnb ul li a {
    display: block;
    padding: 18px 42px;
    font-size: 19px;
    color: var(--gold-light);
    border-bottom: 1px solid #171717;
}
.m_gnb ul li a:hover, .m_gnb ul li a:active { color: #fff; background: rgba(142,17,17,.25); }

/* =====================================================
   通用区块
   ===================================================== */
.container { position: relative; width: 100%; }
.inner_container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}
.sec_tit {
    text-align: center;
    margin-bottom: 40px;
}
.sec_tit span {
    display: block;
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 10px;
}
.sec_tit { font-size: 34px; color: var(--gold-light); font-weight: 600; }

/* =====================================================
   主视觉
   ===================================================== */
.section-main {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
}
.section-main .bg { position: absolute; inset: 0; }
.section-main .bg video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section-main .bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 30%, transparent 70%, rgba(0,0,0,.55));
    pointer-events: none;
}
.section-main .content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 5;
}
.main_box { text-align: center; }
.main_box .tit { margin-bottom: 25px; }
.main_box .tit img {
    width: 820px;
    max-width: 82vw;
    margin: 0 auto;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,.8));
    animation: mainTit 1.2s cubic-bezier(.165,.84,.44,1) both;
}
@keyframes mainTit {
    from { opacity: 0; transform: translateY(30px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 播放按钮 */
.btn_play_box {
    position: relative;
    width: 200px; height: 200px;
    margin: -10px auto 0;
}
.btn_play_box::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(194,164,106,.45);
    border-radius: 50%;
    animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
    0%   { transform: scale(.82); opacity: 0; }
    40%  { opacity: 1; }
    100% { transform: scale(1.08); opacity: 0; }
}
.btn_play {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: url("https://rom.ym.games/tw/static/pc/images/btn_main_play.png") no-repeat center center / contain;
    transition: transform 1s cubic-bezier(.165,.84,.44,1);
}
.btn_play::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 21px 0 21px 34px;
    border-color: transparent transparent transparent var(--gold-bright);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.85));
    transition: border-color .25s;
}
.btn_play:hover { transform: rotate(360deg); }
.btn_play:hover::before { border-right-color: transparent; border-bottom-color: transparent; border-top-color: transparent; border-left-color: #e8d5a8; }

/* 下载按钮 */
.intro_download_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 25px auto 0;
}
.dl_btn {
    display: grid;
    grid-template-columns: 38px max-content;
    align-items: center;
    justify-content: center;
    width: 179px; height: 53px;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1.5px solid #b9bec4;
    border-radius: 6.25px;
    background: #000;
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: filter .18s ease, border-color .18s ease;
}
.dl_btn:hover { border-color: #fff; filter: brightness(1.15); }
.dl_icon { display: flex; width: 34px; height: 36px; color: #fff; }
.dl_icon svg { width: 32px; height: 36px; }
.dl_btn.android .dl_icon svg { width: 30px; height: 34px; }
.dl_btn.ios .dl_icon svg { width: 27px; height: 34px; }
.dl_text { display: flex; flex-direction: column; white-space: nowrap; }
.dl_text strong { font-size: 17px; font-weight: 500; line-height: 18px; }
.dl_text em { font-style: normal; font-size: 12px; line-height: 13px; }

/* 向下滚动 */
.btn_scroll_down {
    display: block;
    width: 41px; height: 37px;
    margin: 30px auto 0;
    color: var(--gold);
    font-size: 22px;
    animation: scrollDown 1s infinite alternate;
}
@keyframes scrollDown { from { transform: translateY(10px); } to { transform: translateY(-5px); } }

/* =====================================================
   游戏介绍（互动入口）
   ===================================================== */
.section-info {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.info_box {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}
.info_box .bg img {
    width: 100%;
    height: auto;
}
.info_btn {
    position: absolute;
    background: transparent;
    transition: filter .25s ease;
    filter: brightness(.85);
}
.info_btn:hover { filter: brightness(1.1); }
.btn_class { top: 8%; left: 6%;  width: 30%; height: 40%; }
.btn_world { top: 18%; left: 36%; width: 30%; height: 44%; }
.btn_story { top: 8%; right: 6%; width: 30%; height: 40%; }

/* =====================================================
   游戏简介文章（SEO）
   ===================================================== */
.section-about {
    position: relative;
    padding: 90px 0;
    background:
        linear-gradient(rgba(0,0,0,.88), rgba(0,0,0,.94)),
        url("https://rom.ym.games/tw/static/pc/images/bg_story_03.png") no-repeat center / cover;
}
.about_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.about_tit {
    text-align: center;
    font-size: 36px;
    color: var(--gold-light);
    margin-bottom: 45px;
}
.about_tit span {
    display: block;
    font-size: 14px;
    letter-spacing: 8px;
    color: var(--gold);
    margin-bottom: 12px;
}
.about_body p {
    font-size: 17px;
    line-height: 2;
    color: var(--parchment);
    margin-bottom: 20px;
    text-align: justify;
}
.about_body .lead { font-size: 19px; color: var(--gold-light); }
.about_body strong { color: var(--gold-bright); font-weight: 600; }
.about_features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}
.about_features li {
    padding: 26px 22px;
    border: 1px solid var(--line);
    background: rgba(29, 26, 21, .72);
    text-align: center;
    transition: border-color .25s, transform .25s;
}
.about_features li:hover {
    border-color: var(--gold-bright);
    transform: translateY(-4px);
}
.about_features strong {
    display: block;
    font-size: 19px;
    color: var(--gold-bright);
    margin-bottom: 8px;
}
.about_features span { font-size: 14px; color: var(--gold); }

/* =====================================================
   世界观（故事轮播）：图片在上，文字面板在下，不重叠
   ===================================================== */
.section-story {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}
.story_slider { position: relative; width: 100%; }
.story_track {
    display: flex;
    width: 100%;
    transition: transform .7s cubic-bezier(.22,.75,.3,1);
}
.story_slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.story_slide .bg {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.story_slide .bg img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.txt_area {
    width: 100%;
    padding: 50px 40px 64px;
    background: linear-gradient(#0d0b09, #000);
    border-top: 1px solid #221e17;
    text-align: center;
}
.txt_area .tit { margin-bottom: 18px; }
.txt_area .tit img { width: 150px; margin: 0 auto; opacity: .95; }
.txt_area p {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
    color: var(--parchment);
}
.story_btn {
    position: absolute;
    top: 27%;
    transform: translateY(-50%);
    width: 64px; height: 64px;
    font-size: 44px;
    line-height: 60px;
    color: var(--gold);
    border: 1px solid rgba(146,133,108,.5);
    background: rgba(0,0,0,.35);
    transition: all .25s;
    z-index: 5;
}
.story_btn:hover { color: var(--gold-light); border-color: var(--gold-bright); background: rgba(0,0,0,.6); }
.story_prev { left: 50px; }
.story_next { right: 50px; }
.story_paging {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}
.story_paging button {
    width: 44px; height: 4px;
    background: rgba(146,133,108,.4);
    transition: background .25s;
}
.story_paging button.on { background: var(--gold-bright); }

/* =====================================================
   世界地图
   ===================================================== */
.section-world {
    position: relative;
    width: 100%;
    padding: 100px 0;
    background:
        radial-gradient(ellipse at center, #12100c 0%, #000 75%);
    overflow: hidden;
}
.world_box { max-width: 1500px; margin: 0 auto; padding: 0 40px; }
.map { position: relative; }
.map .bg img { width: 100%; }
.map_btn {
    position: absolute;
    transition: transform .25s ease, filter .25s ease;
    filter: drop-shadow(0 0 14px rgba(194, 164, 106, 0));
}
.map_btn:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(194, 164, 106, .8));
}
/* 七大地区按钮定位（基于地图比例） */
.btn_caldes  { top: 44%; left: 42%; width: 12%; height: 22%; }
.btn_dracas  { top: 26%; left: 62%; width: 13%; height: 20%; }
.btn_briden  { top: 58%; left: 66%; width: 13%; height: 20%; }
.btn_antaria { top: 56%; left: 16%; width: 13%; height: 22%; }
.btn_sealmor { top: 22%; left: 34%; width: 12%; height: 20%; }
.btn_atras   { top: 72%; left: 46%; width: 14%; height: 18%; }
.btn_amosia  { top: 70%; left: 12%; width: 12%; height: 18%; }

/* =====================================================
   职业
   ===================================================== */
.section-class {
    position: relative;
    width: 100%;
    padding: 100px 0 120px;
    background: #000;
    overflow: hidden;
}
.class_wrap {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}
.class_bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: .45;
    pointer-events: none;
}
.class_bg img { width: 100%; }
.class_card {
    position: relative;
    width: 430px;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform .3s ease, border-color .3s ease;
    z-index: 2;
}
.class_card img {
    width: 100%;
    transition: transform .4s ease, filter .4s ease;
    filter: brightness(.72) saturate(.9);
}
.class_card:hover img, .class_card:focus-visible img {
    filter: brightness(1) saturate(1.05);
    transform: scale(1.03);
}
/* 底部渐变衬托，保证职业名完整清晰 */
.class_card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 130px;
    background: linear-gradient(to top, rgba(0,0,0,.88), transparent);
    pointer-events: none;
}
.class_name {
    position: absolute;
    left: 10px; right: 10px;
    bottom: 30px;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    color: var(--gold-light);
    text-shadow: 0 2px 14px #000;
    letter-spacing: 6px;
    white-space: nowrap;
    overflow: visible;
    z-index: 2;
}
.class_name span {
    display: block;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--gold);
    margin-top: 6px;
    white-space: nowrap;
}

/* =====================================================
   媒体中心
   ===================================================== */
.section-media {
    position: relative;
    width: 100%;
    padding: 110px 0 130px;
    overflow: hidden;
}
.section-media .bg {
    position: absolute;
    inset: 0;
}
.section-media .bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .25;
}
.section-media .bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.85));
}
.content.media {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.media .title { text-align: center; margin-bottom: 45px; }
.media .title h2 img { width: 220px; margin: 0 auto; }

.tab_list {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 40px;
}
.tab {
    width: 200px;
    padding: 14px 0;
    font-size: 18px;
    color: var(--gold);
    border: 1px solid var(--line);
    background: rgba(0,0,0,.55);
    transition: all .25s;
}
.tab:hover { color: var(--gold-light); border-color: var(--gold); }
.tab.on {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* 媒体轮播 */
.media_slider { position: relative; }
.media_track {
    display: flex;
    gap: 24px;
    overflow: hidden;
    padding: 10px 4px;
}
.media_slide { flex: 0 0 388px; }
.media_item {
    position: relative;
    width: 388px;
    border: 1px solid #2a251c;
    overflow: hidden;
    transition: border-color .25s, transform .25s;
}
.media_item:hover { border-color: var(--gold-bright); transform: translateY(-4px); }
.media_item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform .4s ease;
}
.media_item:hover img { transform: scale(1.05); }
.media_play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e3dcd0'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 26px;
    border: 1px solid rgba(227,220,208,.5);
    transition: transform .25s, background .25s;
}
.media_item:hover .media_play {
    transform: translate(-50%, -60%) scale(1.12);
    background-color: rgba(142,17,17,.75);
}
.media_tit {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--parchment);
    background: rgba(0,0,0,.72);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 36px;
    line-height: 48px;
    color: var(--gold);
    background: rgba(0,0,0,.6);
    border: 1px solid rgba(146,133,108,.5);
    transition: all .25s;
    z-index: 5;
}
.media_btn:hover { color: var(--gold-light); border-color: var(--gold-bright); }
.media_prev { left: -70px; }
.media_next { right: -70px; }

/* =====================================================
   新手指南
   ===================================================== */
.section-guide {
    padding: 100px 40px;
    background:
        linear-gradient(rgba(0,0,0,.86), rgba(0,0,0,.93)),
        url("https://rom.ym.games/tw/static/pc/images/bg_story_05.png") no-repeat center / cover;
}
.guide_inner { max-width: 1200px; margin: 0 auto; }
.guide_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.guide_item {
    padding: 34px 36px;
    border: 1px solid var(--line);
    background: rgba(29, 26, 21, .78);
    transition: border-color .25s, transform .25s;
}
.guide_item:hover { border-color: var(--gold-bright); transform: translateY(-4px); }
.guide_item h3 {
    font-size: 21px;
    color: var(--gold-bright);
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 3px solid var(--red);
}
.guide_item p { font-size: 15.5px; line-height: 1.9; color: var(--parchment); }

/* =====================================================
   下载专区
   ===================================================== */
.section-download {
    padding: 100px 0 120px;
    background: #0a0908;
}
.download_inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.top_banner { text-align: center; margin-bottom: 50px; }
.top_banner .img_banner { width: 100%; margin-top: 28px; }

.download_infor_box { text-align: left; }
.tit {
    font-size: 24px;
    color: var(--gold-light);
    margin: 60px 0 20px;
    padding-left: 16px;
    border-left: 4px solid var(--red);
}
.download_conts {
    padding: 36px;
    border: 1px solid var(--line);
    background: #12100d;
}
.rom_client { text-align: center; }
.rom_client > p {
    font-size: 18px;
    color: var(--gold-light);
    margin-bottom: 24px;
}
.rom_client .btn_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.notice_list { margin-top: 22px; }
.notice_list li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #8a7f6a;
}
.notice_list li::before {
    content: "·";
    position: absolute;
    left: 2px;
}

.systerm { display: flex; border: 1px solid #2a251c; }
.systerm ul { flex: 1; border-left: 1px solid #2a251c; }
.systerm ul:first-child { border-left: none; }
.systerm li {
    padding: 13px 18px;
    font-size: 15px;
    color: var(--parchment);
    border-bottom: 1px solid #2a251c;
    text-align: center;
}
.systerm li:last-child { border-bottom: none; }
.systerm li.head {
    color: var(--gold-bright);
    font-weight: 600;
    background: #1a1712;
}
.systerm ul.category li { color: var(--gold); background: #171410; }

.driver ul { display: flex; gap: 16px; }
.driver li {
    flex: 1;
    border: 1px solid #2a251c;
    background: #171410;
    transition: border-color .25s, transform .25s;
}
.driver li:hover { border-color: var(--gold-bright); transform: translateY(-3px); }
.driver li a { display: block; padding: 24px 16px 20px; text-align: center; }
.driver li img { width: 90px; height: 90px; object-fit: contain; margin: 0 auto 16px; }
.driver_name { font-size: 15px; color: var(--parchment); }

/* =====================================================
   页脚
   ===================================================== */
footer {
    border-top: 1px solid #1f1f1f;
    background: #050505;
}
.foot_wrap { max-width: 1440px; margin: 0 auto; padding: 50px 40px; }
.inner_footer { display: flex; gap: 60px; align-items: flex-start; }
.logo_foot { flex-shrink: 0; padding-top: 6px; }
.info_foot { flex: 1; }
.list_csmenu {
    display: flex;
    gap: 28px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #1a1a1a;
}
.link_csmenu { font-size: 14px; color: #7d7566; transition: color .2s; }
.link_csmenu:hover { color: var(--gold-light); }
.link_csmenu.emph_g { color: var(--gold); }
.info_address { display: flex; align-items: center; gap: 24px; }
.info_address p { font-size: 12.5px; line-height: 1.75; color: #5f594e; }
.info_address img { width: 52px; }
.info_copyright {
    display: block;
    margin-top: 18px;
    font-size: 12.5px;
    line-height: 1.8;
    color: #5f594e;
}

/* =====================================================
   弹窗通用
   ===================================================== */
.pop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}
.pop.actived { display: block; }
.pop_container {
    display: table;
    width: 100%;
    min-height: 100%;
}
.pop_wrap {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 50px;
    position: relative;
}
.btn_pop_close {
    position: absolute;
    top: 30px; right: 40px;
    width: 52px; height: 52px;
    font-size: 40px;
    line-height: 48px;
    color: var(--gold);
    border: 1px solid rgba(146,133,108,.5);
    background: rgba(0,0,0,.5);
    transition: all .25s;
    z-index: 10;
}
.btn_pop_close:hover { color: #fff; border-color: var(--red); background: var(--red); }

/* ---- 视频弹窗 ---- */
.video_box {
    position: relative;
    display: inline-block;
    width: 1200px;
    max-width: 92vw;
}
.pop_title {
    margin-bottom: 14px;
    font-size: 20px;
    color: var(--gold-light);
    text-align: left;
}
.video_inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--line);
}
.video_inner iframe { width: 100%; height: 100%; border: 0; }

/* ---- 世界地区弹窗 ---- */
.world_slider { position: relative; width: 1200px; max-width: 92vw; }
.world_track {
    display: flex;
    transition: transform .55s cubic-bezier(.22,.75,.3,1);
}
.world_slide {
    position: relative;
    flex: 0 0 100%;
    height: 675px;
    max-height: 78vh;
    overflow: hidden;
}
.world_bg { width: 100%; height: 100%; object-fit: cover; }
.world_slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, transparent 75%);
}
.world_slide .inner_slider_content {
    position: absolute;
    top: 50%;
    left: 70px;
    transform: translateY(-50%);
    width: 560px;
    text-align: left;
    z-index: 2;
}
.world_slide .tit {
    border: none;
    margin: 0 0 20px;
    font-size: 42px;
    color: #fff;
    text-shadow: 0 2px 18px #000;
    letter-spacing: 3px;
}
.world_slide .txt {
    font-size: 16.5px;
    line-height: 1.95;
    color: var(--parchment);
    text-shadow: 1px 1px 8px #000;
}
.world_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px; height: 58px;
    font-size: 38px;
    line-height: 54px;
    color: var(--gold);
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(146,133,108,.5);
    z-index: 5;
    transition: all .25s;
}
.world_btn:hover { color: var(--gold-light); border-color: var(--gold-bright); }
.world_prev { left: -76px; }
.world_next { right: -76px; }

/* ---- 职业详情弹窗 ---- */
.class_detail {
    display: flex;
    width: 1240px;
    max-width: 94vw;
    min-height: 640px;
    background: #12100d;
    border: 1px solid var(--line);
    text-align: left;
    overflow: hidden;
}
.class_hero {
    position: relative;
    flex: 0 0 420px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 30%, #2a2118 0%, #0c0a08 75%);
}
.class_hero img {
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.7));
}
.class_hero_tit {
    position: absolute;
    top: 34px;
    left: 0; right: 0;
    text-align: center;
    font-size: 40px;
    letter-spacing: 8px;
    color: var(--gold-light);
    text-shadow: 0 2px 16px #000;
}
.class_body { flex: 1; padding: 40px 44px; }
.adv_tabs { display: flex; gap: 10px; margin-bottom: 28px; }
.adv_tabs button {
    padding: 10px 24px;
    font-size: 16px;
    color: var(--gold);
    border: 1px solid var(--line);
    background: rgba(0,0,0,.4);
    transition: all .25s;
}
.adv_tabs button:hover { color: var(--gold-light); border-color: var(--gold); }
.adv_tabs button.on {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
}
.adv_box .adv_name {
    font-size: 26px;
    color: var(--gold-bright);
    margin-bottom: 18px;
}
.adv_box .adv_story p { font-size: 15.5px; line-height: 1.9; color: var(--parchment); }
.adv_box .adv_story .label {
    display: inline-block;
    font-size: 16px;
    color: var(--gold-light);
    margin: 18px 0 6px;
    padding-left: 12px;
    border-left: 3px solid var(--red);
}
.skill_box { margin-top: 30px; }
.skill_box .skill_label { font-size: 14px; color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.skill_video {
    width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid var(--line);
    background: #000;
}
.skill_video video { width: 100%; height: 100%; object-fit: cover; }
.skill_tabs { display: flex; gap: 8px; margin-top: 12px; }
.skill_tab {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--gold);
    border: 1px solid var(--line);
    background: rgba(0,0,0,.4);
    transition: all .25s;
}
.skill_tab:hover { color: var(--gold-light); border-color: var(--gold); }
.skill_tab.on { color: #fff; background: var(--red); border-color: var(--red); }

/* ---- 提示弹窗 ---- */
.msg_box {
    display: inline-block;
    width: 420px;
    padding: 44px 30px 36px;
    border: 1px solid var(--line);
    background: var(--panel);
}
.msg_txt {
    font-size: 18px;
    line-height: 1.7;
    color: var(--parchment);
    text-align: center;
    margin-bottom: 30px;
}
.msg_ok {
    display: block;
    width: 120px;
    height: 44px;
    margin: 0 auto;
    font-size: 16px;
    color: #1d1a15;
    background: var(--gold);
    transition: filter .2s;
}
.msg_ok:hover { filter: brightness(1.15); }

/* =====================================================
   新闻中心 / 文章页
   ===================================================== */
.page_head {
    padding: 170px 0 60px;
    text-align: center;
    background:
        linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.95)),
        url("https://rom.ym.games/tw/static/pc/images/bg_story_01.png") no-repeat center 30% / cover;
    border-bottom: 1px solid #1f1b14;
}
.page_tit { font-size: 40px; color: var(--gold-light); }
.page_tit span {
    display: block;
    font-size: 14px;
    letter-spacing: 8px;
    color: var(--gold);
    margin-bottom: 12px;
}
.page_desc { margin-top: 14px; font-size: 16px; color: var(--gold); }

.news_container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 56px 24px 110px;
}
.news_tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 36px;
}
.news_tab {
    min-width: 160px;
    padding: 14px 30px;
    font-size: 18px;
    color: var(--gold);
    border: 1px solid var(--line);
    background: rgba(0,0,0,.5);
    transition: all .25s;
}
.news_tab .cnt { margin-left: 8px; font-size: 14px; opacity: .8; }
.news_tab:hover { color: var(--gold-light); border-color: var(--gold); }
.news_tab.on {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
}

.news_list { border-top: 2px solid var(--line); }
.news_row { border-bottom: 1px solid #221e17; }
.news_row a {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 14px;
    transition: background .2s;
}
.news_row a:hover { background: rgba(146,133,108,.07); }
.news_row .date {
    flex: 0 0 104px;
    font-size: 15px;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.news_row .tit {
    flex: 1;
    font-size: 17px;
    color: var(--parchment);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news_row a:hover .tit { color: var(--gold-light); }
.news_row .badge {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 10px;
    font-size: 12px;
    font-style: normal;
    color: var(--gold);
    border: 1px solid var(--line);
    vertical-align: 2px;
}
.news_row .badge.hot {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
}
.news_row .badge.guide {
    color: #fff;
    background: #6f8f3f;
    border-color: #6f8f3f;
}
.news_row .arrow { flex: 0 0 auto; font-size: 22px; color: var(--gold); }
.news_row a:hover .arrow { color: var(--gold-bright); }

.empty_state { padding: 90px 0; text-align: center; }
.empty_state p { font-size: 17px; color: var(--gold); }

/* ---- 文章页 ---- */
.article_page { padding: 120px 0 110px; }
.crumb {
    max-width: 1000px;
    margin: 0 auto 22px;
    padding: 0 24px;
    font-size: 14px;
    color: #7d7566;
}
.crumb a { color: var(--gold); transition: color .2s; }
.crumb a:hover { color: var(--gold-light); }
.crumb span { margin: 0 8px; }
.crumb em { font-style: normal; color: #7d7566; }

.article_card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}
.article_head {
    padding: 34px 40px 26px;
    border: 1px solid var(--line);
    border-bottom: none;
    background: #12100d;
    text-align: center;
}
.article_head .cat {
    display: inline-block;
    padding: 4px 18px;
    font-size: 14px;
    color: #fff;
    background: var(--red);
    margin-bottom: 18px;
}
.article_head .tit {
    font-size: 30px;
    line-height: 1.5;
    color: var(--gold-light);
    margin-bottom: 18px;
}
.article_head .meta {
    display: flex;
    justify-content: center;
    gap: 22px;
    font-size: 14px;
    color: var(--gold);
}
.article_body {
    padding: 44px 46px;
    border: 1px solid var(--line);
    background: #f7f3eb;               /* 原站公告纸底色 */
    color: #333;
    font-size: 16px;
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: break-word;
}
.article_body p { margin: 0 0 14px; }
.article_body img { max-width: 100% !important; height: auto !important; margin: 0 auto 14px; }
.article_body table { max-width: 100%; width: 100% !important; table-layout: fixed; }
.article_body td, .article_body th { word-break: break-all; }
.article_body a { color: #8e1111; }
.article_body ul, .article_body ol { margin: 0 0 14px 24px; }
.article_body h2 {
    margin: 40px 0 18px;
    padding: 8px 16px;
    font-size: 24px;
    line-height: 1.5;
    color: #fff;
    background: linear-gradient(90deg, #8e1111, rgba(142,17,17,.75));
    border-left: 4px solid #5c0b0b;
}
.article_body h2:first-child { margin-top: 0; }
.article_body h3 {
    margin: 28px 0 12px;
    padding-left: 12px;
    font-size: 19px;
    line-height: 1.5;
    color: #5a4a2f;
    border-left: 3px solid #b5984f;
}
.article_body h4 {
    margin: 22px 0 10px;
    font-size: 17px;
    color: #7a5c1e;
}
.article_body table {
    margin: 0 0 18px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
}
.article_body th {
    background: #e9e0cc;
    color: #4a3b1f;
    font-weight: 700;
    border: 1px solid #d8cdb3;
    padding: 10px 12px;
    text-align: left;
}
.article_body td {
    border: 1px solid #d8cdb3;
    padding: 10px 12px;
}
.article_body tr:nth-child(even) td { background: #f1eadb; }
.article_body strong { color: #8e1111; }
.article_body blockquote {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-left: 4px solid #b5984f;
    background: #efe6d2;
    color: #5a4a2f;
}

.article_foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}
.article_foot .lk {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    border: 1px solid var(--line);
    background: #12100d;
    font-size: 15px;
    color: var(--parchment);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color .25s;
}
.article_foot .lk:hover { border-color: var(--gold-bright); color: var(--gold-light); }
.article_foot .lk span {
    display: block;
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 4px;
}
.article_foot .back { flex: 0 0 auto; text-align: center; color: var(--gold-bright); border-color: var(--gold); }
.article_foot .lk.none { opacity: .4; pointer-events: none; }

/* ---- 新闻页/文章页响应式 ---- */
@media (max-width: 768px) {
    .page_head { padding: 130px 0 40px; }
    .page_tit { font-size: 28px; }
    .news_container { padding: 36px 16px 80px; }
    .news_tab { min-width: 120px; padding: 12px 20px; font-size: 16px; }
    .news_row a { flex-wrap: wrap; gap: 8px 14px; padding: 16px 8px; }
    .news_row .tit { white-space: normal; font-size: 15.5px; }
    .article_page { padding: 100px 0 80px; }
    .article_head { padding: 26px 18px 20px; }
    .article_head .tit { font-size: 21px; }
    .article_body { padding: 24px 16px; }
    .article_foot { flex-wrap: wrap; }
    .article_foot .lk { flex: 1 1 100%; }
    .article_foot .back { flex: 1 1 100%; }
}

/* =====================================================
   滚动显现动画
   ===================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   响应式（平板 / 手机全适配）
   ===================================================== */

/* ---- ≤1440：箭头收入容器内 ---- */
@media (max-width: 1440px) {
    .media_prev { left: 8px; }
    .media_next { right: 8px; }
    .world_prev { left: 8px; }
    .world_next { right: 8px; }
}

/* ---- ≤1200：中等屏 ---- */
@media (max-width: 1200px) {
    .media_slide { flex: 0 0 320px; }
    .media_item { width: 320px; }
    .class_card { width: 400px; }
    .gnb_wrap > ul > li { padding: 0 22px; }
}

/* ---- ≤1024：平板，启用汉堡菜单 ---- */
@media (max-width: 1024px) {
    #gnb { display: none; }
    .btn_gnb { display: block; }
    .top_right {
        position: static;
        margin-left: auto;
        margin-right: 0;
    }
    /* 禁用桌面端展开行为 */
    .header_wrap.open, .header_wrap:focus-within { height: 70px; background: transparent; }
    .header_wrap.open::after, .header_wrap:focus-within::after { display: none; }
    .sub_menu { display: none !important; }
    .logo { margin: 0 0 0 20px; }
    .logo img { width: 110px; }

    /* 主视觉 */
    .section-main { min-height: 100vh; }
    .main_box .tit img { max-width: 88vw; }
    .btn_play_box { width: 170px; height: 170px; }

    /* 世界观文字 */
    .txt_area { padding: 40px 24px 56px; }
    .txt_area .tit img { width: 126px; }
    .txt_area p { font-size: 16px; line-height: 1.85; }
    .story_btn { width: 54px; height: 54px; font-size: 36px; line-height: 50px; }
    .story_prev { left: 12px; }
    .story_next { right: 12px; }

    /* 职业卡片纵向排列 */
    .class_wrap { flex-direction: column; align-items: center; padding: 0 18px; gap: 20px; }
    .class_card { width: min(430px, 100%); }
    .class_name { font-size: 26px; }

    /* 媒体中心 */
    .content.media { padding: 0 52px; }
    .tab { width: auto; min-width: 140px; padding: 12px 30px; }

    /* 简介文章 */
    .about_inner { padding: 0 22px; }
    .about_tit { font-size: 28px; }
    .about_body p { font-size: 15.5px; }
    .about_features { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    /* 指南 */
    .section-guide { padding: 70px 22px; }
    .guide_grid { grid-template-columns: 1fr; }

    /* 下载专区 */
    .download_inner { padding: 0 22px; }
    .download_conts { padding: 22px 16px; }
    .systerm { flex-direction: column; }
    .systerm ul { border-left: none; border-top: 1px solid #2a251c; }
    .systerm ul:first-child { border-top: none; }
    .driver ul { flex-wrap: wrap; }
    .driver li { flex: 1 1 40%; }

    /* 职业详情弹窗 */
    .class_detail { flex-direction: column; width: 94vw; }
    .class_hero { flex: none; height: 340px; }
    .class_body { padding: 26px 22px; }
    .adv_tabs { flex-wrap: wrap; }

    /* 世界弹窗 */
    .world_slide { height: 62vh; }
    .world_slide .inner_slider_content { left: 24px; width: min(520px, 80%); }

    /* 页脚 */
    .foot_wrap { padding: 36px 22px; }
    .inner_footer { flex-direction: column; gap: 24px; }
    .pop_wrap { padding: 24px 14px; }
    .btn_pop_close { top: 12px; right: 12px; width: 46px; height: 46px; font-size: 34px; line-height: 42px; }
}

/* ---- ≤768：手机 ---- */
@media (max-width: 768px) {
    .btn_share { display: none; }

    .section-main { min-height: 100svh; }
    .main_box .tit img { max-width: 92vw; }
    .btn_play_box { width: 150px; height: 150px; margin-top: -18px; }
    .btn_play::before { border-width: 16px 0 16px 26px; }
    .btn_scroll_down { margin-top: 22px; }

    /* 下载按钮：缩小并可换行，不再溢出 */
    .dl_btn { width: 152px; height: 48px; margin: 0 3px 6px; padding: 4px 8px; }
    .dl_icon { width: 28px; }
    .dl_icon svg { width: 26px; height: 28px; }
    .dl_text strong { font-size: 15px; line-height: 16px; }
    .dl_text em { font-size: 11px; line-height: 12px; }

    /* 世界观：长文案取消硬换行 */
    .txt_area { padding: 30px 18px 48px; }
    .txt_area br { display: none; }
    .txt_area p { font-size: 14.5px; }
    .story_btn { width: 44px; height: 44px; font-size: 28px; line-height: 40px; top: 20%; }
    .story_paging button { width: 30px; }

    /* 地图与世界弹窗 */
    .section-world { padding: 60px 0; }
    .world_box { padding: 0 14px; }
    .world_slide { height: 72vh; }
    .world_slide .inner_slider_content {
        left: 18px; right: 18px; bottom: 26px; top: auto;
        width: auto; transform: none;
    }
    .world_slide .tit { font-size: 30px; }
    .world_slide .txt { font-size: 13.5px; line-height: 1.75; }

    /* 职业与详情 */
    .section-class { padding: 70px 0 80px; }
    .class_name { bottom: 24px; font-size: 24px; letter-spacing: 4px; }
    .class_card::after { height: 100px; }
    .class_hero { height: 300px; }
    .class_hero_tit { font-size: 30px; }
    .adv_name { font-size: 22px; }
    .adv_box .adv_story p { font-size: 14px; }

    /* 媒体中心 */
    .section-media { padding: 70px 0 80px; }
    .content.media { padding: 0 40px; }
    .media .title h2 img { width: 170px; }
    .tab { min-width: 110px; padding: 11px 24px; font-size: 16px; }
    .media_slide { flex: 0 0 calc(100vw - 80px); }
    .media_item { width: 100%; }
    .media_tit { font-size: 13.5px; }
    .media_btn { width: 40px; height: 40px; font-size: 26px; line-height: 36px; }

    /* 文章与指南 */
    .section-about { padding: 60px 0; }
    .about_tit { font-size: 24px; }
    .about_body .lead { font-size: 16px; }
    .about_features li { padding: 20px 14px; }
    .about_features strong { font-size: 16px; }
    .guide_item { padding: 24px 20px; }
    .guide_item h3 { font-size: 18px; }

    /* 下载专区 */
    .section-download { padding: 70px 0 80px; }
    .tit { font-size: 19px; margin: 42px 0 14px; }
    .rom_client > p { font-size: 15.5px; }
    .systerm li { padding: 11px 10px; font-size: 13px; }
    .driver li { flex: 1 1 100%; }
    .driver li a { padding: 18px 12px 16px; }
    .driver li img { width: 68px; height: 68px; }

    /* 视频弹窗 */
    .video_box { width: 100%; }
    .pop_title { font-size: 16px; }

    /* 页脚 */
    .list_csmenu { flex-wrap: wrap; gap: 12px 18px; }
    .info_address { align-items: flex-start; }
    .inner_footer { padding: 0; }
}

/* ---- ≤480：小屏手机 ---- */
@media (max-width: 480px) {
    .logo img { width: 96px; }
    .dl_btn { width: 138px; }
    .txt_area .tit img { width: 104px; }
    .about_features { grid-template-columns: 1fr; }
    .media_slide { flex: 0 0 calc(100vw - 56px); }
    .content.media { padding: 0 28px; }
}
