/* ==========================================================================
   waibao_a - 多页面全局样式表
   支持：首页、项目列表、项目详情、发布项目、会员中心
   ========================================================================== */

/* 1. 全局变量与重置 */
:root {
  --primary-color: #0066ff;
  --primary-hover: #0052d9;
  --primary-light: #e8f3ff;
  --success-color: #52c41a;
  --warning-color: #fa8c16;
  --danger-color: #ff4d4f;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --bg-body: #f4f6f9;
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-color);
}

ul, ol {
  list-style: none;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* 2. 通用布局容器 */
.container {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
}

.main-content {
  min-height: calc(100vh - 360px);
  padding: 24px 0 48px;
}

/* 3. 顶部导航栏 Header */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  /* flex: 0 1 360px; */
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

.brand-logo > span:not(.brand-logo-mark):not(.logo-badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
}

.brand-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo .logo-badge {
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.nav-menu a {
  flex: 0 0 auto;
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.btn-publish-nav {
  background: var(--primary-color);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.3);
}

.btn-publish-nav:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.user-nav-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.member-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.member-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f3ff, #ffffff);
  border: 1px solid #b8daff;
  color: var(--primary-color);
}

.member-avatar-mini svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-logout-btn {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
}

.member-logout-btn:hover {
  border-color: #ffccc7;
  background: #fff2f0;
  color: var(--danger-color);
}

.user-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

/* 4. 底部 Footer */
.site-footer {
  background: #1f293d;
  color: #9ca3af;
  padding: 48px 0 24px;
  margin-top: 48px;
}

.footer-guarantee {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guarantee-item .icon {
  font-size: 32px;
  background: rgba(255,255,255,0.08);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #38bdf8;
}

.guarantee-item h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 4px;
}

.footer-links {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) 1.5fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #9ca3af;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}

/* 5. 核心组件与按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 6px;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-success {
  background: var(--success-color);
  color: #fff;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

.badge-blue { background: #e6f4ff; color: #1677ff; border: 1px solid #91caef; }
.badge-green { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.badge-orange { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.badge-purple { background: #f9f0ff; color: #722ed1; border: 1px solid #d3ade6; }

.price-tag {
  color: #ff4d4f;
  font-size: 18px;
  font-weight: 700;
}

.tag-skill {
  display: inline-block;
  background: #f3f4f6;
  color: #4b5563;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

.tag-skill.tag-muted {
  background: #eef6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.detail-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags-wrap .tag-skill {
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* 6. 首页 Hero 横幅与分类 */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 56px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.hero-search-bar {
  max-width: 720px;
  margin: 0 auto 32px;
  display: flex;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-search-bar input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font-size: 16px;
  color: var(--text-primary);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 16px;
}

.stat-item h3 {
  font-size: 26px;
  color: #38bdf8;
  font-weight: 700;
}

.stat-item p {
  color: #94a3b8;
  font-size: 13px;
}

/* 分类栅格 */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: -32px auto 36px;
  position: relative;
  z-index: 10;
}

