/* =====================================================================
   游戏攻略 —— 首页右侧浮动入口 + 攻略详情页
   配色沿用首页 main.css 的「暗夜蓝 + 金 + 冰蓝」变量，未引入新色系。
   ===================================================================== */

/* ============================ 右侧浮动入口 ============================ */
.guide-dock {
    position: fixed;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    width: 212px;
    z-index: 900;
    font-family: "Microsoft YaHei", sans-serif;
}

.guide-dock-panel {
    background:
        linear-gradient(180deg, rgba(232, 196, 122, 0.06), rgba(232, 196, 122, 0) 90px),
        linear-gradient(180deg, rgba(15, 26, 56, 0.94), rgba(5, 11, 28, 0.96));
    border: 1px solid rgba(232, 196, 122, 0.24);
    border-radius: 10px;
    box-shadow:
        0 0 0 1px rgba(232, 196, 122, 0.08) inset,
        0 18px 44px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}

/* 标题栏（details 的 summary，去掉浏览器默认三角） */
.guide-dock-head {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 14px;
    cursor: pointer;
    user-select: none;
    color: #E8C47A;
    font-size: 15px;
    letter-spacing: 0.14em;
    border-bottom: 1px solid rgba(232, 196, 122, 0.14);
    background: linear-gradient(180deg, rgba(232, 196, 122, 0.10), rgba(232, 196, 122, 0));
    transition: color 0.3s;
}

.guide-dock-head::-webkit-details-marker { display: none; }
.guide-dock-head:hover { color: #F6E3AE; }

/* 标题左侧的菱形小标记 */
.guide-dock-icon {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #F6E3AE, #C79A4B);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(232, 196, 122, 0.55);
}

.guide-dock-title { flex: 1 1 auto; }

/* 折叠箭头：details 展开时朝上 */
.guide-dock-caret {
    width: 7px;
    height: 7px;
    border-right: 1px solid rgba(232, 196, 122, 0.75);
    border-bottom: 1px solid rgba(232, 196, 122, 0.75);
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 0.3s;
}

.guide-dock-panel[open] .guide-dock-caret {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.guide-dock-list { padding: 6px; }

.guide-dock-list li + li { margin-top: 4px; }

.guide-dock-list a {
    display: block;
    position: relative;
    padding: 10px 10px 11px 13px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: rgba(124, 168, 235, 0.04);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

/* 左侧金色竖条，悬停时点亮 */
.guide-dock-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 2px;
    border-radius: 1px;
    background: linear-gradient(180deg, rgba(232, 196, 122, 0), rgba(232, 196, 122, 0.55));
    opacity: 0.5;
    transition: opacity 0.3s;
}

.guide-dock-list a:hover {
    background: linear-gradient(120deg, rgba(232, 196, 122, 0.14), rgba(63, 123, 255, 0.12));
    border-color: rgba(232, 196, 122, 0.26);
    transform: translateX(2px);
}

.guide-dock-list a:hover::before { opacity: 1; }

.guide-item-name {
    display: block;
    color: #F1E4C4;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.guide-item-desc {
    display: block;
    margin-top: 4px;
    color: #8DA0BC;
    font-size: 11.5px;
    letter-spacing: 0.02em;
}

.guide-dock-list a:hover .guide-item-desc { color: #A9BFDC; }

/* 1600 以下内容区只剩约 200px 边距，浮窗改为右下角收起胶囊，避免压住正文。
   1200~1600 之间仍可点开查看列表，只是默认收起。 */
@media screen and (max-width: 1600px) {
    .guide-dock {
        top: auto;
        bottom: 16px;
        right: 12px;
        transform: none;
        /* 收起时按内容自适应成小胶囊，展开时由列表项撑到 172px */
        width: auto;
    }
    .guide-dock-list { width: 172px; }
    .guide-dock-panel { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); }
}

/* 窄屏进一步压缩标题栏字号 */
@media screen and (max-width: 1200px) {
    .guide-dock-head { font-size: 14px; padding: 11px 12px; }
    .guide-item-name { font-size: 13px; }
    .guide-item-desc { font-size: 11px; }
}

/* ============================ 攻略详情页 ============================ */
.guide-body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(58, 110, 220, 0.10), rgba(5, 12, 26, 0) 72%),
        #050C1A;
}

/* 顶部导航：与怪物介绍页同一套深色玻璃条 */
.guide-nav {
    background: linear-gradient(180deg, rgba(4, 9, 22, 0.96) 0%, rgba(4, 9, 22, 0.72) 70%, rgba(4, 9, 22, 0.45) 100%);
    border-bottom: 1px solid rgba(124, 168, 235, 0.12);
}

