/* Final stylesheet matched to the current index.html structure. */

/* ========== Reset & Base ========== */

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

:root {
  --bg: #f8f7f4;
  --bg-alt: #f0efeb;
  --text: #1a1a1a;
  --text-secondary: #5c5c5c;
  --text-muted: #8a8a8a;
  --border: #e5e4df;
  --accent: #2c3e2d;
  --accent-hover: #1f2d20;
  --card-bg: #ffffff;
  --surface: #f3f2ee;
  --text-primary: var(--text);
  --header-bg: rgba(248, 247, 244, 0.92);
  --floating-control-bg: rgba(255, 255, 255, 0.92);
  --on-accent: #ffffff;
  --overlay: rgba(0, 0, 0, 0.35);
  --shadow: rgba(0, 0, 0, 0.12);
  --scrollbar: #d0cec8;
  --scrollbar-hover: #b0aea8;
  --radius: 10px;
  --max-width: 1100px;
  --header-h: 68px;
}

/* ========== Theme: Dark ========== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111311;
  --bg-alt: #181b18;
  --text: #f1f3ef;
  --text-secondary: #b7bdb5;
  --text-muted: #848b82;
  --border: #2c322d;
  --accent: #b7c9ad;
  --accent-hover: #d1dfca;
  --card-bg: #161916;
  --surface: #202420;
  --text-primary: var(--text);
  --header-bg: rgba(17, 19, 17, 0.9);
  --floating-control-bg: rgba(30, 34, 30, 0.94);
  --on-accent: #111311;
  --overlay: rgba(0, 0, 0, 0.58);
  --shadow: rgba(0, 0, 0, 0.35);
  --scrollbar: #3c433d;
  --scrollbar-hover: #525b53;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: 0.25s;
}

.menu-toggle span:first-child {
  top: 4px;
}

.menu-toggle span:last-child {
  bottom: 4px;
}

.menu-toggle.active span:first-child {
  top: 9px;
  transform: rotate(45deg);
}

.menu-toggle.active span:last-child {
  bottom: 9px;
  transform: rotate(-45deg);
}

/* ========== Hero ========== */

.hero-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero {
  padding: 80px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4/3;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
  line-height: 1.6;
}

.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--floating-control-bg);
  border: 1px solid var(--border);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s;
  z-index: 2;
}

.hero-btn:hover {
  background: var(--card-bg);
}

.hero-btn.prev {
  left: 14px;
}

