:root {
  --primary: #00c2ff;
  --primary-dark: #0099cc;
  --secondary: #6c63ff;
  --dark: #121212;
  --darker: #0a0a0a;
  --light: #f8f9fa;
  --gray: #2d2d2d;
  --border: rgba(255, 255, 255, 0.1);
  --success: #00d26a;
}

/* 屏幕阅读器专用样式 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, var(--darker), var(--dark));
  color: var(--light);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.example-link {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  text-decoration: none;
  color: var(--primary);
}

.card {
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.card-title i {
  margin-right: 10px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid var(--border);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.source label {
  display: inline-block;
}
.source input {
  width: auto;
}
.source h4 {
  margin-bottom: 10px;
}

.btn {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn i {
  margin-right: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 194, 255, 0.3);
}

.help-link {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.help-link:hover {
  color: var(--primary);
}

.console {
  background: rgba(10, 10, 10, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  color: #00ff99;
  text-align: left;
}

.console-line {
  margin-bottom: 8px;
  line-height: 1.4;
}

.error {
  color: #ff4d4d;
  margin-bottom: 1rem;
  font-weight: 500;
}

.success {
  color: var(--success);
  margin-top: 1rem;
}

.success a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.success a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.privacy-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info {
  margin-left: 3.5rem;
}

.contact-info p {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 600px;
}

.contact-info li {
  display: flex;
  align-items: center;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.contact-info a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }
}
/* Progress Bar */
.progress-bar {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(10, 10, 10, 0.8);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.progress-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.3s ease;
}

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

.modal-content {
  color: #333;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 560px;
  text-align: center;
  border-radius: 5px;
  position: relative;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 0px;
  right: 15px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.close.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.close.disabled:hover,
.close.disabled:focus {
  color: #ccc;
  cursor: not-allowed;
  text-decoration: none;
}
