/* ===== 游戏资料页面样式 ===== */

/* 页头 hero */
.docs-hero {
    position: relative;
    padding: 170px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
    text-align: center;
}

.docs-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.docs-hero-content {
    position: relative;
    z-index: 2;
}

.docs-breadcrumb {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.docs-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.docs-breadcrumb a:hover {
    color: var(--accent-color);
}

.docs-hero-content h1 {
    font-size: 2.8rem;
    margin: 16px 0 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.docs-hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 详情正文 */
.docs-detail {
    padding: 60px 0 90px;
    background: var(--primary-color);
}

.docs-article {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 45px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    text-align: center;
    display: flow-root;
}

/* 正文文字保持左对齐，仅画廊小图标整体居中 */
.docs-subheading,
.docs-note:not(.docs-muted) {
    text-align: left;
}

.docs-article::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--accent-gradient-rainbow);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.45;
    transition: var(--transition);
}

.docs-article:hover::before {
    opacity: 1;
}

.docs-subheading {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 28px 0 12px;
}

.docs-note {
    color: var(--text-muted);
    line-height: 1.95;
    margin: 10px 0;
    font-size: 1rem;
}

.docs-note.docs-blue {
    color: #4db8ff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 22px;
}

.docs-note.docs-red {
    color: #ff6b6b;
}

.docs-note.docs-muted {
    color: var(--text-muted);
    text-align: center;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ===== 详情页图片画廊 ===== */

/* 连续的多个 figure 自动横排为缩略图画廊 */
.docs-figure {
    display: inline-block;
    vertical-align: top;
    margin: 4px 6px;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    padding: 4px;
    border: 2px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15), inset 0 0 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.docs-figure:hover {
    transform: scale(1.12);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.35), inset 0 0 4px rgba(0, 0, 0, 0.4);
    z-index: 2;
    position: relative;
}

.docs-figure img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 3px;
    display: block;
}

.docs-figure figcaption {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

/* 紧跟标题说明(note)出现的单张图 → 表格/大图，居中显示并限制最大宽度 */
.docs-note + .docs-figure {
    display: block;
    width: 100%;
    max-width: 860px;
    margin: 22px auto;
    padding: 18px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: none;
}

.docs-note + .docs-figure:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.docs-note + .docs-figure img {
    max-width: 100%;
    height: auto;
    max-height: none;
}

/* 资料清单：大类占一行，小类占一行，内容缩进与小类对齐，左对齐 */
.docs-category {
    margin: 16px 0;
    text-align: left;
}

.docs-cat-title {
    display: block;
    color: #00d4ff;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    text-align: left;
}

.docs-group {
    margin: 8px 0;
    text-align: left;
}

.docs-group-sub {
    display: block;
    color: #f5c542;
    font-weight: 600;
    font-size: 1rem;
    margin: 6px 0 4px;
    padding-left: 14px;
    border-left: 3px solid rgba(245, 197, 66, 0.6);
    line-height: 1.6;
    text-align: left;
}

.docs-group-items {
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 2.1;
    padding-left: 17px;
    margin: 0 0 6px;
    text-align: left;
    word-break: break-all;
}

.docs-group-items--plain {
    padding-left: 0;
}

.docs-back {
    text-align: center;
    margin-top: 45px;
}

/* ===== 资料中心首页 ===== */
.docs-hub {
    padding: 60px 0 90px;
    background: var(--primary-color);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.docs-card {
    position: relative;
    display: block;
    text-decoration: none;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px 26px;
    border: 2px solid transparent;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.docs-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--accent-gradient-rainbow);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.45;
    transition: var(--transition);
}

.docs-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(0, 212, 255, 0.2);
}

.docs-card:hover::before {
    opacity: 1;
}

.docs-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.docs-icon svg {
    width: 30px;
    height: 30px;
}

.docs-card h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.docs-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.docs-arrow {
    color: var(--accent-color);
    margin-top: 14px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .docs-hero {
        padding: 130px 0 60px;
    }

    .docs-hero-content h1 {
        font-size: 2rem;
    }

    .docs-article {
        padding: 30px 20px;
    }

    .docs-figure,
    .docs-note + .docs-figure {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 12px auto;
        padding: 10px;
    }

    .docs-figure img {
        max-width: 60px;
        max-height: 60px;
    }

    .docs-note + .docs-figure img {
        max-width: 100%;
        max-height: none;
    }

    .docs-cat-title {
        font-size: 1rem;
    }

    .docs-group-sub {
        font-size: 0.95rem;
        padding-left: 10px;
        border-left-width: 2px;
    }

    .docs-group-items {
        font-size: 0.9rem;
        line-height: 2.0;
        padding-left: 12px;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }
}
