:root {
  --my-font-size: 1em;
}

body {
  font-family: Arial, sans-serif;
  background-color: #E0F7FA;
  color: #212121;
  margin: 0;
  padding: 0;
  font-size: var(--my-font-size);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 3%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #E0F7FA;
  width: 94%;
}

.btn-auto-copy {
  padding: 4px 5px;
  margin: 5px 0 0 0;
  background-color: #f1f8ff;
  color: #0366d6;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-notice {
  margin: 5px 0 0 0;
}

.github-style-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  margin: 5px 0 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  color: #24292e;
  background-color: #f6f8fa;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  text-decoration: none;
}

.container {
  padding: 4px 11px 11px 11px;
}

.btn-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
  height: 2.1rem;
}

.btn-range {
  font-size: 15px;
  padding: 6px 0px;
  border: 1px solid #ccc;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.btn-range:hover,
.btn-range:focus {
  background-color: #f0f0f0;
  outline: none;
}

.btn-layout {
  font-size: 1em;
  /* padding: 8px 5px; */
  border: 1px solid #4CAF50;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.btn-layout:hover,
.btn-layout:focus {
  background-color: #45a049;
  outline: none;
}

.item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  word-break: break-word;
  font-size: 1em;
  color: #333;
}

.item:hover {
  background-color: #f0f0f0;
}

/* 单列模式 */
.single-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.single-column .item {
  width: 100%;
}

/* 多列模式 */
.multi-column {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.multi-column .item {
  flex: 1 1 calc(50% - 10px);
}

.tatol {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 20px 30px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  z-index: 3000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 1em;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tatol-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tatol-text {
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 单列模式 */
.single-column .item {
  flex: 1 1 100%;
}

#ICPFiling {
  display: block;
  text-align: center;
  font-size: 0.7em;
  color: gray;
  margin-top: 2rem;
}

.hint {
  margin-top: -10px;
  margin-bottom: -10px;
  font-size: 14px;
}

.text-color {
  color: #4d6bfe;
}

/* 桌面端调整按钮宽度 */
@media (min-width: 601px) {
  .btn-layout {
    flex: 0.5;
  }
}

.notice-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.notice-modal.show {
  display: flex;
}

.notice-content {
  background: #fff;
  border-radius: 12px;
  width: 88%;
  max-width: 400px;
  max-height: 68vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: noticeIn 0.3s ease;
}

@keyframes noticeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.notice-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.notice-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.notice-close:hover {
  color: #333;
}

.notice-body {
  padding: 8px 12px;
  color: #555;
  line-height: 1.4;
  overflow-y: auto;
  flex: 1;
}

.notice-footer {
  padding: 8px 12px;
  border-top: 1px solid #eee;
  text-align: right;
}

.notice-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
}

.notice-checkbox input[type="checkbox"] {
  cursor: pointer;
}

#noticeList {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#noticeList .item {
  flex: none;
  width: 100%;
  padding: 5px 8px;
  font-size: 13px;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background-color: #ecf2fc;
  color: #333;
  border: 1px solid #d1d5da;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: all 0.3s ease;
  justify-content: center;
  align-items: center;
}

.back-to-top:hover {
  background-color: #e1ebf7;
}

.back-to-top.show {
  display: flex;
}