/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
a{color:#000}
/* 全局背景图 + 基础样式 */
body {
    
    color: #ccc;
    background-image: url("./bg.png"); /* 背景图路径 */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;

    background-blend-mode: overlay;
    padding-top: 111px; /* 修正：top-header(70px) + main-nav(41px) 高度总和，消除间隙 */
    padding-bottom: 0; /* 修正：移除底部padding，让footer贴底 */
    scroll-behavior: smooth;
    min-height: 100vh;
}
/* 默认状态：无下划线 */
a {
  text-decoration: none;
}
/* 鼠标悬浮：有下划线（可选） */
a:hover {
  text-decoration: none;
}
/* 点击时：无下划线 */
a:active {
  text-decoration: none;
}
/* 访问后：无下划线 */
a:visited {
  text-decoration: none;
}

/* 顶部导航栏 - 修正高度和间距 */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid #333;
    height: 70px; /* 固定高度，确保和main-nav无缝衔接 */
    box-sizing: border-box;
}

/* 主导航栏 - 修正位置和高度，消除和top-header的间隙 */
.main-nav {
    position: fixed;
    top: 70px; /* 精准对齐top-header底部（top-header高度70px） */
    left: 0;
    right: 0;
    z-index: 997;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px; /* 调整内边距，控制高度 */
    background-color: rgba(26, 26, 26, 0.9);
    height: 41px; /* 固定高度，和top-header无缝衔接 */
    box-sizing: border-box;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.98);
    border-right: 1px solid #333;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.show {
    display: block;
    opacity: 1;
}

/* 顶部导航栏样式 */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 24px;
}

.logo img {
    height: 40px;
}

.header-right {
    display: flex;
    gap: 24px;
}

.header-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.header-link:hover {
    color: #ccc;
}

/* 主导航栏样式 */
.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-list a{color:#999}
.nav-item a {
    color: #999;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-item.active a {
    color: #a88b45; /* 古朴暗金色 */
}

.nav-item a:hover {
    color: #ccc;
}

.download-btn {
    /* 尺寸严格按你要求的 190x58 */
    width: 190px;
    height: 58px;
    
    /* 背景图设置 */
    background-image: url('./btn-download-zh.png');
    background-size: cover;     /* 保证图片铺满按钮 */
    background-repeat: no-repeat;
    background-position: center;
    
    /* 清除原有样式 */
    padding: 0;
    background-color: transparent;
    border: none;
    
    /* 文字样式（如果不需要文字可以删掉） */
    color: #ccc;
    font-size: 16px;
    
    /* 鼠标样式 + 过渡 */
    cursor: pointer;
    transition: opacity 0.3s; /* 把背景色过渡改成透明度更自然 */
}.download-btn:hover {
    opacity: 0.9;
}



.download-btn:hover {
    background-color: #704028;
}

/* 侧边栏样式 */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #5a3020;
}

.close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
}

.sidebar-logo img {
    height: 32px;
}

.sidebar-actions {
    display: flex;
    gap: 16px;
}

.search-btn, .help-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
    padding: 24px;
    border-bottom: 1px solid #333;
}

.sidebar-menu li {
    margin-bottom: 16px;
}

.sidebar-menu li a {
    color: #999;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.sidebar-menu li a:hover {
    color: #ccc;
}

.ncsoft-service {
    padding: 16px 24px;
    border-bottom: 1px solid #333;
}

.ncsoft-btn {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: #a88b45;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ncsoft-games {
    padding: 24px;
}

.ncsoft-games h3 {
    font-size: 18px;
    color: #999;
    margin-bottom: 16px;
}

.game-list {
    list-style: none;
}

.game-list li {
    margin-bottom: 16px;
}

.game-list li a {
    color: #999;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-list li a:hover {
    color: #ccc;
}

.platforms {
    font-size: 14px;
    display: flex;
    gap: 4px;
}

/* 主要内容区 - 修正底部间距 */
.main-content {
    display: flex;
    padding: 24px;
    min-height: calc(100vh - 111px - 220px); /* 适配导航高度和底部栏高度 */
    position: relative;
    margin-bottom: 0; /* 移除底部margin */
}

