﻿/* P:\GL\gg-yx-gl\common\common.css */
/* ===================== 基础重置样式（全局通用） ===================== */
* {
    margin: 0;
    padding: 0;
    font-family: "微软雅黑", serif;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body, ul, li, h1, h2, h3, h4, h5, h6, p, form, dl, dt, dd {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
}

img {
    border-style: none;
}

li {
    list-style: none;
}

a {
    text-decoration: none
}

input[type="button"], input[type="submit"], input[type="reset"] {
    -webkit-appearance: none;
    outline: 0;
}

textarea {
    -webkit-appearance: none;
}

/* ===================== 公共基础样式（页面通用） ===================== */
html, body {
    background: #fff;
    height: 100%;
}

/* 公共容器样式（子页面共用） */
.container {
    max-width: 1080px;
    width: 95%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* 公共标题样式（子页面共用） */
.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #1890ff;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fff3cd;
}

/* ===================== 公共组件样式（列表/表格/下载） ===================== */
/* 公共信息列表样式（子页面共用） */
.info-list {
    list-style: none;
    margin: 20px 0;
    padding-left: 20px;
}

.info-list li {
    font-size: 14px;
    color: #ff4d4f;
    font-weight: bold;
    margin: 8px 0;
}

/* 公共表格样式（子页面共用，修复换行） */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
    text-align: left;
    table-layout: fixed;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    border: 1px solid #e8e8e8;
    max-width: 100%;
    word-break: break-all;
}

.data-table thead tr {
    background-color: #1890ff;
    color: #fff;
    text-align: center;
}

.data-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s ease;
}

.data-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.data-table tbody tr:hover {
    background-color: #fff3cd;
}

.data-table td pre {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 公共下载区域样式（子页面共用） */
.download-section {
    margin: 30px 0;
    padding: 15px;
    background: #e9f5e9;
    border-radius: 8px;
    max-width: 100%;
    word-break: break-all;
}

.download-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.6;
}

.download-link {
    display: inline-block;
    padding: 8px 20px;
    background: #1890ff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.download-link:hover {
    background: #096dd9;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.3);
}

/* ===================== 公共图片弹窗样式（支持缩放拖动+占位） ===================== */
.image-section {
    margin: 30px 0;
}

