/* ============================================================
   文件名：inner.css
   说明：内页独有样式（面包屑、侧边栏、列表、详情、分页、相关区块）
   适用范围：about.html, list_*.html, show_*.html
   依赖：common.css
   ============================================================ */

/* -------------------- 1. 页面横幅 -------------------- */
.page-banner {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}
.page-banner h1 {
    font-size: 2.4rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 8px;
}
.page-banner p {
    color: rgba(255, 255, 255, 0.50);
    font-size: 1rem;
}

/* -------------------- 2. 面包屑 -------------------- */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 30px;
}
.breadcrumb a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--orange-dark);
}
.breadcrumb span {
    color: var(--gray-600);
}

/* -------------------- 3. 带侧边栏的页面布局 -------------------- */
.page-content.with-sidebar {
    background: #f8f7f5;
    padding: 40px 0 70px;
}
.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.main-content {
    flex: 1;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px 35px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    min-height: 400px;
}
.main-content .breadcrumb {
    padding: 0 0 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

/* -------------------- 4. 侧边栏 -------------------- */
.sidebar {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px 0;
    border: 1px solid var(--gray-200);
}
.sidebar-module {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-module:last-child {
    border-bottom: none;
}
.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title i {
    color: var(--orange);
    font-size: 0.9rem;
}

/* 侧边栏导航 */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-nav li:last-child {
    border-bottom: none;
}
.sidebar-nav li a {
    display: block;
    padding: 10px 12px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.95rem;
}
.sidebar-nav li a:hover {
    background: var(--orange-bg);
    color: var(--orange);
}
.sidebar-nav li.active a {
    background: var(--orange);
    color: var(--white);
    font-weight: 500;
}

/* 侧边栏联系模块 */
.sidebar-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}
.sidebar-contact li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-contact li i {
    color: var(--orange);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* 侧边栏推荐（产品/新闻通用） */
.sidebar-recommend {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-recommend li {
    margin-bottom: 12px;
}
.sidebar-recommend li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gray-700);
    transition: color 0.2s;
}
.sidebar-recommend li a:hover {
    color: var(--orange);
}
.sidebar-recommend li img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.sidebar-recommend li span {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 侧边栏新闻列表（纯文字，带日期） */
.sidebar-news-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: var(--gray-600);
    transition: color 0.2s;
}
.sidebar-news-list li:last-child a {
    border-bottom: none;
}
.sidebar-news-list li a:hover {
    color: var(--orange);
}
.sidebar-news-list .news-date {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-family: var(--font-en);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}
.sidebar-news-list .news-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------- 5. 列表页 -------------------- */
/* 条目式列表（新闻） */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    transition: all 0.35s ease;
    position: relative;
}
.news-item:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}
.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--orange);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.news-item:hover::before {
    opacity: 1;
}
.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}
.news-date {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-family: var(--font-en);
}
.news-category {
    font-size: 0.7rem;
    color: var(--orange);
    background: var(--orange-bg);
    padding: 2px 14px;
    border-radius: 20px;
    font-weight: 500;
}
.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    transition: color 0.3s;
    margin-bottom: 4px;
    line-height: 1.5;
}
.news-item:hover .news-title {
    color: var(--orange);
}
.news-summary {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 500;
    transition: gap 0.3s;
}
.news-item:hover .news-readmore {
    gap: 12px;
}
.news-readmore i {
    font-size: 0.7rem;
}

/* 产品列表（四列网格） */
.product-grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 10px;
}
.product-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
    border-color: var(--orange);
}
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--gray-100);
}
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.5s ease;
}
.product-item:hover .product-image img {
    transform: scale(1.06);
}
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 12, 10, 0.50);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.product-item:hover .product-overlay {
    opacity: 1;
}
.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--orange);
    color: #fff;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(16px);
    transition: transform 0.4s ease, background 0.3s;
}
.product-item:hover .view-btn {
    transform: translateY(0);
}
.view-btn:hover {
    background: var(--orange-dark);
}
.view-btn i {
    font-size: 0.8rem;
}
.product-info {
    padding: 14px 16px 18px;
    text-align: center;
}
.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-item:hover .product-name {
    color: var(--orange);
}
.product-spec {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-family: var(--font-en);
    margin-bottom: 4px;
}
.product-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------------------- 6. 分页 -------------------- */
/* ===== 分页样式（优化版） ===== */
.pagination-wrapper {
    margin-top: 36px;
    text-align: center;
    padding: 10px 0;
}

.pagination-wrapper ul {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 分页项 - 统一按钮样式 */
.pagination-wrapper ul li {
    display: inline-block;
}

.pagination-wrapper ul li a,
.pagination-wrapper ul li span {
    display: inline-block;
    min-width: 38px;
    padding: 6px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-en);
    transition: all 0.25s ease;
    text-align: center;
    background: var(--white);
    line-height: 1.4;
}

/* “共X条” 纯文本样式（无边框、无背景） */
.pagination-wrapper ul li:first-child a,
.pagination-wrapper ul li:first-child span {
    border: none !important;
    background: transparent !important;
    color: var(--gray-400);
    font-size: 0.85rem;
    cursor: default;
    min-width: auto;
    padding: 6px 8px;
}

/* 当前页（激活状态） */
.pagination-wrapper ul li.active a,
.pagination-wrapper ul li.active span {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    font-weight: 600;
}