.category-card {
  background: #ffffff;
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.category-card .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* 项目列表卡片布局 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-item-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-cover {
  width: 100%;
  height: 142px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #e8f3ff 0%, #f8fafc 100%);
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skill-line {
  min-height: 30px;
}

.project-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-item-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.project-item-title:hover {
  color: var(--primary-color);
}

.project-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

.project-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  margin-top: 12px;
}

.filter-options .filter-opt em {
  margin-left: 4px;
  color: var(--text-muted);
  font-style: normal;
  font-size: 12px;
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.detail-images img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #f8fafc;
}

.empty-box {
  background: #f8fafc;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.mini-project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
}

.mini-project-link span {
  color: var(--text-primary);
  font-weight: 600;
}

.mini-project-link em {
  color: var(--primary-color);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

/* 7. 列表页 Projects Page 多条件筛选 */
.filter-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.filter-row:last-child {
  border-bottom: none;
}

.filter-label {
  width: 90px;
  font-weight: 600;
  color: var(--text-secondary);
  padding-top: 4px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filter-opt {
  padding: 4px 12px;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
}

.filter-opt:hover,
.filter-opt.active {
  background: var(--primary-color);
  color: #ffffff;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-btn {
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.18);
}

.page-btn:disabled {
  color: var(--text-muted);
  background: #f8fafc;
  cursor: not-allowed;
}

.page-ellipsis,
.page-status {
  color: var(--text-muted);
  font-size: 13px;
}

.page-status {
  margin-left: 8px;
}

.page-layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

/* 8. 详情页 Detail Page */
.detail-header-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 28px;
  margin-bottom: 24px;
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-price-box {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 24px;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.detail-desc-text {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  white-space: pre-line;
}

.contact-card {
  border: 2px solid var(--primary-color);
}

.contact-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-avatar svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}

.contact-card-tip {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.contact-card-lines {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 16px;
}

/* 内容审核制度 */
.audit-hero-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.audit-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.audit-hero-card h1 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.audit-hero-card p {
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.9;
}

.audit-hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.audit-hero-badge strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.audit-hero-badge span {
  color: #bfdbfe;
  font-size: 13px;
}

.audit-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.audit-side-card,
.audit-content-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.audit-side-card {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.audit-side-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.audit-side-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 13px;
}

.audit-contact-box {
  margin-top: 18px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
}

.audit-contact-box span,
.audit-contact-box em {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.audit-contact-box strong {
  display: block;
  margin: 5px 0;
  color: var(--text-primary);
}

.audit-content-card {
  padding: 30px 34px;
}

.audit-section {
  padding: 0 0 24px 0;
  margin-bottom: 24px;
  border-bottom: 1px dashed var(--border-color);
}

.audit-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.audit-section h2 {
  font-size: 19px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.audit-section p,
.audit-section li {
  color: #374151;
  font-size: 15px;
  line-height: 1.9;
}

.audit-section ul {
  list-style: disc;
  padding-left: 20px;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.audit-grid div {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.audit-grid h4 {
  color: var(--primary-color);
  font-size: 15px;
  margin-bottom: 6px;
}

.pricing-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
  border: 1px solid #d9e8ff;
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.pricing-hero-card h1 {
  font-size: 32px;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 8px 0 12px;
}

.pricing-hero-card p {
  color: var(--text-secondary);
  max-width: 760px;
  font-size: 15px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.pricing-card.is-featured {
  border-color: #91caff;
  box-shadow: 0 10px 26px rgba(0, 102, 255, 0.12);
}

.pricing-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pricing-card-head span {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-card-head strong {
  color: var(--primary-color);
  font-size: 16px;
}

.pricing-card p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.pricing-card li {
  color: #374151;
  line-height: 1.9;
}

.pricing-card li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: 800;
  margin-right: 8px;
}

/* 9. 表单样式 (发布页 & 登录注册) */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-label .required {
  color: var(--danger-color);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

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

/* 10. 会员中心 User Center 侧边栏与选项卡 */
.user-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.user-profile-card {
  margin-bottom: 24px;
  padding: 28px;
}

.user-profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.generic-user-avatar {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f3ff, #ffffff);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe6ff;
  box-shadow: inset 0 0 0 6px rgba(0, 102, 255, 0.04);
}

.generic-user-avatar svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-profile-main {
  flex: 1;
  min-width: 280px;
}

.user-profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.user-profile-title-row h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.user-profile-main p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.user-profile-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.user-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-sidebar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 4px;
}

.user-menu-item:hover,
.user-menu-item.active {
  background: var(--primary-light);
  color: var(--primary-color);
}

.recharge-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.recharge-balance-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0066ff, #3b82f6);
  color: #ffffff;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(0, 102, 255, 0.18);
}

.recharge-balance-card span {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.recharge-balance-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.recharge-balance-card p {
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}

.recharge-form {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fbfdff;
}

.recharge-form label {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.recharge-amount-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.recharge-amount-row .form-control {
  max-width: 240px;
}

.form-help {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.recharge-records {
  border-top: 1px dashed var(--border-color);
  padding-top: 18px;
}

.recharge-record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
  color: var(--text-secondary);
}

.recharge-record-item strong {
  color: var(--text-primary);
}

.published-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.published-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow-sm);
}

.published-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.published-title-row h4 {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
}

.published-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.published-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-size: 14px;
}

.content-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 74px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pending {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.status-published {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.status-rejected {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.status-appealing {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.status-muted {
  color: var(--text-secondary);
  background: #f8fafc;
  border: 1px solid var(--border-color);
}

.review-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.review-note strong {
  color: var(--text-primary);
}

.published-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-form {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fbfdff;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.account-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px dashed var(--border-color);
}

.account-form .form-control:disabled {
  color: var(--text-muted);
  background: #f1f5f9;
  cursor: not-allowed;
}

.appeal-modal-card .modal-body {
  padding-top: 18px;
}

.appeal-modal-tip {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 13px;
  margin-bottom: 12px;
}

/* 11. Modal 弹窗组件 (jQuery 驱动) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-container {
  background: #ffffff;
  width: 540px;
  max-width: 90%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.modal-close {
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast 消息框 */
.toast-message {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #10b981;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 3000;
  display: none;
  font-weight: 500;
}

.toast-message.toast-error {
  background: #ef4444;
}

/* 12. 响应式微调 */
@media (max-width: 992px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .page-layout-sidebar { grid-template-columns: 1fr; }
  .audit-hero-card,
  .audit-layout,
  .audit-grid { grid-template-columns: 1fr; }
  .audit-side-card { position: static; }
  .user-layout { grid-template-columns: 1fr; }
  .footer-guarantee { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .published-item { grid-template-columns: 1fr; }
  .published-actions { justify-content: flex-start; }
  .account-form-grid { grid-template-columns: 1fr; }
}
