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

html, body {
  background: #ffffff;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

#app {
  min-height: 100vh;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.page {
  display: none;
  padding: 0 16px;
}

.page.active {
  display: block;
  animation: pageIn 0.22s ease;
}

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

.notice-bar {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 4px;
  overflow: hidden;
}

.notice-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  display: block;
}

.notice-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.notice-scroll-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.notice-scroll {
  display: inline-block;
  white-space: nowrap;
  color: #ff3b30;
  font-size: 14px;
  will-change: transform;
}

.notice-scroll.rolling {
  animation: noticeScroll 14s linear infinite;
}

@keyframes noticeScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.task-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  background: #fafafa;
  border-radius: 4px;
  padding: 14px 16px;
}

.task-title {
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-all;
}

.task-sub {
  color: #ff3b30;
  font-size: 13px;
  margin-top: 6px;
  word-break: break-all;
}

.task-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.btn-detail {
  background: #d9ecff;
  color: #000000;
  border: none;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-detail:active {
  background: #bcdcff;
}

.search-box {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 0 14px;
  height: 42px;
  background: #f5f5f5;
  border-radius: 4px;
}

.search-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  display: block;
}

.search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.search-input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #000000;
  min-width: 0;
}

.search-input::placeholder {
  color: #9b9b9b;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 0;
}

.empty-icon {
  width: 120px;
  height: 120px;
  display: block;
}

.empty-icon svg {
  width: 120px;
  height: 120px;
  display: block;
}

.empty-text {
  margin-top: 14px;
  color: #999999;
  font-size: 14px;
}

.profile-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 4px;
  padding: 20px 2px;
  margin-top: 10px;
}

.avatar {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-info {
  margin-left: 14px;
  min-width: 0;
}

.profile-name {
  color: #000000;
  font-size: 17px;
  font-weight: 600;
}

.profile-uid {
  color: #999999;
  font-size: 13px;
  margin-top: 5px;
}

.func-section {
  margin-top: 18px;
}

.func-title {
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  padding-left: 2px;
}

.func-list {
  border-radius: 4px;
  overflow: hidden;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.tab-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 56px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

.tab-item.active {
  opacity: 1;
}

.tab-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tab-text {
  font-size: 11px;
  color: #666666;
  margin-top: 3px;
  transition: color 0.15s ease;
}

.tab-item.active .tab-text {
  color: #000000;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  max-width: 76vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
