/* 统一全站页面样式 */

/*coutdown.html*/
body {
    font-family: 'MiSans', Arial, sans-serif;
    background: #f1f3f5;
    margin: 0;
    padding: 0;
    color: #22223b;
    min-height: 100vh;
}
.container-countdown {
    max-width: 96%;
    margin: 1rem auto;
    background: #fff;
    border-radius: 1.2rem;
    padding: 1rem;
    height: 92vh;
    max-height: 100vh; /* 限制容器高度为视口高度 */
    overflow-y: auto; /* 添加垂直滚动条 */
}
h1 {
    text-align: center;
    color: #4f46e5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}
.countdowns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    gap: 1.5rem;
}
.countdown {
    background: #f7f8fa;
    border-radius: 0.5rem;
    text-align: center;
    padding-bottom: 1rem;
}
.countdown h2 {
    color: #6366f1;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
}
.countdown div {
    display: inline-block;
    min-width: 32px;
    font-size: 3rem;
    font-weight: 500;
    color: #22223b;
    margin-right: 0.5rem;
}
@media (max-width: 600px) {
    .container { padding: 1.2rem 2vw; }
    h1 { font-size: 1.2rem; }
}

/* ===================== 过期倒计时卡片样式 ===================== */
.expired {
  opacity: 0.5;
  filter: grayscale(1);
  pointer-events: none;
  transition: opacity 0.3s, filter 0.3s;
}


/* ===================== apng.html 样式 ===================== */
.container-apng {
  max-width: 520px;
  margin: 48px auto 0 auto;
  background: #fff;
  border-radius: 1.2rem;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  box-sizing: border-box;
}

/* APNG 上传区域样式 */
.container-apng .input-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.container-apng .input-row input[type="file"] {
  display: none;
}

.container-apng .input-row .file-upload-area {
  border: 2px dashed #e2e8f0;
  border-radius: 0.8rem;
  padding: 3rem 1.5rem;
  text-align: center;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.container-apng .input-row .file-upload-area:hover {
  border-color: #4f46e5;
  background-color: rgba(79, 70, 229, 0.05);
}

.container-apng .input-row .file-upload-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 50%;
  color: #4f46e5;
  font-size: 2.5rem;
}

