@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');/* 基础重置 - 自定义样式在 styles.css 中 */


:root {
  --bg: #f6f1e9;
  --bg-strong: #efe6d8;
  --card: #ffffff;
  --card-soft: #fdfaf6;
  --ink: #1c1a17;
  --muted: #5c5a55;
  --accent: #e36f4a;
  --accent-2: #0f7c7b;
  --accent-3: #f0b24f;
  --border: #eadfcd;
  --shadow: 0 18px 40px rgba(38, 32, 22, 0.08);
  --radius: 18px;
  --radius-small: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans SC', 'Space Grotesk', 'Segoe UI', sans-serif;
  background: linear-gradient(140deg, #fdfaf6 0%, #f3ebe0 40%, #edf3f1 100%);
  color: var(--ink);
  min-height: 100vh;
}

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  opacity: 0.8;
}

body::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, #f7c8a6, transparent 70%);
}

body::after {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: -200px;
  background: radial-gradient(circle at 70% 40%, #b8e3d9, transparent 70%);
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif SC', 'Times New Roman', serif;
  margin: 0;
  letter-spacing: -0.02em;
}

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.app.module-active {
  grid-template-columns: 1fr;
}

/* 侧边栏 */

.sidebar {
  padding: 32px 24px;
  background: linear-gradient(180deg, #f4ede3 0%, #f7f2e8 100%);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--accent) 0%, #ffb067 100%);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  font-size: 1.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  padding: 12px 16px;
  border-radius: var(--radius-small);
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(227, 111, 74, 0.08);
}

.nav-link.active {
  color: var(--ink);
  background: rgba(227, 111, 74, 0.12);
  font-weight: 600;
}

/* 主内容区 */

.main {
  padding: 32px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.module-active .main {
  padding: 0;
  gap: 0;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.page-header h1 {
  font-size: 2.2rem;
}

.page-subtitle {
  color: var(--muted);
  margin-top: 8px;
  max-width: 560px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* 按钮 */

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 24px rgba(227, 111, 74, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(227, 111, 74, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 卡片网格 */

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(38, 32, 22, 0.12);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.card-label {
  color: var(--muted);
}

.card-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  color: var(--ink);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* 状态标签 */

.status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-online {
  background: rgba(15, 124, 123, 0.12);
  color: var(--accent-2);
}

.status-offline {
  background: rgba(227, 111, 74, 0.15);
  color: var(--accent);
}

.status-pending {
  background: rgba(92, 90, 85, 0.12);
  color: var(--muted);
}

/* 监控面板 */

.monitor-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.monitor-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.monitor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.monitor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--card-soft);
  border-radius: var(--radius-small);
}

.monitor-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.monitor-dot.online {
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(15, 124, 123, 0.4);
}

.monitor-dot.offline {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(227, 111, 74, 0.4);
}

.monitor-name {
  font-weight: 500;
}

.monitor-url {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

/* 空状态 */

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 48px 24px;
}

/* 动画 */

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

.animate-rise {
  animation: rise 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }

.delay-2 { animation-delay: 0.2s; }

.delay-3 { animation-delay: 0.3s; }

/* 导航分隔线和分组标题 */

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.nav-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 16px;
  margin-bottom: 8px;
}

/* 模块容器 */

.module-container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
}

.floating-back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(38, 32, 22, 0.15);
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-back-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(227, 111, 74, 0.3);
}

.module-content {
  flex: 1;
  overflow: auto;
}

/* 认证加载状态 - 全屏 */

.auth-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #fdfaf6 0%, #f3ebe0 40%, #edf3f1 100%);
  color: var(--muted);
  gap: 16px;
  z-index: 9999;
}

/* 加载状态 */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: var(--muted);
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 主区域顶部栏 ==================== */

.main-top-bar {
  display: flex;
  justify-content: flex-end;
  padding: 20px 40px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(253, 250, 246, 0.98) 60%, rgba(253, 250, 246, 0) 100%);
  margin: -32px -40px 0;
  pointer-events: none;
}

.main-top-bar > * {
  pointer-events: auto;
}

/* ==================== 用户信息组件 ==================== */

.user-profile {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-profile-btn:hover {
  background: var(--bg);
  border-color: var(--border);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.user-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.user-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
}

.user-detail-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  overflow: hidden;
  animation: slideDown 0.2s ease-out;
}

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

.user-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--card-soft) 100%);
  border-bottom: 1px solid var(--border);
}

.user-detail-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-detail-info {
  flex: 1;
  min-width: 0;
}

