/* ==================== 全局样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(180deg, #e8f4fd 0%, #f9f0f4 50%, #fefcfd 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==================== 容器 ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==================== 顶部栏 ==================== */
.top-bar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91,181,213,0.15);
  padding: 8px 0;
  font-size: 13px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .city-links a {
  margin-right: 15px;
  color: #666;
}

.top-bar .city-links a:hover {
  color: #5BB5D5;
}

.top-bar .user-links a {
  margin-left: 15px;
  color: #666;
}

.top-bar .user-links a:hover {
  color: #5BB5D5;
}

/* ==================== 头部 ==================== */
.header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  padding: 20px 0;
  border-bottom: 2px solid #5BB5D5;
  box-shadow: 0 2px 12px rgba(91,181,213,0.1);
}

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

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

.logo h1 {
  font-size: 32px;
  background: linear-gradient(135deg, #5BB5D5, #E8A0BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 10px;
}

.logo .tagline {
  color: #999;
  font-size: 14px;
}

.logo .city {
  margin-left: 15px;
  padding: 3px 10px;
  background: rgba(91,181,213,0.1);
  color: #5BB5D5;
  border-radius: 12px;
  font-size: 14px;
}

/* ==================== 搜索框 ==================== */
.search-box {
  display: flex;
  background: #fff;
  border: 2px solid #5BB5D5;
  border-radius: 20px;
  overflow: hidden;
}

.search-box input {
  width: 400px;
  padding: 12px 15px;
  border: none;
  font-size: 14px;
  outline: none;
}

.search-box select {
  padding: 0 10px;
  border: none;
  border-left: 1px solid rgba(91,181,213,0.2);
  background: #fafafa;
  font-size: 14px;
  cursor: pointer;
}

.search-box button {
  padding: 12px 30px;
  background: linear-gradient(135deg, #5BB5D5, #7ECCE5);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-box button:hover {
  background: linear-gradient(135deg, #4DA8C9, #5BB5D5);
}

/* ==================== 热门搜索 ==================== */
.hot-search {
  margin-top: 10px;
  font-size: 13px;
  color: #999;
}

.hot-search a {
  margin-right: 10px;
  color: #666;
}

.hot-search a:hover {
  color: #5BB5D5;
}

/* ==================== 快速发布 ==================== */
.quick-post {
  display: flex;
  gap: 10px;
}

.quick-post a {
  padding: 10px 25px;
  background: linear-gradient(135deg, #5BB5D5, #7ECCE5);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s;
}

.quick-post a:hover {
  background: linear-gradient(135deg, #4DA8C9, #5BB5D5);
  box-shadow: 0 4px 12px rgba(91,181,213,0.3);
}

.quick-post a.secondary {
  background: #fff;
  color: #5BB5D5;
  border: 1px solid #5BB5D5;
}

.quick-post a.secondary:hover {
  background: rgba(91,181,213,0.08);
}

/* ==================== 导航 ==================== */
.nav {
  background: linear-gradient(135deg, #5BB5D5, #4DA8C9, #E8A0BF);
  position: relative;
  z-index: 100;
}

.nav ul {
  display: flex;
}

.nav li {
  position: relative;
  z-index: 101;
}

.nav li a {
  display: block;
  padding: 15px 30px;
  color: #fff;
  font-size: 16px;
  transition: background 0.3s;
  position: relative;
  z-index: 102;
}

.nav li a:hover,
.nav li a.active {
  background: rgba(255,255,255,0.15);
}

/* 下拉菜单 */
.nav .dropdown {
  position: relative;
  z-index: 103;
}

.nav > ul > li.dropdown > a.dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  margin-left: 5px;
}

.nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 0 0 4px 4px;
  z-index: 104;
}

.nav .dropdown:hover .dropdown-menu {
  display: block;
}

.nav .dropdown-menu li {
  display: block !important;
  width: 100%;
  float: none;
}

.nav .dropdown-menu li::after,
.nav .dropdown-menu li::before {
  content: none !important;
  display: none !important;
}

.nav .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333 !important;
  white-space: nowrap;
  font-size: 14px;
}

.nav .dropdown-menu a:hover {
  background: rgba(91,181,213,0.08) !important;
  color: #5BB5D5 !important;
}

.nav .dropdown-menu a::after,
.nav .dropdown-menu a::before {
  content: none !important;
  display: none !important;
}

/* ==================== 主内容区 ==================== */
.main {
  padding: 20px 0;
}

/* ==================== 热门职位 ==================== */
.hot-jobs {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(91,181,213,0.08);
}

.hot-jobs h3 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #5BB5D5;
  color: #333;
}

.hot-jobs .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hot-jobs .tags a {
  padding: 6px 15px;
  background: rgba(91,181,213,0.06);
  border-radius: 15px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

.hot-jobs .tags a:hover {
  background: rgba(91,181,213,0.15);
  color: #5BB5D5;
}

/* ==================== 分类区域 ==================== */
.category-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.category-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(91,181,213,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91,181,213,0.15);
}

.category-card .header-bar {
  background: linear-gradient(135deg, rgba(91,181,213,0.12), rgba(232,160,191,0.12));
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #5BB5D5;
}

.category-card .header-bar img {
  width: 24px;
  height: 24px;
}

.category-card .sub-cats {
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card .sub-cats a {
  font-size: 14px;
  color: #666;
  padding: 4px 10px;
  background: rgba(91,181,213,0.06);
  border-radius: 12px;
  transition: all 0.3s;
}

.category-card .sub-cats a:hover {
  background: rgba(91,181,213,0.15);
  color: #5BB5D5;
}

/* ==================== 职位列表 ==================== */
.job-list {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(91,181,213,0.08);
}

.job-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

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

.job-item .info {
  flex: 1;
}

.job-item .title {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.job-item .title:hover {
  color: #5BB5D5;
}

.job-item .title .paid-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  background: #fff0f6;
  color: #eb2f96;
  font-size: 12px;
  border-radius: 3px;
}

.job-item .meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.job-item .desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.job-item .salary {
  text-align: right;
}

.job-item .salary .amount {
  font-size: 22px;
  background: linear-gradient(135deg, #5BB5D5, #E8A0BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.job-item .salary .unit {
  font-size: 14px;
  color: #999;
}

/* ==================== 简历列表 ==================== */
.resume-item {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 20px;
}

.resume-item .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(91,181,213,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #5BB5D5;
  flex-shrink: 0;
}

.resume-item .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.resume-item .info {
  flex: 1;
}

.resume-item .name {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.resume-item .name:hover {
  color: #5BB5D5;
}

.resume-item .tags {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.resume-item .tags span {
  padding: 3px 10px;
  background: rgba(91,181,213,0.06);
  border-radius: 12px;
  font-size: 13px;
  color: #666;
}

.resume-item .intro {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

/* ==================== 表单样式 ==================== */
.form-container {
  max-width: 600px;
  margin: 40px auto;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(91,181,213,0.08);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.form-group label .required {
  color: #eb2f96;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #5BB5D5;
  outline: none;
  box-shadow: 0 0 0 2px rgba(91,181,213,0.2);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #5BB5D5, #7ECCE5);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4DA8C9, #5BB5D5);
  box-shadow: 0 4px 12px rgba(91,181,213,0.3);
}

.btn-secondary {
  background: #fff;
  color: #666;
  border: 1px solid #d9d9d9;
}

.btn-secondary:hover {
  color: #5BB5D5;
  border-color: #5BB5D5;
}

.btn-block {
  width: 100%;
}

/* ==================== 图片上传 ==================== */
.image-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-upload .preview-item {
  width: 100px;
  height: 100px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.image-upload .preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload .preview-item .remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.image-upload .add-btn {
  width: 100px;
  height: 100px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
  font-size: 12px;
}

.image-upload .add-btn:hover {
  border-color: #5BB5D5;
  color: #5BB5D5;
}

.image-upload .add-btn .icon {
  font-size: 24px;
  margin-bottom: 5px;
}

/* ==================== 付费提示 ==================== */
.pay-tip {
  background: rgba(91,181,213,0.08);
  border: 1px solid rgba(91,181,213,0.2);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.pay-tip .icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.pay-tip h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.pay-tip p {
  color: #666;
  margin-bottom: 15px;
}

.pay-tip .price {
  font-size: 28px;
  background: linear-gradient(135deg, #5BB5D5, #E8A0BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.pay-tip .btn {
  margin-top: 15px;
}

/* ==================== 详情页 ==================== */
.detail-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(91,181,213,0.08);
}

.detail-header h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
}

.detail-header .meta {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
}

.detail-header .salary {
  font-size: 32px;
  background: linear-gradient(135deg, #5BB5D5, #E8A0BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.detail-body {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(91,181,213,0.08);
}

.detail-body h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-body .content {
  line-height: 1.8;
  color: #666;
}

.detail-images {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.detail-images img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.detail-images .locked {
  position: relative;
}

.detail-images .locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
}

/* ==================== 分页 ==================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
}

.pagination a {
  padding: 8px 15px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: #666;
}

.pagination a:hover,
.pagination a.active {
  background: linear-gradient(135deg, #5BB5D5, #7ECCE5);
  border-color: #5BB5D5;
  color: #fff;
}

/* ==================== 底部 ==================== */
.footer {
  background: linear-gradient(135deg, #2c3e6b, #3a5078);
  color: #999;
  padding: 40px 0;
  margin-top: 40px;
}

.footer .links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer .links a {
  color: #999;
  font-size: 14px;
}

.footer .links a:hover {
  color: #fff;
}

.footer .copyright {
  text-align: center;
  font-size: 13px;
}

/* ==================== 模态框 ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

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

.modal-header h3 {
  font-size: 20px;
}

.modal-header .close {
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ==================== 用户面板 ==================== */
.user-panel {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.user-info .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(91,181,213,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #5BB5D5;
}

.user-info .info h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.user-info .info p {
  color: #999;
  font-size: 14px;
}

.user-info .balance {
  margin-left: auto;
  text-align: right;
}

.user-info .balance .amount {
  font-size: 24px;
  background: linear-gradient(135deg, #5BB5D5, #E8A0BF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.user-info .balance .label {
  font-size: 14px;
  color: #999;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-box input {
    width: 200px;
  }
  
  .category-section {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .job-item {
    flex-direction: column;
  }
  
  .job-item .salary {
    text-align: left;
    margin-top: 10px;
  }
}

/* ========================
   手机端定位按钮超级耀眼
   ======================== */
@media(max-width:768px){
  #locate-link{
    color:#ffd700!important;
    font-weight:bold!important;
    font-size:15px!important;
    text-shadow:0 0 8px #ffd700,0 0 16px #ff8c00!important;
    animation:glow-pulse-locate 1.5s ease-in-out infinite!important;
    box-shadow:0 0 6px #ffd700!important;
    border-radius:12px!important;
    padding:2px 8px!important
  }
}
@keyframes glow-pulse-locate{
  0%,100%{box-shadow:0 0 8px #ffd700,0 0 16px #ff8c00;text-shadow:0 0 6px #ffd700}
  50%{box-shadow:0 0 16px #ffd700,0 0 32px #ff8c00,0 0 48px #ffd700;text-shadow:0 0 12px #ffd700,0 0 24px #ff8c00}
}
