/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f7;
  min-height: 100vh;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

h1 {
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(90deg, #0084ff 30%, #ff6600 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 70px rgba(255, 159, 64, 0.9);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.subtitle {
  text-align: center;
  color: #86868b;
  font-size: 21px;
  margin-bottom: 40px;
}

.container {
  background: #ffffff;
  border-radius: 18px;
  padding: clamp(24px, 5vw, 40px);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.form-group input.flash {
  animation: shake 0.5s;
  border-color: #ff3b30;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: #0071e3;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 8px;
}

.btn:hover {
  background: #0077ed;
}

.btn:active {
  transform: scale(0.98);
}

.loading {
  display: none;
  text-align: center;
  padding: 32px 0;
}

.loading.show {
  display: block;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top: 3px solid #0071e3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading p {
  font-size: 15px;
  color: #86868b;
}

.captcha-panel {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
}

.captcha-panel[hidden] {
  display: none;
}

.captcha-panel h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.captcha-panel p {
  font-size: 14px;
  line-height: 1.5;
  color: #6e6e73;
  margin-bottom: 14px;
}

.captcha-warning {
  color: #b54708 !important;
  margin-bottom: 0 !important;
}

.taolink-recaptcha {
  display: flex;
  justify-content: center;
}

.result {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.result.show {
  display: block;
}

.result h3 {
  font-size: 20px;
  font-weight: 600;
  color: #34c759;
  margin-bottom: 20px;
}

.install-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: #0071e3;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.install-btn:hover {
  background: #0077ed;
  transform: translateY(-1px);
}

.note {
    margin-top: 32px;
    padding: 16px;
    background: #fff9e6;
    border-left: 3px solid #ff9500;
    border-radius: 8px;
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.6;
}

.note strong {
    font-weight: 600;
    color: #ff9500;
}

  .link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-top: 15px;
  }
  
  #linkText {
    flex: 1;
    word-break: break-all;
    font-size: 0.9em;
    color: #007bff;
  }
  
  .copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
  }
  
  .copy-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.35);
  }
  
  .copy-btn:active {
    transform: scale(0.95);
  }
  
  .copy-btn.copied {
    background-color: #28a745;
  }
  
  .copy-btn svg {
    display: block;
  }

/* Responsive */
@media (max-width: 640px) {
  .main-wrapper {
    padding: 24px 20px;
    gap: 16px;
  }
    
  h1 {
    font-size: 38px;
    margin-bottom: 0px;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .container {
    border-radius: 16px;
  }

  .note {
    font-size: 12px;
  }
}
