:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fbfd;
  --text: #1f2937;
  --text-muted: #6b7280;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --border: #dbe3ee;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: #f5f7fa;
  color: #2c3e50;
}

.site-header {
  background: white;
  border-bottom: 1px solid #eee;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.brand {
  font-weight: 600;
  font-size: 18px;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #555;
}

.nav a:hover {
  color: #000;
}

.hero {
  padding: 80px 20px;
  text-align: center;
}

.hero-card {
  background: white;
  max-width: 700px;
  margin: auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-eyebrow {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0;
  font-size: 32px;
}

.hero p {
  color: #666;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.button-primary {
  background: #4CAF50;
  color: white;
}

.button-primary:hover {
  background: #45a049;
}

.section {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 24px;
}

.section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card a {
  text-decoration: none;
  color: #4CAF50;
  font-weight: 500;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workflow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

.workflow-step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0ff;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.workflow-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.workflow-step p {
  margin: 0;
  color: var(--text-muted);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--text-muted);
  font-weight: 600;
}

.site-footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #eee;
}

.site-footer-inner {
  padding: 20px 0 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-card {
    padding: 28px 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
.icon {
  margin-right: 6px;
}

.page-hero {
  padding: 36px 0 12px;
}

.page-hero-card {
  background: white;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-hero-card h1 {
  margin: 10px 0 8px;
  font-size: 32px;
}

.page-hero-card p {
  margin: 0;
  color: #667085;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tool-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.tool-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 22px;
}

.tool-subtitle {
  margin-top: 0;
  margin-bottom: 20px;
  color: #667085;
  line-height: 1.5;
}

.form-group,
.result-block {
  margin-bottom: 18px;
}

.form-group label,
.result-block label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #344054;
}

textarea,
input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: #101828;
  resize: vertical;
}

textarea:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
}

textarea[readonly] {
  background: #f8fafc;
}

.action-row {
  margin: 10px 0 16px;
}

.status {
  min-height: 24px;
  margin-bottom: 12px;
  color: #667085;
  font-size: 14px;
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.file-panel {
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 14px;
  background: #fcfcfd;
}

.file-panel-title {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #344054;
}

.file-upload-row {
  margin-bottom: 12px;
}

.file-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 160px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  font:inherit;
  resize: vertical;
}

.file-textarea.no-pointer-events {
  pointer-events: none;
}

.key-results {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.key-block {
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  padding: 14px;
  background: #fcfcfd;
}

/* 标题 + 按钮 */
.key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
  color: #344054;
}

/* 按钮组 */
.key-actions {
  display: flex;
  gap: 8px;
}

.key-actions button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: white;
  cursor: pointer;
  font-size: 12px;
}

.key-actions button:hover {
  background: #f1f2f6;
}

/* textarea */
.key-block textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  padding: 12px;
  background: #f8fafc;
  font-family: monospace;
  font-size: 12px;
  resize: vertical;
  color: #101828;
}