:root {
  --bg:#fdfdfc;           /* 背景：接近白色，柔和 */
  --panel:#f6f5f0;        /* 面板：浅米白 */
  --soft:#efeee9;         /* 悬浮面板：稍微深一点的米白 */
  --text:#1a1a1a;         /* 主文字：深灰黑 */
  --muted:#6e6e6e;        /* 次级文字：中灰 */

  --brand:#f4b400;        /* 品牌黄（Google 黄） */
  --brand-2:#e37400;      /* 深黄/橙色，用于强调 */
  --ok:#0f9d58;           /* Google 绿 */
  --warn:#db4437;         /* Google 红，用于警告 */
    --shadow:0 6px 20px rgba(0,0,0,.1);
  --radius:16px;

  /* 导航按钮（浅底深字，悬停亮黄） */
  --btn-bg:#ffffff;
  --btn-text:#202124;
  --btn-border:#e0e0e0;
  --btn-hover:#f4b400;    /* 悬停黄 */
}
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; }
}
*{ box-sizing:border-box; }

/* -------- 基础色来自新的 :root 变量（白+黄） -------- */
body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, PingFang SC, "Hiragino Sans GB", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(244,180,0,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(227,116,0,.14), transparent 60%),
    var(--bg);
  color:var(--text);
}

/* ------- 通用布局 ------- */
.container{ width:min(1100px,92%); margin:0 auto; }
section{ padding:80px 0; }
h1,h2,h3{ margin:0 0 12px; line-height:1.1; }
h2{ font-size:clamp(26px,3vw,34px); }
p{ color:var(--muted); line-height:1.8; }