.container-apng .input-row .file-upload-text {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.container-apng .input-row .file-upload-subtext {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* ===================== webp.html 样式 ===================== */
.container-webp {
  max-width: 1200px;
  margin: 48px auto;
  background: #fff;
  border-radius: 1.2rem;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 96px); /* 减去上下边距 */
}

/* 上传区域样式 */
.webp-upload-area {
  border: 2px dashed #e2e8f0;
  border-radius: 0.8rem;
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.webp-upload-area:hover {
  border-color: #4f46e5;
  background-color: rgba(79, 70, 229, 0.05);
}

.webp-upload-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 50%;
  color: #4f46e5;
  font-size: 2.5rem;
}

.webp-upload-text {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.webp-upload-subtext {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* 图片预览样式 */
.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.image-card {
  width: calc(20% - 1rem);
  min-width: 150px;
  background: #f8fafc;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.webp-image-container {
  padding: 1rem;
  display: flex;
  justify-content: center;
  background: #ffffff;
  max-height: 150px;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  flex-grow: 1;
}

.webp-image-container img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.image-info {
  padding: 0.75rem;
  background: #f8fafc;
  flex-shrink: 0;
}

.image-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-size {
  font-size: 0.75rem;
  color: #64748b;
}

.size-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.original-size {
  color: #64748b;
}

.compressed-size {
  color: #10b981;
  font-weight: 500;
}

.compression-rate {
  color: #10b981;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

/* 按钮样式优化 */
.btn {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container-webp {
    max-width: 96%;
    margin: 1rem auto;
    padding: 1.5rem 1rem;
  }

  .image-card {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .image-card {
    width: 100%;
  }
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  color: #4f46e5;
  text-align: center;
}
.input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
input[type="file"] {
  border: none;
  background: #f0f1f3;
  border-radius: 8px;
  padding: 8px 0 8px 8px;
  font-size: 1rem;
  color: #444;
  outline: none;
}
.btn {
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 0;
  margin-left: 0;
}
.btn:hover {
  background: #4f46e5;
}
.preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  min-height: 88px;
}
.preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e0e7ff;
  background: #f7f8fa;
  padding: 2px;
}
#apng-preview {
  margin-top: 18px;
  text-align: center;
}
#apng-preview img {
  border-radius: 10px;
  background: #f7f8fa;
  border: 1px solid #e0e7ff;
  margin-bottom: 10px;
  max-width: 220px;
  height: auto;
}
a.btn {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .container { padding: 1.2rem 4vw; }
  h2 { font-size: 1.1rem; }
}

/* ===================== bullet-chat.html 样式 ===================== */
/* ===================== 弹幕工具自定义表单样式 ===================== */
.main-container {
  max-width: 520px;
  margin: 48px auto 0 auto;
  background: #fff;
  border-radius: 1.2rem;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  box-sizing: border-box;
}
.bullet-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.5rem;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
}
.bullet-form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
  gap: 1.2rem;
}
.bullet-form-label {
  font-size: 1rem;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 0;
  min-width: 90px;
  text-align: right;
  flex: 0 0 90px;
}
.bullet-form-input,
.bullet-form-color,
.bullet-form-range {
  border: 1px solid #e0e7ff;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 1rem;
  background: #f7f8fa;
  color: #22223b;
  outline: none;
  transition: border 0.2s;
  flex: 1 1 auto;
  margin-left: 0;
}
.bullet-form-input:focus,
.bullet-form-range:focus {
  border-color: #6366f1;
}
.bullet-form-color {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 4px;
  border: 1.5px solid #e0e7ff;
  background: #fff;
  cursor: pointer;
}
.bullet-form-range {
  width: 100%;
  margin-top: 0;
}
.bullet-form-btn {
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
  width: 100%;
}
.bullet-form-btn:hover {
  background: #4f46e5;
}
@media (max-width: 700px) {
  .bullet-form {
    flex-direction: column;
    gap: 1.2rem 0;
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .bullet-form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .bullet-form-label {
    text-align: left;
    margin-bottom: 0.2rem;
  }
}


/* ===================== ico.html 样式 ===================== */
.container-ico {
  max-width: 520px;
  margin: 48px auto 0 auto;
  background: #fff;
  border-radius: 1.2rem;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  box-sizing: border-box;
  
}
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  color: #4f46e5;
  text-align: center;
}
.t-form__item {
  margin-bottom: 22px !important;
}
.t-form__label {
  font-size: 15px;
  color: #555;
  font-weight: 500;
}
.t-input, .t-select {
  width: 70%;
  min-width: 120px;
  margin-left: 12px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  padding: 7px 12px;
  font-size: 15px;
  background: #f9faff;
  transition: border 0.2s;
}
.t-input:focus, .t-select:focus {
  border: 1.5px solid #6366f1;
  outline: none;
}
.preview {
  margin: 24px 0 18px 0;
  text-align: center;
}
.preview canvas {
  border: 1.5px solid #e0e7ff;
  background: #f4f6fa;
  border-radius: 4px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s;
}
#canvasLabel {
  color: #888;
  font-size: 14px;
  margin-top: 2px;
  display: none;
}
.t-button {
  min-width: 110px;
  margin-right: 14px;
  font-size: 16px;
  border-radius: 6px;
  padding: 8px 0;
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
}
.t-button--primary {
  background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  color: #fff;
}
.t-button:disabled {
  background: #e0e0e0 !important;
  color: #aaa !important;
  cursor: not-allowed;
  
}
.t-button:last-child {
  margin-right: 0;
}
@media (max-width: 500px) {
  .container { padding: 1.2rem 2vw; }
  .t-input, .t-select { width: 100%; margin-left: 0; }
}

