/* ==================== 内页共用样式 ==================== */

/* 重置全局链接样式 */
.page-main a {
    text-decoration: none !important;
}

.page-main a:hover,
.page-main a:visited,
.page-main a:active {
    text-decoration: none !important;
}

/* 单页内容区样式 */
.page-banner {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
}

.page-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-layout {
    display: flex;
    gap: 40px;
}

/* 左侧栏目列表 */
.page-sidebar {
    flex: 0 0 260px;
    max-width: 260px;
}

.sidebar-title {
    background: linear-gradient(135deg, #1f4396 0%, #163a7a 100%);
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e8ecf1;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(31, 67, 150, 0.08);
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu li:last-child a {
    border-bottom: none;
}

.sidebar-menu li a::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #c5d3e8;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: linear-gradient(90deg, #f0f5ff 0%, #e8eeff 100%);
    color: #1f4396;
    font-weight: 500;
    padding-left: 25px;
}

.sidebar-menu li a:hover::before,
.sidebar-menu li a.active::before {
    background: #1f4396;
    width: 8px;
    height: 8px;
}

/* 右侧内容区 */
.page-main {
    flex: 1;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1f4396;
}

.content-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.content-path {
    font-size: 14px;
    color: #999;
    margin-left: auto;
}

.content-path a {
    color: #999;
    text-decoration: none;
}

.content-path a:hover {
    color: #1f4396;
}

.content-body {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.content-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

/* ==================== 产品列表页样式 ==================== */

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-item {
    border: 1px solid #2498f7;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-item:hover {
    background-color: #2498f7;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(36, 152, 247, 0.3);
}

.product-item a {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.product-name {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin: 0;
    text-decoration: none;
}

.product-item:hover .product-name {
    color: #fff;
}

.product-icon {
    width: 24px;
    height: 24px;
    background-color: #2498f7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.product-item:hover .product-icon {
    background-color: #fff;
    color: #2498f7;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #2498f7;
    border-color: #2498f7;
    color: #fff;
}

.pagination a.active {
    background-color: #1f4396;
    border-color: #1f4396;
    color: #fff;
}

.pagination .prev,
.pagination .next {
    padding: 0 15px;
}

.product-desc,
.product-meta {
    display: none;
}

/* ==================== 产品详情页样式 ==================== */

.product-detail {
    width: 100%;
}

.product-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.product-header .product-gallery-left {
    flex: 0 0 40%;
    max-width: 40%;
}

.product-header .product-info-wrap {
    flex: 1;
    max-width: 60%;
    display: flex;
    flex-direction: column;
}

.product-header .product-info {
    margin-bottom: 15px;
}

.product-header .product-info h2 {
    font-size: 26px;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.product-header .product-desc {
    display: block;
    margin: 0;
}

.product-header .product-summary {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.product-action-links {
    display: flex;
    gap: 15px;
}

.product-action-links .action-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.product-action-links .action-link:hover {
    background-color: #0056b3;
}

.product-main-img {
    width: 100%;
    padding-top: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f5f5f5;
    position: relative;
}

.product-main-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    width: 100%;
}

.product-thumb {
    flex: 1;
    aspect-ratio: 1 / 1;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
    position: relative;
}

.product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
}

.product-thumb:hover,
.product-thumb.active {
    border-color: #1f4396;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-params {
    margin-bottom: 25px;
}

.product-params h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
}

.param-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.param-table td {
    padding: 10px 0;
    font-size: 14px;
}

.param-table td:first-child {
    width: 100px;
    color: #999;
}

.param-table td:last-child {
    color: #333;
}

.product-inquiry {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.product-inquiry h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
}

.inquiry-btn {
    display: inline-block;
    background: #1f4396;
    color: #fff;
    padding: 12px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s;
}

.inquiry-btn:hover {
    background: #153275;
}

.product-intro {
    margin-top: 40px;
}

.product-intro h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1f4396;
}

.intro-content p {
    margin-bottom: 15px;
    text-indent: 2em;
    line-height: 1.8;
}

.intro-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.intro-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* ==================== 内页移动端响应式 ==================== */

@media screen and (max-width: 768px) {
    .page-banner {
        height: 180px;
        background-size: auto 100%;
        background-position: center;
        margin-top: 0;
    }

    .page-layout {
        flex-direction: column;
        gap: 20px;
    }

    .page-sidebar {
        flex: none;
        max-width: 100%;
    }

    .sidebar-title {
        font-size: 16px;
        padding: 12px 15px;
        border-radius: 8px 8px 0 0;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 2px 10px rgba(31, 67, 150, 0.06);
    }

    .sidebar-menu li {
        flex: 0 0 calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
    }

    .sidebar-menu li a {
        padding: 10px 12px;
        font-size: 13px;
        text-align: center;
        border: 1px solid #e8ecf1;
        border-radius: 6px;
        justify-content: center;
    }

    .sidebar-menu li a::before {
        display: none;
    }

    .sidebar-menu li a:hover,
    .sidebar-menu li a.active {
        background: linear-gradient(135deg, #1f4396 0%, #163a7a 100%);
        color: #fff;
        border-color: #1f4396;
        padding-left: 12px;
    }

    .content-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .content-title {
        font-size: 20px;
    }

    .content-path {
        width: 100%;
        margin-left: 0;
    }

    /* 产品列表移动端 */
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-img {
        height: 120px;
    }

    .product-item .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-header .product-desc {
        display: block;
        font-size: 12px;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* 产品详情移动端 */
    .product-header {
        flex-direction: column;
        gap: 20px;
    }

    .product-header .product-gallery-left {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .product-header .product-info-wrap {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .product-main-img {
        padding-top: 100%;
    }

    .product-thumbs {
        gap: 8px;
    }

    .product-thumb {
        flex: 1;
        aspect-ratio: 1 / 1;
    }

    .product-header .product-info {
        width: 100%;
    }

    .product-header .product-info h2 {
        font-size: 20px;
    }

    .product-header .product-desc {
        width: 100%;
    }

    .product-action-links {
        flex-direction: column;
    }

    .product-action-links .action-link {
        text-align: center;
    }

    .product-intro h4 {
        font-size: 16px;
    }

    .intro-content p,
    .intro-content li {
        font-size: 14px;
    }
}
