/* =============================================================================
   首页侧边栏区域
============================================================================= */
.sidebar {
  width: 320px;
  background: var(--tz-surface);
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius);
  box-shadow: var(--tz-shadow-card);
  overflow: hidden;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* 搜索框 */
.search-box {
  padding: 20px;
  border-bottom: 1px solid var(--tz-line);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.82), rgba(255, 255, 255, 0.54));
}

.search-input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.search-input:focus {
  border-color: var(--tz-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--tz-primary-rgb), 0.11);
}

/* 分类列表 */
.category-list {
  padding: 12px 10px;
}

.category-item {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 48px;
  cursor: pointer;
  font-size: 15px;
  color: #243247;
  border-radius: 12px;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-item:hover {
  background: rgba(var(--tz-primary-rgb), 0.07);
  transform: translateX(2px);
}

/* 分类图标容器 */
.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, rgba(var(--tz-primary-rgb), 0.12), rgba(16, 185, 129, 0.1));
  border-radius: 9px;
  overflow: hidden;
}

.category-icon-image {
  background: #f4f7fb;
  border: 1px solid rgba(203, 213, 225, 0.74);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
}

.category-icon img {
  width: calc(100% - 5px);
  height: calc(100% - 5px);
  object-fit: contain;
  display: block;
  border-radius: 7px;
}

.category-icon i {
  width: auto;
  height: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tz-primary);
  font-size: 16px;
}

/* 分类图标加载动画 */
.category-icon.lazy-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border: 2px solid #e5e5e5;
  border-top-color: #1890ff;
  border-radius: 50%;
  animation: category-icon-spin 0.8s linear infinite;
}

@keyframes category-icon-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.category-item > i {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.category-item .category-count {
  margin-left: auto;
  background: #edf5f3;
  color: #2f8f78;
  font-size: 13px;
  padding: 2px 10px;
  border: 1px solid rgba(148, 197, 188, 0.28);
  border-radius: 9px;
  font-weight: 650;
}

.category-parent.has-children {
  font-weight: 500;
}

.category-parent.has-children .category-toggle {
  width: 18px;
  height: 18px;
  margin-left: auto;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a96a8;
  font-size: 12px;
  transition: transform 0.22s ease, color 0.22s ease;
}

.category-parent.has-children .category-toggle i {
  width: auto;
  height: auto;
  margin: 0;
  font-size: 12px;
}

.category-parent.has-children .category-count {
  margin-left: 0;
}

.category-parent.has-children.expanded .category-toggle {
  color: var(--tz-primary);
  transform: rotate(90deg);
}

.subcategory-list {
  max-height: 0;
  overflow: hidden;
  background: #fbfcff;
  transition: max-height 0.24s ease;
}

.subcategory-list.expanded {
  max-height: 680px;
}

.subcategory-item {
  height: 42px;
  padding-left: 56px;
  font-size: 14px;
  color: #555;
  background: #fbfcff;
  border-bottom: 1px solid #f1f4f8;
}

.subcategory-item .category-icon {
  width: 26px;
  height: 26px;
  margin-right: 10px;
}

.subcategory-item > i {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: #9aa7b7;
  font-size: 13px;
}

.subcategory-item .category-count {
  font-size: 12px;
  padding: 2px 8px;
}

.subcategory-item:hover {
  background: #f3f8ff;
}

.category-item.selected {
  color: #6d4bd6;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(34, 199, 216, 0.045));
  box-shadow: inset 3px 0 0 rgba(124, 58, 237, 0.72);
}

.category-item.selected .category-count {
  background: #ece5ff;
  border-color: rgba(124, 58, 237, 0.16);
  color: #6d4bd6;
}

.category-item:not(:last-child) {
  border-bottom: 0;
}

/* =============================================================================
   首页产品内容区域
============================================================================= */
.content {
  flex: 1;
}

.main {
  padding-top: 18px;
}

.home-announcement-wrap {
  width: 100%;
  max-width: var(--tz-page-width);
  margin: 0 auto 26px;
  padding: 0 20px;
}

.home-announcement-content {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--tz-shadow-soft);
}

.home-announcement-content h1 {
  line-height: 1.35;
  margin-top: 0 !important;
}

.home-announcement-content img,
.home-announcement-content video {
  max-width: 100%;
  height: auto;
}

/* 公告区域 - 默认隐藏，只在移动端显示 */
.announcement-section {
  display: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  overflow: hidden;
}

