* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 40px;
}

/* ===== 顶部大标题 ===== */
.site-header {
  text-align: center;
  margin-bottom: 28px;
}

.site-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 2px;
  margin: 0;
}

.site-domain {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* ===== 搜索区 ===== */
.search-area {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-area input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 24px;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-area input:focus {
  border-color: #1976f5;
  box-shadow: 0 0 0 3px rgba(25, 118, 245, 0.12);
}

.search-area button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #1976f5, #1565c0);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(25, 118, 245, 0.3);
}

.search-area button:active {
  transform: scale(0.96);
}

/* ===== 提示 ===== */
.tips {
  text-align: center;
  color: #999;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ===== 温馨提示框 ===== */
.notice-box {
  background: #f0f1f5;
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 16px;
}

/* ===== 底部免责声明 ===== */
.disclaimer {
  text-align: center;
  color: #aaa;
  font-size: 12px;
  line-height: 1.7;
  padding: 16px 10px 0;
}

/* ===== 结果区 ===== */
.result-area {
  min-height: 200px;
  display: none; /* 默认隐藏，搜索后显示 */
}
.result-area.show {
  display: block;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.result-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: relative;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-right: 70px;
  word-break: break-all;
}

.result-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.result-link-row a {
  color: #1976f5;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

.result-link-row a:hover {
  text-decoration: underline;
}

.extract-code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #666;
}

.extract-code .code {
  font-weight: 700;
  color: #e65100;
  letter-spacing: 1px;
  background: #fff3e0;
  padding: 1px 6px;
  border-radius: 4px;
}

.copy-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #1976f5, #1565c0);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: 0 1px 4px rgba(25, 118, 245, 0.3);
}

.copy-btn:active {
  transform: scale(0.93);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  box-shadow: 0 1px 4px rgba(67, 160, 71, 0.3);
}

.no-result {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.no-result .icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* ===== 底部 ===== */
.footer {
  display: none; /* 默认隐藏，搜索后显示 */
  text-align: center;
  color: #bbb;
  font-size: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.footer.show {
  display: block;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== 移动端适配 ===== */
@media (max-width: 480px) {
  .container {
    padding: 28px 12px 30px;
  }
  .site-title {
    font-size: 24px;
  }
  .site-header {
    margin-bottom: 20px;
  }
  .search-area input {
    height: 44px;
    font-size: 15px;
  }
  .search-area button {
    height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }
  .result-card {
    padding: 14px;
  }
  .result-title {
    font-size: 14px;
    padding-right: 60px;
  }
}
