#top {
    scroll-margin-top: 50px; /* 等于你导航栏的高度 */
}
/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #444;
    transition: all 0.3s;
}
a:hover {
    color: #3498db;
}
ul {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
button {
    cursor: pointer;
    border: none;
    background: none;
}
input:focus {
    outline: none;
}

/* ===== 导航栏样式（第一份原样加入） ===== */
.header {
    background-color: rgb(240, 245, 249);
    padding: 10px 0;
}
.nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px;
}

/* Logo容器 */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.logo {
    font-size: 20px;
    font-weight: bold;
    color: #3498db;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.2;
}
.logo:hover {
    color: #e74c3c;
}
.logo-url {
    font-size: 12px;
    color: #666;
    margin-top: 0;
    white-space: nowrap;
}

/* 搜索框（第一份原样） */
.search-wrapper {
    display: flex;
    align-items: center;
    transition: all 0.3s;
}
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
}
.search-input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    width: 80%;
    max-width: 300px;
    font-size: 14px;
}
.search-btn {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin-left: 10px;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.search-btn:hover {
    background-color: #2980b9;
}

/* 移动端搜索触发按钮（第一份原样） */
.search-toggle-btn {
    display: none;
    cursor: pointer;
    padding: 8px;
    color: #3b63b9c7;
    margin-left: 0;
    margin-right: 10px;
}
.search-toggle-btn svg {
    display: block;
}

/* 导航链接 */
.nav-links {
    display: flex;
    align-items: center;
}
.nav-links li {
    margin: 0 10px;
}
.nav-links a {
    font-size: 15px;
    white-space: nowrap;
}

/* ===== 横幅区域 ===== */
.banner {
    background-color: #3498db;
    padding: 40px 0;
    text-align: center;
    color: #fff;
}
.banner h2 {
    font-size: 32px;
    margin-bottom: 10px;
}
.banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== 主要内容区 ===== */
.main-content {
    display: flex;
    margin-bottom: 50px;
    padding-top: 10px;
}
.content-left {
    flex: 1;
    width: 100%;
    max-width: 300px;
}
.content-right {
    flex: 3;
    margin-left: 20px;
}
.sidebar-sticky {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 110px);
    width: inherit;
    max-width: inherit;
    overflow-y: auto;
}

/* ===== 资料板块通用样式 ===== */
.section {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.section-title {
    padding: 5px 20px;
    color: #fff;
    border-radius: 8px;
    background: rgb(25, 181, 251);
    font-size: 16px;
}
.doc-list {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 10px 0 10px;
}
.doc-card {
    width: 25%;
    padding: 0 5px 20px;
}
.doc-card-inner {
    border-bottom: 1px solid #eee;
    border-radius: 6px;
    padding: 5px;
    transition: transform 0.3s;
    height: 100%;
}
.doc-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.doc-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f1f1f1;
}
.doc-title {
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    transition: color 0.3s;
}
.doc-title:hover {
    color: #3498db;
}
.price-container {
    display: flex;
    align-items: center;
}
.doc-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}
.price-beautify {
    color: #3498db;
    margin-left: 5px;
    font-size: 14px;
    opacity: 0.8;
}

