/* 易小红 - TailwindCSS 优化弹窗样式 */

:root {
  --theme-color: #1fc372;
  --theme-text-color: #fff;
  --background-color: #f9f9f9;
  --border-color: #ccc;
  --seperator-color: #e7e7eb;
  --color: #757577;
  --text-color: #eee;
  --text-shadow: -1px -1px 1px #ccc, 1px 1px 1px #fff;
  --content-background-color: #fafafa;
  --scrollbar-background-color: #f1f1f1;
  --scrollbar-thumb-color: #c1c1c1;
  --tabbar-background-color: #ececec;
  --tabbar-active-color: #f9f9f9;
  --sidebar-background-color: #ececec;
  --sidebar-scrollbar-shadow: #ddd;
  --hover-color: #333;
  --disabled-color: #999;
  --selected-color: #666;
  --active-color: #333;
  --hover-background-color: #f0f0f0;
  --selected-background-color: #e0e0e0;
  --active-background-color: #f1f1f1;
  --input-background-color: #fff;
  --mask-background-color: #fffffffa;
}

* {
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: #f9fafb;
  margin: 0;
  width: 360px;
  height: 570px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 顶部导航栏 - 现代化设计 */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem;
  background-color: #fff;
  border-bottom: 1px solid #e5e7ebb3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: #6b7280;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
  position: relative;
  line-height: 1;
}

.nav-item span {
  line-height: 1;
  display: flex;
  align-items: center;
}

.nav-item:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.nav-item.active {
  color: #1fc372;
}

.nav-item.active .nav-icon {
  color: #1fc372;
}

.nav-icon {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s ease;
}

.home-icon {
  color: #1fc372 !important;
}

.badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.375rem;
  height: 0.375rem;
  background-color: #ef4444;
  border-radius: 9999px;
}

/* 核心引导区域 - 现代化设计 */
.guide-section {
  text-align: center;
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.guide-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
  max-width: 300px;
}

.login-btn {
  background-color: #1fc372;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(31, 195, 114, 0.2);
}

.login-btn:hover {
  background-color: #1fc372e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(31, 195, 114, 0.3);
}

/* 底部功能区 - 一行3个按钮布局 */
.tools-section {
  padding: 1rem 1.5rem 1.5rem;
}

.tools-title {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
}

.function-btn {
  padding: 0.75rem 0.5rem;
  background-color: #fff;
  color: #4A5568;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.75rem;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: auto;
  position: relative;
  font-family: inherit;
}

.function-btn:hover {
  background-color: rgba(31, 195, 114, 0.1);
  color: #1fc372;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.function-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.tool-icon {
  margin-right: 0;
  font-size: 1rem;
  color: #9ca3af;
}

.tool-card:hover .tool-icon {
  color: #1fc372;
}

.tool-name {
  font-size: 0.75rem;
  color: #4b5563;
  display: block;
  font-weight: 500;
}

/* 页脚信息 - 固定在底部 */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #fff;
  border-top: 1px solid #f3f4f6;
  margin-top: auto;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.logo {
  width: 25px;
  height: 25px;
  display: flex;
  margin-right: 5px;
  border-radius: 8px;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer-text {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
}

.version {
  font-size: 0.875rem;
  color: #9ca3af;
}

.version-link {
  text-decoration: none;
  color: inherit;
  color: #ddd;
  font-size: 0.675rem;
  transition: color 0.2s ease;
}





/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-section,
.tools-section {
  animation: fadeIn 0.3s ease-out;
}

/* 标签页内容区域 */
.tab-content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* 滚动条美化 */
.tab-content::-webkit-scrollbar {
  width: 4px;
}

.tab-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.tab-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.tab-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 账号管理样式 */
.account-content {
  padding: 1.5rem;
  flex: 1;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1rem 0;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: #fff;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.75rem;
}

.account-item:hover {
  border-color: #1fc372;
  box-shadow: 0 2px 4px rgba(31, 195, 114, 0.1);
}

.account-item i {
  font-size: 1.25rem;
  color: #6b7280;
}

.account-item span {
  flex: 1;
  font-size: 0.875rem;
  color: #374151;
}

.account-status {
  font-size: 0.75rem;
  color: #1fc372;
  font-weight: 500;
}

/* 消息中心样式 */
.message-content {
  padding: 1.5rem;
  flex: 1;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: #fff;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.75rem;
}

.message-item:hover {
  border-color: #1fc372;
  box-shadow: 0 2px 4px rgba(31, 195, 114, 0.1);
}

.message-item i {
  font-size: 1.25rem;
  color: #6b7280;
}

.message-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.message-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.message-desc {
  font-size: 0.75rem;
  color: #6b7280;
}

.message-time {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* 设置页面样式 - 新版布局 */
.settings-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 设置卡片样式 */
.settings-card {
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background-color: #f9fafb;
}

.settings-list {
  display: flex;
  flex-direction: column;
}

/* 常用设置项样式 */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

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

.setting-item:hover {
  background-color: #f9fafb;
}

.setting-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.setting-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.info-tooltip {
  position: relative;
  cursor: help;
}

.info-icon {
  font-size: 0.75rem;
  color: #6b7280;
  transition: color 0.2s ease;
}

.info-tooltip:hover .info-icon {
  color: #1fc372;
}

.tooltip-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #374151;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}

.info-tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.version-text {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* 帮助文档项样式 */
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

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

.doc-item:hover {
  background-color: #f9fafb;
  color: #1fc372;
  text-decoration: none;
}

.doc-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.doc-item:hover .doc-name {
  color: #1fc372;
}

.arrow-icon {
  font-size: 0.75rem;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.doc-item:hover .arrow-icon {
  color: #1fc372;
  transform: translateX(2px);
}

/* 联系反馈区样式 */
.contact-section {
  text-align: center;
  padding: 1.5rem;
}

.contact-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.qr-code {
  width: 120px;
  height: 120px;
  border-radius: 0.5rem;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.contact-note {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.4;
}

/* 开关样式 */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.switch label:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked + label {
  background-color: #1fc372;
}

.switch input:checked + label:before {
  transform: translateX(20px);
}

/* 选择框样式 */
select {
  width: 100%;
  padding: 0.375rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #374151;
  background-color: #fff;
  transition: all 0.2s ease;
}

select:focus {
  outline: none;
  border-color: #1fc372;
  box-shadow: 0 0 0 2px rgba(31, 195, 114, 0.1);
}

select:hover {
  border-color: #9ca3af;
}

/* 响应式调整 */
@media (max-width: 400px) {
  body {
    width: 380px;
  }
  
  .guide-section {
    padding: 1.5rem 1rem;
  }
  
  .tools-section {
    padding: 1rem 1rem 1.25rem;
  }
  
  .app-footer {
    padding: 0.75rem 1rem;
  }
  
  .account-content,
  .message-content,
  .settings-content {
    padding: 1rem;
  }
}