/* 个人工作台 · 主站样式
   约束（来自已确认产品/技术方案）：白底深色文字、浅色细边框、简单圆角；
   无外部字体/图片/动画；正文 ≥16px、对比度 ≥4.5:1；触达区 ≥44px；
   容器最大宽度约 880px，<640px 单列，375px 视口无横向溢出。 */

:root {
  --bg: #ffffff;
  --text: #1f2328;
  --text-muted: #57606a;
  --border: #e3e7eb;
  --accent: #0f766e;
  --accent-strong: #0a5a53;
  --focus-ring: #0f766e;
  --card-bg: #ffffff;
  --radius: 10px;
  --link-tap-min: 44px; /* 可触达区域最小高度 */
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.page {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) clamp(20px, 5vw, 32px) 48px;
}

/* 标题区 */
.intro h1 {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.intro p {
  margin: 0 0 40px;
  color: var(--text-muted);
}

/* 两个工具入口：桌面两列等宽，窄屏单列 */
.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tool-card h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 6px;
}

.tool-card .tool-desc {
  margin: 0 0 20px;
  color: var(--text-muted);
  flex-grow: 1;
}

/* 入口链接：文字明确可点击，触达区 ≥44px */
.tool-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--link-tap-min);
  padding: 10px 16px;
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tool-link:visited {
  color: var(--accent);
}

.tool-link:hover {
  color: var(--accent-strong);
  background: #f4f8f7;
  border-color: #c9d6d3;
}

.tool-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* 域名辅助识别 */
.tool-domain {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* 页脚：备案信息位（无真实号码时不渲染任何内容） */
.site-footer {
  margin-top: auto;
  padding: 24px clamp(20px, 5vw, 32px) 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer:empty {
  display: none;
}

/* 窄屏：单列，标题缩小 */
@media (max-width: 639px) {
  .tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .intro h1 {
    font-size: 26px;
  }

  .intro p {
    margin-bottom: 28px;
  }
}
