/* ===== 魔域资料片公共样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "SimHei", sans-serif;
  background: #3a2410;
  color: #f5e6c8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 全局背景 - 深棕魔幻纹理 */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 30%, #6b4220 0%, #3a2410 50%, #1f1208 100%);
}

/* 星光粒子 */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffd88a;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* 顶部装饰圆环 */
.deco-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border: 1px solid rgba(212, 168, 88, 0.15);
  border-radius: 50%;
  pointer-events: none;
}
.deco-ring::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(212, 168, 88, 0.1);
  border-radius: 50%;
}
.deco-ring::after {
  content: '';
  position: absolute;
  inset: 100px;
  border: 1px dashed rgba(212, 168, 88, 0.08);
  border-radius: 50%;
}

/* 魔域Logo */
.moyu-logo {
  position: absolute;
  top: 20px;
  left: 30px;
  width: 120px;
  height: 80px;
  z-index: 10;
}
.moyu-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 右上角页面标题 */
.page-title {
  position: absolute;
  top: 30px;
  right: 40px;
  text-align: right;
  z-index: 10;
}
.page-title .main {
  font-size: 42px;
  font-weight: 900;
  color: #f5e6c8;
  text-shadow: 0 0 12px rgba(255, 200, 100, 0.5);
  line-height: 1.1;
}
.page-title .sub {
  font-size: 28px;
  font-weight: 700;
  color: #d4a858;
  writing-mode: vertical-rl;
  display: inline-block;
  margin-left: 8px;
  letter-spacing: 4px;
}

/* 右侧展开按钮 */
.btn-expand {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 100px;
  border: 1px solid rgba(212, 168, 88, 0.5);
  border-radius: 25px;
  background: rgba(40, 25, 12, 0.6);
  color: #d4a858;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  letter-spacing: 4px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}
.btn-expand:hover {
  background: rgba(212, 168, 88, 0.2);
  border-color: #d4a858;
}

/* 底部滚动查看 */
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #c9a878;
  font-size: 13px;
  z-index: 10;
}
.scroll-hint .icon {
  width: 36px;
  height: 36px;
  border: 1px solid #c9a878;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.scroll-hint::before,
.scroll-hint::after {
  content: '';
  position: absolute;
  top: 18px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a878, transparent);
}
.scroll-hint::before { right: 50%; margin-right: 30px; }
.scroll-hint::after { left: 50%; margin-left: 30px; }

/* 页面导航 */
.page-nav {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 100;
  background: rgba(20, 12, 6, 0.85);
  padding: 8px 20px;
  border-radius: 24px;
  border: 1px solid rgba(212, 168, 88, 0.4);
  backdrop-filter: blur(4px);
}
.page-nav a {
  color: #d4a858;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 12px;
  transition: all 0.3s;
}
.page-nav a:hover {
  background: rgba(212, 168, 88, 0.2);
  color: #fff;
}
.page-nav .current {
  color: #fff;
  font-weight: bold;
}
.page-nav .disabled {
  color: #666;
  pointer-events: none;
}

