:root {
  --green: #2db98d;
  --green-dark: #17a77c;
  --text: #111318;
  --muted: #6f7278;
  --line: #edf0f2;
  --card: #f7f7f7;
  --blue: #2f83dc;
  --orange: #ff6b2c;
  --tab-gray: #7d7e80;
  --topbar-h: clamp(50px, 12.18vw, 72px);
  --tabbar-h: clamp(49px, 11.26vw, 74px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

button,
a {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
}

.app {
  position: relative;
  width: 100%;
  min-width: 320px;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--topbar-h);
  background: var(--green);
}

.topbar-title {
  margin: 0;
  color: #fff;
  font-size: clamp(15px, 3.68vw, 24px);
  line-height: 1;
  font-weight: 500;
}

.back-home {
  position: absolute;
  left: clamp(10px, 2.53vw, 22px);
  top: 50%;
  width: clamp(28px, 6.44vw, 42px);
  height: clamp(28px, 6.44vw, 42px);
  color: #fff;
  transform: translateY(-50%);
}

.back-home svg {
  width: 78%;
  height: 78%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  width: clamp(118px, 28.97vw, 178px);
  height: auto;
  display: block;
}

.icon-button {
  display: grid;
  place-items: center;
}

.logout {
  position: absolute;
  right: clamp(10px, 2.53vw, 22px);
  top: 50%;
  width: clamp(28px, 6.44vw, 42px);
  height: clamp(28px, 6.44vw, 42px);
  color: #fff;
  transform: translateY(-50%);
}

.logout svg {
  width: 78%;
  height: 78%;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.content {
  height: calc(100dvh - var(--topbar-h) - var(--tabbar-h));
  overflow-y: auto;
  padding: clamp(13px, 3.22vw, 26px) clamp(16px, 4.14vw, 34px) clamp(20px, 4.6vw, 44px) clamp(18px, 5.29vw, 38px);
  scrollbar-width: none;
}

.content[hidden] {
  display: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(82px, 19.54vw, 128px);
  padding: clamp(14px, 3.68vw, 24px) clamp(13px, 3.22vw, 26px);
  border-radius: clamp(6px, 1.38vw, 10px);
  background: var(--card);
}

.info-card + .info-card {
  margin-top: clamp(14px, 3.22vw, 24px);
}

.card-copy {
  min-width: 0;
  padding-right: clamp(8px, 2.3vw, 18px);
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.76vw, 18px);
  min-width: 0;
}

.info-card h2 {
  margin: 0;
  color: #111;
  font-size: clamp(16px, 4.14vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  white-space: nowrap;
}

.info-card p {
  margin: clamp(8px, 2.3vw, 16px) 0 0;
  color: #5f646c;
  font-size: clamp(14px, 3.45vw, 22px);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote-pill {
  display: inline-flex;
  align-items: center;
  height: clamp(20px, 4.6vw, 30px);
  padding: 0 clamp(7px, 1.84vw, 13px);
  border-radius: clamp(5px, 1.15vw, 8px);
  background: #fff0e7;
  color: #ff7c2a;
  font-size: clamp(12px, 2.99vw, 19px);
  line-height: 1;
  white-space: nowrap;
}

.primary-button {
  flex: 0 0 auto;
  min-width: clamp(76px, 18.16vw, 118px);
  height: clamp(34px, 7.82vw, 52px);
  padding: 0 clamp(13px, 4.14vw, 26px);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: clamp(13px, 3.22vw, 20px);
  line-height: clamp(34px, 7.82vw, 52px);
  font-weight: 500;
  text-align: center;
}

.primary-button:active {
  background: var(--green-dark);
}

.job-meta {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.99vw, 20px);
  margin-top: clamp(7px, 1.84vw, 14px);
}

.salary {
  color: #ff4a1f;
  font-size: clamp(15px, 3.68vw, 23px);
  line-height: 1.4;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: clamp(22px, 5.06vw, 32px);
  padding: 0 clamp(10px, 2.76vw, 18px);
  border-radius: clamp(5px, 1.15vw, 8px);
  background: #e7fff6;
  color: #08a878;
  font-size: clamp(12px, 2.99vw, 19px);
  line-height: 1;
  white-space: nowrap;
}

.more-button {
  min-width: clamp(78px, 18.16vw, 118px);
  padding: 0 clamp(12px, 2.99vw, 22px);
}

.internship-banner {
  display: block;
  width: 100%;
  height: clamp(86px, 20.92vw, 138px);
  margin-top: clamp(14px, 3.22vw, 24px);
  overflow: hidden;
  border-radius: clamp(7px, 1.61vw, 11px);
  background: #d9d1f3;
}

.internship-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: clamp(22px, 5.52vw, 42px);
  padding-top: clamp(30px, 7.36vw, 52px);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: clamp(82px, 19.31vw, 126px);
  color: #111;
  text-align: center;
}

.feature-item img {
  display: block;
  width: clamp(38px, 9.2vw, 62px);
  height: clamp(38px, 9.2vw, 62px);
  object-fit: contain;
}

.mine-view {
  padding: 0;
  background: #fff;
}

.mine-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding-top: clamp(156px, 26.95vh, 260px);
}

.mine-logo {
  display: block;
  width: clamp(136px, 30.57vw, 210px);
  height: auto;
  object-fit: contain;
}

.mine-logout {
  width: clamp(168px, 38.62vw, 258px);
  height: clamp(52px, 11.95vw, 78px);
  margin-top: clamp(58px, 13.33vw, 86px);
  background: var(--green);
  color: #fff;
  font-size: clamp(20px, 4.6vw, 30px);
  line-height: 1;
  font-weight: 500;
}

.mine-logout:active {
  background: var(--green-dark);
}

.feature-item span {
  display: block;
  max-width: clamp(100px, 23.91vw, 156px);
  margin-top: clamp(8px, 2.07vw, 15px);
  font-size: clamp(14px, 3.45vw, 22px);
  line-height: 1.45;
  font-weight: 400;
}

.feature-item:active img,
.feature-item:active span {
  opacity: 0.72;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--tabbar-h);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--tab-gray);
  font-size: clamp(11px, 2.76vw, 17px);
  line-height: 1.3;
}

.tab-item svg,
.tab-item img {
  width: clamp(23px, 5.52vw, 36px);
  height: clamp(23px, 5.52vw, 36px);
  margin-bottom: 1px;
}

.tab-item svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
}

.tab-item:nth-child(3) svg,
.tab-item:nth-child(4) svg {
  stroke-width: 0.6;
}

.tab-item span {
  display: block;
  max-width: 90%;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: clip;
}

.tab-item.active {
  color: var(--green);
}

.tab-item.active span {
  color: #00a879;
}

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

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 22px);
  max-width: calc(100% - 48px);
  transform: translate(-50%, 10px);
  padding: 9px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

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

@media (max-width: 374px) {
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .info-card h2 {
    font-size: 15px;
  }

  .vote-pill {
    padding: 0 6px;
  }

  .feature-item span {
    font-size: 13px;
  }
}
