/* ============================================================
   AqunWork 官网样式 — 基于 ecom-ai "护眼绿" 设计令牌
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --accent: #43A047;
  --accent-hover: #388E3C;
  --accent-light: #E8F5E9;
  --bg: #ECF3EB;
  --surface: #FFFFFF;
  --border: #DCE5DB;
  --border-light: #EDF2EC;
  --text: #18181B;
  --text-secondary: #5C7260;
  --text-muted: #8FA893;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.1);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1100px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 56px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}
.nav-cta {
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: var(--accent) !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
}
/* mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(67,160,71,0.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(67,160,71,0.3);
  transform: translateY(-1px);
}
.btn-primary-lg {
  padding: 14px 36px;
  font-size: 16px;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 14px;
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* --- Hero --- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #E8F5E9 0%, var(--bg) 100%);
}
.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-image {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* --- Section --- */
.section {
  padding: 72px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 56px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, #E8F5E9 0%, var(--bg) 100%);
}
.page-hero h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* --- Features detail (features.html) --- */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
}
.feature-detail:last-child {
  border-bottom: none;
}
.feature-detail.reverse {
  direction: rtl;
}
.feature-detail.reverse > * {
  direction: ltr;
}
.feature-detail-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-detail-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.feature-detail-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-detail-text ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.feature-detail-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.feature-detail-image {
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Download page --- */
.download-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.download-card .version {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.download-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.download-card .file-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.download-card .requirements {
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 24px;
  line-height: 1.8;
}

/* --- About page --- */
.about-content {
  max-width: 680px;
  margin: 0 auto;
}
.about-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
}
.about-content h2:first-child {
  margin-top: 0;
}
.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.contact-card svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--accent-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section .container {
  text-align: center;
  padding: 56px 24px;
}
.cta-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-section p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- Footer --- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer a {
  color: var(--text-muted);
}
.footer a:hover {
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: 20px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #C5D3C2; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 15px;
  }

  .feature-detail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .feature-detail.reverse {
    direction: ltr;
  }
  .feature-detail-image {
    aspect-ratio: 16/9;
  }
}
