/* 发布信息页面样式 */

/* 页面容器 */
.info-publish-container {
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 顶部横幅 */
.banner {
  background-image: var(--platform-publish-banner-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.banner h1 {
  font-size: 2rem;
  font-weight: bold;
  z-index: 2;
  margin: 0;
}

/* 主要内容区域 */
.main-content {
  flex: 1;
  padding: 40px 0;
  background-color: var(--platform-background);
  display: flex;
  align-items: stretch;
}

/* 左侧导航 */
.sidebar {
  background-color: var(--platform-surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
  min-height: 600px;
}

.minor-page-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.minor-page-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.minor-page-nav li:last-child {
  border-bottom: none;
}

.minor-page-nav li a {
  display: block;
  padding: 15px 20px;
  color: var(--platform-heading);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.minor-page-nav li a:hover {
  background-color: var(--platform-page-background);
  color: var(--platform-primary);
}

.minor-page-nav li.active a {
  background: var(--platform-brand-gradient);
  color: white;
  font-weight: bold;
}

/* 右侧内容 */
.content {
  background-color: var(--platform-surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
  min-height: 600px;
}

.content h2 {
  font-size: 1.5rem;
  color: var(--platform-heading);
  margin-bottom: 20px;
  font-weight: bold;
}

.user-info {
  padding: 20px;
  background-color: var(--platform-background);
  border-radius: 4px;
}

.user-info p {
  margin: 0;
  color: var(--platform-text);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .info-publish-container {
    min-height: 100vh;
    box-sizing: border-box;
  }
  
  .banner {
    height: 100px;
  }
  
  .banner h1 {
    font-size: 1.5rem;
  }
  
  .main-content {
    padding: 20px 0;
  }
  
  .content {
    padding: 20px;
    height: 100%;
    min-height: 500px;
  }
  
  .sidebar {
    height: 100%;
    min-height: 500px;
    margin-bottom: 20px;
  }
  
  .content h2 {
    font-size: 1.3rem;
  }
}

/* 发布内容页面样式 */
.publish-form {
  margin-top: 20px;
}

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

.form-group label {
  font-weight: bold;
  color: var(--platform-heading);
  margin-bottom: 8px;
  display: block;
}

.form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 1rem;
  width: 100%;
}

.form-control:focus {
  border-color: var(--platform-primary);
  box-shadow: 0 0 0 0.2rem rgba(241, 141, 25, 0.25);
}

/* 上传区域样式 */
.upload-area {
  margin-bottom: 15px;
}

.upload-box {
  width: 200px;
  height: 120px;
  border: 2px dashed #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-box:hover {
  border-color: var(--platform-primary);
  background-color: var(--platform-background);
}

.upload-icon {
  font-size: 3rem;
  color: #ddd;
  transition: all 0.3s ease;
}

.upload-box:hover .upload-icon {
  color: var(--platform-primary);
}

.upload-box input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-area p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--platform-muted);
}

/* 我的消息页面样式 */
.message-table {
  margin-top: 20px;
}

.message-header {
  margin-bottom: 20px;
}

.message-header h3 {
  font-size: 1.2rem;
  color: var(--platform-heading);
  margin: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--platform-surface);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table th,
.table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table td:nth-child(2) {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table th {
  background-color: var(--platform-background);
  font-weight: bold;
  color: var(--platform-heading);
}

.table tr:hover {
  background-color: var(--platform-background);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  background-color: var(--platform-primary);
  color: white;
}

.action-link {
  color: var(--platform-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.action-link:hover {
  color: var(--platform-secondary);
  text-decoration: underline;
}

.action-separator {
  margin: 0 5px;
  color: var(--platform-muted);
}

/* 分页样式 */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.pagination-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.pagination-list li {
  margin: 0 5px;
}

.pagination-list li a {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: var(--platform-heading);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-list li a:hover {
  background-color: var(--platform-primary);
  color: white;
  border-color: var(--platform-primary);
}

.pagination-list li span {
  display: inline-block;
  padding: 5px 10px;
  color: var(--platform-muted);
}

.btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--platform-brand-gradient);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
}

/* 在线充值页面样式 */
.recharge-form {
  margin-top: 20px;
}

.balance {
  color: var(--platform-primary);
  font-weight: bold;
}

/* 二维码展示样式 */
.qr-code-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: var(--platform-background);
  border-radius: 4px;
  border: 1px solid #ddd;
}

#qrCodeImage {
  margin-bottom: 15px;
}

#qrCodeImage img {
  border: 2px solid var(--platform-primary);
  border-radius: 4px;
  padding: 5px;
  background-color: var(--platform-surface);
}

.radio-group {
  margin-top: 10px;
}

.radio-label {
  display: inline-block;
  margin-right: 20px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  margin-right: 5px;
}

.input-group {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.input-group .form-control {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* 充值金额输入框样式 */
.amount-input {
  max-width: 200px;
}

.input-group-addon {
  padding: 10px 15px;
  background-color: var(--platform-background);
  border: 1px solid #ddd;
  border-left: none;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  color: var(--platform-heading);
  font-weight: bold;
}