/* 悬停效果（非激活、非纯文本项） */
.pagination-wrapper ul li a:hover:not(.active) {
    background: var(--orange-bg);
    border-color: var(--orange);
    color: var(--orange);
}

/* 禁用状态（如无下一页时） */
.pagination-wrapper ul li.disabled a,
.pagination-wrapper ul li.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== 移动端适配 ===== */
@media (max-width: 600px) {
    .pagination-wrapper ul {
        gap: 4px;
    }
    .pagination-wrapper ul li a,
    .pagination-wrapper ul li span {
        min-width: 32px;
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    .pagination-wrapper ul li:first-child a,
    .pagination-wrapper ul li:first-child span {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
}

/* -------------------- 7. 详情页 -------------------- */
.content-detail {
    padding: 10px 0 30px;
}
.content-detail h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.content-detail .meta {
    font-size: 0.9rem;
    color: var(--gray-400);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.content-detail .content {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.9;
}
.content-detail .content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}
.content-detail .content p {
    margin-bottom: 16px;
}
.content-detail .page-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.content-detail .page-nav a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s;
}
.content-detail .page-nav a:hover {
    color: var(--orange-dark);
}

/* 产品详情 */
.product-detail-top {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}
.detail-gallery {
    flex: 0 0 380px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-gallery img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}
.detail-info {
    flex: 1;
}
.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.detail-spec {
    font-size: 1rem;
    color: var(--gray-400);
    font-family: var(--font-en);
    margin-bottom: 12px;
}
.detail-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}
.detail-meta i {
    color: var(--orange);
    width: 18px;
    margin-right: 4px;
}
.detail-content {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.9;
    padding: 10px 0 20px;
}
.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

/* 新闻详情 */
.news-detail-wrapper .detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}
.news-detail-wrapper .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray-400);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
}
.news-detail-wrapper .detail-meta i {
    color: var(--orange);
    width: 18px;
    margin-right: 4px;
}

/* -------------------- 8. 相关区块（产品/新闻） -------------------- */
.related-products,
.related-news {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-200);
}
.related-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.related-title i {
    color: var(--orange);
}

/* 相关产品网格 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.related-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.35s ease;
    text-align: center;
}
.related-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange);
}
.related-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px 10px 16px;
}
.related-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: transform 0.3s;
}
.related-item:hover img {
    transform: scale(1.05);
}
.related-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.related-item .related-spec {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-family: var(--font-en);
}

/* 相关新闻列表 */
.related-news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
}
.related-news-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s;
}
.related-news-item:hover {
    padding-left: 12px;
}
.related-news-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.related-news-item .rn-date {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-family: var(--font-en);
    flex-shrink: 0;
    min-width: 90px;
}
.related-news-item .rn-title {
    font-size: 0.95rem;
    color: var(--gray-700);
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-news-item:hover .rn-title {
    color: var(--orange);
}
.related-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-400);
    padding: 20px 0;
}

/* -------------------- 9. 内页响应式 -------------------- */
@media (max-width: 1100px) {
    .product-grid-four {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        flex: 1;
        width: 100%;
        padding: 16px 0;
    }
    .main-content {
        padding: 20px;
    }
    .page-content.with-sidebar {
        padding: 20px 0 50px;
    }
    .product-grid-four {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-detail-top {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .detail-gallery {
        flex: 1;
        width: 100%;
        max-width: 400px;
    }
    .detail-title {
        font-size: 1.5rem;
    }
    .related-news-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .related-news-item a {
        flex-wrap: wrap;
        gap: 4px 16px;
    }
    .related-news-item .rn-date {
        min-width: 80px;
        font-size: 0.7rem;
    }
    .news-item {
        padding: 16px 18px;
    }
    .news-title {
        font-size: 1rem;
    }
    .news-summary {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }
    .news-detail-wrapper .detail-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 700px) {
    .page-banner {
        padding: 110px 0 40px;
    }
    .page-banner h1 {
        font-size: 1.8rem;
    }
    .product-grid-four {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-info {
        padding: 10px 10px 14px;
    }
    .product-name {
        font-size: 0.9rem;
        white-space: normal;
    }
    .product-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .related-item img {
        height: 90px;
    }
    .detail-gallery img {
        max-height: 220px;
    }
    .news-item {
        padding: 14px 16px;
    }
    .news-meta {
        gap: 10px;
        flex-wrap: wrap;
    }
    .news-title {
        font-size: 0.95rem;
    }
    .news-summary {
        font-size: 0.85rem;
    }
    .news-detail-wrapper .detail-title {
        font-size: 1.2rem;
    }
    .news-detail-wrapper .detail-meta {
        gap: 12px;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    .related-news-item .rn-date {
        min-width: 70px;
    }
    .sidebar-news-list .news-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px;
    }
    .sidebar-module {
        padding: 0 14px 14px;
    }
    .sidebar-recommend li img {
        width: 50px;
        height: 50px;
    }
    .product-grid-four {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .product-image {
        padding-top: 70%;
    }
    .product-image img {
        padding: 8px;
    }
    .view-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
    .product-name {
        font-size: 0.8rem;
    }
    .product-spec {
        font-size: 0.7rem;
    }
    .page-banner h1 {
        font-size: 1.4rem;
    }
    .detail-title {
        font-size: 1.3rem;
    }
    .detail-meta {
        flex-direction: column;
        gap: 4px;
    }
    .content-detail .page-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}