/* ===================== marry.html 样式 ===================== */
header {
  background: #4f46e5;
  color: #fff;
  padding: 2rem 0 1.2rem 0;
  text-align: center;
  border-radius: 0 0 1.2rem 1.2rem;
}
header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}
main {
  max-width: 900px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: 1.2rem;
  
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
}
section {
  margin-bottom: 2.2rem;
}
h2 {
  color: #6366f1;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
h3 {
  color: #4f46e5;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}
article, section p {
  font-size: 1rem;
  color: #22223b;
  margin-bottom: 0.5rem;
}
footer {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin: 2rem 0 1rem 0;
}
@media (max-width: 600px) {
  main { padding: 1.2rem 2vw; }
  header h1 { font-size: 1.2rem; }
}

/* ===================== svga.html 样式 ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 48px auto 0 auto;
  background: #fff;
  border-radius: 1.2rem;
  
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.upload-area {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.upload-area input[type="file"] {
  display: none;
}
.upload-label {
  display: inline-block;
  padding: 10px 24px;
  background: #6366f1;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.upload-label:hover {
  background: #4f46e5;
}
.svga-preview {
  width: 100%;
  aspect-ratio: 1/1;
  background: #e9eef3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
#svga-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}
.tip {
  color: #888;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}
@media (max-width: 500px) {
  .container {
    max-width: 98vw;
    padding: 1.2rem 2vw 1.2rem 2vw;
  }
  .svga-preview {
    aspect-ratio: 1/1;
  }
}


/* ===================== daily.html 样式 ===================== */
body {
    font-family: 'MiSans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #22223b;
}
#apps {
    display: flex;
    gap: 1.5rem;
}
.container-daily {
    max-width: 96%;
    margin: 1rem auto;
    background: #fff;
    border-radius: 1.2rem;
    padding: 1rem;
    height: 92vh;
}

.left-panel {
    flex: 1;
}

.right-panel {
    flex: 1;
    border: solid 1px #ddd;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}


.form-group textarea {
    width: 100%;
    padding: 0 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100% !important;
}

.form-group textarea {
    font-family: "Misans", sans-serif;
    height: 120px;
    padding: 12px !important;
    font-size: 16px;
    line-height: 1.6;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    transition: border-color 0.2s;
    box-sizing: border-box;  /* 添加这行确保padding计入总宽度 */
}

.form-group textarea:focus {
    outline: none;
    border-color: #409eff;
}

button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.preview-daily {
    text-align: center;
    width: 375px;
    height: 500px;
    background: white;
    position: relative;
    overflow: hidden;
    transform-origin: top left; /* 添加这行 */
    will-change: transform; /* 添加这行 */
}

.date-display {
    height: 147px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#selectedDate {
    font-size: 110px;
    font-family: "Misans", sans-serif;
    color: #3273DC;
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

#weekAndLunar {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    margin-top: 10px;
}

.image-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 353px;
    overflow: hidden;
    backface-visibility: hidden; /* 添加这行 */
    transform: translateZ(0); /* 添加这行 */
}

#previewImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* 遮罩层样式优化 */
.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

#previewText {
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    z-index: 2;
    font-size: 21px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #FFF;
    text-align: justify;
    font-family: "LXGW WenKai", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 2px;
    word-break: break-all;
}

