/* ============================================================
   teacross.cc · Cross 个人门户
   深绿森林 + 棕色皮革 · 自然系
   ============================================================ */

:root {
  /* 深绿森林 */
  --bg-deep: #0c150f;
  --bg-forest: #14251a;
  --bg-forest-2: #1a2f22;
  --green-glow: rgba(78, 138, 103, 0.22);

  /* 棕色皮革 */
  --leather: #6e4a2b;
  --leather-2: #5a3a20;
  --leather-3: #472c18;
  --leather-hi: #8a6238;
  --stitch: rgba(238, 222, 192, 0.28);

  /* 文字 */
  --cream: #efe7d3;
  --cream-soft: #d6cab0;
  --cream-muted: #a39981;

  /* 强调 */
  --brass: #c9a45c;
  --brass-soft: #e0c088;
  --ok: #8fbc6e;
  --down: #cf7a62;

  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

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

html { scroll-behavior: smooth; }

body {
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(1100px 720px at 85% -8%, var(--green-glow), transparent 62%),
    radial-gradient(900px 620px at 8% 108%, rgba(110, 74, 43, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-forest) 38%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---------------- 顶部导航 ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 21, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 164, 92, 0.16);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.nav-brand-dot { color: var(--brass); }

.nav-links { display: flex; gap: 0.4rem; }

.nav-links a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--cream-soft);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--brass-soft);
  background: rgba(201, 164, 92, 0.1);
}

/* ---------------- Hero（皮革） ---------------- */

.hero { max-width: 1040px; margin: 0 auto; padding: 2.2rem 1.4rem 0.6rem; }

.hero-leather {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 18% 8%, rgba(255, 216, 168, 0.15), transparent 55%),
    radial-gradient(110% 90% at 88% 96%, rgba(0, 0, 0, 0.34), transparent 58%),
    repeating-linear-gradient(35deg, rgba(0, 0, 0, 0.055) 0 3px, transparent 3px 7px),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 6px),
    linear-gradient(165deg, #7c5530 0%, #5e3b21 48%, #452a16 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 200, 0.22),
    inset 0 -14px 30px rgba(0, 0, 0, 0.32),
    var(--shadow);
}

.stitched::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--stitch);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3.6rem 2.6rem 3.4rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  color: rgba(239, 231, 211, 0.72);
  margin-bottom: 1.1rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f6efdc;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}

.hero-title {
  margin-top: 0.9rem;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  color: var(--brass-soft);
}

.hero-desc {
  max-width: 620px;
  margin: 1.2rem auto 0;
  font-size: 0.98rem;
  color: rgba(239, 231, 211, 0.82);
}

.hero-links {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.62rem 1.7rem;
  border-radius: 999px;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-brass {
  background: linear-gradient(160deg, #d4ab62, #a8823f);
  color: #241a0e;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42); }

.btn-ghost {
  border: 1px solid rgba(239, 231, 211, 0.4);
  color: var(--cream);
}

.btn-ghost:hover { background: rgba(239, 231, 211, 0.1); transform: translateY(-2px); }

/* ---------------- 通用 section ---------------- */

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.6rem 1.4rem 1rem;
  scroll-margin-top: 64px;
}

.section-head { text-align: center; margin-bottom: 1.8rem; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--cream);
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.section-sub {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--cream-muted);
}

/* ---------------- 状态卡 ---------------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.status-card {
  background: rgba(22, 39, 29, 0.62);
  border: 1px solid rgba(201, 164, 92, 0.14);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, transform 0.25s;
}

.status-card:hover { border-color: rgba(201, 164, 92, 0.4); transform: translateY(-2px); }

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  background: var(--cream-muted);
}

.status-dot.up { background: var(--ok); box-shadow: 0 0 0 4px rgba(143, 188, 110, 0.16), 0 0 12px rgba(143, 188, 110, 0.5); }
.status-dot.down { background: var(--down); box-shadow: 0 0 0 4px rgba(207, 122, 98, 0.16), 0 0 12px rgba(207, 122, 98, 0.5); }

.status-body { flex: 1; min-width: 0; }

.status-name {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--cream);
}

.status-desc { font-size: 0.8rem; color: var(--cream-muted); }

.status-meta {
  text-align: right;
  flex: none;
  font-size: 0.78rem;
  color: var(--cream-muted);
  white-space: nowrap;
}

.status-code { display: block; margin-top: 0.15rem; }

.status-code a { color: var(--brass); }
.status-code a:hover { color: var(--brass-soft); text-decoration: underline; }

.status-loading .status-name { color: var(--cream-muted); }

.status-foot {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--cream-muted);
}

/* ---------------- 项目卡 ---------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.leather-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.3);
  background:
    radial-gradient(110% 85% at 22% 6%, rgba(255, 214, 164, 0.1), transparent 55%),
    repeating-linear-gradient(40deg, rgba(0, 0, 0, 0.05) 0 3px, transparent 3px 7px),
    linear-gradient(160deg, #6e4a2b 0%, #55371f 52%, #412914 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 192, 0.16),
    inset 0 -10px 24px rgba(0, 0, 0, 0.3),
    0 14px 34px rgba(0, 0, 0, 0.32);
  padding: 1.35rem 1.4rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.leather-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4); }

.work-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--brass-soft);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(224, 192, 136, 0.3);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  margin-bottom: 0.8rem;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: #f6efdc;
  margin-bottom: 0.45rem;
}

.work-card p { font-size: 0.9rem; color: rgba(239, 231, 211, 0.82); }

/* ---------------- 履历 ---------------- */

.resume-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.timeline {
  background: rgba(22, 39, 29, 0.62);
  border: 1px solid rgba(201, 164, 92, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.tl-item { position: relative; padding-left: 1.6rem; padding-bottom: 1.6rem; }

.tl-item:last-child { padding-bottom: 0.2rem; }

.tl-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: -4px;
  width: 1px;
  background: rgba(201, 164, 92, 0.35);
}

.tl-item:last-child::before { display: none; }

.tl-dot {
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
}

.tl-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
}

.tl-when {
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.08em;
  margin: 0.1rem 0 0.45rem;
}

.tl-body p { font-size: 0.9rem; color: var(--cream-soft); }

.profile-card {
  background: rgba(22, 39, 29, 0.62);
  border: 1px solid rgba(201, 164, 92, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.profile-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brass-soft);
  margin-bottom: 0.8rem;
}

.profile-list { list-style: none; }

.profile-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--cream-soft);
  margin-bottom: 0.55rem;
}