.user-detail-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.user-detail-email {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-detail-body {
  padding: 16px 20px;
}

.user-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.user-detail-row:last-child {
  border-bottom: none;
}

.user-detail-label {
  font-size: 13px;
  color: var(--muted);
}

.user-detail-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.user-detail-value.status-active {
  color: var(--accent-2);
}

.user-detail-value.status-inactive {
  color: var(--accent);
}

.user-detail-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ==================== 过滤栏 ==================== */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.select-input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--card);
  font-size: 14px;
  min-width: 200px;
  cursor: pointer;
}

.select-input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--card);
  font-size: 14px;
  min-width: 280px;
}

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

.toggle-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.toggle-btn {
  padding: 10px 16px;
  border: none;
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.toggle-btn:not(:last-child) {
  border-right: 1px solid var(--border);
}

.toggle-btn.active {
  background: var(--accent);
  color: #fff;
}

.toggle-btn:hover:not(.active) {
  background: var(--bg-strong);
}

/* ==================== 数据表格 ==================== */

.data-table-container {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--bg-strong);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: var(--bg);
}

.data-table .mono {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
}

/* ==================== 标签 ==================== */

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 4px;
}

.tag-green {
  background: rgba(15, 124, 123, 0.12);
  color: var(--accent-2);
}

.tag-gray {
  background: rgba(92, 90, 85, 0.12);
  color: var(--muted);
}

.tag-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.tag-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.tag-gold {
  background: rgba(240, 178, 79, 0.2);
  color: #b8860b;
}

.tag-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
}

.small-text {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ==================== 按钮链接 ==================== */

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  margin-right: 4px;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link.btn-danger {
  color: #dc2626;
}

/* ==================== 模态框 ==================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-content.modal-large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

/* ==================== 表单 ==================== */

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.form-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  font-size: 14px;
  background: var(--card);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-input:disabled {
  background: var(--bg);
  color: var(--muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.text-danger {
  color: #e53935;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ==================== 页面头部按钮 ==================== */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 0 32px;
}

/* ==================== 应用列表卡片 ==================== */

.apps-list-container {
  padding: 0 32px;
}

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

.app-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.app-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.app-card-info {
  flex: 1;
  min-width: 0;
}

.app-card-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.app-card-id {
  font-size: 0.85rem;
  color: var(--muted);
}

.app-card-id .mono {
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.8rem;
}

.app-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.app-card-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 1rem;
}

.btn-icon:hover {
  background: var(--bg-strong);
}

.btn-icon.btn-danger:hover {
  background: #ffebee;
}

.tag-sm {
  font-size: 0.75rem;
  padding: 2px 8px;
}

/* ==================== 返回按钮和页面标题 ==================== */

.page-header-with-back {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.btn-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 4px;
}

.btn-back:hover {
  background: var(--bg-strong);
  border-color: var(--accent);
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==================== Tab 组件样式 ==================== */

.tabs-container {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 32px;
}

.tabs-header {
  display: flex;
  gap: 0;
  background: linear-gradient(180deg, var(--bg-strong) 0%, var(--bg) 100%);
  padding: 16px 24px 0;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab-btn {
  position: relative;
  padding: 14px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s ease;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
  color: var(--ink);
  background: var(--card);
  font-weight: 600;
  border: 1px solid var(--border);
  border-bottom-color: var(--card);
}

.tab-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}

.tabs-content {
  padding: 24px;
  background: var(--card);
}

/* ==================== Tab 工具栏 ==================== */

.tab-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.tab-toolbar .filter-bar {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  flex: 1;
  min-width: 0;
}

/* Tab 按钮图标和标签 */

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-icon {
  font-size: 16px;
}

.tab-label {
  font-family: inherit;
}

/* ==================== 应用配置页面样式 ==================== */

.app-config-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-info-header {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin: 0 32px;
}

.btn-back-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(38, 32, 22, 0.08);
}

.btn-back-circle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(227, 111, 74, 0.3);
}

.app-info-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.app-info-icon {
  font-size: 3rem;
  line-height: 1;
  padding: 12px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-strong) 100%);
  border-radius: var(--radius-small);
}

.app-info-content {
  flex: 1;
  min-width: 0;
}

.app-info-name {
  font-family: 'Noto Serif SC', 'Times New Roman', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.app-info-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.platform-badge.ios {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 197, 253, 0.15) 100%);
  color: #2563eb;
}

.platform-badge.android {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(134, 239, 172, 0.15) 100%);
  color: #16a34a;
}

.app-info-id {
  font-size: 13px;
  color: var(--muted);
}

.app-info-id code {
  margin-left: 6px;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 12px;
  color: var(--ink);
}

.app-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.app-status-indicator.active {
  background: rgba(15, 124, 123, 0.1);
  color: var(--accent-2);
}

.app-status-indicator.inactive {
  background: rgba(92, 90, 85, 0.1);
  color: var(--muted);
}

.app-status-indicator .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.app-status-indicator.active .status-dot {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.app-status-indicator.inactive .status-dot {
  background: var(--muted);
}
