/* 产品页专用样式 */
.products .product-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.product {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 24px;
    width: 320px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.product img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 16px;
}
.product h3 {
    margin: 0 0 10px 0;
    color: #005fa3;
}
.product p {
    font-size: 1rem;
    margin-bottom: 16px;
}
.product .learn-more {
    color: #005fa3;
    text-decoration: underline;
    font-weight: 500;
}
.product-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
    margin-top: 32px;
}
.product-hero-left {
    flex: 1 1 420px;
    min-width: 0;
}
.product-hero-right {
    flex: 0 0 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-hero-img {
    width: 420px;
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    background: #eaf4fb;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.product-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 18px;
    margin-top: 0;
}
.product-desc {
    font-size: 18px;
    margin-bottom: 32px;
    margin-top: 0;
}
.product-btn {
    display: inline-block;
    background: #0091dc;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    margin: 24px 0 18px 0;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.2s;
    cursor: pointer;
}
.product-btn:hover {
    background: #1976d2;
    color: #fff;
    text-decoration: none;
}
.product-tip {
    font-size: 16px;
    margin-top: 8px;
}
.product-tip b {
    font-weight: bold;
}
.product-detail-block {
    background: #fff;
    border-radius: 14px;
    margin: 40px 0 0 0;
    padding: 36px 32px 32px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.product-detail-title {
    font-size: 1.35rem;
    font-weight: bold;
    color: #005fa3;
    margin: 32px 0 18px 0;
}
.product-detail-list {
    font-size: 1.08rem;
    color: #222;
    margin: 0 0 18px 0;
    padding-left: 22px;
    line-height: 1.7;
}
.product-detail-list li {
    margin-bottom: 12px;
}
.product-detail-img-row {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    align-items: center;
    margin: 24px 0 18px 0;
    flex-wrap: wrap;
}
.product-detail-img {
    max-width: 340px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    background: #f5fafd;
}
.product-content-flex {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 32px;
}
.product-toc {
    flex: 0 0 220px;
    background: #f5fafd;
    border-radius: 10px;
    padding: 18px 16px 18px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 15px;
    position: sticky;
    top: 100px;
    max-height: 80vh;
    overflow-y: auto;
    min-width: 210px;
    max-width: 260px;
}
.toc-title {
    font-weight: bold;
    color: #005fa3;
    margin-bottom: 12px;
    font-size: 16px;
}
.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.toc-list > li {
    margin-bottom: 10px;
    font-size: 15px;
}
.toc-list > li > a {
    font-weight: 500;
}
.toc-list ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.toc-list > li > span,
.toc-list ol > li > span {
    font-weight: 500;
    color: #222;
    margin-right: 2px;
}
/* 关闭自动counter编号 */
.toc-ol,
.toc-ol > li,
.toc-ol > li:before,
.toc-sub-ol,
.toc-sub-ol > li,
.toc-sub-ol > li:before {
    counter-reset: none !important;
    counter-increment: none !important;
    content: unset !important;
}
.toc-sub-ol {
    list-style: none;
    padding-left: 1.5em;
    margin-top: 0.2em;
}
.toc-sub-ol > li {
    counter-increment: subitem;
    margin-bottom: 0.2em;
    position: relative;
}
.toc-sub-ol > li:before {
    content: counter(item) "." counter(subitem) ". ";
    color: #222;
    font-weight: 400;
    position: absolute;
    left: -1.5em;
}
.toc-sub-ol .toc-sub-ol {
    counter-reset: none !important;
}
.toc-sub-ol .toc-sub-ol > li:before {
    content: none !important;
}
/* 修正多级目录编号为1.1、1.2，不再递增为1.1.1、1.2.2 */
.toc-ol > li {
    counter-reset: subitem;
}
.toc-list a {
    color: #0074d9;
    text-decoration: none;
    font-weight: 500;
}
.toc-list a:hover {
    text-decoration: underline;
}
.toc-title {
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #1761a0;
    font-size: 1.1em;
}
@media (max-width: 1200px) {
    .product-hero-img {
        width: 320px;
    }
    .product-hero-right {
        flex-basis: 340px;
    }
}
@media (max-width: 900px) {
    .products .product-list {
        flex-direction: column;
        align-items: center;
    }
    .product {
        width: 90%;
    }
    .product-hero {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .product-hero-right {
        justify-content: flex-start;
        margin-top: 0;
        flex-basis: auto;
    }
    .product-hero-img {
        width: 180px;
    }
    .product-title {
        font-size: 36px;
    }
    .product-detail-block {
        padding: 18px 4vw 12px 4vw;
    }
    .product-detail-img-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .product-detail-img {
        max-width: 100%;
    }
}
@media (max-width: 1100px) {
    .product-content-flex {
        flex-direction: column;
        gap: 0;
    }
    .product-toc {
        position: static;
        max-width: 100%;
        margin-bottom: 18px;
    }
}