/* ========== 核心：左侧按钮（世界/职业垂直排列，文字横向显示） ========== */
.side-tabs {
    position: fixed;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column; /* 世界、职业两个选项保持垂直排列 */
    gap: 50px; /* 选项间垂直间距 */
    z-index: 990;
    align-items: flex-start;
    width: auto;
    height: auto;
}

/* 竖线 - 保持垂直样式 */
.tab-line {
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #333;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* 按钮容器 - 圆点+文字水平对齐 */
.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px; /* 圆点和文字的间距 */
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 2;
    width: auto;
    height: 40px;
}

/* 圆点轨道 */
.dot-track {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

/* 圆点样式 - 球状暗红渐变 */
.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #444;
    border: 2px solid #555;
    position: absolute;
    left: 0;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: none;
}

.dot.active {
    left: 0;
    background: radial-gradient(
        circle at 30% 30%, 
        #ff4a3a,
        #dd2010 50%,
        #99150a 80%,
        #661008
    );
    border-color: #772218;
    box-shadow: 
        0 0 0 4px #333, 
        0 0 8px rgba(0, 0, 0, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

/* 核心：文字横向显示（世→界、职→业 从左到右） */
.tab-text {
    font-size: 22px;
    color: #999;
    transition: color 0.3s;
    display: inline-block;
    writing-mode: horizontal-tb; /* 强制文字横向 */
    text-orientation: mixed;
    white-space: nowrap; /* 防止文字换行 */
}

.tab-btn:hover .tab-text {
    color: #ccc;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* 内容容器 */
.content-container {
    flex: 1;
    margin-left: 180px;
    min-height: 80vh;
    margin-bottom: 0; /* 移除底部margin */
}

/* 内容面板基础动画 */
.content-panel {
    min-height: 80vh;
    padding: 20px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    margin-bottom: 0; /* 移除底部margin */
}

.content-panel.fade-in {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* 依次浮现动画 */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.content-panel.fade-in .fade-up {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-1 { transition-delay: 0.2s; }
.fade-up-2 { transition-delay: 0.5s; }
.fade-up-3 { transition-delay: 0.8s; }

/* 世界轮播样式 */
.world-carousel {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 0; /* 移除底部margin */
}

.carousel-item {
    display: none;
    flex-direction: column;
    gap: 30px;
}

.carousel-item.active {
    display: flex;
}

.text-content {
    width: 100%;
}

.carousel-desc.parchment {
    background-image: url("https://lineageclassic.plaync.com/resource/about/img/bg_parchment.png");
    background-size: 100% 100%;
    padding: 40px 60px;
    color: #444;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.carousel-desc h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-family: "Georgia", serif;
    color: #ccc;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.2s;
}

.carousel-desc p {
    font-size: 18px;
    line-height: 1.8;
    font-family: "Georgia", serif;
    color: #ccc;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.5s;
}

.image-content {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.8s;
}

.content-panel.fade-in .carousel-desc h2,
.content-panel.fade-in .carousel-desc p,
.content-panel.fade-in .image-content {
    opacity: 1;
    transform: translateY(0);
}

.carousel-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.carousel-img {
    width: 100%;
    display: block;
}

/* 轮播导航 */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 0; /* 移除底部margin */
}

.carousel-prev, .carousel-next {
    background: none;
    border: 2px solid #5a3020;
    color: #a88b45;
    font-size: 22px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(26, 26, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: #5a3020;
    color: #ccc;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(90, 48, 32, 0.8);
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.carousel-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #444;
    border: 2px solid #555;
    cursor: pointer;
    transition: all 0.3s;
    position: static;
    box-shadow: none;
}

.carousel-dots .dot:hover {
    background-color: #555;
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background-color: #a88b45;
    border: 2px solid #8b6b30;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(168, 139, 69, 0.5);
    left: 0;
}

/* 职业轮播样式 */
.class-carousel {
    max-width: 1000px;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    margin: 0 auto;
    margin-bottom: 0; /* 移除底部margin */
}

.class-item {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

.class-item.active {
    display: flex;
}

.class-info {
    flex: 1;
}

.class-info h2 {
    font-size: 48px;
    color: #a88b45;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Georgia", serif;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.2s;
}

.class-info p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #bbb;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.5s;
}

.class-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-family: "Courier New", monospace;
    font-size: 18px;
    color: #aaa;
    position: relative;
    padding: 20px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.7s;
}

.class-img {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 1s;
}

.content-panel.fade-in .class-info h2,
.content-panel.fade-in .class-info p,
.content-panel.fade-in .class-stats,
.content-panel.fade-in .class-img {
    opacity: 1;
    transform: translateY(0);
}

.class-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 8px rgba(168, 139, 69, 0.5));
}

.stat-row {
    display: flex;
    justify-content: space-between;
}

.dice-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #a88b45;
    opacity: 0.7;
}

.class-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.class-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #555;
    margin-bottom: 0; /* 移除底部margin */
}

