:root {
  --primary: #7A6346;
  --secondary: #614F38;
  --accent: #E08A34;
  --bg: #F8F5F0;
  --card-bg: #FCFCFC;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(122, 99, 70, 0.08);
  --text: #1d1d1f;
  --text-light: #7A7A80;
  --line: rgba(122, 99, 70, 0.15);
  --glass: #FCFCFC;
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --sidebar-active: #7A6346;
  --sidebar-hover: rgba(122, 99, 70, 0.1);
  --premium-color: #E08A34;
  --ziy: #F5F0E8;
  --modal-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  --modal-radius: 20px;
  --modal-transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --primary: #A68B67;
  --secondary: #8F7757;
  --accent: #F0A54B;
  --bg: #161616;
  --card-bg: rgba(30, 30, 32, 0.8);
  --text: #f5f5f7;
  --text-light: #B0B0B5;
  --line: rgba(166, 139, 103, 0.2);
  --glass: #2D2D2D;
  --sidebar-bg: rgba(30, 30, 32, 0.85);
  --sidebar-active: #A68B67;
  --sidebar-hover: rgba(166, 139, 103, 0.15);
  --premium-color: #F0A54B;
  --ziy: #252525;
}

@font-face {
  font-family: 'Qttf';
  src: url('../字体/font.ttf') format('truetype');
}

body {
  font-family: 'Qttf', sans-serif !important;
  margin: 0;
  padding: 0;
  background: var(--bg);
  background-image: linear-gradient(to right, transparent 20px, #ccc 20px),
                    linear-gradient(to bottom, transparent 20px, #ccc 20px);
  background-size: 20px 20px;
  color: var(--text);
  transition: background 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-active {
  overflow: hidden;
}

body.modal-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(20px);
  z-index: 999;
  animation: fadeIn .4s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.person-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: var(--modal-transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.person-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 122, 255, .3);
}

.card-name {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 12px;
}

.card-quote {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .3);
}

.modal-name {
  font-size: 22px;
  font-weight: 700;
}

.modal-title {
  font-size: 14px;
  opacity: .9;
}

.modal-close {
  background: rgba(255, 255, 255, .2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: var(--modal-transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, .3);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: var(--modal-bg);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  margin: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--modal-transition);
  border: none;
  background: none;
}

.menu-item:hover {
  background: var(--sidebar-hover);
  color: var(--primary);
}

.menu-item.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.menu-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.content-header {
  margin-bottom: 28px;
}

.content-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}

.content-subtitle {
  font-size: 16px;
  color: var(--text-light);
}

