/* 全局重置与基础样式 - 与首页完全一致 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f0f5ff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 70px; /* 为底部分页留出空间 */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    outline: none;
}

a:focus {
    box-shadow: 0 0 0 2px #007bff;
}

ul {
    list-style: none;
}

/* 容器样式 - 统一首页容器标准 */
#form1 > div {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 隐藏字段样式 */
.hidden-fields {
    display: none !important;
}

/* 头部样式 - 合并导航栏，减少高度占用 + 移动端100px高度仅显示标题 */
header {
    background: linear-gradient(135deg, #1e6ed8 0%, #0f54b3 100%);
    color: white;
    padding: 20px 0 10px; /* 减少上下内边距 */
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(30, 110, 216, 0.2);
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    font-size: 24px; /* 缩小logo字体 */
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-block;
}

.logo a {
    color: white !important;
    text-decoration: none !important;
}

.subtitle {
    font-size: 14px; /* 缩小副标题字体 */
    color: #e0e9ff;
    margin-bottom: 10px;
}

/* 导航样式 - 合并到头部，减少高度 */
nav {
    background-color: transparent; /* 去掉导航背景色 */
    border-radius: 0; /* 去掉圆角 */
    box-shadow: none; /* 去掉阴影 */
    margin-bottom: 0; /* 去掉底部外边距 */
    padding: 10px 0;
}

.nav-container {
    padding: 0 20px;
}

.normal-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.normal-nav-list li {
    padding: 5px 0; /* 减少导航项内边距 */
}

.normal-nav-list a {
    color: white;
    font-size: 14px; /* 缩小导航字体 */
    font-weight: 500;
    padding: 6px 15px; /* 减少导航链接内边距 */
    border-radius: 8px;
    display: block;
}

.normal-nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.su-model-item {
    background-color: rgba(15, 84, 179, 0.8);
    border-radius: 5px;
    margin: 0 5px;
}

.hot-icon {
    color: #ffd700;
    margin-right: 5px;
}

/* 搜索区域样式 - 完全复用首页样式 */
.search-container {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.search-select {
    padding: 12px 15px;
    border: 2px solid #1e6ed8;
    border-radius: 8px;
    background-color: white;
    color: #0f54b3;
    font-size: 16px;
    font-weight: 500;
    min-width: 100px;
    outline: none;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 2px solid #e0e9ff;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #1e6ed8;
    box-shadow: 0 0 0 3px rgba(30, 110, 216, 0.1);
}

.search-button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #1e6ed8 0%, #0f54b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 110, 216, 0.3);
}

/* SU标签样式 - 取消折叠按钮，紧凑展示分两行，手机端隐藏 */
.su-tags-wrapper {
    margin-top: 15px;
}

/* 移除折叠按钮 */
.toggle-tags-btn {
    display: none !important;
}

/* 标签容器 - 紧凑展示，分两行 */
.su-tags-container1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 缩小间距更紧凑 */
    margin-top: 15px;
    padding: 15px;
    background-color: #f8fbff;
    border-radius: 8px;
    justify-content: center;
    /* 控制每行显示数量，实现分两行效果 */
    max-height: 120px;
    overflow: hidden;
}

.su-tag {
    padding: 6px 12px; /* 缩小标签内边距 */
    background-color: #e0e9ff;
    color: #0f54b3;
    border-radius: 5px;
    font-size: 13px; /* 缩小标签字体 */
    font-weight: 500;
    display: inline-block;
}

.su-tag:hover {
    background-color: #1e6ed8;
    color: white;
}

/* 面包屑样式 */
.breadcrumb {
    margin: 15px 0 25px;
    font-size: 14px;
}

.breadcrumb-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: #1e6ed8;
}

