:root {
  --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #f7f8fc;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 10px 24px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  background: var(--grad);
  color: #ffffff;
  padding: 72px 0 80px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-intro {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  background: #eef2ff;
  color: var(--primary-dark);
  border: 1px solid #dfe5fb;
}

.chip-light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  margin: 0 0 32px;
  color: var(--text-muted);
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tool-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 14px;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tool-tagline {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tool-tags .chip {
  font-size: 12px;
  padding: 4px 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* News list */
.news-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  position: relative;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.section-alt .news-item {
  background: #fafbff;
}

.news-date {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.news-summary {
  margin: 0;
  color: var(--text-muted);
}

.news-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.news-link:hover {
  text-decoration: underline;
}

/* Contact */
.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.contact-line {
  margin: 0;
  font-size: 18px;
}

.contact-qr-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: #ffffff;
}

.contact-qr-hint {
  margin: -12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: #111827;
  color: #d1d5db;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  font-size: 14px;
}

footer a {
  color: #d1d5db;
}

footer a:hover {
  color: #ffffff;
}

footer .mps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

footer .mps img {
  width: 14px;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-intro {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }
}