.guide-nav ul {
    max-width: 1200px;
    min-height: 60px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.guide-nav ul li {
    font-size: 19px;
    padding: 16px 18px;
    transition: all 0.4s;
}

.guide-nav ul li:hover {
    border-radius: 4px;
    background-color: rgba(124, 168, 235, 0.10);
}

.guide-nav ul li a { color: #DDE8F7; }
.guide-nav ul li a:hover { color: #F6E3AE; }

.guide-nav ul li:first-child a,
.guide-nav ul li a.nav-current {
    color: #E8C47A;
    text-shadow: 0 0 14px rgba(232, 196, 122, 0.45);
}

.guide-nav ul li a.nav-current { font-size: 22px; }

.guide-page {
    width: min(1180px, 94vw);
    margin: 0 auto;
    padding: 56px 0 80px;
}

/* ---------- 页头 ---------- */
.guide-hero { text-align: center; }

.guide-hero-kicker {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 18px;
    color: #8CC6FF;
    font-size: 12px;
    letter-spacing: 0.28em;
    border: 1px solid rgba(140, 198, 255, 0.28);
    border-radius: 999px;
    background: rgba(63, 123, 255, 0.08);
}

.guide-hero-title {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 0.22em;
    padding-left: 0.22em;
    color: #F6E3AE;
    text-shadow: 0 0 26px rgba(232, 196, 122, 0.35);
}

.guide-hero-sub {
    margin-top: 16px;
    color: #8DA0BC;
    font-size: 14px;
    line-height: 1.9;
}

.guide-hero-line { display: block; }

.guide-hero-sub em {
    color: #E8C47A;
    font-style: normal;
}

/* 标题下的金色分隔线（中间菱形） */
.guide-rule {
    position: relative;
    width: 260px;
    height: 1px;
    margin: 26px auto 0;
    background: linear-gradient(90deg, rgba(232, 196, 122, 0), rgba(232, 196, 122, 0.75), rgba(232, 196, 122, 0));
}

.guide-rule::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    background: #E8C47A;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 12px rgba(232, 196, 122, 0.7);
}

/* ---------- 核心结论高亮条 ---------- */
.guide-alert {
    position: relative;
    margin: 40px 0 34px;
    padding: 22px 26px 22px 58px;
    border: 1px solid rgba(232, 196, 122, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(232, 196, 122, 0.13), rgba(232, 196, 122, 0.02) 55%),
        linear-gradient(180deg, rgba(15, 26, 56, 0.72), rgba(5, 11, 28, 0.72));
    box-shadow: 0 0 0 1px rgba(232, 196, 122, 0.07) inset;
}

.guide-alert::before {
    content: "!";
    position: absolute;
    left: 22px;
    top: 24px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-family: "Albertus Extra Bold", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    color: #1A1206;
    background: linear-gradient(135deg, #F6E3AE, #C79A4B);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(232, 196, 122, 0.5);
}

.guide-alert-title {
    color: #F6E3AE;
    font-size: 17px;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.guide-alert-text {
    color: #C9D8EC;
    font-size: 14px;
    line-height: 1.95;
}

.guide-alert-text b { color: #F6E3AE; font-weight: bold; }
.guide-alert-text .ice { color: #8CC6FF; }

/* ---------- 三栏规则卡 ---------- */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 42px;
}

.guide-card {
    position: relative;
    padding: 22px 22px 20px;
    border: 1px solid rgba(124, 168, 235, 0.16);
    border-radius: 8px;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(63, 123, 255, 0.12), rgba(0, 0, 0, 0) 70%),
        linear-gradient(180deg, rgba(15, 26, 56, 0.85), rgba(5, 11, 28, 0.9));
    box-shadow: 0 0 0 1px rgba(232, 196, 122, 0.05) inset, 0 16px 34px rgba(0, 0, 0, 0.35);
}

/* 卡片顶部金线，悬停时拉开 */
.guide-card::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(232, 196, 122, 0), rgba(232, 196, 122, 0.55), rgba(232, 196, 122, 0));
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.guide-card:hover::after { transform: scaleX(1); }

.guide-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F6E3AE;
    font-size: 16px;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.guide-card-title i {
    width: 6px;
    height: 6px;
    background: #8CC6FF;
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(140, 198, 255, 0.7);
}

.guide-card ol,
.guide-card ul { counter-reset: gi; }

.guide-card li {
    position: relative;
    padding-left: 18px;
    color: #A9BFDC;
    font-size: 13.5px;
    line-height: 1.95;
}

.guide-card li + li { margin-top: 6px; }

.guide-card li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(232, 196, 122, 0.65);
}

.guide-card b { color: #E8C47A; font-weight: normal; }
.guide-card .ice { color: #8CC6FF; }

/* 血量分档小表 */
.guide-stage {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
}

.guide-stage-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #A9BFDC;
}

.guide-stage-bar {
    flex: 1 1 auto;
    height: 5px;
    border-radius: 3px;
    background: rgba(124, 168, 235, 0.13);
    overflow: hidden;
}

.guide-stage-bar i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #2E5BA8, #8CC6FF);
}

.guide-stage-row b {
    flex: 0 0 42px;
    text-align: right;
    color: #E8C47A;
    font-size: 12.5px;
}

.guide-stage-row span:first-child {
    flex: 0 0 66px;
    color: #C9D8EC;
}

/* ---------- 数据表 ---------- */
.guide-section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
}

.guide-section-title {
    color: #F6E3AE;
    font-size: 20px;
    letter-spacing: 0.12em;
}

.guide-section-desc {
    color: #69799A;
    font-size: 12.5px;
}

.guide-table-wrap {
    border: 1px solid rgba(232, 196, 122, 0.2);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(15, 26, 56, 0.88), rgba(5, 11, 28, 0.92));
    box-shadow: 0 0 0 1px rgba(232, 196, 122, 0.05) inset, 0 20px 44px rgba(0, 0, 0, 0.42);
    overflow-x: auto;
}

