@import 'variables.css';
.document-nav {
    background: var(--color-bg-page);
}

.document-nav .section-content {
    background: var(--color-bg-page);
    padding-top: 40px;
    padding-bottom: 60px;
}

.docement-list {
    margin: -10px;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.docement-list .document-box {
    padding: 30px;
    margin: 10px;
    width: 335px;
    min-height: 330px;
    background: var(--color-bg-white);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-card);
}

.docement-list .document-box:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-md);
}

.docement-list .document-box .document-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.docement-list .document-box .document-header img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.docement-list .document-box .document-header:hover img {
    transform: scale(1.1);
}

.docement-list .document-box .document-header h5 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0;
}

.docement-list .document-box a {
    display: inline-block;
    line-height: 35px;
    height: 35px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    padding-left: 10px;
}

.docement-list .document-box a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-base);
}

.docement-list .document-box a:hover {
    color: var(--color-primary);
    padding-left: 16px;
}

.docement-list .document-box a:hover::before {
    opacity: 1;
}




.page .nav-left {
    padding-top: 130px;
    position: fixed;
    height: 100%;
    width: 320px;
    background: var(--color-bg-page);
    transition: all .5s;
    z-index: 10;
}

.page .nav-left img {
    height: 18px;
    width: 18px;
    transition: all .5s;
}

.page .nav-left .nav-head {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(240, 243, 245, 1);
    padding: 40px 0px 20px 0px;
    font-size: 16px;
    height: 130px;
}

.page .nav-left .nav-head .nav-head-top {
    cursor: pointer;
}

.page .nav-left .nav-head .nav-head-top,
.page .nav-left .nav-head .nav-head-bottom {
    padding-left: 40px;
    padding-right: 20px;
}

.page .nav-left .nav-head .nav-head-top:hover .overview {
    display: block;
}

.page .nav-left .nav-head .nav-head-top:hover .fboxRow .fboxRow img {
    transform: rotate(90deg);
}

.page .nav-left .nav-head .title {
    margin-left: 5px;
}


.page .nav-left .nav-head .icon-double {
    color: var(--color-text-placeholder);
    font-size: 24px;
}

.page .search-input {
    display: flex;
    padding-right: 10px;
    line-height: 32px;
    background: #FEFFFF;
    border: 1px solid var(--color-border);
    font-size: 14px;
    border-radius: var(--radius-input);
    transition: var(--transition-base);
}

.page .search-input:focus-within {
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 搜索框样式 */
.input-search {
    display: flex;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.input-search input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input) 0 0 var(--radius-input);
    font-size: 16px;
    color: var(--color-text-regular);
    background-color: var(--color-bg-white);
    transition: var(--transition-base);
}

.input-search input::placeholder {
    color: var(--color-text-placeholder);
}

.input-search input:-ms-input-placeholder {
    color: var(--color-text-placeholder);
}

.input-search input::-ms-input-placeholder {
    color: var(--color-text-placeholder);
}

.input-search .search-btn {
    width: 120px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-text-white);
    border: none;
    border-radius: 0 var(--radius-button) var(--radius-button) 0;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-search .search-btn:hover {
    background: var(--color-primary-light);
    transform: var(--hover-lift);
    box-shadow: var(--shadow-primary);
}

#document-input:focus {
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
    outline: none;
}

/* 横幅样式 */
.server-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: var(--color-text-white);
}

.server-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Ccircle cx="30" cy="30" r="4"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 1;
}

.server-banner .section-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    text-align: center;
}

.server-banner h1 {
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.server-banner .server-banner-desc2 {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.page .search-input input {
    flex: 1;
    padding-left: 10px;
    height: 32px;
    color: var(--color-text-placeholder);
    border: none;
    outline: none;
}




.page .nav-left .nav-div {
    overflow: auto;
    height: 100%;
    background: var(--color-bg-page);
}

.page .nav-left .nav-div .navName {
    padding: 12px 20px !important;
    letter-spacing: 0.05em;
    font-size: 11px;
    color: #5a5454;
    font-weight: var(--font-weight-bold);
}

.page .nav-left .nav-div .nav-list {
    padding-top: 10px;
}

.page .nav-left .nav-div .nav-list ul .a_active .active {
    color: var(--color-primary) !important;
}

.page .nav-left .nav-div .nav-list ul .nav-tab {
    list-style: none;
}

.page .nav-left .nav-div .nav-list ul .nav-tab .li-a {
    padding: 12px 15px 12px 40px;
    text-decoration: none;
    display: block;
    padding-bottom: 0;
    font-size: 14px;
    color: #5a5454;

}

.page .nav-left .nav-div .nav-list ul .a_active img,
.page .nav-left .nav-div .nav-list ul .active img {
    transform: rotate(180deg);
}

.page .nav-left .nav-div .nav-list ul .nav-tab .li-a .icon-bottom {
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-placeholder);
}

.page .nav-left .nav-div .nav-list ul .nav-tab .li-a .bx {
    font-size: 17px;
    vertical-align: text-top;
    margin-right: 6px;
}

.page .nav-left .nav-div .nav-list ul .nav-tab .nav-box {
    height: 0;
    overflow: hidden;
    position: relative;
}

.page .nav-left .nav-div .nav-list ul .nav-tab .nav-box::before {
    content: '';
    position: absolute;
    left: 50px;
    height: 100%;
    width: 1px;
    background: var(--color-border);

}

.page .nav-left .nav-div .nav-list ul .nav-show .nav-box {
    height: auto !important;
    transition: all 0.6s;
    padding-left: 55px;

}

.page .nav-left .nav-div .nav-list ul .nav-show .nav-box a {
    padding: 5px 70px;
    padding-left: 10px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    color: #5a5454;
    transition: all 0.3s;
    margin-left: 0px;
}

.page .nav-left .nav-div .nav-list ul .nav-show .nav-box .active-li-a {
    color: var(--color-primary) !important;
    background: rgba(24, 144, 255, 0.08);
    border-radius: var(--radius-input) 0px 0px var(--radius-input);
}

.page .nav-left .nav-div .nav-list ul .nav-show .nav-box .active-li-a::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 10px;
    height: 12px;
    width: 1px;
    background: var(--color-primary);

}