.class-prev, .class-next {
    background: none;
    border: 2px solid #5a3020;
    color: #a88b45;
    font-size: 22px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(26, 26, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.class-prev:hover, .class-next:hover {
    background-color: #5a3020;
    color: #ccc;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(90, 48, 32, 0.8);
}

.class-icons {
    display: flex;
    gap: 28px;
}

.class-icons .icon {
    font-size: 32px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    filter: grayscale(1) opacity(0.7);
}

.class-icons .icon:hover {
    color: #a88b45;
    filter: grayscale(0.5) opacity(0.9);
    transform: scale(1.1);
}

.class-icons .icon.active {
    color: #a88b45;
    filter: grayscale(0) drop-shadow(0 0 10px rgba(168, 139, 69, 0.5));
    transform: scale(1.3);
}

/* 底部栏样式 - 修正为完全贴底，无间距 */
.site-footer {
  background-color: #222222;
  padding: 40px 20px;
  color: #999;
  font-family: "Microsoft JhengHei", sans-serif;
  border-top: 1px solid #333;
  margin: 0; /* 移除所有margin */
  width: 100%;
  box-sizing: border-box;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background-color: #333;
  border-radius: 4px;
  font-size: 18px;
  color: #ccc;
}
.lang-select i {
  font-size: 14px;
}

.social-icons {
  display: flex;
  gap: 16px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #333;
  border-radius: 50%;
  color: #ccc;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.social-icon:hover {
  background-color: #444;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
  margin-bottom: 30px;
}
.footer-link {
  color: #ccc;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #ddd;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.rating-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rating-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.rating-text {
  font-size: 14px;
  line-height: 1.8;
  color: #aaa;
}

.copyright {
  text-align: center;
}
.copyright p {
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
}
.nc-logo {
  display: flex;
  justify-content: center;
}
.nc-logo svg {
  width: 60px;
  height: auto;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    body {
        padding-top: 70px; /* 适配移动端，仅保留top-header高度 */
        padding-bottom: 0;
    }

    .top-header {
        background-color: #5a3020;
        border-bottom: none;
    }

    .sidebar {
        width: 80%;
        max-width: 300px;
    }

    .main-content {
        flex-direction: column;
        min-height: calc(100vh - 70px - 220px);
    }

    .side-tabs {
        position: static;
        flex-direction: row;
        transform: none;
        left: auto;
        top: auto;
        justify-content: center;
        width: 100%;
        margin-bottom: 30px;
        gap: 60px;
    }

    .tab-line {
        display: none;
    }

    .dot.active {
        left: 0;
        transform: scale(1.2);
    }

    .content-container {
        margin-left: 0;
    }

    .class-item {
        flex-direction: column;
    }

    .class-img {
        width: 100%;
        margin-top: 20px;
    }

    .carousel-desc.parchment {
        padding: 20px 30px;
    }

    .carousel-desc h2 {
        font-size: 28px;
    }

    .carousel-desc p {
        font-size: 16px;
    }

    /* 移动端底部栏适配 */
    .footer-links {
        gap: 16px;
        font-size: 14px;
    }
    .rating-info {
        flex-direction: column;
        text-align: center;
    }
    
    /* 移动端footer贴底 */
    .site-footer {
        padding: 20px 10px;
        margin: 0;
    }
}