/* 窄屏才提示表格可横向滑动 */
.guide-table-hint {
    display: none;
    margin-bottom: 8px;
    color: #566586;
    font-size: 11.5px;
    text-align: right;
}

.guide-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.guide-table thead th {
    padding: 14px 14px;
    text-align: left;
    font-size: 12.5px;
    font-weight: normal;
    letter-spacing: 0.1em;
    color: #8CC6FF;
    white-space: nowrap;
    background: linear-gradient(180deg, rgba(63, 123, 255, 0.14), rgba(63, 123, 255, 0.02));
    border-bottom: 1px solid rgba(232, 196, 122, 0.2);
}

.guide-table tbody td {
    padding: 13px 14px;
    font-size: 13.5px;
    color: #A9BFDC;
    border-bottom: 1px solid rgba(124, 168, 235, 0.08);
    white-space: nowrap;
}

.guide-table tbody tr:last-child td { border-bottom: 0; }

.guide-table tbody tr:hover td {
    background: linear-gradient(120deg, rgba(232, 196, 122, 0.07), rgba(63, 123, 255, 0.06));
}

.guide-mob {
    color: #E4EDFA;
    letter-spacing: 0.02em;
}

.guide-mob-vnum {
    margin-left: 7px;
    color: #566586;
    font-size: 11px;
}

.guide-lv {
    color: #8CC6FF;
    font-family: "Albertus Extra Bold", "Microsoft YaHei", sans-serif;
}

.guide-item {
    color: #F1E4C4;
}

.guide-item-vnum {
    margin-left: 7px;
    color: #566586;
    font-size: 11px;
}