.page .nav-left .nav-div .nav-list ul .nav-show .nav-box a:hover {
    margin-left: 6px;
}

.page .nav-left .nav-div .nav-list .li-a {
    transition: all 0.8s;
    margin-left: 0px;
}

.page .nav-left .nav-div .nav-list .li-a:hover {
    margin-left: 6px;
}

.page .nav-right {
    display: flex;
    flex-direction: column;
    padding-left: 240px;
    transition: all .5s;
    z-index: 200;
}

.page .nav-top {
    flex: 1;
    height: 60px;
    width: 100%;
    padding: 20px;
    background-color: var(--color-bg-white);
    box-shadow: 10px 0px 17px rgba(72, 72, 72, 0.2);
    z-index: 200;
}

.page .content-page {
    z-index: 200;
    flex: 1;
    position: absolute;
    top: 60px;
    left: 240px;
    right: 0;
    bottom: 0;
    transition: all .5s;
    background-color: var(--color-bg-white);
    margin: 15px;
}



.page .page-content {
    padding: 40px 80px;
    margin-left: 320px;
    height: calc(100vh - 72px);
}


.page .page-content .document-head .document-time {
    margin-top: 16px;
    margin-bottom: 10px;
    color: var(--color-text-placeholder);
}



.page .page-content .document-cont {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 30px 0;
}


.page .guide-box {
    padding-left: 10px;
    border-left: 1px solid var(--color-border);
    width: 202px;
    color: var(--color-text-secondary);
}

.page .guide-box a {
    color: var(--color-text-secondary);
}

.page .guide-box .active {
    position: relative;
}

.page .guide-box .active a {
    color: var(--color-primary);
    position: relative;
}

.page .guide-box .active::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 2px;
    height: 16px;
    width: 1px;
    background: var(--color-primary);
}

.page .guide-box a:hover {
    color: var(--color-primary);
}



.overview {
    display: none;
    position: absolute;
    left: 320px;
    top: 0px;
    max-height: calc(100vh - 120px);
    padding: 30px 40px;
    background: var(--color-bg-page);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    overflow: auto;
}

.overview .overview-content {
    background: transparent;
}

.overview .overview-content .footer-nav-head {
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.overview .footer-content .footer-nav {
    padding: 0px;
    padding-top: 30px;
}

/* 搜索结果 */
.document-search .section-content {
    padding-top: 40px;
    padding-bottom: 20px;
}

.document-details .section-content {
    padding-top: 20px;
    padding-bottom: 60px;
}

.document-details .section-content .document-details-item {
    padding: 20px 0;
}

.document-details .section-content h5 {
    margin-bottom: 15px;
}

.document-details .section-content p {
    color: var(--color-text-secondary);
    line-height: 21px;
}

.document-details .section-content .keywords {
    color: var(--color-primary);
}

.document-details .section-content .news-box-head {
    border: none;
}



/* 文档总览 */
.document-details .document-view-item {
    margin-bottom: 20px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-input);
    position: relative;
}

/* 空状态图片样式 */
.common-empty img {
    width: 100px;
    height: auto;
    max-width: 100%;
    margin-bottom: 15px;
}

.document-details .document-view-item::before {
    position: absolute;
    left: 10px;
    top: 14px;
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-primary);
}

.document-details .document-view-item .document-view-head {
    background: var(--color-bg-page);
    opacity: 1;
    border-radius: var(--radius-input) var(--radius-input) 0px 0px;
    height: 32px;
    color: var(--color-text-secondary);
    line-height: 32px;
    padding-left: 24px;
}

