/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  min-width: 1200px; /* 保证窄屏幕时出现横向滚动 */
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 15px;
}

/* 头部样式 - 与任务页完全一致 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 15px 0;
}

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

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

.logo img {
  height: 50px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

/* 导航菜单 */
.site-nav ul {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 16px;
  color: #555;
  padding: 8px 0;
  position: relative;
}

.nav-link.active {
  color: #ff6b35;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff6b35;
}

.nav-link:hover {
  color: #ff6b35;
}

/* 右上角功能区 */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 系统切换下拉菜单 */
.system-switch {
  position: relative;
}

.system-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.system-toggle:hover {
  background-color: #f0f0f0;
}

.system-toggle i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.system-switch.active .system-toggle i {
  transform: rotate(180deg);
}

.system-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 180px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  margin-top: 10px;
  display: none;
  z-index: 1000;
  border: 1px solid #eee;
}

.system-switch.active .system-dropdown {
  display: block;
}

.system-dropdown a {
  display: block;
  padding: 12px 20px;
  color: #555;
  font-size: 14px;
  transition: all 0.3s ease;
}

.system-dropdown a:hover {
  background-color: #f9f9f9;
  color: #ff6b35;
}

/* 登录注册按钮 */
.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-login {
  color: #555;
  background: none;
  border: 1px solid #ddd;
}

.btn-login:hover {
  background-color: #f9f9f9;
}

.btn-register {
  background-color: #ff6b35;
  color: white;
}

.btn-register:hover {
  background-color: #e85a2b;
  transform: translateY(-2px);
}

/* 用户信息样式 */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-name {
  font-size: 14px;
  color: #555;
  padding: 8px 12px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.btn-logout {
  background-color: #ff3b30;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background-color: #e03028;
}

/* 主视觉区域 */
.hero {
  padding: 40px 0;
  background: linear-gradient(0deg, #fff8f6 0%, #fff 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ff6b35;
}

.hero-title span {
  color: #ff6b35;
}

.hero-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
}

.hero-btn-primary {
  background-color: #ff6b35;
  color: white;
}

.hero-btn-primary:hover {
  background-color: #e85a2b;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

.hero-btn-secondary {
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
}

.hero-btn-secondary:hover {
  background-color: #f9f9f9;
  border-color: #ccc;
}

/* 任务展示区域 */
.task-showcase {
  padding: 50px 0;
  background-color: #fff;
}

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

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
}

.section-link {
  color: #ff6b35;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.section-link:hover {
  gap: 10px;
}

.task-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.task-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.task-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #ff6b35;
}

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

.task-name {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}

.task-reward {
  font-size: 22px;
  font-weight: 700;
  color: #ff6b35;
  white-space: nowrap;
  margin-left: 15px;
}

.task-reward span {
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

.task-body {
  padding: 20px;
}

.task-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.task-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.tag-writing {
  background-color: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
}

.tag-design {
  background-color: rgba(66, 153, 225, 0.1);
  color: #4299e1;
}

.task-deadline {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.task-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-actions {
  display: flex;
  gap: 10px;
}

.btn-view {
  flex: 1;
  background-color: #fff;
  color: #ff6b35;
  border: 1px solid #ff6b35;
}

.btn-view:hover {
  background-color: rgba(255, 107, 53, 0.05);
}

.btn-apply {
  flex: 1;
  background-color: #ff6b35;
  color: white;
}

.btn-apply:hover {
  background-color: #e85a2b;
}

.btn-apply:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.task-footer {
  padding: 15px 20px;
  background-color: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
}

.task-status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-open {
  background-color: rgba(56, 178, 172, 0.1);
  color: #38b2ac;
}

.status-closed {
  background-color: rgba(153, 153, 153, 0.1);
  color: #999;
}

.task-publisher {
  font-size: 13px;
  color: #666;
}

/* 采购服务区域 */
.purchase-showcase {
  padding: 10px 0;
  background-color: #ffffff;
}

.purchase-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.purchase-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.purchase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #ff6b35;
}

.purchase-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 5px;
}

.author-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background-color: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  border-radius: 4px;
  font-size: 12px;
}

.purchase-field {
  margin-bottom: 15px;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.field-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.field-value {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.purchase-price {
  font-size: 24px;
  font-weight: 700;
  color: #ff6b35;
  text-align: center;
  margin-bottom: 20px;
}

.purchase-price span {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.purchase-actions {
  display: flex;
  gap: 10px;
}

/* 占位符样式 */
.loading-placeholder,
.empty-placeholder,
.error-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
  gap: 15px;
}

.loading-placeholder i,
.empty-placeholder i,
.error-placeholder i {
  font-size: 32px;
}

.loading-placeholder i {
  color: #ff6b35;
}

.empty-placeholder i {
  color: #ddd;
}

.error-placeholder i {
  color: #f56c6c;
}

.loading-placeholder span,
.empty-placeholder span,
.error-placeholder span {
  font-size: 14px;
}

.btn-homepage {
  flex: 1;
  background-color: #fff;
  color: #4299e1;
  border: 1px solid #4299e1;
}

.btn-homepage:hover {
  background-color: rgba(66, 153, 225, 0.05);
}

.btn-buy {
  flex: 1;
  background-color: #ff6b35;
  color: white;
}

.btn-buy:hover {
  background-color: #e85a2b;
}

/* 平台公告区域 */
.announcement-showcase {
  padding: 0px 0;
  background-color: #fff;
}

.announcement-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.announcement-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.announcement-item:hover {
  border-color: #ff6b35;
}

.announcement-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.4;
}

.announcement-date {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
}

.announcement-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.announcement-link {
  color: #ff6b35;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.announcement-link:hover {
  gap: 10px;
}

/* 页脚 */
.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 30px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: #ff6b35;
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

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

.footer-links-bottom a {
  color: #aaa;
}

.footer-links-bottom a:hover {
  color: white;
}

/* 所有响应式媒体查询已被移除，以禁止手机自适应 */
/* 页面在窄屏幕上会显示横向滚动条 */

/* 模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: all 0.3s ease;
  overflow-y: auto;
  position: relative;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: #333;
  background-color: #f9f9f9;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

/* 公告详情模态框 */
.announcement-detail-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #666;
}

.announcement-detail-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.announcement-detail-content {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}

.announcement-detail-content p {
  margin-bottom: 16px;
}

.announcement-detail-content h3, .announcement-detail-content h4 {
  margin: 20px 0 10px;
  color: #222;
}

.announcement-detail-content ul, .announcement-detail-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.announcement-detail-content li {
  margin-bottom: 8px;
}

.announcement-detail-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.task-detail-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

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

.task-detail-label {
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  font-size: 14px;
}

.task-detail-value {
  color: #333;
  line-height: 1.6;
  font-size: 15px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

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

.form-label span {
  color: #ff6b35;
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ff6b35;
}

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

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.btn-primary {
  background-color: #ff6b35;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #ff5722;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
  padding: 12px 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

/* 任务过期状态样式 */
.task-status.status-expired {
  background-color: #e0e0e0;
  color: #999;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.btn-submit.disabled,
.btn-submit[disabled] {
  background-color: #e0e0e0 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  border: 1px solid #ddd;
  pointer-events: none;
}