/* 磨砂玻璃 UI 增强版 - 解决按钮文字不显示问题 */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.3);
  --btn-radius: 10px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--primary-gradient);
  background-attachment: fixed;
  color: white;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh;
}

.container {
  width: 95%; max-width: 960px;
  margin: 2rem auto; padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 2.8rem; font-weight: 800; text-align: center;
  margin-bottom: 1.5rem; text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.logo span { color: #f093fb; }

/* 导航栏按钮 - 核心修复点 */
.nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin-bottom: 2rem;
}

.nav-btn {
  padding: 12px 20px;
  border-radius: var(--btn-radius);
  color: white !important;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  border: 1px solid var(--glass-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* 图标和文字的间距 */
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 120px; /* 确保按钮有足够宽度显示文字 */
}

.nav-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* 按钮颜色区分 */
.btn-admin { background: #6366f1; }
.btn-download { background: #3b82f6; }
.btn-profile { background: #8b5cf6; }
.btn-task { background: #ec4899; }
.btn-logout { background: #ef4444; }

/* 气泡文字提示 */
.bubble {
  background: white; color: #1f2937;
  padding: 20px; border-radius: 20px;
  margin-bottom: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative; text-align: center;
}
.bubble::after {
  content: ''; position: absolute; bottom: -10px; left: 30px;
  border-width: 10px 10px 0; border-style: solid; border-color: white transparent;
}

/* 文件列表样式优化 */
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li {
  background: rgba(255,255,255,0.95);
  margin-bottom: 10px; padding: 15px 20px;
  border-radius: 12px; display: flex; align-items: center;
  color: #374151; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.file-name { flex-grow: 1; font-weight: 600; font-size: 1rem; color: #111827; }

.share-controls { display: flex; gap: 8px; align-items: center; }

/* 操作按钮 */
.action-btn {
  padding: 6px 14px; border-radius: 18px;
  color: white !important; font-size: 0.85rem; font-weight: bold;
  border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-blue { background: #4f46e5; }
.btn-green { background: #10b981; }
.btn-orange { background: #f59e0b; }
.btn-red { background: #ef4444; }

.shared-status {
  font-size: 0.8rem; background: #ecfdf5; color: #065f46;
  padding: 4px 12px; border-radius: 15px; border: 1px solid #10b981;
}

/* 弹窗样式 */
.modal {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: white; padding: 30px; border-radius: 20px; width: 90%; max-width: 450px;
  z-index: 1001; color: #1f2937; box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.modal h3 { color: #4f46e5; text-shadow: none; margin-top: 0; }
.modal input, .modal select { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 10px; margin-top: 5px; }