/* Base Title Style */
.hero {
    width: 100%;
    height: 220px;
    background: url("../images/hero_cy.jpg") center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    margin-bottom: 20px;
}

.hero .hero-content {
    width: 1200px;
    max-width: 100%;
    text-align: left;
    padding: 0 20px;
    margin: 0 auto;
}

.hero .hero-content h1,
.hero .hero-content .page-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #4273fa;
    letter-spacing: 1px;
    margin-top: 0;
}

.hero .hero-content h1 span,
.hero .hero-content .page-title span {
    color: #4273fa;
}

.hero .hero-content p {
    font-size: 18px;
    color: #333;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
    font-weight: bold;
}

.base-tit {
    padding-left: 15px;
    font-size: 18px;
    border-left: 4px solid #1e6cff;
    margin-bottom: 20px;
    line-height: 20px;
    font-weight: bold;
    color: #333;
}

/* Ntitle Styles */
.ntitle {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ntitle h2,
.ntitle h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ntitle h2 .more-link,
.ntitle h1 .more-link {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.ntitle h2 .more-link:hover,
.ntitle h1 .more-link:hover {
    color: #1e6cff;
}

.ntitle h2 a,
.ntitle h1 a {
    color: #333;
    text-decoration: none;
}

.ntitle p {
    margin-bottom: 10px;
}

.ntitle p a {
    margin-right: 15px;
    color: #666;
    font-size: 14px;
}

.ntitle p a:hover, .ntitle p a.no-bg {
    color: #1e6cff;
}

.ntitle span {
    display: block;
    color: #999;
    font-size: 12px;
}

.ntitle span a {
    color: #999;
}

.ntitle span a:hover {
    color: #1e6cff;
}
/* Filter Box Redesign */
.filter-box {
    background: #fff;
    padding: 24px !important;
    margin-bottom: 30px;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0f0f0;
}

.filter-bar {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.filter-bar:last-child {
    margin-bottom: 0;
}

.filter-bar .label {
    color: #606266;
    font-size: 14px;
    margin-right: 4px;
    font-weight: 500;
    min-width: 48px;
}

.filter-bar .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 1;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f4f6f8;
    color: #606266;
    text-decoration: none;
    font-size: 14px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.filter-bar .chip:hover {
    background: #eef1f5;
    color: #303133;
}

.filter-bar .chip.active {
    background: #1e6cff;
    border-color: #1e6cff;
    color: #fff;
    box-shadow: 0 4px 10px rgba(30,108,255,0.3);
    font-weight: 500;
}

/* Icon Support - SVG Data URI */
[class^="icon-"], [class*=" icon-"] {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  margin-right: 6px;
  position: relative;
  top: -1px;
}

.icon-down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
}

.icon-eye {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.icon-view-num {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666666' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.icon-time {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999999' d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
}

/* Hover State adjustments for icons */
.btn-hover-down:hover .icon-down {
    /* No change needed as it's white */
}

.btn-hover-preview:hover .icon-eye {
    /* Ensure eye remains dark or changes color if needed */
}

/* Doc List Styles Redesign - Enhanced Visuals */
.doc-list-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 40px;
}

.doc-list {
    margin: 0 -12px;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.doc-item {
    width: 25%; /* 4 columns */
    padding: 0 12px;
    margin-bottom: 32px;
    box-sizing: border-box;
}

.doc-inner {
    background: #fff;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 8px 8px 24px rgba(0,0,0,0.08); /* Stronger base shadow */
    border: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.doc-inner:hover {
    box-shadow: 16px 16px 48px rgba(30,108,255,0.15); /* More pronounced hover shadow */
    transform: translateY(-6px);
    z-index: 5;
}

.doc-cover {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 130%; /* Slightly shorter than A4 */
    background: #f1f3f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-cover .preview-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 28px;
    box-sizing: border-box;
}

/* Decorative element for document stack effect */
.doc-cover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    background: transparent; /* Changed from #fff to transparent */
    box-shadow: none; /* Removed shadow as background is transparent */
    border-radius: 2px;
    z-index: 0;
}

.doc-cover img {
    position: relative;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 2px;
    background: transparent; /* Changed from #fff to transparent */
    z-index: 1;
    transform: scale(1.1);
}

.doc-inner:hover .doc-cover img {
    transform: scale(1.15);
    box-shadow: 0 12px 24px rgba(30,108,255,0.15);
}

/* Hide the text label since we have the icon */
.file-tag {
    display: none;
}

/* Document Type Label (Word/Excel) - Simulated */
.doc-cover::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231e6cff' d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.doc-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(86, 86, 87, 0.5); /* 进一步降低不透明度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.doc-inner:hover .doc-hover {
    opacity: 1;
}

.btn-hover-down,
.btn-hover-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 48px;
    border-radius: 24px;
    font-size: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(15px);
    opacity: 0;
}

.doc-inner:hover .btn-hover-down,
.doc-inner:hover .btn-hover-preview {
    transform: translateY(0);
    opacity: 1;
}

.doc-inner:hover .btn-hover-down { transition-delay: 0.05s; }
.doc-inner:hover .btn-hover-preview { transition-delay: 0.1s; }

.btn-hover-down {
    background: #1e6cff; /* 恢复为品牌蓝，与头部“去登录”一致 */
    color: #fff;
    width: 140px; /* 调整宽度 */
    height: 40px; /* 调整高度 */
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(30,108,255,0.3);
    border: none;
    margin-bottom: 16px;
}

.btn-hover-down:hover {
    background: #0c5ae9; /* 悬停加深 */
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(30,108,255,0.4);
    color: #fff;
}

.btn-hover-preview {
    background: rgba(207, 33, 40, 0.8);
    color: #fff;
    width: 140px;
    height: 40px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
    border: 1px solid rgba(207, 33, 40, 0.8);
    border-radius: 4px;
}

.btn-hover-preview:hover {
    background: #cf2130;
    color: #fff;
    border-color: #cf2130;
    transform: translateY(-2px) !important;
}

.doc-info {
    padding: 18px 20px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: none;
}

.doc-title {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.5;
    height: 48px;
    overflow: hidden;
    margin-bottom: 14px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.doc-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
    background-image: linear-gradient(transparent 96%, #1e6cff 96%, #1e6cff 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position-x: 0;
    transition: background-size 0.3s ease;
}

.doc-title a:hover {
    color: #1e6cff;
    background-size: 100% 100%;
}

.doc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8f959e;
    font-size: 13px;
    padding-top: 0;
    border-top: none;
}

.doc-meta .view {
    display: flex;
    align-items: center;
    background: #f7f8fa;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.doc-meta .view i {
    font-style: normal;
    margin-right: 4px;
    font-size: 12px;
}

/* Icon for view count */
.icon-view::before {
    content: "�"; 
    font-family: sans-serif;
    margin-right: 4px;
    font-size: 12px;
}

.doc-meta .like {
    font-family: Arial, sans-serif;
    color: #999;
}

/* Detail Page Styles */
.detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
}