.announcement-header {
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.announcement-header span::before {
  content: "#";
  color: #1890ff;
  font-weight: bold;
  margin-right: 8px;
}

.announcement-content {
  padding: 16px 20px;
}

.announcement-content p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.announcement-content p:last-child {
  margin-bottom: 0;
}

.announcement-content strong {
  color: #333;
  font-weight: 600;
}

.announcement-content a {
  color: #1890ff;
  text-decoration: none;
  font-weight: 500;
}

.announcement-content a:hover {
  color: #40a9ff;
}

.announcement-content .announcement-time {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

/* 内容区搜索框 */
.content-search-box {
  display: none;
  padding: 16px 20px 20px 20px;
  border-top: 1px solid #f0f0f0;
}

.content-search-input {
  width: 100%;
  height: 40px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: border-color 0.3s ease;
}

.content-search-input:focus {
  border-color: #1890ff;
}

.mobile-category-panel {
  display: none;
}

.mobile-category-toggle-input,
.mobile-category-head {
  display: none;
}

.mobile-category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-category-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-subcategory-scroll {
  display: none;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(203, 213, 225, 0.9);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-subcategory-scroll.expanded {
  display: flex;
}

.mobile-subcategory-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-category-item {
  flex: 0 0 auto;
  width: auto;
  min-width: 116px;
  height: 42px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  white-space: nowrap;
}

.mobile-category-item .category-icon {
  margin-right: 8px;
}

.mobile-category-item .category-count {
  margin-left: 8px;
}

.mobile-expandable-category .category-toggle {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a96a8;
  font-size: 10px;
  transition: transform 0.22s ease, color 0.22s ease;
}

.mobile-expandable-category.expanded .category-toggle {
  color: var(--tz-primary);
  transform: rotate(90deg);
}

.mobile-subcategory-item {
  min-width: 104px;
  background: rgba(248, 251, 255, 0.96);
}

.mobile-tertiary-scroll {
  margin-left: 12px;
  border-top-color: rgba(var(--tz-primary-rgb), 0.18);
}

.mobile-tertiary-item {
  min-width: 98px;
  background: rgba(255, 255, 255, 0.96);
}

/* 产品系列 */
.series-block {
  background: var(--tz-surface);
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius);
  box-shadow: var(--tz-shadow-card);
  margin-bottom: 24px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.series-header {
  font-size: 18px;
  font-weight: 750;
  color: var(--tz-text);
  padding: 20px 24px;
  border-bottom: 1px solid var(--tz-line);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.8));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.series-count {
  background: rgba(16, 185, 129, 0.11);
  color: #0f9f69;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 9px;
  font-weight: 700;
}

/* 产品列表 */
.product-list {
  background: rgba(255, 255, 255, 0.76);
}

.product-item {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.product-item:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  box-shadow: inset 4px 0 0 rgba(var(--tz-primary-rgb), 0.78);
}

.product-item.is-sold-out {
  padding-right: 112px;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.9), rgba(255, 255, 255, 0.78));
  box-shadow: inset 4px 0 0 rgba(239, 68, 68, 0.72), inset 0 0 0 1px rgba(239, 68, 68, 0.16);
}

.product-item.is-sold-out:hover {
  background: linear-gradient(90deg, rgba(255, 228, 230, 0.98), rgba(255, 247, 247, 0.94));
  box-shadow: inset 4px 0 0 rgba(225, 29, 72, 0.86), inset 0 0 0 1px rgba(225, 29, 72, 0.24);
}

.sold-out-corner {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 12px;
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.22);
}

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

/* 涟漪动画效果 */
.product-item .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--tz-primary-rgb), 0.18);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
}

@keyframes ripple-animation {
  to {
    transform: scale(40);
    opacity: 0;
  }
}