.breadcrumb a:hover {
    color: #0f54b3;
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

/* 详情页标题样式 */
.art-title {
    color: #0f54b3;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: center;
}

/* 主图区域样式 */
.main-image-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.main-image-container {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 
        0 8px 25px rgba(30, 110, 216, 0.08),
        0 3px 10px rgba(30, 110, 216, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(30, 110, 216, 0.7) !important;
    transform: translateY(-3px);
    transition: all 0.4s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 新增悬浮效果：交互更生动 */
.main-image-container:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 30px rgba(30, 110, 216, 0.12),
        0 5px 15px rgba(30, 110, 216, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(30, 110, 216, 0.9) !important;
}

/* 主图片样式 - 限制高度+完整显示 */
.main-img {
    width: 100%;
    max-height: 400px;
    height: auto;
    border-radius: 18px !important;
    object-fit: contain;
    margin-bottom: 15px;
    cursor: zoom-in;
    display: block;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden !important;
}

/* 全屏查看图片样式 */
.img-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.img-modal img {
    max-width: 90%;
    max-height: 90vh;
    height: auto;
}
.img-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* 图片下方版权声明样式 */
.img-copyright {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 8px 0;
    background-color: #f8fbff;
    border-radius: 8px;
    margin-bottom: 20px; /* 给简介留间距 */
}

.img-copyright a {
    color: #1e6ed8;
    margin-left: 5px;
}

.img-copyright a:hover {
    color: #0f54b3;
    text-decoration: underline;
}

/* 模型简介样式（版权声明下方） */
.intro-wrap {
    background-color: #f8fbff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* 简介预览区域 - 高度200px截断 */
.intro-preview {
    max-height: 200px;
    overflow: hidden;
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
}

/* 展开/收起按钮样式 */
.intro-toggle-btn {
    padding: 10px 25px;
    background-color: #e0e9ff;
    color: #0f54b3;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.intro-toggle-btn:hover {
    background-color: #1e6ed8;
    color: white;
}

/* 下载中心样式 */
.download-center {
    flex: 0 0 300px;
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.download-title {
    color: #0f54b3;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.download-btn-item {
    margin-bottom: 15px;
}

.btn-su {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e6ed8 0%, #0f54b3 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(30, 110, 216, 0.2);
}

.btn-su:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 110, 216, 0.3);
}

/* 二维码样式 */
#erweima {
    margin-top:15px; 
    background:#fff0f5;
}

/* 主标题样式 - 复用首页gallery-title样式 */
.gallery-title {
    color: #0f54b3;
    font-size: 24px;
    margin: 40px 0 25px;
    text-align: center;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.gallery-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e6ed8, #4a8ef0);
    border-radius: 2px;
}

.gallery-title-orange {
    color: #e86800;
}

.gallery-title-orange::after {
    background: linear-gradient(90deg, #e86800, #ff9500);
}

/* 模型列表样式 - 图片完整显示不裁剪 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.art-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.art-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 110, 216, 0.15);
}

/* 模型图片容器 - 自适应高度，保证图片完整 */
.art-img-box {
    width: 100%;
    min-height: 180px;
    height: auto;
    overflow: hidden;
    border-bottom: 1px solid #f0f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fbff;
}

/* 模型图片 - 完整显示不裁剪 */
.art-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.art-item:hover .art-img {
    transform: scale(1.05);
}

.art-info {
    padding: 20px;
}

.art-info-title {
    color: #0f54b3;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

.art-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* SU下载中心样式 - 适配首页按钮风格 */
.su-download-center {
    max-width: 1400px;
    margin: 30px auto;
    text-align: center;
}

.su-center-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #1e6ed8 0%, #0f54b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 110, 216, 0.2);
    display: inline-block;
}

.su-center-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 110, 216, 0.3);
}

/* 占位符样式 */
.placeholder-h100 {
    height: 100px;
}

.placeholder-h80 {
    height: 80px;
}

/* 底部样式 - 完全复用首页样式 */
footer {
    background: linear-gradient(135deg, #1e6ed8 0%, #0f54b3 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 20px 20px 0 0;
    margin-top: 50px;
    text-align: center;
}

.footer-fixed {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #e0e9ff;
    margin: 0 10px;
    font-size: 16px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 10px;
}

.footer-bottom a {
    color: #e0e9ff;
    margin: 0 10px;
    font-size: 14px;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* daohang容器基础样式 */
#daohang {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#daohang li {
    padding: 8px 0;
}

#daohang a {
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    display: block;
}

#daohang a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#daohang .su-model-item {
    background-color: #0f54b3;
    border-radius: 5px;
}

#daohang .hot-icon {
    color: #ffd700;
    margin-right: 5px;
}

/* 分页样式 - 核心优化：固定在底部 + 灰色背景 + 100%宽度 */
.pager-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    box-sizing: border-box;
    height: 70px;
}

.pager-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 70px;
    flex-shrink: 0;
    text-align: center;
    border: none;
}

.pager-btn:not(.disabled):hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pager-btn.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.page-info {
    font-size: 14px;
    color: #495057;
    font-weight: bold;
    white-space: nowrap;
    padding: 0 8px;
}