/* 热门资料 2列布局 */
.two-columns {
    padding-bottom: 10px;
}
.two-columns .doc-card {
    width: 50%;
    padding: 0px;
}
.two-columns .doc-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.two-columns .doc-card-inner:hover {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.15);
    border-color: #bde0fe;
}
.two-columns .doc-title {
    margin-bottom: 0;
    font-size: 14px;
    flex: 1;
    line-height: 1.4;
}
.two-columns .price-container {
    min-width: 38px;
    justify-content: flex-end;
}
.two-columns .doc-price {
    font-size: 15px;
}
.two-columns .doc-card-inner .rank-num {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 8px;
}
.two-columns .doc-card:nth-child(1) .rank-num { background-color: #FF6B6B; }
.two-columns .doc-card:nth-child(2) .rank-num { background-color: #4ECDC4; }
.two-columns .doc-card:nth-child(3) .rank-num { background-color: #45B7D1; }
.two-columns .doc-card:nth-child(4) .rank-num { background-color: #96CEB4; }
.two-columns .doc-card:nth-child(5) .rank-num { background-color: #FFEAA7; }
.two-columns .doc-card:nth-child(6) .rank-num { background-color: #DDA0DD; }
.two-columns .doc-card:nth-child(7) .rank-num { background-color: #FFA07A; }
.two-columns .doc-card:nth-child(8) .rank-num { background-color: #87CEEB; }
.two-columns .doc-card:nth-child(9) .rank-num { background-color: #F08080; }
.two-columns .doc-card:nth-child(10) .rank-num { background-color: #98D8C8; }

/* ===== 右侧边栏 ===== */
.sidebar-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 15px 5px 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sidebar-title {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.contact-info {
    display: flex;
    align-items: center;
    padding: 5px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ededed;
}
.contact-info .contact-icon {
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-color: #f1f1f1;
    border-radius: 50%;
    background-image: url("/skin/wlogo.png");
    background-size: cover;
    background-position: center;
}
.help-content {
    font-size: 14px;
    line-height: 1.6;
}
.help-item {
    margin-bottom: 12px;
}
.help-question {
    font-weight: bold;
    margin-bottom: 4px;
}

/* ===== 页脚 ===== */
.footer {
    background-color: rgb(240, 245, 249);
    color: #333;
    padding: 20px 0 30px;
    text-align: center;
}
.footer-info {
    margin-bottom: 15px;
    font-size: 14px;
}
.footer-copyright {
    font-size: 13px;
}
.footer a {
    color: #007bff;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background-color: rgb(240, 245, 249);
    padding: 8px 20px;
    border-top: 10px solid #eee;
}

/* ===== 回到顶部/底部（已修复） ===== */
.fa { display: inline-block; font-size: inherit; text-rendering: auto; }
i { font-style: normal; }
i.fa { padding-right: 5px; }

/* 回到顶部/底部按钮容器 */
.backtop {
    z-index: 999;
    bottom: 130px;
    position: fixed;
    right: 10px;
    cursor: pointer;
}

/* 按钮盒子 */
.backtop a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    background-color: #58a5c3;
    border-radius: 4px;
    transition: background-color 0.2s;
    padding-left: 5px; /* 整体右移 */

}

/* hover 变色 */
.backtop a:hover {
    background-color: #999;
}

/* 图标基础 */
.backtop i {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.fa-angle-up:before {
    content: '';
    display: block;
    width: 12px;        /* ← 原来是 10px，改大 */
    height: 12px;       /* ← 原来是 10px，改大 */
    border-top: 2px solid white;   /* ← 线条加粗一点 */
    border-left: 2px solid white;
    transform: rotate(45deg);
}

.fa-angle-down:before {
    content: '';
    display: block;
    width: 12px;        /* ← 同上 */
    height: 12px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
}


/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .doc-card {
        width: 33.333%;
    }
}

@media (max-width: 768px) {
    .nav {
        align-items: center;
        padding-right: 15px;
    }
    .search-toggle-btn {
        display: block;
        margin-left: 0;
        margin-right: 10px;
    }
    .search-wrapper {
        display: none;
        position: absolute;
        left: 15px !important;
        right: 15px !important;
        top: calc(100% + 9px);
        background-color: rgb(240, 245, 249);
        padding: 10px;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 10;
        width: auto !important;
        margin: 0 !important;
    }
    .search-wrapper.active {
        display: flex;
    }
    .search-input {
        max-width: none;
    }
    .nav-links {
        margin-left: auto;
    }
    .nav-links li:nth-child(n+4) {
        display: none;
    }
    .main-content {
        flex-direction: column;
        padding-top: 10px;
        margin-bottom: 20px;
    }
    .content-left {
        max-width: 100%;
    }
    .content-right {
        margin-left: 0;
        margin-top: 15px;
    }
    .sidebar-sticky {
        position: static !important;
        max-height: none;
        overflow-y: visible;
    }
    .banner h2 {
        font-size: 26px;
    }
    .banner p {
        font-size: 16px;
    }
    .doc-card {
        width: 50%;
    }
    .two-columns .doc-card {
        width: 100%;
    }
    .two-columns .doc-title {
        font-size: 13px;
    }
    .breadcrumb {
        display: none;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 16px;
    }
    .logo-url {
        font-size: 10px;
    }
    .search-input {
        padding: 6px 10px;
        font-size: 13px;
    }
    .nav-links a {
        font-size: 13px;
    }
    .banner {
        padding: 25px 0;
    }
    .banner h2 {
        font-size: 22px;
    }
    .search-wrapper {
        width: calc(100% - 30px);
    }
    .main-content {
        margin-bottom: 15px;
    }
    .content-right {
        margin-top: 10px;
    }
    .sidebar-box {
        margin-bottom: 10px;
    }
}

@media (min-width: 769px) {
    .search-toggle-btn {
        display: none;
    }
    .search-wrapper {
        display: flex !important;
        margin-left: 20px;
    }
    .search-input {
        max-width: none;
    }
    .nav-links {
        margin: 0 auto;
    }
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    body {
        padding-top: 50px;
    }
    .product-image-column,.product-info-column{float:left;}
    .product-image-column{width:44%;height:305px;padding-right:2.3em;}
    .product-info-column{width:56%;height:305px;}
}

/* ===== 以下为第二份原有内容 ===== */

/* 主内容容器 */
.main-content{margin:0 auto 10px;width:100%;max-width:1100px;}
.product-image-column,.product-info-column{
    padding-bottom:0.5em;position:relative;
    background:#fff;border-bottom:5px solid #ededed;
}
@media screen and (max-width:1100px){
    .main-content{width:100%;}
}
.image-center{text-align:center;}
.responsive-img{max-width:100%;max-height:300px;}

/* 产品标题区域 */
.product-title-area{padding:1em;font-size:65%;}
@media (max-width: 576px) {
    .product-title-area{font-size:55%;}
}

/* 价格区域 */
.product-price-area{
    width:100%;padding:0 20px;
    background-color:#fff2e8;
}
.meta-info-list{z-index:1;position:relative;min-height:35px;_height:35px;zoom:1;}
.meta-label{display:inline;float:left;width:5em;color:#6c6c6c;}
.meta-content{overflow:hidden;*zoom:1;}
.price-item{width:100%;line-height:30px;}
.price-item strong{
    position:relative;top:-2px;vertical-align:middle;padding-right:5px;
    font-size:21px;font-weight:700;font-family:Tahoma,Arial,Helvetica,sans-serif;
    color:#f40;overflow:hidden;*zoom:1;
}
.digital-version .meta-content{
    font-size:12px;font-weight:400;color:rgb(153, 0, 255);
    padding-left:10%;
}
@media (max-width:1179px){
    .price-item{width:auto;}
}

/* 卖家信息 */
.seller-info-area{padding:9px 1em;}
.seller-logo {
    border-radius: 8px;display: inline-block;
    width: 70px;height: 70px;
    background-image: url("/skin/dlogo.png");
    background-repeat: no-repeat;background-size: contain;
    background-position: center;vertical-align: middle;
    float: left;color: #6c6c6c;
}
.seller-name{padding-left:6em;}
.contact-icon2{max-width:39%;max-height:3em;padding-left:1em;}
.level-icon{
    padding-left:6.5em;
    background-image: url("/skin/blue3.png");
    background-repeat: no-repeat;background-size: contain;
    background-position: center;
}
.section-divider{margin-top:1em;border-bottom:1px solid #ededed;}

/* 评分 */
.rating-section .rating-list{
    display:-webkit-box;display:flex;text-align:center;
    color:#999;font-size:12px;margin:0.5em 0 0.5em;
}
.rating-list:empty{margin:0;}
.rating-list li{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;}
.rating-list li b{
    padding-right:6%;background-position:100% 50%;
    background-repeat:no-repeat;background-size:12px;font-weight:400;
}
.rating-score-blue{color:#3300FF;}
.rating-score-red{color:#FF0000;}
.rating-score-pink{color:#FF0066;}

img{border:0;vertical-align:middle;}

/* 内容详情 */
.section.content-detail {border: 1px solid #e0e0e0;}
.section.content-detail .section-title {
    text-align: center;background-color: #d5d5d5;
    padding: 3px;color: #666;
}
.content-detail .content-wrapper {padding: 20px;line-height: 1.8;}
.content-detail div {margin: 0 0 5px 0;}
.content-detail p {
    text-indent: 2em;margin: 0 0 5px 0;
    text-align: justify;word-wrap: break-word;
    line-height: 30px;word-break: break-all;
}
.content-detail img {
    text-align: center;margin: 10px 0;
    max-width: 100%;height: auto;
    border-radius: 6px;box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.article_info{padding:5px;border:solid 1px #ececec;background:#fafafa;font-size: 13px;}
.article-url {color: #FF5E52;}

/* 底部固定栏 */
.pdf_bottom{
    max-width: 810px;margin: 0px auto;position: fixed;
    bottom: 0px;height: 3rem;width: 100%;
    border-top: 1px solid rgba(229, 229, 229, 0.93);
    background-color: rgb(255, 255, 255);z-index: 2;
}
.pdf_bottom a{text-decoration: none;color: inherit;}
.pdf_bottom .btn_fav_cart{
    text-align: center;font-weight: normal;font-size: 14px;
    color: rgb(77, 82, 93);width: 28%;height: 100%;float: left;
}
.pdf_bottom .fav{width: 50%;height: 100%;float: left;background-color: #F2F2F2;}
.pdf_bottom .fav a{
    display: block;width: 100%;height: 3.5rem;margin-top: 0rem;
    background-position: center 0.05rem;background-repeat: no-repeat;
    background-size: 2.1rem 3.9rem;background-image: url("/skin/fav.png");
}
.pdf_bottom .cart,.pdf_bottom .shop_tab{width: 50%;float: left;}
.pdf_bottom .cart span,.pdf_bottom .shop_tab span{
    display: block;position: relative;width: 1.6rem;height: 1.6rem;
    margin: 0.01rem auto 0;text-indent: -99rem;
    background: url("/skin/kf.png") center center / 1rem 1rem no-repeat;
    background-size: 1.5rem 1.5rem;
}
.lxdz2 {
    background-image: url(/skin/wlogo.png);
    border-radius: 6px;display: inline-block;
    vertical-align: middle;margin-right: 5px;
    position: relative;width: 32px;height: 32px;
}
.pdf_bottom .cart_name {line-height: 1.3rem;}
.pdf_bottom .btn_con{width: 72%;height: 100%;float: left;}
.pdf_bottom .btn_con button{
    display: block;float: left;height: 100%;line-height: 3rem;
    font-size: 1rem;text-align: center;color: white;border: 0px none;
}
.pdf_bottom .btn_con .buy{
    width: 50%;height: 100%;border-radius: 0.2rem 0px 0px 0.2rem;
    background-image: linear-gradient(to right, rgb(255, 197, 0), rgb(255, 148, 2));
}
.pdf_bottom .btn_con .add{
    width: 50%;border-radius: 0px 0.2rem 0.2rem 0px;
    background-image: linear-gradient(to right, rgb(255, 122, 0), rgb(254, 86, 10));
}
.space{height:2.5rem;}
@media (max-width:768px){
    .space{height:2.5rem;}
}

/* 弹窗 */
#popup-overlay {
    top: 0;left: 0;right: 0;bottom: 0;
    background-color: rgba(0,0,0,0.3);z-index: 1;display: none;
}
.popup-wrapper, .popup-shade {
    position: fixed;_position: absolute;pointer-events: auto;
}
.popup-wrapper {
    -webkit-overflow-scrolling: touch;top: 150px;left: 0;
    margin: 0;padding: 0;-webkit-background-clip: content;
    border-radius: 2px;box-shadow: 1px 1px 50px rgba(0,0,0,.3);
}
.popup-content {
    max-width: 280px;background: #fff;border-radius: 10px;border: 1px solid #ddd;
}
.popup-wrapper.popup-content {
    width: 90%;position: absolute;top: 50%;left: 50%;
    transform: translate(-50%, -50%);
}
.popup-header {
    height: auto;line-height: 24px;padding: 10px 15px;
    background: 0 0;border-bottom: 1px solid #ddd;margin: 0;
    display: flex;justify-content: flex-start;flex-flow: nowrap;
    font-size: 15px;color: #666;
}
.popup-logo {
    border-radius: 10px;display: inline-block;
    width: 60px;height: 60px;
    background-image: url("/skin/dlogo.png");
    background-repeat: no-repeat;background-size: contain;
    background-position: center;margin-right: 15px;vertical-align: middle;
}
.popup-header .title-text b {display: block;color: #333;margin-top: 7px;}
.popup-body {position: relative;overflow: auto;}
.popup-steps {padding: 5px 10px;}
.popup-steps .step-item i {
    display: inline-block;border-radius: 50%;border: 1px solid #ddd;
    width: 20px;height: 20px;line-height: 20px;
    text-align: center;margin-right: 10px;
}
.popup-steps .step-desc {
    margin-left: 10px;border-left: 1px solid #ddd;padding-left: 10px;
}
.popup-steps .step-desc img {margin: 8px 0 5px;}
.popup-footer-btn {
    margin: 0px 15px 15px;background: #65bb0a;
    border-radius: 5px;line-height: 39px;font-size: 1pc;
    color: #fff;text-align: center;
}
.popup-footer-btn a {display: block;color: #fff;}
.popup-close-container {
    position: absolute;right: 15px;*right: 0;top: 15px;
    font-size: 0;line-height: initial;
}
.popup-content .popup-close-btn {
    width: 25px;height: 25px;top: -7px;right: -7px;
    background: url(/skin/close.png) no-repeat center center #eee;
    background-size: 80% auto;border-radius: 50%;position: absolute;
}
.popup-close-btn:hover {opacity: .7;}