/* ✏️ 想换主题色？只改下面这几个颜色就行 */
:root {
  --bg: #fbf8f3;        /* 蓝色 */
  --text: #2b2723;      /* 绿色 */
  --muted: #7a7168;     /* 次要文字 */
  --accent: #d9622b;    /* 主题色（按钮、高亮） */
  --card: #ffffff;      /* 卡片背景 */
}

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

html { scroll-behavior: smooth; }

/* 中英切换：只显示当前语言 */
html[data-lang="zh"] .en,
html[data-lang="en"] .zh { display: none !important; }

.lang-switch {
  margin-left: 24px; padding: 2px 14px;
  border: 2px solid var(--accent); border-radius: 999px;
  background: transparent; color: var(--accent);
  font: inherit; font-weight: 600; cursor: pointer;
}
.lang-switch:hover { background: var(--accent); color: #fff; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

/* 导航 */
.nav {
  position: sticky; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 6vw;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee5da;
  z-index: 10;
}
.logo { font-weight: 700; color: var(--text); text-decoration: none; }
.nav nav a {
  margin-left: 24px; color: var(--muted); text-decoration: none;
}
.nav nav a:hover { color: var(--accent); }

/* 首屏 */
.hero {
  min-height: 80vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 6vw;
  max-width: 900px;
}
.hello { color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1.1; margin: 8px 0 16px; }
.tagline { font-size: 20px; color: var(--muted); margin-bottom: 32px; }

/* 按钮 */
.btn {
  display: inline-block; align-self: flex-start;
  padding: 12px 28px;
  background: var(--accent); color: #fff;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); margin-left: 12px;
}
#contact .btn { margin-top: 12px; }
@media (max-width: 600px) {
  .btn-outline { margin: 12px 0 0; }
}

/* 关键数据条 */
.stats {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 6vw; padding: 32px;
  background: var(--card); border: 1px solid #eee5da; border-radius: 16px;
  text-align: center;
}
.stats strong { display: block; font-size: 28px; color: var(--accent); }
.stats span { color: var(--muted); font-size: 14px; }

/* 通用区块 */
.section { padding: 80px 6vw; max-width: 1000px; }
.section h2 { font-size: 32px; margin-bottom: 20px; }
.section p { color: var(--muted); max-width: 640px; margin-bottom: 20px; }

/* 标签 */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.tags li {
  padding: 6px 16px; background: var(--card);
  border: 1px solid #eee5da; border-radius: 999px;
}

/* 作品卡片 */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card); padding: 28px; border-radius: 16px;
  border: 1px solid #eee5da;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.card-icon { font-size: 36px; margin-bottom: 8px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; }

/* 页脚 */
.footer {
  text-align: center; padding: 40px; color: var(--muted);
  border-top: 1px solid #eee5da; font-size: 14px;
}

/* 手机屏幕 */
@media (max-width: 600px) {
  .nav { flex-direction: column; gap: 6px; padding: 10px 4vw; }
  .nav nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; }
  .nav nav a { margin-left: 0; font-size: 14px; }
  .lang-switch { margin-left: 0; font-size: 14px; }
  .nav nav a[href="#contact"] {
    color: #fff; background: var(--accent);
    padding: 0 12px; border-radius: 999px;
  }
}