.product-icon {
  width: 85px;
  height: 85px;
  background: linear-gradient(145deg, #f8fafc, #eef4fb);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  flex-shrink: 0;
  position: relative;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item.is-sold-out .product-icon img {
  filter: grayscale(0.16);
  opacity: 0.62;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-title {
  font-size: 17px;
  font-weight: 750;
  color: var(--tz-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-item.is-sold-out .product-title {
  color: #b91c1c;
}

.product-desc {
  font-size: 15px;
  color: var(--tz-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-meta {
  font-size: 15px;
  color: var(--tz-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 19px;
  color: var(--tz-danger);
  font-weight: 800;
}

.product-link {
  font-size: 12px;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 700;
}

/* 自动发货 - 绿色 */
.product-link.auto-delivery {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.product-link.auto-delivery:hover {
  background: rgba(16, 185, 129, 0.2);
}

/* 人工处理 - 橙色 */
.product-link.manual-processing {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.product-link.manual-processing:hover {
  background: rgba(245, 158, 11, 0.2);
}

.product-stock {
  font-size: 16px;
  color: #888;
}

.product-stock.stock-empty {
  color: #e11d48;
  font-weight: 800;
}

/* =============================================================================
   首页响应式设计
============================================================================= */
@media (max-width: 1024px) {

  /* 移动端布局调整 */
  .main .container {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  /* 移动端隐藏侧边栏 */
  .sidebar {
    display: none;
  }

  /* 产品区域移动端优化 */
  .content {
    width: 100%;
    margin-bottom: 30px;
  }

  .series-block {
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .series-header {
    padding: 20px;
    font-size: 17px;
  }

  .series-count {
    font-size: 13px;
    padding: 4px 10px;
  }

  /* 产品项移动端优化 */
  .product-item {
    padding: 24px;
    align-items: flex-start;
  }

  .product-item:hover {
    background-color: #f5f5f5;
  }

  /* 产品图标适中大小 */
  .product-icon {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .product-title {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
  }

  .product-desc {
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
  }

  .product-meta {
    font-size: 13px;
    gap: 14px;
  }

  .product-price {
    font-size: 16px;
    font-weight: 700;
  }

  .product-link {
    font-size: 11px;
    padding: 3px 6px;
  }

  .product-stock {
    font-size: 12px;
  }

}

/* 平板和中等屏幕优化 */
@media (max-width: 768px) {

  /* 在移动端显示公告区域 */
  .announcement-section {
    display: none;
  }

  .announcement-header {
    padding: 14px 16px;
    font-size: 16px;
  }

  .announcement-content {
    padding: 16px;
  }

  .announcement-content p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .content-search-box {
    display: block;
    padding: 16px 16px 10px;
  }

  .content-search-input {
    height: 44px;
    font-size: 16px;
    border-radius: 6px;
  }

  .mobile-category-panel {
    display: block;
    padding: 0 12px 14px;
    max-width: 100%;
    overflow: hidden;
  }

  .mobile-category-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
  }

  .mobile-category-head strong {
    color: #142033;
    font-size: 15px;
    font-weight: 800;
  }

  .mobile-category-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(var(--tz-primary-rgb), 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #6d4bd6;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  }

  .mobile-category-toggle-btn .is-expanded {
    display: none;
  }

  .mobile-category-toggle-input:checked ~ .mobile-category-head .is-collapsed {
    display: none;
  }

  .mobile-category-toggle-input:checked ~ .mobile-category-head .is-expanded {
    display: inline;
  }

  .mobile-category-primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: 104px;
    overflow: hidden;
    transition: max-height 0.24s ease;
  }

  .mobile-category-toggle-input:checked ~ .mobile-category-primary {
    max-height: 520px;
  }

  .mobile-category-item {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 8px;
    border-radius: 14px;
    font-size: 14px;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  }

  .mobile-category-item.selected {
    border-color: rgba(var(--tz-primary-rgb), 0.6);
    background: linear-gradient(90deg, rgba(var(--tz-primary-rgb), 0.14), rgba(34, 199, 216, 0.08));
    box-shadow: inset 0 0 0 1px rgba(var(--tz-primary-rgb), 0.12);
  }

  .mobile-category-item .category-name {
    max-width: 76px;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-category-item .category-count {
    display: none;
  }

  .mobile-category-item .category-icon {
    width: 24px;
    height: 24px;
    margin-right: 6px;
    border-radius: 8px;
  }

  .mobile-category-item .category-icon img {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
  }

  .mobile-category-item .category-toggle {
    margin-left: 4px;
  }

  .mobile-subcategory-scroll {
    gap: 8px;
    margin: 10px 0 0;
    padding-bottom: 2px;
  }

  .mobile-subcategory-scroll .mobile-category-item {
    width: auto;
    min-width: 108px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
  }

  .mobile-subcategory-item {
    height: 38px;
    min-width: 108px;
    font-size: 13px;
  }

  .mobile-tertiary-item {
    height: 36px;
    min-width: 100px;
  }

  .product-item {
    padding: 20px;
  }

  .product-item.is-sold-out {
    padding-right: 96px;
  }

  .sold-out-corner {
    top: 14px;
    right: 14px;
    min-height: 24px;
    padding: 2px 10px;
    font-size: 12px;
  }

  .product-icon {
    width: 70px;
    height: 70px;
    margin-right: 18px;
  }

  .product-title {
    font-size: 16px;
  }

  .product-desc {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .product-meta {
    font-size: 12px;
    gap: 12px;
  }

  .product-price {
    font-size: 18px;
  }

  .series-block {
    margin-bottom: 18px;
  }

  .series-header {
    padding: 18px;
  }
}

/* 小屏幕移动端进一步优化 */
@media (max-width: 480px) {
  .main .container {
    padding: 12px;
    gap: 12px;
  }

  /* 小屏幕公告样式调整 */
  .announcement-section {
    margin-bottom: 12px;
  }

  .series-header {
    padding: 16px;
    font-size: 16px;
  }

  .series-block {
    margin-bottom: 16px;
  }

  .product-item {
    padding: 18px;
  }

  .product-item.is-sold-out {
    padding-top: 52px;
    padding-right: 18px;
  }

  .sold-out-corner {
    top: 14px;
    right: 14px;
  }

  .product-icon {
    width: 65px;
    height: 65px;
    margin-right: 16px;
  }

  .product-title {
    font-size: 15px;
  }

  .product-desc {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .product-meta {
    font-size: 12px;
    gap: 10px;
  }

  .product-price {
    font-size: 16px;
  }

}

@media (max-width: 768px) {
  .home-announcement-wrap {
    margin-bottom: 12px;
    padding: 0 12px;
    max-width: 100vw;
    overflow: hidden;
  }

  .home-announcement-content {
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  }

  .home-announcement-content h1 {
    font-size: 15px !important;
    line-height: 1.28 !important;
    margin: 0 0 8px !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .home-announcement-content [style*="border-left"] {
    border-left: 0 !important;
    border-top: 1px dashed #dddddd !important;
    padding-left: 0 !important;
    padding-top: 16px !important;
  }

  .home-announcement-content,
  .home-announcement-content * {
    max-width: 100%;
    box-sizing: border-box;
  }

  .home-announcement-content {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
  }

  .home-announcement-content [style*="min-width"] {
    min-width: 0 !important;
  }

  .home-announcement-content [style*="display: flex"] {
    min-width: 0 !important;
  }

  .home-announcement-content [style*="gap: 22px"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .home-announcement-content [style*="min-width: 280px"] {
    flex: 0 1 auto !important;
    width: 100% !important;
  }

  .home-announcement-content h2 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .home-announcement-content a {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .main .container,
  .content,
  .series-block,
  .product-list,
  .product-item,
  .product-info,
  .product-meta {
    min-width: 0;
    max-width: 100%;
  }

  .product-title,
  .product-desc {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .product-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .home-announcement-wrap {
    padding: 0 12px;
  }

  .home-announcement-content [style*="padding: 18px"] {
    padding: 14px !important;
  }

  .home-announcement-content [style*="gap: 10px"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    flex-wrap: initial !important;
  }

  .home-announcement-content [style*="gap: 10px"] > * {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  .home-announcement-content > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }

  .home-announcement-content > div > div:first-child {
    padding: 10px 12px !important;
    gap: 6px !important;
    align-items: flex-start !important;
  }

  .home-announcement-content > div > div:first-child h2 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-announcement-content > div > div:first-child > span {
    display: none !important;
  }

  .home-announcement-content > div > div:nth-of-type(2) {
    display: block !important;
    padding: 12px !important;
  }

  .home-announcement-content > div > div:nth-of-type(2) > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .home-announcement-content > div > div:nth-of-type(2) > div:last-child {
    display: none !important;
  }

  .home-announcement-content > div > div:nth-of-type(2) > div:last-child > div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .home-announcement-content > h1 {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .home-announcement-content p,
  .home-announcement-content > div > div:nth-of-type(2) > div {
    width: 100% !important;
    max-width: calc(100vw - 64px) !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .home-announcement-content p {
    margin-bottom: 8px !important;
  }

  .home-announcement-content > div > div:nth-of-type(2) p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-announcement-content [style*="margin-top: 14px"] {
    display: flex !important;
    gap: 8px !important;
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .home-announcement-content > div > div:nth-of-type(2) {
    padding: 14px !important;
  }

  .home-announcement-content > div > div:nth-of-type(2) > div:last-child > div {
    grid-template-columns: 1fr !important;
  }
}
