@import url('https://font.sec.miui.com/font/css?family=MiSans:400,700:MiSans');

body {
    font-family: 'MiSans', system-ui, -apple-system, sans-serif;
    /* background: url('./bj.png') no-repeat center center fixed; */
    background-size: cover;
    color: #334155;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

* {
    font-family: 'MiSans', system-ui, -apple-system, sans-serif;
}

.main-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    max-width: 800px;
    width: calc(100% - 40px);
    margin: 20px;
}

.title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #0f172a;
}

.mk-side-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 16px;
}

#url-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #aeaeae;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

#url-input:focus {
  border-color: #026d9f;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

#download-button, #copy-button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: #555c5c;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
}

#download-button:hover, #copy-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

#copy-button {
  background: #555c5c;
  border: none;
  outline: none;
}

.channel-container {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.label {
  color: #64748b;
  font-size: 14px;
}

.current-url {
  flex: 1;
  font-size: 14px;
  background: none;
  color: #334155a7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warning-box {
  background: #f7f7f7;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #ab1111;
}

.service-text {
  color: #010101;
}

.markdown-content {
  padding: 24px;
  border-radius: 16px;
}

.markdown-content h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 16px;
  color: #0f172a;
}

.markdown-content ul, .markdown-content ol {
  padding-left: 20px;
  margin: 12px 0;
}

.markdown-content li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #334155;
}

.code-block {
  background: #f7f8f9;
  padding: 16px;
  border-radius: 12px;
  margin: 12px 0;
}

.code-block pre {
  margin: 0;
  font-family: 'MiSans', monospace;
}

.code-block code {
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.status-display {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 5px 0;
  background-color: transparent;
  box-shadow: none;
  font-size: 14px;
  flex-wrap: wrap;
}

.status-item {
  padding: 5px 15px;
  background-color: #f7f7f7;
  border-radius: 20px;
  font-size: 12px;
  color: #333;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.3s ease;
}

.status-item:hover {
  background-color: #e0e0e0;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.04);
    width: calc(800px - 40px - 80px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Reduced gap for tighter layout */
}

.copyright, .theme-credit, .ghproxy-credit {
    font-size: 14px; /* Consistent font size */
    color: #64748b;
    margin: 0; /* Remove default paragraph margins */
    line-height: 1.5; /* Improve readability */
}

.theme-credit a {
    color: #334155; /* Slightly darker for better contrast */
    text-decoration: none;
    transition: color 0.2s ease;
}

.theme-author:hover{
    color: #0f172a;
}

.ghproxy-credit a {
    color: #334155; /* Slightly darker for better contrast */
    text-decoration: none;
    transition: color 0.2s ease;
}

.ghproxy-author:hover{
    color: #0f172a;
}


.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #0f172a;
}

.separator {
    color: #64748b;
}
.telegram-link {
    font-size: 14px;
     white-space: nowrap;
}

@media (max-width: 640px) {
  .main-content {
    padding: 24px;
    margin: 16px;
    width: calc(100% - 32px);
  }

  .mk-side-form {
    flex-direction: column;
  }

  .channel-container {
    flex-direction: column;
    align-items: stretch;
  }
  .footer{
    width: calc(100% - 32px - 48px);
  }
}