body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #f4f6f9;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}
.container {
  margin: 20px 10px;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
}
h2 {
  text-align: center;
  margin-bottom: 16px;
  color: #333;
  font-size: 1.2rem;
}
label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #555;
}
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.3s;
}
button:hover {
  background: #0056b3;
}
#result {
  margin-top: 16px;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
li {
  background: #f8f9fa;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
}
li .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap; /* 手机换行 */
}
li .header span {
  font-size: 14px;
  color: #333;
  word-break: break-word;
}
li .header small {
  color: #666;
  font-size: 12px;
}
li button {
  background: #28a745;
  font-size: 13px;
  margin-top: 8px;
}
li button:hover {
  background: #1e7e34;
}
.top-links {
  text-align: right;
  margin-bottom: 10px;
}
.top-links a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}
.top-links a:hover {
  text-decoration: underline;
}
/* 表格美化 + 手机端可滚动 */
.table-wrapper {
  overflow-x: auto;
  margin-top: 6px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 380px;
  font-size: 13px;
}
th, td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: center;
}
th {
  background: #e9ecef;
}
/* ✅ 手机端优化 */
@media (max-width: 600px) {
  .container {
    margin: 10px;
    padding: 12px;
  }
  h2 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  input[type="text"] {
    font-size: 13px;
    padding: 8px 10px;
  }
  button {
    font-size: 13px;
    padding: 8px 12px;
    width: 100%; /* 手机按钮占满宽度 */
  }
  li {
    padding: 10px;
  }
  table {
    font-size: 12px;
    min-width: 300px;
  }
  th, td {
    padding: 5px 6px;
  }
  li button {
    width: 100%; /* 下载按钮手机独占一行 */
  }
}
