﻿:root {
  --bg: #e9f4fb;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #8c93a3;
  --line: #e8ebf2;
  --primary: #50c9ff;
  --accent: #262d42;
  --warning: #f14444;
  --tag: #eaf6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #d8edf8 0%, #eef4f8 260px, #f3f5fa 100%);
}

a {
  color: inherit;
}

.app-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: transparent;
  position: relative;
  padding-bottom: 82px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: rgba(225, 241, 249, 0.85);
  padding: 14px 16px 8px;
}

.row {
  display: flex;
  align-items: center;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.search {
  flex: 1;
  border: 0;
  background: #fff;
  border-radius: 999px;
  height: 40px;
  padding: 0 14px;
  color: #5e6778;
  font-size: 15px;
}

.home-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-mini-wrap {
  flex: 0 0 auto;
}

.search-mini {
  width: 118px;
  height: 36px;
  padding: 0 10px;
  font-size: 15px;
}

.search-mini-btn {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1;
}

.school-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.school-tab {
  font-size: 17px;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: #6f7a8c;
  padding: 0 0 6px;
  border-bottom: 3px solid transparent;
}

.school-tab.active {
  color: #10151f;
  border-color: #10151f;
}

.school-tabs-inline {
  margin-top: 0;
  gap: 12px;
}

.school-tabs-inline .school-tab {
  font-size: 16px;
  padding-bottom: 6px;
}

.section {
  padding: 12px;
}

.card {
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 5px 20px rgba(32, 44, 84, 0.05);
}

.hot-card {
  padding: 12px 14px 10px;
}

.hot-title {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.hot-title .hl {
  box-shadow: inset 0 -8px 0 #c8ff4f;
}

.hot-lines {
  min-height: 94px;
}

.hot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  cursor: pointer;
}

.hot-item .left {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.hot-item .score {
  color: #8d96a8;
  font-weight: 700;
}

.notice {
  color: #1847e0;
  font-size: 13px;
  margin-top: 6px;
}

.feed-tabs {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 12px;
  font-size: 14px;
  margin: 10px 0 8px;
  padding-bottom: 2px;
}

.feed-tab {
  border: 0;
  background: transparent;
  color: #7d8494;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 0;
}

.feed-tab.active {
  color: #1a1f2d;
  font-weight: 700;
  border-bottom: 4px solid #9b5cff;
}

.post-card {
  margin-bottom: 12px;
  padding: 12px;
}

.clickable-card {
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.clickable-card:active {
  transform: translateY(1px) scale(0.998);
  box-shadow: 0 3px 12px rgba(32, 44, 84, 0.08);
}

.user-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-main {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar.clickable {
  cursor: pointer;
}

.name {
  font-size: 16px;
  font-weight: 700;
}

.time {
  color: #8e97a8;
  font-size: 13px;
}

.tag {
  margin-top: 4px;
  display: inline-block;
  background: var(--tag);
  color: #45a4db;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
}

.tag-warn {
  background: #fff3e7;
  color: #d7741a;
}

.post-title {
  margin: 10px 0 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.post-content {
  font-size: 14px;
  line-height: 1.65;
  color: #202634;
}

.row-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #6f7789;
  font-size: 13px;
}

.action-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  padding: 6px 4px;
  cursor: pointer;
}

.comment-preview {
  margin-top: 8px;
  background: #f6f8fc;
  border-radius: 10px;
  padding: 8px;
  color: #6b7384;
  font-size: 13px;
}

.comment-text {
  font-size: 13px;
  line-height: 1.65;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  background: rgba(253, 254, 255, 0.98);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 78px;
  z-index: 12;
}

.nav-btn {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: #9aa1b1;
  font-size: 30px;
  padding-top: 4px;
  cursor: pointer;
}

.nav-btn.active {
  color: #212736;
  font-weight: 700;
}

.nav-label {
  margin-top: 2px;
  font-size: 13px;
}

.plus-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #252d42;
  color: #fff;
  font-size: 35px;
  display: grid;
  place-items: center;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.panel {
  padding: 14px;
  margin: 12px;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid #d8ddeb;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.form-item {
  margin-bottom: 12px;
}

.label {
  font-size: 14px;
  color: #5b6476;
  margin-bottom: 5px;
  display: block;
}

.switch-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid #cfd6e5;
  border-radius: 999px;
  padding: 6px 11px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.chip.active {
  border-color: #67beff;
  background: #e9f5ff;
  color: #1691f2;
}

.primary-btn,
.danger-btn,
.gray-btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  background: #0b0f1a;
  color: #fff;
}

.gray-btn {
  background: #ecf0f6;
  color: #3d4554;
}

.danger-btn {
  background: #f04f46;
  color: #fff;
}

.btn-row {
  display: flex;
  gap: 8px;
}

.btn-row > * {
  flex: 1;
}

.login-wrap {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px;
  background: linear-gradient(180deg, #dbeef9 0%, #f8fbff 55%, #f6f7fc 100%);
}

.login-title {
  font-size: 42px;
  font-weight: 900;
  margin: 10px 0 4px;
}

.login-sub {
  color: #697082;
  margin-bottom: 16px;
  font-size: 16px;
}

.login-grid {
  display: grid;
  gap: 12px;
}

.small-tip {
  color: #767f90;
  font-size: 13px;
}

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(23, 29, 42, 0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 120;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 28, 0.5);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 16px;
}

.modal {
  width: min(100%, 440px);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-tab {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  background: #9ea6b8;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.modal-tab.active {
  background: #2f88f4;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  cursor: pointer;
}

.rank-item .right {
  color: #d55852;
  font-weight: 800;
}

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

.back {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #2e3547;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.profile-top {
  text-align: center;
  padding: 16px 12px;
}

.profile-top .avatar {
  margin: 0 auto 10px;
  width: 86px;
  height: 86px;
  font-size: 24px;
}

.profile-name {
  font-size: 35px;
  font-weight: 800;
}

.pill {
  font-size: 12px;
  border: 1px solid #75cc88;
  color: #2d9b4f;
  border-radius: 999px;
  padding: 3px 8px;
  margin-left: 8px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 12px;
  color: #636d7f;
}

.notice-box {
  margin: 16px 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  color: #505a70;
  box-shadow: 0 5px 16px rgba(34, 46, 79, 0.04);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.service-item {
  border: 1px solid #e6ebf4;
  background: #fafcfe;
  border-radius: 12px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  color: #4a5367;
  cursor: pointer;
}

.service-ico {
  font-size: 20px;
  color: #202838;
}

.me-topbar {
  background: #f4f5f7;
  padding: 12px 14px 8px;
}

.me-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.me-title {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
}

.me-head-tools {
  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid #e7e8eb;
  border-radius: 999px;
  padding: 4px;
}

.me-tool-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  min-width: 36px;
  height: 30px;
  font-size: 15px;
  color: #202634;
}

.me-section {
  background: #f4f5f7;
  min-height: calc(100vh - 130px);
}

.me-card,
.me-service-card,
.me-mini-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: none;
  border: 1px solid #eceef2;
  margin-bottom: 10px;
}

.me-card {
  padding: 14px 14px 10px;
}

.me-profile-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.me-avatar {
  width: 76px;
  height: 76px;
  font-size: 24px;
  border-radius: 20px;
}

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

.me-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.me-name {
  font-size: 20px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-edit {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  font-size: 15px;
  color: #5d6475;
}

.profile-edit-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.profile-edit-avatar {
  width: 92px;
  height: 92px;
  border-radius: 24px;
}

.me-school-pill {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid #91b5da;
  color: #4f81bb;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}

.me-verify-pill {
  border-radius: 999px;
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid #d9e2dd;
}

.me-verify-pill.is-ok {
  color: #2a9e66;
  border-color: #8bd3b3;
  background: #ecf8f2;
}

.me-verify-pill.is-wait {
  color: #8b929f;
  border-color: #d6d9de;
  background: #f6f7f9;
}

.me-stats-row {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
  padding-top: 8px;
}

.me-stat {
  text-align: center;
}

.me-stat-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.me-stat-btn:active {
  opacity: 0.7;
}

.me-stat-num {
  font-size: 24px;
  font-weight: 500;
}

.me-stat-label {
  margin-top: 2px;
  color: #9aa0ac;
  font-size: 13px;
}

.me-service-card {
  padding: 14px 12px;
}

.me-service-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.me-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 4px;
}

.me-service-item {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #6f7583;
  padding: 4px 0;
}

.me-service-ico {
  font-size: 24px;
  color: #626875;
}

.me-mini-card {
  padding: 12px;
}

.detail-page {
  padding-bottom: 96px;
}

.comment-compose-bottom {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: min(456px, calc(100% - 24px));
  padding: 10px;
  z-index: 16;
}

.comment-compose-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-input {
  flex: 1;
  margin: 0;
}

.comment-send-btn {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 10px 14px;
}

.course-card {
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.course-title {
  font-size: 16px;
  font-weight: 800;
}

.course-meta {
  margin-top: 4px;
  color: #3f98db;
  font-size: 13px;
  font-weight: 700;
}

.course-count {
  margin-top: 3px;
  color: #cf6265;
  font-size: 12px;
}

.msg-tabs {
  display: flex;
  padding: 0 12px;
  gap: 8px;
}

.msg-tab {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  background: #eff3fa;
  color: #495063;
  font-size: 13px;
}

.msg-tab.active {
  background: #dff2ff;
  color: #1889df;
}

.msg-item {
  margin: 8px 12px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

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

.admin-table td,
.admin-table th {
  border-bottom: 1px solid #e8ecf4;
  padding: 7px 6px;
  vertical-align: top;
}

.locked {
  padding: 16px;
  border-radius: 12px;
  background: #fff9e8;
  color: #a87e18;
  margin: 12px;
  border: 1px solid #f3e0ab;
}

.hidden-center {
  text-align: center;
  color: #767e8f;
  padding: 40px 12px;
}

@media (max-width: 390px) {
  .school-tab {
    font-size: 18px;
  }

  .school-tabs-inline .school-tab {
    font-size: 17px;
  }

  .search-mini {
    width: 106px;
  }

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

  .post-title,
  .course-title {
    font-size: 18px;
  }

  .name {
    font-size: 17px;
  }
}