.char-count {
    font-size: 12px;
    color: #909399;
    text-align: right;
    margin-top: 8px;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.button-group button {
    flex: 1;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.button-group button:first-child {
    background: #409eff;
}

.button-group button:nth-child(2) {
    background: #67c23a;
}

.button-group button:last-child {
    background: #909399;
}

.button-group button:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.date-info {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: 4px;
    font-size: 18px;
}

#formWeekDay, #formLunar {
    color: #3273DC;
    font-weight: 500;
}

/* Element UI 日期选择器样式调整 */
.el-date-picker {
    width: 100%;
}

.el-input__inner {
    height: 40px;
    font-size: 14px;
    border-color: #dcdfe6;
}

.el-input__inner:hover {
    border-color: #c0c4cc;
}

.el-input__inner:focus {
    border-color: #409eff;
}

/*element css*/
.el-date-editor.el-input, .el-date-editor.el-input__inner {
    width: 100% !important;
}

.calendar-info {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    width: 90%;
}

#weekDay, #lunarDate {
    color: #3273dc;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

/*公公号信息*/
.gzh-resource {
    z-index: 99;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    bottom: 20px;
    left: 20px;
    position: absolute;
    width: 335px;
}
.gzh-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
}
.gzh-name h1 {
    color: #FFF;
    font-family: MiSans;
    font-size: 18px;
    font-style: normal;
    font-weight: 380;
    line-height: 120%; /* 43.2px */
    letter-spacing: 2px;
    margin: 0;
}
.gzh-name p {
    color: #FFF;
    text-align: justify;
    font-family: "LXGW WenKai", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 28.8px */
    letter-spacing: 2px;
    margin: 0;
}
.QR-code {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}
.QR-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ===================== rssreader.html 样式 ===================== */

    .rss-layout {
      display: flex;
      max-width: 1100px;
      margin: 40px auto;
      background: #fff;
      border-radius: 1.2rem;
      box-shadow: 0 4px 24px rgba(79,70,229,0.08);
      min-height: 600px;
      overflow: hidden;
    }
    .rss-sources {
      width: 220px;
      background: #f7f8fa;
      border-right: 1px solid #e0e7ff;
      padding: 2rem 1rem 1rem 1rem;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .rss-source {
      padding: 0.7rem 1rem;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      color: #4f46e5;
      background: none;
      border: none;
      text-align: left;
      transition: background 0.15s, color 0.15s;
    }
    .rss-source.active, .rss-source:hover {
      background: #6366f1;
      color: #fff;
    }
    .rss-content {
      flex: 1;
      padding: 2rem 2.5rem 2rem 2.5rem;
      overflow-y: auto;
      min-width: 0;
    }
    .rss-title {
      font-size: 2rem;
      font-weight: 700;
      color: #4f46e5;
      margin-bottom: 2rem;
      text-align: center;
    }
    .rss-item {
      margin-bottom: 2.2rem;
      border-bottom: 1px solid #e0e7ff;
      padding-bottom: 1.2rem;
    }
    .rss-item:last-child { border-bottom: none; }
    .rss-item-title {
      font-size: 1.2rem;
      font-weight: 600;
      color: #22223b;
      margin-bottom: 0.5rem;
      text-decoration: none;
      display: block;
    }
    .rss-item-title:hover { color: #6366f1; }
    .rss-item-desc {
      color: #555;
      font-size: 1rem;
      margin-bottom: 0.5rem;
    }
    .rss-item-date {
      color: #888;
      font-size: 0.95rem;
    }
    @media (max-width: 800px) {
      .rss-layout { flex-direction: column; }
      .rss-sources { width: 100%; flex-direction: row; border-right: none; border-bottom: 1px solid #e0e7ff; padding: 1rem; }
      .rss-content { padding: 1rem; }
    }

/* ===================== RSS 目录-正文联动样式 ===================== */
.rss-article-catalog {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 8px 0;
}
.rss-article-link {
  background: #f7f8fa;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 1rem;
  width: 100%;
}
.rss-article-link.active,
.rss-article-link:hover {
  background: #6366f1;
  color: #fff;
}
.rss-content {
  overflow-y: auto;
  max-height: 90vh;
}

/* ===================== RSS 三栏布局 ===================== */
.rss-3col-layout {
  display: flex;
  flex-direction: row;
  height: 92vh;
  background: #fff;
  border-radius: 1.2rem;
  margin: 1rem auto;
  max-width: 96vw;
  box-sizing: border-box;
  overflow: hidden;
}
.rss-sources {
  width: 20%;
  min-width: 120px;
  max-width: 320px;
  border-right: 1px solid #ececec;
  background: #f7f8fa;
  padding: 16px 8px 16px 12px;
  overflow-y: auto;
  box-sizing: border-box;
}
.rss-content {
  flex: 1 1 60%;
  min-width: 0;
  padding: 24px 18px 24px 18px;
  overflow-y: auto;
  background: #fff;
  box-sizing: border-box;
}
.rss-catalog {
  width: 20%;
  min-width: 120px;
  max-width: 320px;
  border-left: 1px solid #ececec;
  background: #f7f8fa;
  padding: 16px 8px 16px 12px;
  overflow-y: auto;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .rss-3col-layout { flex-direction: column; }
  .rss-sources, .rss-catalog { width: 100%; max-width: none; min-width: 0; border: none; }
  .rss-content { padding: 12px 4vw; }
}

/* 隐藏滚动条样式 */
.rss-sources,
.rss-content,
.rss-catalog {
  /* 隐藏滚动条，内容可滚动 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.rss-sources::-webkit-scrollbar,
.rss-content::-webkit-scrollbar,
.rss-catalog::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

/* 全局隐藏滚动条 */
body {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}
body::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari/Webkit */
}

/* 全局隐藏所有滚动条（包括所有元素） */
* {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
}
*::-webkit-scrollbar {
  display: none !important; /* Chrome/Safari/Webkit */
}



/*webp工具风格样式*/
body {
    font-family: 'MiSans', Arial, sans-serif;
    background: #f1f3f5;
    color: #22223b;
}
.container {
    max-width: 480px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(79,70,229,0.08);
    padding: 32px 24px 24px 24px;
    text-align: center;
}
h1 {
    color: #4f46e5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}
input[type="file"] {
    display: block;
    margin: 0 auto 18px auto;
    padding: 8px 0;
    border: none;
    background: #f7f8fa;
    border-radius: 8px;
    font-size: 16px;
    color: #22223b;
}
.preset-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}
.preset-btns button {
    border: 2px solid #6366f1;
    background: #f7f8fa;
    color: #6366f1;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    box-shadow: 0 2px 8px rgba(79,70,229,0.04);
}
.preset-btns button.active {
    border-color: #4f46e5;
    background: #4f46e5;
    color: #fff;
}
.preset-btns button:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #e3e7fd;
}
#downloadBtn {
    margin-top: 18px;
    padding: 10px 28px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background: #6366f1;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(79,70,229,0.08);
    transition: background 0.2s;
}
#downloadBtn:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}
canvas {
    margin: 18px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(79,70,229,0.04);
}
