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

body {
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* 背景图 */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 720px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* 整毛玻璃卡片 */
.glass-card {
  backdrop-filter: blur(4px) saturate(130%);
  -webkit-backdrop-filter: blur(4px) saturate(130%);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
}

/* Header */
.header {
  text-align: center;
  padding: 3rem 2.5rem 2rem;
}

.site-title {
  font-size: 3.2rem;
  font-weight: 300;
  color: #111111;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.site-subtitle {
  font-size: 1.05rem;
  color: #333333;
  margin-top: 0.75rem;
  letter-spacing: 0.3em;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tab {
  flex: 1;
  background: none;
  border: none;
  color: #333333;
  font-family: inherit;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  cursor: default;
  letter-spacing: 0.1em;
  transition: background 0.2s;
  position: relative;
}

.tab:not([data-tab="contact"]) {
  cursor: default;
}

.tab[data-tab="contact"] {
  cursor: pointer;
}

.tab[data-tab="contact"]:hover {
  background: rgba(0, 0, 0, 0.04);
}

.tab.active {
  color: #111111;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 2px;
  background: #111111;
  border-radius: 2px 2px 0 0;
}

/* Content */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.tab-panel {
  display: none;
  flex: 1;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.panel-placeholder {
  text-align: center;
  padding: 3rem 2rem;
}

.placeholder-text {
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: #333333;
}

/* Contact Grid */
.contact-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(0, 0, 0, 0.04);
}

.contact-card {
  background: transparent;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  transition: background 0.2s;
}

.contact-card[data-contact="qq"],
.contact-card[data-contact="wechat"] {
  cursor: pointer;
}

.contact-card[data-contact="qq"]:hover,
.contact-card[data-contact="wechat"]:hover {
  background: rgba(0, 0, 0, 0.04);
}

.contact-label {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #222222;
}

.contact-value {
  font-size: 1.05rem;
  color: #111111;
}

.contact-hint {
  font-size: 0.95rem;
  color: #555555;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
}

.footer a {
  color: #333333;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer a:hover {
  color: #111111;
}

/* QR Modal */
.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.qr-modal.show {
  display: flex;
}

.qr-modal-content {
  position: relative;
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  max-width: 90vw;
}

.qr-modal-content img {
  display: block;
  max-width: 260px;
  max-height: 260px;
  width: auto;
  height: auto;
  border-radius: 4px;
}

.qr-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  color: #888888;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.qr-close:hover {
  color: #111111;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .site-title {
    font-size: 2.2rem;
  }

  .tab {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .content {
    min-height: 260px;
  }

  .contact-card {
    padding: 1.25rem 1.5rem;
  }
}