.tab-pane {
  display: none;
  animation: fadeIn .4s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.info-card {
  background: #f9f9fb;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.info-card-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.info-card-title {
  font-size: 17px;
  font-weight: 600;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.info-label {
  font-size: 14px;
  color: var(--text-light);
}

.info-value {
  font-size: 14px;
  font-weight: 600;
}

.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.skill-category {
  background: #f9f9fb;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.skill-category-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-item {
  margin-bottom: 14px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 14px;
}

.skill-bar {
  height: 8px;
  background: #e5e5e7;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 4px;
  transition: width 1s ease;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal.active {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.zitiy {
  font-family: 'Qttf', sans-serif !important;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--glass);
  backdrop-filter: blur(25px) saturate(1.8);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-family: 'Qttf', sans-serif !important;
}

.menu-btn {
  width: 40px;
  height: 40px;
  margin-right: 0;
  cursor: pointer;
  fill: var(--primary);
  transition: fill 0.3s;
  border-radius: 8px;
  padding: 6px;
}

.menu-btn:hover {
  background: var(--sidebar-hover);
}

.pay-container {
  max-width: 500px;
  margin: 20px auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0px var(--line);
}

.pay-form { padding: 20px; }
.pay-section { margin-bottom: 24px; }
.section-label {
  display: block;
  font-size: 0.9em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.amount-item {
  padding: 12px 5px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: var(--ziy);
  transition: all 0.2s;
  font-weight: bold;
  color: var(--text);
}

.amount-item.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(122, 99, 70, 0.2);
}

.custom-amount-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#customAmount {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ziy);
  color: var(--text);
  font-size: 1.1em;
}

.currency-unit {
  position: absolute;
  right: 15px;
  color: var(--text-light);
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.method-item input { display: none; }

.method-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: var(--ziy);
  transition: 0.2s;
}

.method-item input:checked + .method-content {
  border-color: var(--primary);
  background: rgba(122, 99, 70, 0.05);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.alipay i { color: #1677ff; font-size: 25px; }
.wxpay i { color: #07c160; font-size: 25px; }
.qqpay i { color: #12b7f5; font-size: 25px; }
.bank i { color: #eb0029; font-size: 25px; }

.pay-submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--secondary);
  transition: 0.2s;
}

.pay-submit-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.pay-footer-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 15px;
}

.Scard {
  width: 340px;
  height: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  overflow: hidden;
  position: relative;
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: height .35s cubic-bezier(.4, 0, .2, 1),
              box-shadow .3s ease;
}

.Scard.expanded {
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.card-header {
  height: 36px;
  background: linear-gradient(#f6f6f6, #e9e9e9);
  display: flex;
  align-items: center;
  padding: 0 12px;
  user-select: none;
}

.mac-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.sidebar.minimized {
  width: 80px;
}

.sidebar.minimized .sidebar-btn {
  text-indent: -9999px;
  padding: 12px 0;
  text-align: center;
}

.sidebar.minimized .sidebar-title {
  display: none;
}

.sidebar.expanded {
  width: 400px;
}

.mac-dots:hover .dot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  font-family: Arial, sans-serif;
  color: rgba(0, 0, 0, 0.4);
}

.mac-dots:hover .Yred::before { content: "×"; }
.mac-dots:hover .Yyellow::before { content: "−"; }
.mac-dots:hover .Ygreen::before { content: "+"; }

.Yred { background: #ff5f57; }
.Yyellow { background: #febc2e; }
.Ygreen { background: #28c840; }

[data-theme="dark"] .Yred,
[data-theme="dark"] .Yyellow,
[data-theme="dark"] .Ygreen {
  filter: brightness(0.9);
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
}

.box {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.security-level {
  background: var(--premium-color);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: 600;
}

.theme-toggle {
  margin-left: auto;
  margin-right: 10px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 8px 6px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  border: 2px solid var(--primary);
  flex-shrink: 0;
  margin-top: 10px;
}

.tag {
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  background: var(--primary);
  align-self: flex-start;
}

.sidebar {
  position: fixed;
  top: 8px;
  left: 0;
  width: 260px;
  height: auto;
  max-height: calc(100vh - 8px);
  overflow-y: auto;
  background: var(--sidebar-bg);
  backdrop-filter: blur(25px) saturate(1.8);
  border-radius: 0 16px 16px 0;
  box-shadow: var(--shadow);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 200;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-window-header {
  height: 40px;
  background: linear-gradient(#f6f6f6, #e9e9e9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  user-select: none;
  flex-shrink: 0;
}

[data-theme="dark"] .sidebar-window-header {
  background: linear-gradient(#3a3a3a, #2d2d2d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-light);
  letter-spacing: 1px;
  opacity: 0.6;
  display: inline-block;
  transform: translateY(2px);
}

.user-profile {
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
  background: var(--ziy);
  border: 2px solid #fff;
}

[data-theme="dark"] .profile-avatar {
  border-color: #444;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-rank {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-weight: 500;
  text-transform: uppercase;
}

.profile-bio {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
  max-width: 180px;
}

.sidebar-win {
  margin: 40px auto;
  width: 90%;
  max-width: 480px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(25px) saturate(1.8);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hint { font-size: 12px; color: var(--accent); }

.pay-textarea {
  width: 90%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ziy);
  color: var(--text);
  font-family: inherit;
  resize: none;
  height: 60px;
  outline: none;
}

.pay-textarea:focus { border-color: var(--primary); }

.pay-footer-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 15px;
}

.sidebar-btn-g { padding: 10px 15px 0; }

.sidebar-btn {
  display: block;
  margin: 10px 0;
  padding: 5px 10px;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  border: none;
  width: calc(85% - 20px);
  font-size: 16px;
  cursor: pointer;
}

.sidebar-btn i {
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--ziy);
  border-radius: 8px;
  margin-right: 5px;
  flex-shrink: 0;
  color: var(--primary);
  transition: all 0.3s ease;
}

.sidebar-btn:hover i {
  background: var(--primary);
  color: #fff;
}

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

.sidebar-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--sidebar-active);
  border-radius: 0 2px 2px 0;
  transition: height 0.3s;
}

.sidebar-btn:hover::before {
  height: 60%;
}

.sidebar-btn.active {
  background: var(--sidebar-hover);
  color: var(--primary);
}

.sidebar-btn.active i {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.sidebar-btn.active::before {
  height: 60%;
}

.sidebar.active {
  transform: translateX(0);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 150;
  backdrop-filter: blur(4px);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.page-container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 24px;
}

.page {
  display: none;
  animation: fadeIn 0.5s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-section,
.about-section,
.services-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px auto;
  max-width: 1000px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
}

.banner-box {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--primary);
}

.banner-box::before {
  content: '';
  display: block;
  padding-top: 66.666%;
}

.banner-track,
.banner-slide,
.banner-slide img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.banner-slide {
  min-width: 100%;
  position: relative;
}

.banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
}

.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--sidebar-bg);
  border: none;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-btn:hover {
  background: var(--sidebar-bg);
}

.banner-prev { left: 16px; }
.banner-next { right: 16px; }

.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.home-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.home-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  text-align: center;
  backdrop-filter: blur(0px);
  border: 1px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.home-card .icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.res-search {
  width: 80%;
  max-width: none;
  margin: 0 auto 32px;
  display: flex;
  gap: 12px;
}

.res-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.3s;
}

.res-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.res-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.res-tag {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-light);
  font-family: 'Qttf', sans-serif !important;
}

.res-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.res-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.3s;
}

.res-card:hover {
  transform: translateY(-4px);
}

.res-card h4 {
  margin-bottom: 8px;
  color: var(--text);
}

.res-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.res-down {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s;
}

.res-down:hover {
  background: var(--accent);
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-family: 'Qttf', sans-serif !important;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-left p {
  margin: 4px 0;
}

.footer-leftq {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ziy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: 1px solid var(--line);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  border-color: var(--primary);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  background: var(--ziy);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  margin-right: 50px;
}

.version-label { color: var(--text-light); }
.version-number { color: var(--primary); font-weight: 600; }

.dot-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
}

.lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lock-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lock-overlay.active .info-card {
  transform: scale(1);
}

.info-card {
  position: relative;
  background: var(--card-bg);
  color: var(--text);
  border-radius: 16px;
  padding: 28px 32px;
  width: 320px;
  max-width: 90vw;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  border: 1px solid var(--ziy);
  backdrop-filter: blur(20px);
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
}

.info-card p {
  margin: 8px 0;
  font-size: 14px;
  color: var(--text-light);
}

.close-x {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.close-x:hover {
  color: var(--primary);
}

.bianj {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  transform: translateY(-1px);
}

.home-cta {
  background: var(--primary);
  font-family: 'Qttf', sans-serif !important;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.home-cta:hover {
  background: var(--accent);
}

.guide-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
}

.guide-title {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.guide-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto;
  border-radius: 2px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.step-card {
  background: var(--ziy);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  opacity: 0.1;
}

.step-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 16px;
}

.step-title {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}

.step-desc {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.step-list {
  list-style: none;
  padding: 0;
}

.step-list li {
  padding: 4px 0;
  color: var(--text-light);
  position: relative;
  padding-left: 20px;
}

.step-list li::before {
  content: '•';
  color: var(--primary);
  font-size: 18px;
  position: absolute;
  left: 0;
}

.emergency-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}

.emergency-title {
  font-size: 24px;
  margin-bottom: 16px;
}

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

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.tools-section { margin: 32px 0; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.tool-card {
  background: var(--ziy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.download-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 12px;
  transition: background 0.3s;
}

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

.form-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
}

.form-title {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}

.form-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 32px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ziy);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: 'Qttf', sans-serif !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.position-card {
  background: var(--ziy);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.position-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.position-card.selected {
  border-color: var(--primary);
  background: rgba(122, 99, 70, 0.1);
}

.position-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.position-title {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}

.position-desc {
  font-size: 14px;
  color: var(--text-light);
}

.time-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.time-option {
  background: var(--ziy);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.time-option:hover {
  border-color: var(--primary);
}

.time-option.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.submit-section {
  text-align: center;
  margin-top: 32px;
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.benefits-section {
  background: var(--ziy);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  border: 1px solid var(--line);
}

.benefits-title {
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.benefit-item {
  text-align: center;
  padding: 16px;
}

.benefit-icon {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
}

.section-title {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto;
  border-radius: 2px;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.story-card {
  background: var(--ziy);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.story-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-content {
  padding: 24px;
}

.story-title {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}

.story-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-light);
}

.story-date,
.story-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.story-text {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.story-quote {
  background: rgba(122, 99, 70, 0.1);
  border-left: 4px solid var(--primary);
  padding: 16px;
  margin: 16px 0;
  font-style: italic;
  color: var(--text);
}

.story-stats {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  background: var(--ziy);
  border-top: 1px solid var(--line);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
}

.adoption-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin: 32px 0;
}

.cta-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.cta-btn-primary {
  background: white;
  color: var(--primary);
}

.cta-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  background: var(--ziy);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-light);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (min-width: 769px) {
  .banner-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  .banner-prev { left: 20px; }
  .banner-next { right: 20px; }
}

@media (max-width: 600px) {
  .res-search {
    display: block;
    width: 100%;
  }
  .res-search input {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 0;
    font-size: 15px;
  }
  .res-search button.home-cta {
    width: 100%;
    padding: 10px;
    font-size: 15px;
  }
  .step-grid { grid-template-columns: 1fr; }
  .emergency-contact { flex-direction: column; align-items: center; }
  .position-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

.about-section .welcome-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.contact-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
  padding: 32px 20px;
}

.contact-header h1 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-header p {
  font-size: 1em;
  opacity: 0.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--ziy);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.25s;
}

.info-card:hover {
  transform: translateY(-2px);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  flex-shrink: 0;
}

.info-text h3 {
  font-size: 1em;
  margin-bottom: 4px;
  color: var(--text);
}

.info-text p {
  font-size: 0.9em;
  color: var(--text-light);
  line-height: 1.4;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Qttf', sans-serif !important;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ziy);
  color: var(--text);
  font-size: 1em;
  transition: border-color 0.3s;
  box-sizing: border-box;
  font-family: 'Qttf', sans-serif !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form button {
  align-self: flex-start;
  padding: 10px 28px;
  border: none;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-form button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 375px) {
  .header { padding: 0; }
  .logo { font-size: 20px; }
  .sidebar { width: 240px; }
  .page-container { padding: 0 12px; }
}

@media (max-width: 600px) {
  .home-row { grid-template-columns: 1fr; }
  .res-cats { justify-content: flex-start; }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .logo { font-size: 22px; }
  .sidebar { width: 250px; }
}

/* --- 新版 modal 核心样式 --- */
:root {
  --modal-nav-w: 220px;
  --modal-header-h: 76px;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--modal-radius);
  box-shadow: var(--modal-shadow);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal__header {
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .3);
}

.modal__name {
  font-size: 22px;
  font-weight: 700;
}

.modal__title {
  font-size: 14px;
  opacity: .9;
}

.modal__close {
  background: rgba(255, 255, 255, .2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: var(--modal-transition);
}

.modal__close:hover {
  background: rgba(255, 255, 255, .3);
  transform: rotate(90deg);
}

.modal__body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: var(--modal-bg);
}

.modal__nav {
  width: var(--modal-nav-w);
  background: rgba(0, 0, 0, .03);
  padding: 24px 0;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.modal__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 24px;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  transition: all .3s;
}

.modal__nav-item i {
  width: 20px;
  text-align: center;
}

.modal__nav-item:hover {
  background: rgba(0, 0, 0, .05);
  color: var(--primary);
}

.modal__nav-item.active {
  background: var(--primary);
  color: white;
  box-shadow: inset 4px 0 0 0 rgba(0, 0, 0, .1);
}

.modal__content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.modal__pane {
  display: none;
  animation: fadeIn .35s;
}

.modal__pane.active {
  display: block;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.info-card {
  background: rgba(0, 0, 0, .03);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--line);
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.info-card__icon {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 16px;
}

.info-card__title { font-size: 17px; font-weight: 600; }

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.info-item span:first-child { color: var(--text-light); }

.skills-showcase { display: grid; gap: 24px; }

.skill-category {
  background: rgba(0, 0, 0, .03);
  border-radius: 16px; padding: 24px;
  border: 1px solid var(--line);
}

.skill-item { margin-bottom: 14px; }

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.skill-bar {
  height: 8px; background: rgba(0, 0, 0, .08);
  border-radius: 4px; overflow: hidden;
}

.skill-progress {
  height: 100%; background: var(--primary);
  border-radius: 4px;
  width: var(--w, 0%);
  transition: width 1s cubic-bezier(.34, 1.56, .64, 1);
}

@media (max-width: 768px) {
  :root { --modal-nav-w: 0px; }
  .modal__nav { display: none; }
  .modal__content { padding: 24px; }
}
