* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background: linear-gradient(160deg, #e8f0e9, #dce2eb);
  color: #222;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

.nav-bar {
  padding: 20px 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-tabs {
  display: flex;
  gap: 8px;
}

.nav-tab {
  padding: 6px 14px;
  border-radius: 20px;
  background: #ffffff99;
  font-size: 14px;
}

.nav-tab.active {
  background: white;
  font-weight: 500;
}

.home-container {
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 24px;
  transform: none !important;
}

.home-title {
  font-size: 20vh;
  font-weight: 700;
  color: #444444;
  transform: translateY(-50%);
  line-height: 1.2;
  white-space: nowrap;
}

/* 响应式：当屏幕宽度小于1000px时，标题字号逐渐缩小 */
@media (max-width: 1000px) {
  .home-title {
    font-size: 15vh;
    transform: translateY(-40%);
  }
}

@media (max-width: 700px) {
  .home-title {
    font-size: 12vh;
    transform: translateY(-30%);
    white-space: normal;
    word-break: keep-all;
  }
}

@media (max-width: 550px) {
  .home-title {
    font-size: 10vh;
  }
}

@media (max-width: 450px) {
  .home-title {
    font-size: 8vh;
  }
}

.home-desc {
  max-width: 500px;
  color: #444;
  line-height: 1.5;
  transform: translateY(-230%);
  padding: 0 16px;
}

/* 响应式：小屏幕下描述文字位置调整，避免溢出或重叠 */
@media (max-width: 800px) {
  .home-desc {
    transform: translateY(-150%);
  }
}

@media (max-width: 600px) {
  .home-desc {
    transform: translateY(-80%);
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .home-desc {
    transform: translateY(-40%);
    font-size: 13px;
  }
}

/* 垃圾篓图标样式 */
.trash-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

/* 小屏幕下垃圾桶位置微调 */
@media (max-width: 700px) {
  .trash-icon {
    transform: translateY(-80%);
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 500px) {
  .trash-icon {
    transform: translateY(-40%);
    width: 60px;
    height: 60px;
  }
}

.trash-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.btn {
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary {
  background: #5a8f66;
  color: white;
}

.card-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 20px;
}

.form-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.form-card h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.sub-desc {
  color: #666;
  margin-bottom: 26px;
}

.form-item {
  margin-bottom: 20px;
}

.form-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

.form-item select,
.form-item input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.garden-wrap {
  display: flex;
  height: calc(100vh - 80px);
}

.garden-area {
  flex: 1;
  background: #e6f0e9;
  position: relative;
  overflow: hidden;
}

.rank-area {
  width: 280px;
  background: white;
  padding: 24px;
  border-left: 1px solid #eee;
}

.rank-area h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f5f9f6;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.flower {
  position: absolute;
  transform: translate(-50%, -50%);
}

.flower-petal {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.8;
}

.flower-center {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


/* 首页背景图设置 */
.home-page {
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
              url('../img/Desktop\ -\ 10.png') no-repeat;
  background-blend-mode: multiply;
  background-size: 100% 100%;
  opacity: 1;
}

/* ========== 上传页专用：背景完全和首页统一！底色不变+背景图不放大不裁切 ========== */
body.upload-page {
  /* 和首页完全一样的渐变底色！一丝不改 */
  background: linear-gradient(160deg,#e8f0e9,#dce2eb);
  /* 你的上传页背景图，和首页文件名分开，互不影响 */
  background-image: url("../img//Desktop\ -\ 5.png");
  background-blend-mode: multiply;
  background-size: 100% 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* 卡片完全匹配你截图圆角、半透明白色 */
.upload-page .form-card {
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 1000px;
}

/* 返回首页 */
.back-home {
  margin-bottom: 30px;
  font-size: 18px;
}
.back-home a {
  color: #222;
  text-decoration: none;
}

/* 大标题 */
.upload-page .main-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.upload-page .sub-desc {
  text-align: center;
  font-size: 22px;
  color: #333;
  margin-bottom: 40px;
}

/* 上传区域+示例图 左右并排布局（1:1匹配你截图） */
.upload-row {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.upload-area {
  flex:1;
  border: 2px dashed #999;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.upload-tip {
  font-size: 14px;
  color: #2c5282;
}

/* 右边示例虚线框 和左边上传框完全一致 */
.example-area {
  flex:1;
}
.example-box {
  border: 2px dashed #999;
  border-radius: 12px;
  padding: 40px 20px 20px;
  height: 100%;
  position: relative; /* 开启定位，让文字悬浮 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ✅ 核心：文字悬浮在虚线框顶部正中间！叠加在边框上 */
.example-title {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 14px;
  margin: 0;
  font-size: 24px;        /* 缩小一点，保证一行 */
  white-space: nowrap;   /* 强制不换行！关键 */
  text-align: center;
}

/* 示例图片居中，完全不被文字遮挡 */
.example-box img {
  width: 100%;
  border-radius: 8px;
}

/* 学院专业选择 */
.course-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}
.select-label {
  font-size: 16px;
}
.select-input {
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  background: #f1f1f1;
  font-size: 16px;
}
.select-footer {
  text-align: center;
  color: #2c5282;
  font-size: 14px;
}

/* Confirm确认按钮 */
.confirm-btn {
  display: block;
  margin: 0 auto;
  padding: 16px 60px;
  border-radius: 12px;
  border: none;
  background: #94b1c2;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* ========== 成功页：和首页/上传页完全同款渐变背景 ========== */
body.success-page {
  /* 和首页、上传页一模一样的渐变底色！完全不变 */
  background: linear-gradient(160deg,#e8f0e9,#dce2eb);
  /* 可叠加你自己的成功页背景图，规则和首页一致：不放大、不裁切 */
  background-image: url("../img//Desktop\ -\ 5.png");
  background-blend-mode: multiply;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* 卡片样式完全匹配你截图：圆角半透明白色 */
.success-page .form-card {
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 1000px;
}

/* 返回首页 */
.back-home {
  margin-bottom: 40px;
  font-size: 18px;
}
.back-home a {
  color: #222;
  text-decoration: none;
}

/* 大标题 */
.success-title {
  font-size: 52px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.success-sub {
  text-align: center;
  font-size: 22px;
  color: #333;
  margin-bottom: 60px;
}

/* 花朵居中样式 */
.success-flower {
  position: relative;
  margin: 0 auto 40px;
}
.flower-desc {
  text-align: center;
  font-size: 20px;
  margin-bottom: 60px;
}

/* 底部左右双按钮布局 完全匹配你截图 */
.success-btn-group {
  display: flex;
  justify-content: space-between;
}
.btn-success-left {
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  background: #94b1c2;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.btn-success-right {
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  background: #94b1c2;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
/* 成功页花朵图片样式：居中、大小合适、完美匹配你设计 */
.success-flower-img {
  width: 180px;
  height: auto;
  margin: 0 auto 40px;
  display: block;
}


/* 花园页面 */
body.garden-page {
  background: linear-gradient(160deg, #e8f0e9, #dce2eb);
  background-image: url("../img//Desktop\ -\ 9.png");
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.garden-header {
  padding: 25px 30px;
  font-size: 18px;
}
.garden-header a {
  color: #222;
  text-decoration: none;
}

.garden-container {
  display: flex;
  width: 100%;
  height: calc(100vh - 80px);
}

/* 花园区域 */
.garden {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.garden-flower {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 60px;
}
.garden-flower img {
  width: 100%;
  height: auto;
}

/* 右侧排行榜 */
.rank-box {
  width: 320px;
  background: rgba(255,255,255,0.25);
  padding: 30px 20px;
}
.rank-box h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 22px;
}
.rank-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 10px;
  margin-bottom: 8px;
  font-size: 15px;
}