.image-container {
    padding: 15px;
    background: #fff;
    border: 2px solid teal;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: pointer;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.thumbnail-img {
    width: 500px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

/* 已删除重复的 display: flex; 仅保留 display: none; */
.thumbnail-placeholder {
    width: 100%;
    height: 250px;
    background: #f5f5f5;
    border: 1px dashed #e8e8e8;
    border-radius: 8px;
    justify-content: center;
    color: #999;
    font-size: 16px;
    display: none;
}

.image-container:hover .thumbnail-img {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.img-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    overflow: auto;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: fit-content;
    height: fit-content;
    max-width: 95%;
    max-height: 95%;
    margin: 20px auto;
    cursor: grab;
}

.modal-content:active {
    cursor: grabbing;
}

.original-img {
    position: relative;
    width: 100%;
    height: auto;
    transform-origin: center center;
    transition: transform 0.2s ease;
    display: block;
}

/* 已删除重复的 display: flex; 仅保留 display: none; */
.original-placeholder {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    border: 1px dashed #e8e8e8;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    display: none;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff4d4f;
}

.zoom-tips {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 10000;
}

/* ===================== 公共提示文本样式 ===================== */
/* 基础提示文本 */
.tips-text {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
    margin: 20px 0;
    line-height: 1.8;
    max-width: 100%;
    word-break: break-all;
}

/* 提示文本变体 - 小字体（兼容IE11） */
.tips-text--small {
    font-size: 14px !important;
    margin: 10px 0 !important;
}

/* ===================== 内链/攻略卡片专用样式（兼容IE11） ===================== */
/* 攻略卡片容器 */
.link-card {
    margin: 25px 0;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

/* 信息列表变体 - 常规样式 */
.info-list--normal {
    padding-left: 20px;
    margin: 10px 0;
    line-height: 1.8;
}

/* 信息列表变体 - 无左侧内边距 */
.info-list--no-padding {
    padding-left: 0;
    margin: 10px 0;
}

/* 信息列表项统一样式 */
.info-list--normal li,
.info-list--no-padding li {
    color: #333;
    font-weight: normal;
    margin-top: 5px;
}

/* 下载文本变体 - 蓝色主色 */
.download-text--primary {
    color: #1890ff;
    margin-bottom: 15px;
}

/* 下载文本变体 - 蓝色+上间距 */
.download-text--primary-top {
    color: #1890ff;
    margin-top: 10px;
}

/* 站内内链统一样式（保留链接符号+下划线） */
.inner-link {
    color: #1890ff;
    text-decoration: underline;
    text-decoration-color: #1890ff;
    text-decoration-thickness: 1px;
    padding-left: 20px;
    position: relative;
}

.inner-link:before {
    content: "\1F517"; /* 链接符号Unicode */
    position: absolute;
    left: 0;
    top: 2px;
    color: #1890ff;
    font-size: 12px;
    transition: color 0.3s ease;
}

/* hover时同步变色（符号+文字+下划线） */
.inner-link:hover {
    color: #096dd9;
    text-decoration-color: #096dd9;
    text-decoration-thickness: 2px;
}

.inner-link:hover:before {
    color: #096dd9;
}

/* 攻略文本块（自动保留换行） */
.guide-text-block {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #333;
}

/* 快速传送+内链 一行布局容器 */
.tips-link-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

/* 快速传送文本样式（清除默认margin） */
.tips-text-small {
    margin: 0 !important;
}

/* 内链列表行内样式 */
.info-list-inline {
    margin: 0 0 0 10px !important;
    padding-left: 0 !important;
    display: inline-block !important;
}

/* 内链列表项行内显示 */
.info-list-inline li {
    list-style: none !important;
    display: inline-block !important;
}

/* 内链列表项间距（第二个及以后项）- 保留你设置的50px */
.info-list-inline li + li {
    margin-left: 50px !important;
}

/* ===================== 通用工具类 ===================== */
/* 上外边距8px（兼容IE11） */
.mt-8 {
    margin-top: 8px !important;
}
/* 上外边距15px */
.mt-15 {
    margin-top: 15px !important;
}

/* ===================== 页脚样式 ===================== */
.inner-center {
    width: 1000px;
    margin: 0 auto;
}

/* 页脚样式（优化后，无内联） */
.footer {
  height: auto;
  text-align: center;
  line-height: 1.5;
  margin-top: 30px;
  clear: both;
  padding: 10px 0;
}

/* 免责声明样式（全部在CSS里，无内联） */
.disclaimer {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  padding: 0 10px;
  margin-top: 8px;
  margin-bottom: 8px;
  text-align: center;
}
.disclaimer p {
  margin: 4px 0;
}
.disclaimer p:first-child {
  font-weight: bold;
  color: #8C8C8C;
}

/* 页脚版权链接样式（兼容IE11） */
.footer-link {
    color: #8C8C8C !important;
}

/* ===================== 返回顶部/首页按钮样式（全局通用） ===================== */
/* 返回顶部按钮（原有） */
.back-to-top {
    position: fixed;
    bottom: 80px; /* 避开缩放提示的位置 */
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1890ff;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 9998; /* 低于弹窗但高于其他元素 */
    opacity: 0; /* 初始隐藏 */
    visibility: hidden; /* 初始不可见 */
}

/* 新增：返回首页按钮 */
.back-to-home {
    position: fixed;
    bottom: 140px; /* 在返回顶部按钮上方60px */
    right: 30px;
    width: 50px;
    height: 50px;
    background: #47a877; /* 用绿色区分首页按钮 */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(71, 168, 119, 0.3);
    transition: all 0.3s ease;
    z-index: 9998;
    opacity: 0; /* 初始隐藏 */
    visibility: hidden; /* 初始不可见 */
}

/* 按钮hover效果 */
.back-to-top:hover {
    background: #096dd9;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.5);
}
.back-to-home:hover {
    background: #35865f;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(71, 168, 119, 0.5);
}

/* 滚动后显示按钮 */
.back-to-top.show, .back-to-home.show {
    opacity: 1;
    visibility: visible;
}

/* ===================== 响应式适配（所有页面共用） ===================== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .data-table th, .data-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .download-text {
        font-size: 16px;
    }
    
    .thumbnail-img {
        width: 100%;
    }
    
    .image-container {
        max-width: 100%;
        min-height: 200px;
    }
    
    .thumbnail-placeholder {
        height: 180px;
        font-size: 14px;
    }
    
    .original-placeholder {
        height: 300px;
        font-size: 16px;
    }
    
    .zoom-tips {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* 响应式-返回顶部按钮（原有） */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
        bottom: 60px;
        right: 15px;
    }

    /* 新增：响应式-返回首页按钮 */
    .back-to-home {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
        bottom: 110px; /* 适配移动端位置 */
        right: 15px;
    }
}

/* 主页H1视觉隐藏（SEO有效，页面不可见） */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 导航加载/错误样式 */
.nav-loading, .nav-empty, .nav-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}
.nav-error {
    color: #f5222d;
}
.fallback-nav {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}
.fallback-nav li {
    margin: 5px 0;
}
/* 头部/底部加载错误样式 */
.header-error, .footer-error {
    padding: 15px;
    text-align: center;
    color: #f5222d;
    background: #fff1f0;
}