.detail-left {
    width: 800px;
    min-height: 500px;
    background: #f5f5f5;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.detail-left img {
    max-width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.detail-right {
    flex: 1;
}

.detail-title {
    font-size: 24px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: bold;
}

.detail-params {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.detail-params li {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.detail-btns {
    margin-bottom: 30px;
}

.related-box {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 4px;
}

.nodata {
    text-align: center;
    padding: 50px 0;
    color: #999;
    font-size: 14px;
    width: 100%;
}

.btn-main-down {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: #1e6cff;
    color: #fff;
    font-size: 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 15px;
    font-weight: bold;
}
.btn-main-down:hover {
    background: #0c5ae9;
    color: #fff;
}

.btn-main-fav {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: #f5f5f5;
    color: #666;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    box-sizing: border-box;
}
.btn-main-fav:hover {
    background: #eee;
    color: #333;
}

.detail-intro {
    line-height: 1.6;
    color: #666;
}

.detail-intro h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    border-left: 4px solid #1e6cff;
    padding-left: 10px;
}

/* Icon Placeholders (Simple CSS shapes or characters if no font icons) */
.icon-word::before {
    content: "W";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #1e6cff;
    color: #fff;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    margin-right: 5px;
    border-radius: 2px;
}

/* Photo List Styles (CSS Grid) */
.photo-list {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.photo-list ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 130px);
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.photo-list ul li {
    position: relative;
    background: #fff;
    overflow: hidden;
    border-radius: 4px;
}

.photo-list ul li.col-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.photo-list ul li.col-6 {
    grid-column: 5 / 6;
    grid-row: 1 / 3;
}

/* ilist Overlay Styles */
.ilist a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ilist a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.ilist a:hover img {
    transform: scale(1.05);
}

.ilist .abs-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

.ilist .txt1 {
    position: absolute;
    bottom: 25px;
    left: 15px;
    right: 15px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ilist .txt2 {
    position: absolute;
    bottom: 8px;
    left: 15px;
    right: 15px;
    color: #ddd;
    font-size: 12px;
}

/* Pagination Styles */
.page-box {
    padding-top: 30px;
    margin-bottom: 60px;
    text-align: center;
    clear: both;
}

.page-box .digg {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    overflow: hidden;
    vertical-align: top;
}

.page-box .digg a,
.page-box .digg span {
    float: none;
    display: inline-block;
    margin: 0 5px;
    padding: 5px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    line-height: 20px;
    height: auto;
    border-radius: 2px;
    vertical-align: middle;
}

.page-box .digg a:hover,
.page-box .digg span.current {
    background: #1e6cff;
    color: #fff;
    border-color: #1e6cff;
}

.page-box .digg span.disabled {
    color: #ccc;
    border-color: #eee;
}

.related-list-wrap {
    width: 100% !important;
    padding: 0 !important;
}

/* Base Title Style */
@media (max-width: 1200px) {
    .doc-list-wrap, .ntitle, .wrapper, .detail-container, .related-box, .photo-list {
        width: 96%;
    }
    .doc-item {
        width: 25%; /* 4 columns */
    }
}

@media (max-width: 992px) {
    .doc-item {
        width: 33.33%; /* 3 columns */
    }
    
    .detail-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .detail-left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        min-height: auto;
    }
    
    .detail-left img {
        width: 100%;
        height: auto;
    }

    /* Photo List Tablet */
    .photo-list ul {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }
    .photo-list ul li.col-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
        height: 275px;
    }
    .photo-list ul li.col-6 {
        grid-column: auto;
        grid-row: auto;
        height: 130px;
    }
    .photo-list ul li {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 200px;
        padding: 40px 0;
    }
    
    .doc-item {
        width: 50%; /* 2 columns */
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .btn-main-down, .btn-main-fav {
        height: 44px;
        line-height: 44px;
        font-size: 16px;
    }
    
    .doc-cover {
        height: 180px;
    }
    
    /* Pagination Responsive */
    .page-box .digg {
        padding: 10px 0;
    }
    .page-box .digg span, .page-box .digg a {
        padding: 5px 8px;
        margin: 2px;
        font-size: 12px;
    }
    
    /* Photo List Mobile Landscape */
    .photo-list ul {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .photo-list ul li.col-1 {
        grid-column: 1 / 3;
        height: 200px;
    }
    .photo-list ul li {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .doc-list {
        margin: 0 -5px;
    }

    .doc-item {
        width: 50%; /* 2 columns */
        padding: 0 5px;
    }
    
    .ntitle h2 {
        font-size: 20px;
    }
    
    .doc-cover {
        height: 110px; /* Reduced height for small screens */
        min-height: auto;
    }

    .doc-info {
        padding: 8px 5px;
    }
    
    .doc-title {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .doc-meta {
        font-size: 11px;
    }
    
    /* Photo List Mobile Portrait */
    .photo-list ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .photo-list ul li.col-1 {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 200px;
    }
    .photo-list ul li.col-6 {
        grid-column: auto;
        grid-row: auto;
    }
    .photo-list ul li {
        height: 200px;
        width: 100%;
    }
}

/* Image Preview Modal */
.img-preview-modal{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(16,20,32,.6);backdrop-filter:blur(2px);z-index:10000;display:flex;align-items:center;justify-content:center}
.img-preview-inner{width:min(88vw,1200px);height:min(80vh,760px);background:#fff;border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden;animation:previewEnter .18s ease-out}
.img-preview-header{height:40px;padding:0 14px;border-bottom:1px solid #eee;background:#fff;display:flex;align-items:center}
.img-preview-header .left{display:flex;align-items:center;gap:10px}
.img-preview-header #previewTitle{font-size:14px;color:#333}
.img-preview-header .detail-link{font-size:12px;color:#1e6cff;text-decoration:none}
.img-preview-header .detail-link:hover{color:#0c5ae9}
.img-preview-body{flex:1;overflow:hidden;background:#f5f7fa;display:flex;align-items:center;justify-content:center;position:relative;padding:30px 30px 90px 30px}
.img-preview-body img{max-width:none;max-height:none;transform-origin:center center;box-shadow:0 8px 24px rgba(0,0,0,0.12);border-radius:4px}
.img-preview-body img{cursor:grab}
.img-preview-body img.dragging{cursor:grabbing}
.img-preview-close{position:absolute;right:10px;top:10px;width:32px;height:32px;line-height:32px;text-align:center;border:none;border-radius:16px;background:rgba(0,0,0,.06);color:#666;font-size:20px;cursor:pointer;z-index:3}
.img-preview-close:hover{background:rgba(0,0,0,.12)}
.img-preview-body .nav-btn{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:none;border-radius:22px;background:rgba(0,0,0,.5);color:#fff;font-size:24px;cursor:pointer;z-index:2}
.img-preview-body .nav-btn.prev{left:12px}
.img-preview-body .nav-btn.next{right:12px}
.img-preview-body .nav-btn:hover{background:rgba(0,0,0,.7)}
.img-preview-body .counter{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.5);color:#fff;padding:4px 10px;border-radius:12px;font-size:12px}
.img-preview-thumbs{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px;background:rgba(255,255,255,.92);border:1px solid #e5e5e5;padding:6px 10px;border-radius:22px;box-shadow:0 6px 16px rgba(0,0,0,.1);max-width:80%;overflow:auto;white-space:nowrap}
.img-preview-thumbs .thumb{display:inline-block;width:60px;height:42px;border-radius:6px;overflow:hidden;border:1px solid #ddd;cursor:pointer}
.img-preview-thumbs .thumb img{width:100%;height:100%;object-fit:cover}
.img-preview-thumbs .thumb.active{border-color:#1e6cff;box-shadow:0 0 0 2px rgba(30,108,255,.2)}
.img-preview-download{position:absolute;right:18px;bottom:18px}
.img-preview-download .download-btn{display:inline-block;height:36px;line-height:36px;padding:0 16px;border-radius:18px;background:#1e6cff;color:#fff;text-decoration:none;box-shadow:0 6px 16px rgba(30,108,255,.25)}
.img-preview-download .download-btn:hover{background:#0c5ae9;color:#fff}

.magnify-lens{position:absolute;width:120px;height:120px;border:1px solid #ddd;background:rgba(255,255,255,.3);border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.15);display:none;pointer-events:none}
.magnify-viewer{position:absolute;left:calc(100% + 12px);top:0;width:380px;height:280px;background:#fff;border:1px solid #eee;border-radius:8px;box-shadow:0 10px 24px rgba(0,0,0,.15);display:none;background-repeat:no-repeat;overflow:hidden}
.doc-cover{position:relative}
.
.img-preview-controls{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px;background:rgba(255,255,255,.9);border:1px solid #e5e5e5;padding:6px 10px;border-radius:22px;box-shadow:0 6px 16px rgba(0,0,0,.1)}
.img-preview-controls .ctrl-btn{width:auto;min-width:40px;height:28px;line-height:28px;padding:0 10px;border:none;border-radius:14px;background:#fff;color:#333;cursor:pointer;font-size:12px}
.img-preview-controls .ctrl-btn:hover{background:#f5f5f5}

@keyframes previewEnter{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}

@media (max-width: 1024px) {
  .doc-item { width: 33.33%; }
}

@media (max-width: 768px){
  .img-preview-inner{width:94vw;height:68vh}
  .img-preview-toolbar{height:44px}
  .doc-item { width: 50%; }
  .filter-box { padding: 16px !important; }
}

@media (max-width: 480px) {
  .doc-item { width: 100%; }
  .hero .hero-content h1 { font-size: 28px; }
  .hero .hero-content p { font-size: 14px; }
}
