:root {
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: var(--text-main);
  background: var(--bg);
}

/* Header & Hero Section */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
  text-align: center;
}

.header-content {
  max-width: 50rem;
  margin: auto;
}

.site-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.site-header h1 span {
  display: block;
  font-size: 0.4em;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 400;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Grid Layout */
main {
  max-width: 80rem;
  margin: auto;
  padding: 4rem 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pattern-grid {
  display: grid;
  /* Automatic responsive columns / 自动响应式列 */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Pattern Card Styling */
.pattern-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pattern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.step-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 4px;
}

.pattern-card h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
}

.pattern-card h3 span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pattern-card a {
  color: inherit;
  text-decoration: none;
}

.pattern-card a::after {
    content: ' →'; /* Adds a nice arrow / 添加箭头 */
    color: var(--accent);
}

.pattern-info {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1; /* Pushes the footer to the bottom / 将底部推至最下方 */
}

.pattern-info li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.pattern-info li[lang="zh"] {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pattern-why {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dotted var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 4rem 1.5rem;
  background: white;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .pattern-grid {
    grid-template-columns: 1fr;
  }
}

/* Philosophy Section Styling / 理念部分样式 */
.philosophy-section {
  margin-top: 5rem;
  padding-top: 2rem;
}

.philosophy-section hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin-bottom: 4rem;
}

.philosophy-section h2 {
  text-align: left;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.philosophy-section .content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.philosophy-section article h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.philosophy-section p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-main);
}

.philosophy-section p[lang="zh"] {
  color: var(--text-muted);
  font-size: 0.95rem;
  border-left: 3px solid var(--accent-soft);
  padding-left: 1rem;
}

/* Responsive adjustment for the philosophy section */
@media (max-width: 768px) {
  .philosophy-section .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.intro-philosophy {
  max-width: 800px;
  margin: 3rem auto;
  line-height: 1.8;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.seo-insight {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  margin: 2.5rem 0;
  border-radius: 0 8px 8px 0;
}

.seo-insight h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seo-insight ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-insight li {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.seo-insight li strong {
  display: block;
  color: var(--text-main);
}

.seo-insight li span[lang="zh"] {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}