.material-page {
  background-color: #f8f9fa;
  min-height: 100vh;
}

.material-page .container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px 40px;
}

.material-page .page-header {
  background-image: url(https://hdform.oss-cn-shanghai.aliyuncs.com/images/page-header__bg.png);
  background-position: 50%;
  background-size: cover;
  overflow: hidden;
  padding: 50px 0;
  position: relative;
}

.material-page .page-header .container {
  position: relative;
  z-index: 1;
}

.material-page .page-title {
  align-items: center;
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.material-page .title-icon {
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #fff;
  display: flex;
  font-size: 32px;
  height: 70px;
  justify-content: center;
  width: 70px;
}

.material-page .title-content h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.material-page .title-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 500px;
}

.material-page .breadcrumb {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 10px;
}

.material-page .breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.material-page .breadcrumb-item:hover,
.material-page .breadcrumb-item.active {
  color: #fff;
}

.material-page .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

.material-page .filter-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin: 30px 0;
  padding: 25px;
}

.material-page .filter-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.material-page .filter-item {
  align-items: center;
  display: flex;
  gap: 10px;
}

.material-page .filter-item label {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.material-page .filter-item select {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  min-width: 150px;
  padding: 10px 15px;
}

.material-page .filter-item select:focus {
  border-color: #b58a4f;
  outline: none;
}

.material-page .search-item {
  margin-left: auto;
}

.material-page .search-box {
  display: flex;
  gap: 0;
}

.material-page .search-box input {
  border: 1px solid #e0e0e0;
  border-radius: 8px 0 0 8px;
  border-right: none;
  font-size: 14px;
  padding: 10px 15px;
  width: 200px;
}

.material-page .search-box input:focus {
  border-color: #b58a4f;
  outline: none;
}

.material-page .search-box button {
  background-color: #b58a4f;
  border: 1px solid #e0e0e0;
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: #fff;
  cursor: pointer;
  padding: 10px 16px;
  transition: background-color 0.3s ease;
}

.material-page .search-box button:hover {
  background-color: #7a5f33;
}

/* 两栏布局 - 和新闻页面一致 */
.material-page .content-layout {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
}

.material-page .material-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.material-page .detail-sidebar {
  align-self: flex-start;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  width: 300px;
}

.material-page .detail-sidebar .appointment-card {
  box-sizing: border-box;
  width: 100%;
}

/* 资料卡片样式 - 保持原有横向布局不变 */
.material-card {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 16px;
  max-width: 100%;
  overflow: hidden;
  padding: 16px;
  text-decoration: none;
  transition: all 0.3s;
}

.material-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-left {
  flex-shrink: 0;
}

.pdf-icon {
  align-items: center;
  background: linear-gradient(135deg, #c9a25f, #ee5a5a);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(238, 90, 90, 0.3);
  display: flex;
  flex-direction: column;
  height: 100px;
  justify-content: center;
  position: relative;
  width: 80px;
}

.pdf-icon:before {
  background: linear-gradient(135deg, #fff 50%, transparent 0);
  border-top-right-radius: 8px;
  content: "";
  height: 20px;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}

.pdf-badge {
  background: #fff;
  border-radius: 4px;
  color: #c9a25f;
  font-size: 10px;
  font-weight: 600;
  left: 6px;
  padding: 2px 6px;
  position: absolute;
  top: 6px;
}

.pdf-logo {
  color: #fff;
  height: 32px;
  margin-bottom: 4px;
  width: 32px;
}

.pdf-text {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.video-icon {
  align-items: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  display: flex;
  flex-direction: column;
  height: 100px;
  justify-content: center;
  position: relative;
  width: 80px;
}

.video-icon:before {
  background: linear-gradient(135deg, #fff 50%, transparent 0);
  border-top-right-radius: 8px;
  content: "";
  height: 20px;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}

.video-logo {
  color: #fff;
  height: 32px;
  margin-bottom: 4px;
  width: 32px;
}

.video-text {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.image-icon {
  align-items: center;
  background: linear-gradient(135deg, #11998e, #38ef7d);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
  display: flex;
  flex-direction: column;
  height: 100px;
  justify-content: center;
  position: relative;
  width: 80px;
}

.image-icon:before {
  background: linear-gradient(135deg, #fff 50%, transparent 0);
  border-top-right-radius: 8px;
  content: "";
  height: 20px;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}

.image-logo {
  color: #fff;
  height: 32px;
  margin-bottom: 4px;
  width: 32px;
}

.image-text {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.other-icon {
  align-items: center;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
  display: flex;
  flex-direction: column;
  height: 100px;
  justify-content: center;
  position: relative;
  width: 80px;
}

.other-icon:before {
  background: linear-gradient(135deg, #fff 50%, transparent 0);
  border-top-right-radius: 8px;
  content: "";
  height: 20px;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}

.other-logo {
  color: #fff;
  height: 32px;
  margin-bottom: 4px;
  width: 32px;
}

.other-text {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-right {
  flex: 1;
  min-width: 0;
}

.card-right * {
  text-decoration: none !important;
}

.card-title {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-subtitle {
  color: #666;
  font-size: 13px;
  margin: 0 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tag {
  background: linear-gradient(135deg, #fff7e6, #ffe7ba);
  border: 1px solid #ffd591;
  border-radius: 4px;
  color: #fa8c16;
  display: inline-block;
  font-size: 12px;
  margin-bottom: 10px;
  padding: 4px 10px;
}

.card-meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.meta-item {
  align-items: center;
  color: #999;
  display: flex;
  font-size: 13px;
  gap: 4px;
}

.meta-item i {
  font-size: 12px;
}

.card-rating {
  align-items: center;
  display: flex;
  gap: 8px;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars i {
  color: #ddd;
  font-size: 14px;
}

.stars i.active {
  color: #ffc53d;
}

.rating-score {
  color: #ffc53d;
  font-size: 14px;
  font-weight: 500;
}

/* 分页样式 */
.material-page .pagination {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 20px 0 40px;
}

.material-page .pagination-info {
  color: #666;
  font-size: 14px;
}

.material-page .pagination-controls {
  align-items: center;
  display: flex;
  gap: 15px;
}

.material-page .page-btn {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 20px;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.material-page .page-btn:hover:not(.disabled) {
  background: #b58a4f;
  border-color: #b58a4f;
  color: #fff;
}

.material-page .page-btn.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.material-page .page-numbers {
  align-items: center;
  display: flex;
  gap: 8px;
}

.material-page .page-num {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  height: 36px;
  justify-content: center;
  min-width: 36px;
  padding: 0 10px;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.material-page .page-num:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.material-page .page-num.active {
  background: #b58a4f;
  border-color: #b58a4f;
  color: #fff;
}

.material-page .page-ellipsis {
  color: #999;
  font-size: 14px;
  padding: 0 4px;
}

/* 响应式样式 */
@media (max-width: 992px) {
  .material-page .content-layout {
    flex-direction: column;
  }

  .material-page .detail-sidebar {
    margin-top: 20px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .material-page .page-header {
    padding: 40px 0 30px;
  }

  .material-page .page-title {
    align-items: center;
    flex-direction: row;
    gap: 15px;
    text-align: left;
  }

  .material-page .title-icon {
    flex-shrink: 0;
    font-size: 24px;
    height: 50px;
    width: 50px;
  }

  .material-page .title-content h1 {
    font-size: 28px;
  }

  .material-page .title-content p {
    font-size: 14px;
  }

  .material-page .breadcrumb {
    font-size: 12px;
    justify-content: left;
    margin-top: 10px;
    position: static;
  }

  .material-page .container {
    padding: 0 15px;
  }

  .material-page .filter-section {
    margin: 20px 0;
    padding: 20px;
  }

  .material-page .filter-row {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .material-page .filter-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .material-page .filter-item select,
  .material-page .search-box input {
    min-width: auto;
    width: 100%;
  }

  .material-page .search-item {
    margin-left: 0;
  }

  .material-page .search-box {
    width: 100%;
  }

  .material-card {
    box-sizing: border-box;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
    padding: 12px;
    width: 100%;
  }

  .pdf-icon,
  .video-icon,
  .image-icon,
  .other-icon {
    height: 75px;
    width: 60px;
  }

  .pdf-icon:before,
  .video-icon:before,
  .image-icon:before,
  .other-icon:before {
    height: 15px;
    width: 15px;
  }

  .pdf-logo,
  .video-logo,
  .image-logo,
  .other-logo {
    height: 24px;
    width: 24px;
  }

  .pdf-text,
  .video-text,
  .image-text,
  .other-text {
    font-size: 12px;
  }

  .card-right {
    min-width: 0;
    overflow: hidden;
  }

  .card-title {
    font-size: 14px;
  }

  .card-subtitle {
    font-size: 12px;
  }

  .card-meta-row {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    justify-content: space-between;
    width: 100%;
  }

  .card-meta {
    gap: 8px;
  }

  .meta-item {
    font-size: 11px;
  }

  .card-rating {
    flex-shrink: 0;
    gap: 4px;
  }

  .rating-score,
  .stars i {
    font-size: 11px;
  }

  .material-page .pagination {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0 30px;
    text-align: center;
  }

  .material-page .page-numbers {
    gap: 4px;
  }

  .material-page .page-num {
    font-size: 13px;
    height: 32px;
    min-width: 32px;
  }

  .material-page .page-numbers .page-num:nth-child(n+5),
  .material-page .page-numbers .page-num:last-child,
  .material-page .page-numbers .page-ellipsis:nth-child(n+4) {
    display: none;
  }
}

/* 右侧预约卡片样式 - 主色调沃顿红 */
.appointment-card {
  background: url(../assets/remote/hdform.oss-cn-shanghai.aliyuncs.com/images/brand-strength-background.png) no-repeat center/cover;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 20px;
}

.appointment-header {
  padding: 0 0 10px;
  text-align: left;
}

.header-title-img {
  height: auto;
  width: 80%;
}

.benefits-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 15px;
}

.benefit-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.benefit-item img {
  height: 50px;
  margin-bottom: 6px;
  width: 50px;
}

.benefit-item span {
  color: #333;
  font-size: 12px;
  font-weight: 500;
}

.appointment-form {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
}

.appointment-form .form-item {
  align-items: center;
  background: #f5f7fa;
  border-radius: 8px;
  display: flex;
  height: 44px;
  margin-bottom: 12px;
  padding: 0 12px;
}

.appointment-form .form-item:last-of-type {
  margin-bottom: 15px;
}

.appointment-form .form-item i {
  color: #999;
  font-size: 16px;
  margin-right: 10px;
  text-align: center;
  width: 20px;
}

.appointment-form .form-item input,
.appointment-form .form-item select {
  background: transparent;
  border: none;
  color: #333;
  flex: 1;
  font-size: 14px;
  height: 100%;
  outline: none;
}

.appointment-form .form-item input::placeholder,
.appointment-form .form-item select:invalid {
  color: #999;
}

.appointment-form .submit-btn {
  background: linear-gradient(135deg, #b58a4f, #7a5f33);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  height: 44px;
  transition: all 0.3s;
  width: 100%;
}

.appointment-form .submit-btn:hover {
  background: linear-gradient(135deg, #c9a25f, #b58a4f);
  box-shadow: 0 4px 12px rgba(181, 138, 79, 0.3);
}

.contact-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.contact-item {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  padding: 10px;
  position: relative;
}

.contact-item img {
  flex-shrink: 0;
  height: 36px;
  margin-right: 8px;
  width: 36px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
}

.contact-desc {
  color: #666;
  font-size: 11px;
  line-height: 1.4;
}

.contact-item.online .contact-title {
  color: #b58a4f;
}

.contact-item.tel .contact-title {
  color: #52c41a;
}
