/* ===== 卡片 GRID（Access Navigation）===== */

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* 卡片整体排版 */
/* ===== 卡片 GRID（Access Navigation）===== */

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* 卡片整体布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* 卡片外壳 */
.card {
  background: var(--secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;   /* 圆角作用到图片 */
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* 顶部图片：1:1 正方形、撑满宽度、顶部完全对齐 */
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;   /* ⭐ 正方形 */
  object-fit: cover;     /* 填满正方形，必要时裁剪 */
}

/* 文本区统一 padding，让四张卡整齐 */
.card h3,
.card p,
.card a {
  padding: 0 20px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 12px;
}




/* 底部链接：自动贴到底边，对齐好 */
.card a {
  margin-top: auto;
  padding-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card a::after {
  content: "›";
  font-size: 16px;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.card a:hover::after {
  transform: translateX(3px);
}



/* ===== 汉堡按钮 ===== */

.hamburger {
  display: none; /* 在小屏中打开，见 responsive.css */
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;

  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

/* ===== 手机侧边菜单 ===== */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background: #111;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding: 40px 20px;
  transition: 0.3s ease;
  z-index: 1000;
}

.mobile-menu nav a {
  display: block;
  margin: 14px 0;
  font-size: 17px;
  color: #e6e6e6;
  text-decoration: none;
}

.mobile-menu nav a:hover {
  color: var(--accent);
}

.mobile-menu hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 16px 0;
}

/* 遮罩层 */
.menu-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #00000080;
  top: 0;
  left: 0;
  display: none;
  z-index: 900;
}

/* 打开状态 */
.mobile-menu.active {
  right: 0;
}

.menu-overlay.active {
  display: block;
}