.document-details .document-view-item .document-view-cont {
    padding: 30px;
}

.document-details .document-view-item .document-view-cont a {
    width: 210px;
    padding-right: 24px;
}

.document-details-left {
    width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 为文档卡片添加入场动画 */
.document-box {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.document-box:nth-child(1) {
    animation-delay: 0.1s;
}

.document-box:nth-child(2) {
    animation-delay: 0.2s;
}

.document-box:nth-child(3) {
    animation-delay: 0.3s;
}

.document-box:nth-child(4) {
    animation-delay: 0.4s;
}

.document-box:nth-child(5) {
    animation-delay: 0.5s;
}

.document-box:nth-child(6) {
    animation-delay: 0.6s;
}

/* 搜索框动画效果 */
.input-search input:focus {
    animation: pulse 0.5s ease-in-out;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .docement-list .document-box {
    width: 300px;
    min-height: 300px;
  }
}

@media (max-width: 992px) {
  .docement-list .document-box {
    width: 45%;
    min-height: 280px;
  }

  .server-banner h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  /* Banner区域 - 移动端优化 */
  .server-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: var(--color-text-white);
  }
  .server-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Ccircle cx="30" cy="30" r="4"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 1;
  }
  .server-banner .section-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    text-align: center;
  }
  .server-banner h1 {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .server-banner .server-banner-desc2 {
    font-size: 16px;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto 30px;
    opacity: 0.9;
  }

  /* 搜索框 - 移动端优化（按照设计图） */
  .input-search {
    display: flex;
    margin-top: 40px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-input);
    overflow: hidden;
    align-items: stretch;
  }
  .input-search input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: var(--color-text-regular);
    background-color: var(--color-bg-white);
    transition: var(--transition-base);
    box-sizing: border-box;
    margin: 0;
  }
  .input-search .search-btn {
    width: 80px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-text-white);
    border: none;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    white-space: nowrap;
  }

  /* 文档列表 - 与桌面端保持一致 */
  .docement-list {
    margin: -10px;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .docement-list .document-box {
    padding: 30px;
    margin: 10px;
    width: 335px;
    min-height: 330px;
    background: var(--color-bg-white);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-card);
  }

  /* 页面布局 */
  .page .nav-left {
    position: static;
    width: 100%;
    height: auto;
    padding-top: 0;
  }
  .page .nav-left .nav-head {
    position: static;
    height: auto;
    padding: 20px;
  }
  .page .nav-right {
    padding-left: 0;
  }
  .page .content-page {
    position: static;
    margin: 15px;
  }
  .page .page-content {
    margin-left: 0;
    padding: 20px;
    height: auto;
  }

  /* 搜索结果 */
  .document-search .section-content {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* 文档详情 */
  .document-details .section-content {
    padding-top: 20px;
    padding-bottom: 40px;
  }
  .document-details .document-view-item .document-view-cont {
    padding: 20px;
  }
  .document-details .document-view-item .document-view-cont a {
    width: 100%;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  /* Banner区域 - 移动端优化 */
  .server-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: var(--color-text-white);
  }
  .server-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Ccircle cx="30" cy="30" r="4"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 1;
  }
  .server-banner .section-content {
    position: relative;
    z-index: 2;
    padding: 40px 15px;
    text-align: center;
  }
  .server-banner h1 {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .server-banner .server-banner-desc2 {
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
    margin: 0 auto 20px;
    opacity: 0.9;
  }

  /* 搜索框 - 移动端优化（按照设计图） */
  .input-search {
    display: flex;
    margin-top: 40px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-input);
    overflow: hidden;
    align-items: stretch;
  }
  .input-search input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: var(--color-text-regular);
    background-color: var(--color-bg-white);
    transition: var(--transition-base);
    box-sizing: border-box;
    margin: 0;
  }
  .input-search .search-btn {
    width: 80px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-text-white);
    border: none;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    white-space: nowrap;
  }

  /* 文档列表 - 移动端优化 */
  .docement-list {
    margin: -8px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .docement-list .document-box {
    padding: 20px;
    margin: 8px;
    width: calc(100% - 16px);
    max-width: 335px;
    min-height: 280px;
    background: var(--color-bg-white);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-card);
    box-sizing: border-box;
  }
  .docement-list .document-box .document-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  .docement-list .document-box a {
    display: inline-block;
    line-height: 30px;
    height: 30px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    padding-left: 10px;
    font-size: 14px;
  }

  /* 页面布局 */
  .page .page-content {
    padding: 15px;
  }

  /* 文档详情 */
  .document-details .document-view-item .document-view-cont {
    padding: 15px;
  }

  /* 导航栏 */
  .nav-left {
    display: none;
  }

  /* 文档导航 */
  .document-nav .section-content {
    padding-top: 30px;
    padding-bottom: 40px;
  }
}
