:root {
  --primary-color: #3b82f6;
  --success-color: #22c55e;
  --background-color: #f8fafc;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
  --warning-color: #dc2626;
  --domain-background: #fee2e2;
  --url-background: #fffbeb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
}

.container {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-color);
}

.url-section {
  margin: 32px 0;
  text-align: left;
  background: var(--url-background);
  padding: 24px;
  border-radius: 12px;
  border: 2px dashed var(--warning-color);
}

.url-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warning-color);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 18px;
}

.url-label i {
  font-size: 24px;
}

.url-display {
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 24px;
  margin: 12px 0;
  background: white;
  border: 3px solid var(--warning-color);
  border-radius: 12px;
  font-family: monospace;
  font-size: 20px;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1);
}

.url-display .domain {
  background: var(--domain-background);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: bold;
  color: var(--warning-color);
  border: 2px solid var(--warning-color);
  display: inline-block;
  margin: 0 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.url-display .domain:hover {
  background: var(--warning-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.url-display .domain:active {
  transform: translateY(0);
}

.url-display .domain::after {
  content: "";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.url-display .domain:hover::after {
  opacity: 1;
}

.security-tip {
  font-size: 15px;
  color: var(--warning-color);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--domain-background);
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
}

.security-tip i {
  font-size: 20px;
}

.progress-text {
  font-size: 14px;
  color: #64748b;
  margin: 16px 0;
  text-align: center;
}

.button-group {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 40px;
}

.whitelist-btn {
  border: none;
  background: none;
  color: var(--primary-color);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 44px;
  transition: all 0.2s ease;
}

.whitelist-btn:hover {
  color: var(--text-color);
}

.whitelist-btn i {
  font-size: 18px;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.confirm-btn, .visit-btn {
  width: 160px;
  height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.confirm-btn {
  background-color: var(--primary-color);
}

.confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.visit-btn {
  background-color: var(--success-color);
  display: none;
}

.visit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.visit-btn i {
  font-size: 18px;
  margin-right: 2px;
}

.required-clicks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.settings-group {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 12px;
  z-index: 100;
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.settings-item {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-color);
  background: white;
}

.settings-item.whitelist-list-btn {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-item.whitelist-list-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.settings-item .badge {
  background: #ff4757;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  text-align: center;
}

.lang-switch {
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lang-switch .current-lang {
  text-align: left;
}

.lang-switch:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.lang-switch i {
  font-size: 16px;
  color: var(--primary-color);
}

.click-number {
  width: 36px;
  height: 24px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  color: var(--text-color);
  transition: all 0.2s ease;
  -moz-appearance: textfield;
  padding: 0;
  margin-left: 4px;
}

.click-number::-webkit-inner-spin-button,
.click-number::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.click-number:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 弹层样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 5px;
}

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

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.whitelist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whitelist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #eee;
}

.whitelist-item .domain {
  font-weight: 500;
  color: #333;
}

.whitelist-item .remove-btn {
  background: none;
  border: none;
  color: #ff4757;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
}

.whitelist-item .remove-btn:hover {
  background: #ffebee;
}

.intro-page {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 24px;
}

.intro-title {
    color: var(--text-color);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.intro-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.intro-content {
    padding: 0 20px;
}

.intro-point {
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 24px 32px;
    background: var(--background-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
}

.intro-point::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s ease;
}

.intro-point:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Add sequence number style */
.intro-point span {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 12px;
    font-size: 20px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #f5f5f5;
}

.action-btn.danger-btn {
  color: var(--warning-color);
  border-color: var(--warning-color);
}

.action-btn.danger-btn:hover {
  background: var(--domain-background);
}

.search-box {
  margin-bottom: 16px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 18px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 40px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  box-sizing:border-box;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pagination {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-info
{
  flex:1;
  text-align: right;
}

.page-buttons {
  display: flex;
  gap: 8px;
}

.registration-info {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.registration-info i {
    font-size: 16px;
}

.whois-info {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
}

.whois-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.whois-info i {
    font-size: 16px;
    color: var(--primary-color);
} 

.whois-info a {
  text-decoration: unset;
} 