/* 文件路径：my-website/assets/css/pages.css */
/* 子页面样式（总部、档案、画廊共用） */

html, body {
  overflow-y: auto;
  background: var(--color-bg);
}

.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.content-card {
  background: #fafbfc;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.content-card p {
  color: #3a5169;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

/* 画廊网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: #eaecef;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .page-container { padding: 4rem 1.2rem 3rem; }
  .page-title { font-size: 1.8rem; }
  .page-subtitle { font-size: 1rem; }
  .content-card { padding: 1.5rem; }
}