/* ====== Template A: 极简黑白 ====== */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #666;
  --accent: #111;
  --border: #e5e5e5;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

/* ====== Hero ====== */
.hero {
  text-align: center;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 24px;
  transition: transform 0.3s;
}
.avatar:hover { transform: scale(1.05); }

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.contact-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contact-bar a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.contact-bar a:hover { color: var(--accent); }

/* ====== Section ====== */
.section { margin-bottom: 48px; }

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ====== Card ====== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.card-header .date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.card .subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.card p, .card ul {
  font-size: 0.95rem;
  color: #444;
}

.card ul {
  padding-left: 20px;
}
.card ul li {
  margin-bottom: 4px;
}

/* ====== Tags ====== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #555;
  font-weight: 500;
}

/* ====== Skills with Icons ====== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.skill-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.skill-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.skill-icon.html     { background: #e44d26; }
.skill-icon.css      { background: #264de4; }
.skill-icon.js       { background: #f0db4f; color: #323330; }
.skill-icon.ts       { background: #3178c6; }
.skill-icon.react    { background: #61dafb; color: #20232a; }
.skill-icon.vue      { background: #42b883; }
.skill-icon.node     { background: #3c873a; }
.skill-icon.python   { background: #3776ab; }
.skill-icon.java     { background: #f89820; }
.skill-icon.go       { background: #00add8; }
.skill-icon.rust     { background: #dea584; color: #333; }
.skill-icon.cpp      { background: #00599c; }
.skill-icon.sql      { background: #336791; }
.skill-icon.git      { background: #f05032; }
.skill-icon.linux    { background: #333; }
.skill-icon.docker   { background: #2496ed; }
.skill-icon.figma    { background: #a259ff; }
.skill-icon.default  { background: #888; }

.skill-meta {
  flex: 1;
  min-width: 0;
}

.skill-meta .name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.skill-meta .level {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ====== Awards ====== */
.award-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.award-item:last-child { border-bottom: none; }

.award-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.award-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.award-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ====== Footer ====== */
.footer {
  text-align: center;
  padding: 40px 0 20px;
  font-size: 0.8rem;
  color: #aaa;
}

/* ====== Responsive ====== */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .card-header { flex-direction: column; }
  .card-header .date { margin-top: 4px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
}