.hero-btn.next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.dot.active {
  background: var(--accent);
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ========== Common Section ========== */

.section-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ========== Work ========== */

.work {
  padding: 100px 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.work-card:hover {
  border-color: #c8c7c2;
  transform: translateY(-2px);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 12px;
}

.work-num {
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.work-tag {
  color: var(--accent);
  font-weight: 500;
}

.work-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.work-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tags span {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* ========== POV ========== */

.pov {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pov blockquote {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 20px;
  letter-spacing: -0.01em;
}

.pov-note {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== Writing ========== */

.writing {
  padding: 80px 0;
}

/* ========== Awards ========== */

.awards {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.award-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.award-item:last-child {
  border-bottom: none;
}

.award-year {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.award-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.award-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========== Certifications ========== */

.certs {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.certs-section {
  padding: 80px 0;
  background: var(--bg);
}

.certs-section .certs-grid {
  margin-top: 0;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cert-card {
  text-align: center;
}

.cert-img-placeholder {
  height: 140px;
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.cert-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 12px;
}

.cert-card h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ========== Notes ========== */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.note-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.note-card:hover {
  border-color: #c8c7c2;
  transform: translateY(-2px);
}

.note-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.note-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.note-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ========== About ========== */

.about {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-item {
  padding: 8px 0;
}

.about-num {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.about-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Contact ========== */

.contact {
  padding: 100px 0 80px;
}

.contact-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.75;
}

/* ========== AI ========== */

.ai-modal {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

.ai-modal.open {
  opacity: 1;
  visibility: visible;
}

.ai-modal-content {
  background: var(--card-bg);
  border-radius: 14px;
  width: 90%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 20px 50px var(--shadow);
  transform: translateY(12px);
  transition: transform 0.25s;
}

.ai-modal.open .ai-modal-content {
  transform: translateY(0);
}

.ai-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 15px;
}

.ai-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.ai-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.6;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ai-suggestions button {
  font-size: 13px;
  padding: 7px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.ai-suggestions button:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.ai-input {
  display: flex;
  gap: 10px;
}

.ai-input input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}

.ai-input button {
  padding: 11px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  opacity: 1;
  cursor: pointer;
}

.nav-ai {
  color: var(--accent) !important;
  font-weight: 500;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

/* ========== Footer ========== */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== Responsive ========== */

@media (max-width: 900px) {

  .hero-grid {

    grid-template-columns: 1fr;

    gap: 40px;

  }

  .hero-slider {

    order: -1;

    max-height: 320px;

  }

  .certs-grid {

    grid-template-columns: repeat(3, 1fr);

  }

}

@media (max-width: 768px) {

  .nav {

    position: fixed;

    top: var(--header-h);

    left: 0;

    right: 0;

    background: var(--bg);

    flex-direction: column;

    padding: 24px;

    gap: 20px;

    border-bottom: 1px solid var(--border);

    transform: translateY(-120%);

    opacity: 0;

    transition: 0.25s;

    pointer-events: none;

  }

  .nav.open {

    transform: translateY(0);

    opacity: 1;

    pointer-events: auto;

  }

  .menu-toggle {

    display: block;

  }

  .hero {

    padding: 70px 0 60px;

  }

  .work-grid {

    grid-template-columns: 1fr;

  }

  .about-grid {

    grid-template-columns: 1fr;

    gap: 28px;

  }

  .work, .about, .contact {

    padding: 70px 0;

  }

  .pov {

    padding: 60px 0;

  }

  .notes-grid {

    grid-template-columns: 1fr;

  }

  .awards,
  .writing {

    padding: 70px 0;

  }

}

@media (max-width: 600px) {

  .certs-grid {

    grid-template-columns: repeat(2, 1fr);

  }

  .award-item {

    grid-template-columns: 80px 1fr;

  }

}

@media (max-width: 480px) {

  .hero-actions {

    flex-direction: column;

  }

  .btn {

    justify-content: center;

  }

}
/* ========== Ecosystem ========== */
.ecosystem {
  padding: 100px 0;
}

.eco-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.eco-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.eco-stat-num {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.eco-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.eco-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.eco-filter {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.eco-filter:hover,
.eco-filter.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.eco-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.eco-card:hover {
  border-color: #c8c7c2;
  transform: translateY(-2px);
}

.eco-card-tag {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}

.eco-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.eco-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 时间线 */
.eco-timeline {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 12px;
  border-left: 2px solid var(--border);
  margin-left: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 0 0 28px 24px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 侧边抽屉 */
.eco-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

.eco-drawer.open {
  opacity: 1;
  visibility: visible;
}

.eco-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90%;
  height: 100%;
  background: var(--card-bg);
  padding: 32px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.eco-drawer.open .eco-drawer-content {
  transform: translateX(0);
}

.eco-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 900px) {
  .eco-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .eco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .eco-grid {
    grid-template-columns: 1fr;
  }
  .eco-stats {
    grid-template-columns: 1fr 1fr;
  }
}
/* ========== 统一卡片区域高度 + 内部滚动 ========== */

/* 精选项目 */
.work-grid {
  max-height: 680px;          /* 可根据实际调整，建议 620–720px */
  overflow-y: auto;
  padding-right: 8px;         /* 给滚动条留一点空间 */
  align-content: start;
}

/* 生态观察卡片 */
.eco-grid {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
  align-content: start;
}

/* 文章与积累 */
.notes-grid {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
  align-content: start;
}

/* 让同一区域内的卡片高度尽量一致 */
.work-card,
.eco-card,
.note-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.work-card p,
.eco-card p,
.note-card p {
  flex: 1;
}

/* 滚动条美化（可选，保持简约） */
.work-grid::-webkit-scrollbar,
.eco-grid::-webkit-scrollbar,
.notes-grid::-webkit-scrollbar {
  width: 6px;
}

.work-grid::-webkit-scrollbar-track,
.eco-grid::-webkit-scrollbar-track,
.notes-grid::-webkit-scrollbar-track {
  background: transparent;
}

.work-grid::-webkit-scrollbar-thumb,
.eco-grid::-webkit-scrollbar-thumb,
.notes-grid::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 3px;
}

.work-grid::-webkit-scrollbar-thumb:hover,
.eco-grid::-webkit-scrollbar-thumb:hover,
.notes-grid::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-hover);
}
/* Hero 副标题 */
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 500;
  color: var(--accent);
  margin: 8px 0 20px;
  letter-spacing: 0.5px;
}

/* Experience 时间轴 */
.experience {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.exp-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 28px;
}

.exp-item {
  position: relative;
}

.exp-time {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.exp-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.exp-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .exp-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========== Theme Toggle ========== */
.theme-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--floating-control-bg);
  color: var(--text);
  box-shadow: 0 8px 28px var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle-icon {
  width: 18px;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.theme-toggle-label {
  white-space: nowrap;
}

/* 深色模式下，图片保持原始色彩，不做反色处理 */
html[data-theme="dark"] img {
  color-scheme: only light;
}

@media (max-width: 600px) {
  .theme-toggle {
    right: 14px;
    bottom: 14px;
    min-width: 42px;
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .theme-toggle-label {
    display: none;
  }
}
