/* 公共CSS样式 */
:root {
  --primary: #1a56db;
  --primary-dark: #0e3aa5;
  --secondary: #0e9f6e;
  --light: #f3f4f6;
  --dark: #1f2937;
  --danger: #e02424;
  --success: #0e9f6e;
  --warning: #f59e0b;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9fafb;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact span {
  margin-right: 20px;
}
.header-contact span:first-child{
    display:inline-block;
    width: 110px;
    background: url('/static/web/images/tel.svg') -4px 2px;
}

.header-actions a {
  color: var(--white);
  text-decoration: none;
  margin-left: 15px;
}

.main-header {
  padding: 15px 0;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}
.logo a {
    text-decoration: none;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}
.logo-text i{
    color: var(--danger);
}
.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.logo-text span {
  color: var(--secondary);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 30px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--light-gray);
  border-radius: 30px;
  font-size: 16px;
  transition: all 0.3s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 7px;
  background: var(--primary);
  border: none;
  color: white;
  padding: 7px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

.user-actions {
  display: flex;
  align-items: center;
}

.user-actions a {
  margin-left: 20px;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.user-actions a i {
  margin-right: 5px;
  font-size: 18px;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 导航菜单 */
nav {
  background-color: var(--primary);
  padding: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 15px 20px;
  font-size: 16px;
  transition: background 0.3s;
}

.nav-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu li a i {
  margin-right: 8px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary-dark);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
}

.dropdown-content a {
  color: var(--dark);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid var(--light-gray);
}

.dropdown-content a:hover {
  background-color: var(--light);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* 首页横幅 */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,0 100,100" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 100% 100%;
  opacity: 0.3;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  position: relative;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #0d8b62;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* 分类区域 */
.section {
  padding: 15px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.category-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, var(--primary), #3b82f6);
  color: white;
  font-size: 48px;
}

.category-content {
  padding: 25px 20px;
}

.category-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.category-count {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 15px;
}

.category-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.category-link i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.category-link:hover i {
  transform: translateX(5px);
}

/* 特色模板 */
.templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px 10px;
  margin-bottom: 10px;
}

.template-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.template-image {
  height: 150px;
  background-color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  position: relative;
}
.template-image > img {
  width: 80px;
  height: 80px;
}
.template-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--danger);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 600;
}

.template-content {
  padding: 20px;
}

.template-title {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--dark);
  height: 60px;
  line-height: 30px;
  overflow: hidden;
  font-weight: 400;
}

.template-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--gray);
}

.template-price {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 15px;
}

