/* 简炼 - 美化版样式 */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --bg-dark: #0a0a0f;
  --bg-card: #151520;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent: #667eea;
  --shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  padding: 30px 0;
  animation: fadeInDown 0.8s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
  animation: pulse 2s infinite;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

/* Hero */
.hero {
  text-align: center;
  max-width: 800px;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease;
}

.title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.description {
  font-size: 16px;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Input Section */
.input-section {
  width: 100%;
  max-width: 700px;
  animation: fadeInUp 1s ease 0.2s both;
}

.input-area {
  width: 100%;
  min-height: 200px;
  padding: 24px;
  background: var(--bg-card);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.8;
  resize: vertical;
  transition: all 0.3s ease;
}

.input-area:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.2);
}

.input-area::placeholder {
  color: rgba(160, 160, 176, 0.5);
}

/* Generate Button */
.generate-btn {
  width: 100%;
  margin-top: 24px;
  padding: 18px 32px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 80px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
  transform: translateY(0);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* Result Section */
.result-section {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
  animation: fadeInUp 0.6s ease;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.result-header h2 {
  font-size: 24px;
  color: var(--text-primary);
}

.download-btn {
  padding: 12px 24px;
  background: var(--secondary-gradient);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.resume-content {
  background: white;
  color: #333;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  padding: 30px 0;
  animation: fadeInUp 1s ease 0.4s both;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
}

.copyright {
  opacity: 0.8;
}

.company {
  font-weight: 500;
}

.tagline {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .title {
    font-size: 32px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  .input-area {
    min-height: 150px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 10px;
  }
}