/* 金色大字标题 */
.gold-big-title {
  font-size: 64px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(180deg, #fff8d0 0%, #ffd060 40%, #c88820 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 180, 60, 0.4);
  line-height: 1.2;
  letter-spacing: 4px;
}

/* 竖向卷轴标签 */
.scroll-tag {
      background: url(images/zl.png);
    width: 70px;
    height: 190px;
    /* background: linear-gradient(180deg, #5c3718 0%, #3a2010 100%); */
    /* border: 2px solid #d4a858; */
    /* border-radius: 8px 8px 4px 4px; */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.scroll-tag:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(255, 180, 60, 0.3);
}
.scroll-tag .text {
  writing-mode: vertical-rl;
  color: #f5e6c8;
  font-size: 14px;
  letter-spacing: 4px;
  font-weight: bold;
}
/* .scroll-tag::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 18px;
  background: #a83220;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
} */
.scroll-tag .dot {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #d4a858;
  border-radius: 50%;
}

/* 圣器副本三卡片 */
.dungeon-cards {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 60px;
  padding-top: 120px;
}
.dungeon-card {
  width: 220px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}
.dungeon-card:hover {
  transform: translateY(-10px);
}
.dungeon-card .frame {
  width: 220px;
  height: 340px;
  border: 3px solid #d4a858;
  border-radius: 110px 110px 8px 8px;
  background: linear-gradient(180deg, rgba(30, 18, 10, 0.8) 0%, rgba(50, 30, 15, 0.9) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dungeon-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dungeon-card .num-badge {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #5c3718, #3a2010);
  border: 2px solid #d4a858;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #d4a858;
  z-index: 2;
}
.dungeon-card .name {
  margin-top: 30px;
  font-size: 22px;
  color: #f5e6c8;
  font-weight: bold;
  letter-spacing: 2px;
}
.dungeon-card .ribbon {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: #8b2020;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 50% 60%, 20% 100%);
  z-index: 1;
}

/* 家族功能四卡片 */
.family-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding-top: 200px;
  flex-wrap: wrap;
}
.family-card {
  background: url(images/lb.png) no-repeat center center / cover;
    width: 200px;
    /* height: 378px; */
    text-align: center;
    position: relative;
}
.family-card .avatar {
  height: 180px; 
}
.family-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.family-card .title-bar {
  padding: 10px;
  margin-top: -10px;
  position: relative;
  z-index: 2;
}
.family-card .title-bar .t {
  font-size: 18px;
  color: #f5e6c8;
  font-weight: bold;
}
.family-card .desc-box {
	top: 10px;
  padding: 20px 16px 30px;
  border-radius: 0 0 8px 8px;
  position: relative;
}
.family-card .desc-box p {
  font-size: 17px;
    color: #e8d5a8;
    line-height: 1.5;
    /* text-align: left;*/
}


/* Loading圆环 */
.loading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.loading-ring {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 3px solid rgba(212, 168, 88, 0.2);
  border-top-color: #d4a858;
  border-right-color: #d4a858;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin 4s linear infinite;
}
.loading-ring .text {
  font-size: 36px;
  color: #f5e6c8;
  letter-spacing: 6px;
  animation: none;
}
.loading-ring .percent {
  font-size: 32px;
  color: #d4a858;
  margin-top: 8px;
  animation: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-ring .inner {
  position: absolute;
  inset: 30px;
  border: 1px dashed rgba(212, 168, 88, 0.3);
  border-radius: 50%;
}

/* 详情书本面板 */
.detail-book {
  max-width: 1000px;
  margin: 80px auto 0;
  background: linear-gradient(135deg, #f0e4c8 0%, #e8d8b0 100%);
  border-radius: 4px;
  padding: 30px 40px;
  color: #3a2818;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.detail-book::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 20px;
  width: 50px;
  height: 120px;
  border: 3px solid #999;
  border-left: none;
  border-bottom: none;
  border-radius: 0 4px 0 0;
}
.detail-book h4 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 12px;
  color: #5a3818;
}
.detail-book p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}
.detail-book .divider {
  text-align: center;
  color: #8b6840;
  margin: 20px 0 12px;
  font-size: 16px;
}
.detail-book .btn-guide {
  display: block;
  width: 180px;
  margin: 20px auto 0;
  padding: 10px;
  background: linear-gradient(180deg, #c87030, #a05020);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
}

/* 左侧竖排标签 */
.vert-label {
  position: absolute;
  left: -70px;
  top: 20px;
  width: 56px;
  height: 200px;
  background: linear-gradient(180deg, #4a3858, #2a2038);
  color: #f5e6c8;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  letter-spacing: 8px;
  border-radius: 4px;
  font-weight: bold;
}

/* 右侧切换标签 */
.side-tabs {
  position: absolute;
  right: -100px;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-tab {
  width: 90px;
  padding: 10px;
  text-align: center;
  background: rgba(60, 40, 20, 0.8);
  border: 1px solid rgba(212, 168, 88, 0.4);
  color: #c9a878;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
}
.side-tab.active {
  background: linear-gradient(180deg, #c87030, #a05020);
  color: #fff;
  border-color: #d4a858;
}

/* 圣器其他功能 - 左侧标签列 */
.func-tags {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.func-tag {
  width: 60px;
  height: 120px;
  background: linear-gradient(180deg, #5c3718, #3a2010);
  border: 2px solid #d4a858;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  color: #f5e6c8;
  font-size: 16px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
.func-tag.active {
  background: linear-gradient(180deg, #8b6020, #5c3718);
  box-shadow: 0 0 16px rgba(255, 180, 60, 0.4);
}
.func-tag:hover {
  transform: translateX(4px);
}

/* 圣器其他功能 - 中间截图框 */
.screen-frame {
  width: 700px;
  height: 420px;
  border: 4px solid #8b2020;
  border-radius: 8px;
  background: #1a1008;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 30px rgba(139, 32, 32, 0.4);
}
.screen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screen-frame .top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, #8b2020, #5c1515);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5e6c8;
  font-size: 14px;
}

/* 底部说明条 */
.desc-bar {
  max-width: 700px;
  margin: 16px auto 0;
  background: rgba(30, 18, 10, 0.8);
  border: 1px solid rgba(212, 168, 88, 0.3);
  padding: 14px 20px;
  font-size: 14px;
  color: #e8d5a8;
  line-height: 1.7;
  border-radius: 4px;
}

/* 全新圣器展示 */
.artifact-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding-top: 80px;
}
.artifact-item {
  text-align: center;
  position: relative;
}
.artifact-item .img-wrap {
  width: 200px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artifact-item .img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.artifact-item.center .img-wrap {
  width: 280px;
  height: 360px;
}
.artifact-item .label {
  position: absolute;
  top: 0;
  left: -20px;
  width: 50px;
  height: 140px;
  background: linear-gradient(180deg, #5c3718, #3a2010);
  border: 1px solid #d4a858;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5e6c8;
  font-size: 16px;
  letter-spacing: 4px;
  border-radius: 4px;
}
.artifact-item.center .label {
  left: -30px;
  height: 180px;
  font-size: 18px;
}

/* 底部大段文字 */
.story-text {
  max-width: 1100px;
  margin: 30px auto 0;
  background: rgba(30, 18, 10, 0.75);
  border: 1px solid rgba(212, 168, 88, 0.3);
  padding: 20px 28px;
  font-size: 14px;
  color: #e8d5a8;
  line-height: 1.9;
  border-radius: 4px;
}

/* 底部圆形按钮组 */
.circle-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.circle-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5c3718, #3a2010);
  border: 2px solid #d4a858;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5e6c8;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1.3;
}
.circle-btn:hover {
  box-shadow: 0 0 20px rgba(255, 180, 60, 0.4);
  transform: scale(1.05);
}

/* 返回上一级 */
.back-link {
position: absolute;
    bottom: 300px;
    right: 480px;
    color: #d45858;
    font-size: 14px;
    text-decoration: none;
}
.back-link:hover {
  color: #fff;
}

/* 点击查看详情 */
.detail-link {
  text-align: center;
  margin-top: 30px;
  color: #d4a858;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.detail-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 180, 60, 0.6);
}

/* 首页战斗背景 */
.home-battle-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(60, 30, 15, 0.3) 0%, rgba(40, 20, 10, 0.6) 100%);
  z-index: -1;
}