/* 概率分档配色：低=冷灰，中=冰蓝，高=金色 */
.guide-rate { font-variant-numeric: tabular-nums; }
.guide-rate.low { color: #6F82A6; }
.guide-rate.mid { color: #8CC6FF; }
.guide-rate.high { color: #E8C47A; }
.guide-rate.top { color: #F6E3AE; font-weight: bold; text-shadow: 0 0 12px rgba(232, 196, 122, 0.35); }

/* 活动/突变标签 */
.guide-tag {
    display: inline-block;
    margin-left: 7px;
    padding: 1px 6px;
    font-size: 10.5px;
    line-height: 1.6;
    color: #F6E3AE;
    border: 1px solid rgba(232, 196, 122, 0.4);
    border-radius: 3px;
    background: rgba(232, 196, 122, 0.1);
    vertical-align: middle;
}

/* 表尾说明 */
.guide-table-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 14px 16px;
    border-top: 1px solid rgba(124, 168, 235, 0.1);
    color: #69799A;
    font-size: 12px;
    line-height: 1.8;
}

.guide-table-note b { color: #E8C47A; font-weight: normal; }

/* ---------- 产物用途 ---------- */
.guide-uses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 34px;
}

.guide-use {
    padding: 20px 22px;
    border: 1px solid rgba(124, 168, 235, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(15, 26, 56, 0.72), rgba(5, 11, 28, 0.82));
}

.guide-use h4 {
    color: #F6E3AE;
    font-size: 15px;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.guide-use p {
    color: #A9BFDC;
    font-size: 13px;
    line-height: 1.95;
}

.guide-use b { color: #E8C47A; font-weight: normal; }
.guide-use .ice { color: #8CC6FF; }

/* ---------- 注意事项 ---------- */
.guide-notes {
    margin-top: 28px;
    padding: 18px 22px;
    border-left: 2px solid rgba(232, 196, 122, 0.5);
    border-radius: 0 6px 6px 0;
    background: rgba(232, 196, 122, 0.045);
}

.guide-notes p {
    color: #8DA0BC;
    font-size: 12.5px;
    line-height: 1.95;
}

.guide-notes p + p { margin-top: 6px; }
.guide-notes b { color: #C9D8EC; font-weight: normal; }

.guide-footer {
    padding: 26px 0 40px;
    text-align: center;
    color: #4E5C78;
    font-size: 12px;
    line-height: 2;
}

/* ---------- 人类生产配方 ---------- */
/* 两种基础材料的价格条 */
.guide-kit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.guide-kit-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(232, 196, 122, 0.24);
    border-radius: 6px;
    background: linear-gradient(120deg, rgba(232, 196, 122, 0.12), rgba(63, 123, 255, 0.05));
    box-shadow: 0 0 0 1px rgba(232, 196, 122, 0.06) inset;
}

.guide-kit-name {
    color: #F1E4C4;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.guide-kit-meta {
    color: #8CC6FF;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.guide-kit-tip {
    flex: 1 1 360px;
    color: #8DA0BC;
    font-size: 12.5px;
    line-height: 1.9;
}

.guide-kit-tip b { color: #E8C47A; font-weight: normal; }

/* 配方表：成品名 + 材料 chip */
.guide-table-recipe thead th:nth-child(1) { width: 210px; }
.guide-table-recipe thead th:nth-child(2),
.guide-table-recipe thead th:nth-child(3) { width: 108px; }

.guide-table-recipe thead th:nth-child(2),
.guide-table-recipe thead th:nth-child(3) { text-align: center; }

.guide-table-recipe tbody td:nth-child(2),
.guide-table-recipe tbody td:nth-child(3) {
    text-align: center;
    color: #C9D8EC;
    font-variant-numeric: tabular-nums;
}

.guide-craft-name {
    color: #E4EDFA;
    letter-spacing: 0.02em;
}

/* 材料一栏允许换行，避免整表被撑得过宽 */
.guide-table-recipe tbody td:last-child {
    white-space: normal;
    min-width: 300px;
}

.guide-mat {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    margin: 3px 8px 3px 0;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(124, 168, 235, 0.10);
    color: #A9BFDC;
    font-size: 12.5px;
    line-height: 1.7;
}

.guide-mat b {
    color: #E8C47A;
    font-weight: normal;
    font-variant-numeric: tabular-nums;
}

.guide-mat i {
    font-style: normal;
    color: #8CC6FF;
    font-size: 11px;
}

/* 需要先做出来的中间件，用金底区分 */
.guide-mat.craft {
    background: rgba(232, 196, 122, 0.12);
    box-shadow: 0 0 0 1px rgba(232, 196, 122, 0.16) inset;
}

.guide-mat.craft i { color: #E8C47A; }

/* 分组标题行 */
.guide-table-group td {
    padding: 9px 14px;
    color: #8CC6FF;
    font-size: 11.5px;
    letter-spacing: 0.18em;
    background: linear-gradient(90deg, rgba(63, 123, 255, 0.12), rgba(63, 123, 255, 0));
    border-bottom: 1px solid rgba(232, 196, 122, 0.16);
}

.guide-table-recipe tbody tr.guide-table-group:hover td {
    background: linear-gradient(90deg, rgba(63, 123, 255, 0.12), rgba(63, 123, 255, 0));
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 980px) {
    .guide-hero-title { font-size: 30px; letter-spacing: 0.14em; }
    .guide-cards { grid-template-columns: 1fr; }
    .guide-uses { grid-template-columns: 1fr; }
    .guide-page { padding: 36px 0 56px; }
    .guide-alert { padding: 20px 18px 18px 52px; }
    .guide-alert::before { left: 18px; top: 22px; }
    .guide-nav ul li { font-size: 16px; padding: 12px 10px; }
    .guide-nav ul li a.nav-current { font-size: 17px; }
    .guide-table-hint { display: block; }
    .guide-kit-item { flex: 1 1 100%; justify-content: space-between; }
    .guide-kit-tip { flex: 1 1 100%; }
}