.profile-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.55rem;
  color: var(--brass);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }

.chips span {
  font-size: 0.78rem;
  color: var(--cream-soft);
  background: rgba(201, 164, 92, 0.1);
  border: 1px solid rgba(201, 164, 92, 0.28);
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
}

/* ---------------- 联系 ---------------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.35rem;
}

.contact-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--brass-soft);
}

.contact-value { font-size: 1rem; color: #f6efdc; word-break: break-all; }

/* ---------------- 页脚 ---------------- */

.footer {
  max-width: 1040px;
  margin: 2.6rem auto 0;
  padding: 1.6rem 1.4rem 2.2rem;
  border-top: 1px solid rgba(201, 164, 92, 0.14);
  text-align: center;
  font-size: 0.82rem;
  color: var(--cream-muted);
}

.footer-motto { margin-top: 0.25rem; color: rgba(163, 153, 129, 0.7); letter-spacing: 0.14em; }

.footer .beian {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--cream-muted);
  opacity: 0.72;
  flex-wrap: wrap;
}

.footer .beian a { color: inherit; text-decoration: none; border-bottom: 1px dotted transparent; transition: color 0.2s, border-color 0.2s; }
.footer .beian a:hover { color: var(--brass-soft); border-bottom-color: var(--brass-soft); opacity: 1; }

.beian-icon { height: 14px; width: auto; vertical-align: -2px; margin-right: 4px; border-radius: 2px; }

.beian-sep { opacity: 0.55; }

/* ---------------- 响应式 ---------------- */

/* ---------------- 移动端（≤760px） ---------------- */

@media (max-width: 760px) {
  .nav-inner { padding: 0.72rem 0.9rem; }
  .nav-brand { font-size: 1.05rem; }
  .nav-links { gap: 0.1rem; }
  .nav-links a { padding: 0.34rem 0.58rem; font-size: 0.84rem; }

  .hero { padding: 1.1rem 0.85rem 0.4rem; }
  .hero-inner { padding: 2.6rem 1.15rem 2.3rem; }
  .stitched::after { inset: 7px; }
  .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.22em; margin-bottom: 0.9rem; }
  .hero-name { font-size: clamp(2.7rem, 14vw, 3.8rem); }
  .hero-title { font-size: 0.94rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-links { flex-direction: column; align-items: stretch; margin-top: 1.7rem; }
  .btn {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section { padding: 2.2rem 0.85rem 0.8rem; scroll-margin-top: 54px; }
  .section-head h2 { font-size: 1.45rem; }
  .section-sub { font-size: 0.82rem; }

  .status-grid { gap: 0.7rem; }
  .status-card { padding: 0.95rem 1rem; gap: 0.7rem; }
  .status-dot { width: 10px; height: 10px; }
  .status-name { font-size: 0.92rem; }
  .status-desc { font-size: 0.76rem; }
  .status-meta { font-size: 0.72rem; }
  .status-code { margin-top: 0.1rem; }

  .leather-card { padding: 1.1rem 1.15rem; }
  .timeline, .profile-card { padding: 1.25rem 1.2rem; }
  .resume-layout { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }

  .footer {
    padding: 1.4rem 1rem calc(1.8rem + env(safe-area-inset-bottom));
  }
}

/* 更窄屏幕（≤400px）：状态卡元信息换行，避免挤压 */
@media (max-width: 400px) {
  .status-meta { white-space: normal; text-align: right; }
}