/* 卡片：浅色渐变+浅边框 */
.card{
  background:linear-gradient(180deg, var(--soft), var(--panel));
  border:1px solid #e8e6de; border-radius:var(--radius); box-shadow:var(--shadow);
}
.card-plain{
  background:linear-gradient(180deg,#f7f6f1,#fdfdfc);
  border:1px solid #eceae2; border-radius:var(--radius);
}

.pad{ padding:24px; }

/* 按钮（浅底深字） */
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:12px 18px; border-radius:12px; border:1px solid #e0e0e0;
  background:linear-gradient(180deg,#ffffff,#f6f5f0); color:#202124;
  cursor:pointer; transition:transform .15s ease, background .2s ease, border-color .2s;
  text-decoration:none; font-weight:600;
}
.btn:hover{ transform:translateY(-1px); border-color:#d5d5d5; }
.btn.primary{
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#000; border-color:#d78a00;
}
.btn.primary:hover{ filter:brightness(1.04); }
.pill{
  padding:6px 12px; border:1px solid #e0e0e0; border-radius:999px;
  color:var(--muted); background:#ffffff;
}

/* ------- 顶部导航 ------- */
header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(140%) blur(8px);
  background:rgba(255,255,255,.7);
  border-bottom:1px solid #ececec;
}
.nav{ display:flex; justify-content:space-between; align-items:center; height:64px; }
.brand{ display:flex; align-items:center; gap:.7rem; }
.logo{
  width:34px; height:34px; display:grid; place-items:center; border-radius:10px;
  background:radial-gradient(80% 80% at 30% 20%, var(--brand), var(--brand-2) 60%);
  box-shadow:0 6px 18px rgba(244,180,0,.35), inset 0 0 18px rgba(0,0,0,.05);
  font-weight:900; letter-spacing:.5px; color:#000;
}

/* 顶部导航按钮（浅底深字，悬停亮黄） */
.nav-right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.nav-btn{
  appearance:none; border:1px solid var(--btn-border);
  background:var(--btn-bg); color:var(--btn-text);
  padding:10px 14px; border-radius:12px; cursor:pointer; text-decoration:none;
  font-weight:700; letter-spacing:.2px;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nav-btn:hover, .nav-btn:focus-visible{
  background:var(--brand); color:#000;
  border-color:transparent; box-shadow:0 0 0 3px rgba(244,180,0,.35);
}
.nav-btn.active{ background:var(--brand); color:#000; border-color:transparent; }
.theme-toggle{ border-radius:10px; }

/* ------- Hero ------- */
.hero{ display:grid; grid-template-columns:1.1fr .9fr; gap:30px; padding:80px 0; align-items:center; }
.big{ font-size:clamp(30px,5vw,54px); font-weight:900; }
.accent{ color:var(--brand); text-shadow:0 8px 30px rgba(244,180,0,.35); }

.meta{ display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 26px; }
.right{ position:relative; min-height:320px; }
/* 玻璃卡：浅色+黄光晕 */

 .glass {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(225,29,72,.16), rgba(225,29,72,0) 35%),
    linear-gradient(160deg, rgba(159,18,57,.12), rgba(159,18,57,0) 55%),
    #0d0e12; /* 深黑底 */
  border: 1px solid #2a2d39;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px dashed rgba(225,29,72,.35); /* 红色虚线 */
  animation: spin 12s linear infinite;
  top: 16px;
  right: 16px;
}

.orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e11d48; /* 品牌红 */
  position: absolute;
  top: -7px;
  left: calc(50% - 7px);
  box-shadow: 0 0 24px rgba(225,29,72,.85); /* 红色光晕 */
}

@keyframes spin{ to{ transform:rotate(360deg); } }

/* ------- 栅格 ------- */
.grid{ display:grid; gap:18px; }
.grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.grid.cols-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:880px){
  .hero{ grid-template-columns:1fr; }
  .grid.cols-3, .grid.cols-2{ grid-template-columns:1fr; }
}
/* ------- About ------- */
.about .card{ padding:26px; }
/* ------- Skills ------- */
.skills .toolbar{ display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 20px; }
.chip{
  user-select:none; cursor:pointer; border:1px solid #e0e0e0; color:var(--muted);
  background:#ffffff; padding:8px 12px; border-radius:999px; font-weight:600;
  transition:background .15s, color .15s, border-color .15s;
}
.chip[aria-pressed="true"]{
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#000; border-color:#d78a00;
}
.skill{ padding:16px; border:1px solid #e8e6de; border-radius:14px; background:#ffffff; }
/* ------- Projects ------- */
.project{ position:relative; overflow:hidden; }
.project .thumb{ aspect-ratio:16/9; background:#f1f1f1; display:grid; place-items:center; color:#444; font-weight:700; letter-spacing:.6px; }
.project .meta{ padding:16px; }
.project .tag{ color:#e37400; font-weight:700; }
.project button{ position:absolute; right:12px; top:12px; }
/* ------- Modal ------- */
dialog.modal{
  border:none; border-radius:16px; padding:0; width:min(720px,92%);
  background:var(--panel); color:var(--text);
  box-shadow:0 25px 60px rgba(0,0,0,.18);
}
dialog::backdrop{ backdrop-filter:blur(2px); background:rgba(0,0,0,.35); }
.modal header{
  position:sticky; top:0;
  background:linear-gradient(180deg,#fff,#f6f5f0);
  border-bottom:1px solid #eceae2; border-radius:16px 16px 0 0;
}
.modal .head{ height:58px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; }
.modal .content{ padding:18px 16px 24px; }
/* ------- Contact ------- */
form{ display:grid; gap:14px; }
.field{ display:grid; gap:8px; }
label{ font-weight:700; color:#3a3a3a; }
input, textarea{
  background:#ffffff; border:1px solid #dedede; color:#202124;
  padding:12px 14px; border-radius:12px; font-size:16px;
}
input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--brand); border-color:#d78a00;
}
.hint{ font-size:12px; color:var(--muted); }
.form-row{ display:flex; gap:10px; align-items:center; justify-content:space-between; }
.consent{ display:flex; align-items:center; gap:.5rem; color:var(--muted); }
.about .card p { margin: 10px 0 0; }
.about ul { margin-top: 8px; }
.about li { line-height: 1.75; }
/* ------- 底部 & 浮动 ------- */
footer{ padding:36px 0 60px; color:var(--muted); text-align:center; border-top:1px solid #eee; }
.back-top{ position:fixed; right:18px; bottom:18px; display:none; }
.toast{
  position:fixed; left:50%; transform:translateX(-50%); bottom:22px;
  background:#ffffff; color:#202124; border:1px solid #e4f1e9;
  padding:10px 14px; border-radius:12px; display:none; box-shadow:var(--shadow);
}
.toast.ok{ border-color:#cfe8db; }
/* 语言下拉 */
.lang{ position:relative; }
.lang-toggle{ display:flex; align-items:center; gap:6px; }
.chevron{ opacity:.7; }
.lang-menu{
  position:absolute; right:0; top:calc(100% + 8px);
  list-style:none; margin:0; padding:6px; background:#ffffff;
  border:1px solid var(--btn-border);
  border-radius:12px; box-shadow:var(--shadow); min-width:180px; display:none;
}
.lang-menu.show{ display:block; }
.lang-menu li{ margin:2px 0; }
.lang-menu li button{
  width:100%; text-align:left; background:transparent; border:0; color:#202124;
  padding:10px 12px; border-radius:10px; cursor:pointer; transition:background .18s ease, color .18s ease;
}
.lang-menu li button:hover, .lang-menu li button:focus-visible{
  background:var(--brand); color:#000;
}
/* 容器（你原本已有，可保留） */
.hero .right { position: relative; min-height: 320px; }
.glass {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(225,29,72,.16), rgba(225,29,72,0) 35%),
              linear-gradient(160deg, rgba(159,18,57,.12), rgba(159,18,57,0) 55%),
              #0d0e12;
  border: 1px solid #2a2d39; box-shadow: var(--shadow);
  overflow: hidden; display: grid; place-items: center;
}

/* 轨道与小球 */
.orbit {
  position: absolute; width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--brand) 40%, transparent);
  animation: spin 12s linear infinite;
  top: 16px; right: 16px;
}
.orb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand);
  position: absolute; top: -7px; left: calc(50% - 7px);
  box-shadow: 0 0 24px color-mix(in oklab, var(--brand) 85%, white);
}

/* 动画 */
@keyframes spin { to { transform: rotate(360deg); } }