/* 为页面主体添加底部内边距，避免内容被固定分页遮挡 */
#mainDiv {
    padding-bottom: 90px !important; /* 比分页高度多10px，留出间隙 */
}

/* SEO优化：隐藏元素的SEO友好处理 */
[style*="display:none"], [visible="false"] {
    display: none !important;
}

/* 自适应响应式调整 - 最终版（所有模块强制等宽） */
@media (max-width: 768px) {
    /* 顶部：100px高度，仅显示标题 + 统一宽度 */
    header {
        height: 100px !important;
        padding: 20px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 15px !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        border-radius: 0 !important;
        width: calc(100% + 30px) !important;
        box-sizing: border-box !important;
    }
    .logo {
        font-size: 20px !important;
        margin-bottom: 0 !important;
    }
    .subtitle {
        display: none !important;
    }

    /* 隐藏所有导航相关 */
    nav, #daohang, .breadcrumb, .intro-wrap {
        display: none !important;
    }

    /* 统一标题宽度 */
    .art-title {
        font-size: 24px;
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding: 0 15px !important;
        width: calc(100% + 30px) !important;
        box-sizing: border-box !important;
    }

    .main-image-section {
        flex-direction: column;
        gap: 20px;
    }

    /* 核心：所有模块强制统一宽度、边距、盒模型 */
    .main-image-container,
    .download-center,
    .gallery-grid,
    .su-download-center,
    footer,
    .gallery-title {
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: calc(100% + 30px) !important;
        box-sizing: border-box !important;
    }

    /* 主图容器样式 */
    .main-image-container {
        min-width: 100% !important;
        padding: 20px !important;
        border-radius: 15px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
        background-color: white !important;
        border: none !important;
        transform: none !important;
    }
    
    /* 手机端主图：限制高度+统一圆角 */
    .main-img {
        max-height: 300px !important;
        min-height: auto !important;
        width: 100% !important;
        border-radius: 8px !important;
    }

    /* 下载中心样式 */
    .download-center {
        min-width: 100% !important;
        padding: 20px !important;
        border-radius: 15px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
        background-color: white !important;
        flex: 1 !important;
    }

    /* 相关SU模型展示 */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
        padding: 0 15px !important;
    }

    /* 搜索表单适配 */
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .search-select, .search-input, .search-button {
        width: 100%;
    }

    /* 模型图片容器移动端适配 */
    .art-img-box {
        min-height: 150px;
    }
    .art-img {
        max-height: 180px;
    }

    /* 手机端隐藏SU模型快速筛选链接 */
    .su-tags-container1 {
        display: none !important;
    }

    /* 底部样式统一 */
    footer {
        border-radius: 0 !important;
        padding: 40px 20px !important;
    }

    /* 分页样式响应式调整 */
    .pager-container {
        gap: 10px;
        padding: 0 10px;
        height: 70px;
    }
    .pager-btn {
        padding: 12px 20px;
        min-width: 80px;
        font-size: 14px;
    }
    .page-info {
        font-size: 14px;
        padding: 0 5px;
    }
    #mainDiv {
        padding-bottom: 80px !important;
    }
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    /* 小屏顶部高度微调 */
    header {
        height: 100px !important;
        padding: 15px 0 !important;
    }
    .logo {
        font-size: 18px !important;
    }

    .art-title {
        font-size: 20px;
    }

    .gallery-title {
        font-size: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        width: calc(100% + 30px) !important;
        box-sizing: border-box !important;
    }

    /* 小屏模型图片完整显示 */
    .art-img-box {
        min-height: 200px;
    }
    .art-img {
        max-height: 200px;
        width: 90%;
    }
    
    /* 小屏主图：进一步适配高度 */
    .main-img {
        max-height: 250px !important;
    }

    /* 分页样式小屏响应式调整 */
    .pager-container {
        padding: 10px 8px;
        gap: 5px;
        height: 60px;
    }
    
    .pager-btn {
        padding: 6px 12px;
        min-width: 60px;
        font-size: 13px;
    }
    
    .page-info {
        font-size: 13px;
        padding: 0 5px;
    }
    
    #mainDiv {
        padding-bottom: 70px !important;
    }
    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 320px) {
    /* 超小屏分页样式调整 */
    .page-info {
        font-size: 12px;
    }
    
    .pager-btn {
        min-width: 55px;
        padding: 5px 8px;
    }
}