:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-color: #f0f2f5;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-main: #2d3748;
  --text-sub: #718096;
  --accent-color: #764ba2;
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Poppins", "Noto Sans SC", sans-serif;
  background: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景装饰 */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 10s infinite ease-in-out;
}
.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: #a18cd1;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: #fbc2eb;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation-delay: -5s;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, 50px) rotate(10deg);
  }
}

/* 布局 */
.hidden-section {
  display: none !important;
}
.active-section {
  display: flex;
}
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

/* 登录页 */
#login-section {
  height: 100vh;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 30px;
  text-align: center;
}
.login-header .logo-icon {
  font-size: 3rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.login-header h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}
.login-header p {
  color: var(--text-sub);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.login-form {
  margin-top: 30px;
}
.input-group {
  position: relative;
  margin-bottom: 20px;
}
.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
}
.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}
.input-group input:focus {
  background: #fff;
  border-color: #a18cd1;
  box-shadow: 0 0 0 4px rgba(161, 140, 209, 0.2);
}
.btn-primary {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s;
}
.btn-primary:active {
  transform: scale(0.98);
}
.error-text {
  color: #ff4757;
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}
.qrcode-mini {
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-sub);
}
.qr-trigger {
  margin-top: 8px;
  color: var(--accent-color);
  cursor: pointer;
  font-weight: 600;
}

/* 主页 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logout-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-sub);
  cursor: pointer;
}

/* 顶部卡片 & 警告 */
.hero-card {
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #d4edda;
  color: #155724;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.hero-card h2 {
  margin-bottom: 15px;
}

/* --- 修改：黄色高亮警告条 (解决模糊问题) --- */
.highlight-warning {
  background: #fff3cd; /* 纯色背景，不透明，解决文字发虚 */
  color: #856404; /* 深褐色文字，高对比度 */
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;

  font-weight: 800; /* 特粗字体 */
  font-size: 1rem;

  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffeeba;
  box-shadow: 0 4px 6px rgba(133, 100, 4, 0.1);
  animation: pulseWarning 2s infinite;
}
.highlight-warning i {
  color: #ff9800; /* 橙黄色图标 */
  font-size: 1.4rem;
}

/* --- 修改：红色提醒框 (notice-box) --- */
.notice-box {
  background: #ffebee; /* 淡红色背景 */
  border: 1px solid #ffcdd2;
  padding: 12px;
  border-radius: 12px;

  color: #b71c1c; /* 深红色文字 */
  font-weight: 700; /* 加粗 */
  font-size: 0.9rem;

  display: flex;
  gap: 10px;
  align-items: start;
}
.notice-box i {
  color: #d32f2f; /* 红色图标 */
  margin-top: 2px;
}

/* 简单的呼吸动画 */
@keyframes pulseWarning {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.section-title {
  margin: 30px 0 15px;
  font-size: 1.2rem;
  padding-left: 10px;
  border-left: 4px solid var(--accent-color);
}

/* 快捷操作 */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}
.action-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 15px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: transform 0.2s;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.action-btn:hover {
  transform: translateY(-3px);
}
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}
.book-icon {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
}
.cloud-icon {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

/* 账号卡片 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}
.app-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s;
}
.app-card:hover {
  transform: translateY(-3px);
}
.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}
.icon-blue {
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
}
.icon-purple {
  background: linear-gradient(135deg, #bdc3c7, #2c3e50);
}
.icon-green {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}
.icon-orange {
  background: linear-gradient(135deg, #f8b500, #fceabb);
  color: #333;
}
.icon-red {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
}
.icon-teal {
  background: linear-gradient(135deg, #4ac29a, #bdfff3);
  color: #333;
}
.app-info {
  flex: 1;
}
.app-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0;
  font-weight: 600;
}
.app-actions {
  display: flex;
  gap: 10px;
}
.btn-sm {
  padding: 8px 16px;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.footer {
  text-align: center;
  margin-top: 50px;
  color: var(--text-sub);
  font-size: 0.9rem;
}
.click-copy {
  cursor: pointer;
  margin-left: 5px;
  color: var(--accent-color);
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}
.modal-content {
  background: #fff;
  padding: 30px;
  text-align: center;
  width: 90%;
  max-width: 320px;
  position: relative;
  animation: zoomIn 0.3s ease;
  border-radius: 20px;
  max-height: 85vh;
  overflow-y: auto;
}
.wide-modal {
  max-width: 500px;
  padding: 25px;
  text-align: left;
}
.wide-modal h3 {
  text-align: center;
  margin-bottom: 20px;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  z-index: 10;
}
.qr-img {
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
}
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.qa-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #eee;
}
.qa-item.warning {
  background: #fff5f5;
  border-color: #ffc9c9;
}
.qa-q {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qa-item.warning .qa-q {
  color: #e53e3e;
}
.qa-a {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.5;
}
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease backwards;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .container {
    padding-top: 70px;
  }
  .hero-card {
    padding: 20px;
  }
  .grid-container {
    grid-template-columns: 1fr;
  }
}