.template-actions {
  display: flex;
  justify-content: space-between;
}
.template-actions-btn {
  display: flex;
  gap: 10px;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 14px;
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

/* 首页列表 */
.links-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.link-list {
  flex: 1;
  min-width: 300px;
  max-width: calc(50% - 10px);
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-list:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.list-header {
  background: linear-gradient(to right, var(--primary), #3b82f6);
  color: white;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.list-header i {
  margin-right: 10px;
}
.list-header a {
  margin-left: auto;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}
.list-header a:hover {
  color: #fcc;
}
.list-content {
  padding: 20px;
}

.link-item {
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  transition: all 0.2s ease;
  overflow: hidden;
  height: 34px;
  line-height: 34px;
}

.link-item:last-child {
  border-bottom: none;
}

.link-item:hover {
  background-color: #f9f9f9;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: -10px;
  margin-right: -10px;
  border-radius: 6px;
}

.link-title {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
  flex-grow: 1;
  padding-right: 15px;
}

.link-title:hover {
  color: #e74c3c;
  text-decoration: underline;
}

.link-date {
  color: #7f8c8d;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .container {
    padding: 15px;
  }

  dt {
    font-size: 1.2rem;
    padding: 15px 20px;
  }

  dd {
    padding: 12px 20px;
  }
  .link-list {
    min-width: 100%;
  }
}
/* 会员专区 */
.membership {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  border-radius: 10px;
  margin: 40px 0;
}

/* 列表页样式 */
.page-header {
  background-color: var(--primary);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
}

.breadcrumb {
  display: flex;
  list-style: none;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.breadcrumb li {
  margin-right: 10px;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: white;
  text-decoration: underline;
}

.filters {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--dark);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option {
  background: var(--light);
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-option.active a {
  color: #fff;
  text-decoration: none;
}
.filter-option a {
  color: #000;
  text-decoration: none;
}
.filter-option:hover,
.filter-option.active,
.filter-option a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.list-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sort-select {
  padding: 8px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  background: white;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  list-style: none;
}

.pagination li {
  margin: 5px;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 5px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.pagination a:hover,
.pagination .active > span {
  background: var(--primary);
  color: white;
}
.pagination .disabled > span {
  background: var(--light-gray);
}

/* 内容页样式 */
.template-detail {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.template-header {
  padding: 30px;
  background: linear-gradient(to right, var(--primary), #3b82f6);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.template-header-badge {
  background: var(--secondary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.template-meta-info {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.template-body {
  display: flex;
  padding: 0;
}

.template-content-left {
  flex: 3;
  padding: 30px;
  border-right: 1px solid var(--light-gray);
}

.template-content-right {
  flex: 1;
  padding: 30px;
}

.template-section {
  margin-bottom: 30px;
}
.template-section pre{
    max-width: 894px;
}
.template-section h2,
.template-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-gray);
}
.template-section h3 {
  font-size: 1.2rem;
}
.template-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}
.kws a{
    margin-right:10px;
    color: #3498db;
}
.kws a:hover{
    color: #e74c3c;
}
.template-features {
  list-style: none;
}

.template-features li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--light-gray);
  display: flex;
  align-items: center;
}
.template-features li a {
  font-weight: 600;
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
  flex-grow: 1;
  padding-right: 15px;
}
.template-features li a:hover {
  color: #e74c3c;
  text-decoration: underline;
}
.template-features li i {
  color: var(--secondary);
  margin-right: 10px;
  font-size: 1.2rem;
}

.price-box {
  background: var(--light);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 25px;
}

.price {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  margin: 10px 0;
}

.price-note {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-lg {
  padding: 15px;
  font-size: 1.1rem;
  text-align: center;
}

.preview-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.preview-image {
  height: 150px;
  background: var(--light);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.preview-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.related-templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* 页脚 */
footer {
  background: var(--dark);
  color: var(--light);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer-links a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-gray);
  font-size: 14px;
}

/*预览器*/
#pdf-viewer {
  width: 100%;
  height: 100%;
  overflow: auto;
  border: 1px solid var(--primary);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.viewer-container {
  max-width: 894px;
  min-height:1262px;
  position: relative;
  overflow: hidden;
}

.loadingnow{
  margin:400px auto;
  width: 60px;
  height: 60px;
  border: 2px solid #000;
  border-top-color: transparent;
  border-radius: 100%;

  animation: circle infinite 0.75s linear;
}
@keyframes circle {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
.toolbar {
  display: flex;
  background: var(--primary);
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  align-items: center;
  justify-content: space-between;
}

.toolbar-group {
  display: flex;
  gap: 10px;
}

.toolbar-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.toolbar-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.toolbar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.page-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: bold;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
}

.zoom-btn:hover {
  background: var(--primary-dark);
}

canvas {
  display: block;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.watermark {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  transform: rotate(-30deg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  white-space: nowrap;
  font-size: 24px;
  font-family: Arial, sans-serif;
}

/*搜索*/
.search-list {
    display: flex;
    gap: 20px; /* 设置两栏之间的间距 */
}

/* 左侧主内容区 */
.search-list-left {
    flex: 1; /* 占据剩余空间 */
}

/* 右侧边栏 */
.search-list-right {
    flex: 0 0 280px; /* 固定宽度 */
}

/* 左侧列表项样式 */
.search-list-left dl {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    padding: 10px 15px;
}
.search-list-left dl:hover {
    background: #ccc;
}
.search-list-left dt {
    margin-bottom: 8px;
}

.search-list-left dt a {
    text-decoration: none;
    color: #1a0dab;
}

.search-list-left dt a:hover {
    text-decoration: underline;
}

.search-list-left h4 {
    margin: 0;
    font-size: 18px;
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制标题显示2行 */
    -webkit-box-orient: vertical;
}
.search-list-left h4 em {
    color: red;
    font-style: normal;
}
.search-list-left .desc {
    color: #555;
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制描述显示2行 */
    -webkit-box-orient: vertical;
}
.search-list-left .desc em {
    color: red;
    font-style: normal;
}
.search-list-left .doc-info {
    color: #70757a;
    font-size: 13px;
    margin-top: 8px;
}

.search-list-left .doc-info span {
    margin-right: 15px;
}

/* 右侧小列表样式 */
.search-list-right dl {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    background: #f9f9f9;
}

.search-list-right dt {
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.search-list-right dd {
    margin: 0 0 8px 0;
    padding: 0;
}

.search-list-right dd:last-child {
    margin-bottom: 0;
}

.search-list-right a {
    text-decoration: none;
    color: #0066c0;
    font-size: 14px;
    display: block;
    padding: 3px 0;
}

.search-list-right a:hover {
    text-decoration: underline;
    color: #c45500;
}
/*搜索*/
.collect {
    cursor: pointer;
}
/* 响应式设计 */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .template-body {
    flex-direction: column;
  }

  .template-content-left {
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
  }
}

@media (max-width: 768px) {
    header {
          position: static;
          top: 0;
          z-index: 100;
        }
    .search-list{
        display:block;
    }
  .main-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .search-bar {
    max-width: 100%;
    margin: 15px 0;
  }

  .nav-menu {
    flex-wrap: wrap;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .preview-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .toolbar {
    flex-direction: column;
    gap: 10px;
  }

  .toolbar-group {
    width: 100%;
    justify-content: center;
  }

  .viewer-container {
    height: 450px;
  }
  
  .pagination {
       flex-wrap: wrap;
    }
    
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .preview-images {
    grid-template-columns: 1fr;
  }
}
