/* ============================================================
   小宁网 PC端专属样式
   与移动端 ninger.css 完全独立，便于各自维护
   ============================================================ */

:root {
  --primary: #00b259;
  --primary-hover: #009a4d;
  --primary-light: rgba(0, 178, 89, 0.1);
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #e8e8e8;
  --bg-light: #f7f7f7;
  --bg-page: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ============================================================
   顶部导航
   ============================================================ */
.pc-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.pc-header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.pc-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pc-logo img {
  height: 36px;
}

.pc-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
    flex: 1;
}

.pc-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.pc-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.pc-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.pc-nav-more {
color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap:8px;
  cursor: pointer;
  position: relative;
  padding: 20px;
  border-radius: 4px;
  transition: background 0.2s;
}

.pc-nav-more span {
  cursor: pointer;
}

.pc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 0px;
  z-index: 100;
}

.pc-nav-more:hover .pc-dropdown {
  display: block;
}

.pc-user-menu:hover .pc-dropdown {
  display: block;
}

.pc-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.pc-dropdown a:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 6px;
}

/* 搜索框 */
.pc-search {
  max-width: 300px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-light);
  transition: border-color 0.2s;
}

.pc-search:focus-within {
  border-color: var(--primary);
  background: var(--white);
}

.pc-search input {
  flex: 1;
  height: 36px;
  padding: 0 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
}

.pc-search input::placeholder {
  color: var(--text-muted);
}

.pc-search button {
  height: 36px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}

.pc-search button:hover {
  color: var(--primary);
}

/* 右侧操作区 */
.pc-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pc-msg-icon {
  margin-left:10px;
  margin-right:20px;
  position: relative;
  color: var(--text-secondary);
  font-size: 20px;
  text-decoration: none;
  padding: 4px;
}

.pc-msg-icon:hover {
  color: var(--primary);
}

.pc-msg-badge {
  position: absolute;
  top: -2px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 2px;
  background: #ff4d4f;
  color: var(--white);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  border-radius: 10px;
}

.pc-publish-icon {
  position: relative;
  color: var(--text-secondary);
  font-size: 20px;
  text-decoration: none;
  padding: 4px;
}
.pc-publish-icon .linktext{
  font-size: 15px;
}
.pc-publish-icon .linktext:hover{
  color: var(--primary);
}

.pc-publish-btn {
  background: var(--primary);
  border-color: var(--primary);
  padding-top: 3px;
  height: 36px;
  font-size: 14px;
  border-radius:4px;
}

.pc-publish-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.pc-login-btn {
  background: var(--primary);
  border-color: var(--primary);
  padding-top: 3px;
  height: 36px;
  font-size: 14px;
  border-radius:4px;
}

.pc-login-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.pc-user-menu {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 14px 8px 14px 9px;
  transition: background 0.2s;
  margin-left:6px;
}

.pc-user-menu img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.pc-user-menu span {
  font-size: 14px;
  color: var(--text-primary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-user-menu .pc-dropdown {
  left: auto;
  right: 0;
}

/* 页面主体偏移 */
.pc-body {
  padding-top: 50px;
  padding-bottom: 30px;
  min-height: calc(100vh - 80px);
  background: var(--bg-page);
}
/* 页脚 */
.footer{
	position:fixed;
	bottom:0;
	width: 100%;
	min-width:600px;
	padding-top:15px;
	padding-bottom:15px;
	font-size: 12px;
	background-color: #FFFFFF;
	background-image: linear-gradient(#fff,#eee);
	text-align: center;
	color: #999;
}
.footer a{
	color: #999;
}
.footer a:hover{
	color: #666;
}
/* ============================================================
   首页 - 分类入口
   ============================================================ */
.category-entrance {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.category-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-item {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  background: var(--white);
  border-radius: 3px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.category-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 89, 0.15);
}

.category-item .cat-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.category-item .cat-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   首页 - 瀑布流卡片
   ============================================================ */
.home-container {
  max-width: 1200px;;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* CSS columns 实现响应式瀑布流 */
.waterfall {
  column-count: 4;
  column-gap: 16px;
}

.info-card {
  break-inside: avoid;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 响应式列数 */
@media (max-width: 1200px) {
  .waterfall { column-count: 3; }
}

@media (max-width: 992px) {
  .waterfall { column-count: 2; }
}

@media (max-width: 768px) {
  .waterfall { column-count: 1; }
}

.info-card-img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-light);
}

.info-card-img-placeholder {
	width: 100%;
	background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 32px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #eeeeee;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.info-card-body {
  padding: 12px;
}

.info-card-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.info-card-content {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.info-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-card-author .author-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.info-card-author .author-link:hover img {
  opacity: 0.8;
}

.info-card-author .author-link:hover span {
  color: var(--primary);
}

.info-card-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.info-card-author span {
  transition: color 0.2s;
}

.info-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* 加载更多 */
.loadmore-wrap {
  text-align: center;
  padding: 40px 0;
}

.loadmore-btn {
  display: inline-block;
  padding: 10px 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.loadmore-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.loadmore-btn.loading {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ============================================================
   列表页
   ============================================================ */
.list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  gap: 20px;
}

.list-sidebar {
  width: 220px;
  flex-shrink: 0;
}

.list-sidebar-box {
  background: var(--white);
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list-sidebar-title {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.tree-node {
  display: block;
  padding: 10px 16px 10px 24px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.tree-node:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.tree-node.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-light);
  font-weight: 500;
}

.tree-node .sub-node {
  display: block;
  padding: 8px 16px 8px 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.tree-node .sub-node:hover,
.tree-node .sub-node.active {
  color: var(--primary);
}

.list-main {
  flex: 1;
  min-width: 0;
}

.list-search-bar {
  background: var(--white);
  border-radius: 3px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-search-bar .pc-search {
  flex: 1;
}

.list-search-bar .layui-btn {
  background: var(--primary);
  border-color: var(--primary);
}

.list-result-info {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.list-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.list-empty i {
  font-size: 64px;
}
.list-empty p {
  margin-top: 20px;
}

/* 分页 */
.pc-pagination {
  text-align: center;
  padding: 20px 0;
}

/* ============================================================
   详情页
   ============================================================ */
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  gap: 15px;
}

.detail-main {
  flex: 1;
  min-width: 0;
}

.detail-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* 面包屑 */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  margin: 0 6px;
}

/* 图片轮播 */
.detail-carousel {
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
}

.detail-carousel .layui-carousel {
  background: var(--bg-light);
}

.detail-carousel .layui-carousel img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.detail-carousel-single {
	width: 100%;
	border-radius: 3px 3px 0px 0px;
	overflow: hidden;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #eee;
}

.detail-carousel-single img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* 内容区 */
.detail-content {
  background: var(--white);
  border-radius: 3px 3px 0px 0px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-content-body {
  font-size: 16px;
  line-height: 2;
  color: var(--text-primary);
  min-height:100px;
}

.detail-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 详情头部 */
.detail-header {
  background: var(--white);
  border-radius: 0px 0px 3px 3px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
}

.detail-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.detail-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
    flex:1;
}

.detail-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 联系方式 */
.detail-contact {
  background: var(--white);
  border-radius: 3px;
  padding-top: 30px;
  margin-bottom: 16px;
  text-align: center;
}
/* 话弹窗按钮颜色 */
.layui-layer-btn .layui-layer-btn0 {
  background-color: #00b259 !important; /* 绿色按钮（和你电话颜色一致） */
  border-color: #00b259 !important;
  color: #fff !important;
}
.layui-layer-btn .layui-layer-btn0:hover {
  background-color: #333 !important;
  border-color: #333 !important;
}

.detail-contact-btn {
  display: inline-block;
  padding: 10px 32px;
  background: #333;
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.detail-contact-btn:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.detail-contact-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 互动按钮 */
.detail-actions {
  background: var(--white);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.detail-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.detail-action-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.detail-action-btn i {
  font-size: 18px;
}

.detail-action-btn .action-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 编辑和删除按钮特殊样式 */
.detail-edit-btn {
  border-color: #3498db;
  color: #3498db;
}

.detail-edit-btn:hover {
  background: #ebf5fb;
  border-color: #2980b9;
  color: #2980b9;
}

.detail-delete-btn {
  border-color: #e74c3c;
  color: #e74c3c;
}

.detail-delete-btn:hover {
  background: #fdedec;
  border-color: #c0392b;
  color: #c0392b;
}

/* 评论区 */
.detail-comments {
  background: var(--white);
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.login-pl{
	padding:50px 24px;
	text-align:center;
	color:#999;
	font-size:14px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #eee;
}

.detail-comments-header {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid #eee;
}

.detail-comments-header span {
  font-weight: normal;
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 2px;
}

.detail-comment-form {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.detail-comment-form textarea {
  width: 100%;
  min-height: 80px;
  text-indent: 10px;
  padding-top:10px;
  padding-bottom:10px;
  margin-top:10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.detail-comment-form textarea:focus {
  border-color: var(--primary);
}

.detail-comment-form .form-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-comment-form .form-actions .layui-btn {
  margin-left: auto;
}

.detail-comment-form .layui-btn {
  background: var(--primary);
  border-color: var(--primary);
}

.comment-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-avatar-link {
  flex-shrink: 0;
}

.comment-avatar-link:hover .comment-avatar {
  opacity: 0.8;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-user {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-nickname {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.comment-nickname:hover {
  color: var(--primary);
}

.comment-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-word;
}

.comment-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}

.comment-reply-to {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.comment-reply-to a {
  color: var(--primary);
  text-decoration: none;
}

.comment-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.comment-action {
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.2s;
}

.comment-action:hover {
  opacity: 0.7;
}

.comment-delete {
  color: #e74c3c;
}

/* 回复提示条（内联样式） */
.reply-hint-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f0f0;
  padding: 4px 10px;
  font-size: 13px;
  color: #666;
  border-radius: 4px;
  width: fit-content;
}

.reply-hint-inline #reply-hint-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-cancel {
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}

.reply-cancel:hover {
  color: #333;
}

/* 右侧边栏 */
.sidebar-box {
  background: var(--white);
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.sidebar-box-title {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

/* 作者卡片 */
.author-card {
  padding: 20px 16px;
  text-align: center;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}

.author-avatar-link {
  display: inline-block;
}

.author-avatar-link:hover .author-avatar {
  opacity: 0.8;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.author-name-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.author-name-link:hover {
  color: var(--primary);
}

.gender-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.author-signature {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
  padding: 8px;
  background: var(--bg-light);
  border-radius: 4px;
}

.author-message-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 80px;
  padding: 5px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.author-message-btn:hover {
  background: var(--primary-hover);
}

.author-message-btn .layui-icon {
  font-size: 16px;
}

.author-stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  position: relative;
  flex: 1;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* 私信对话框样式 */
.message-dialog {
  padding: 16px;
}

.carousel-img {
  cursor: pointer;
  transition: opacity 0.2s;
}

.carousel-img:hover {
  opacity: 0.9;
}

.message-dialog textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}

.message-dialog textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* 作者的其他图文瀑布流 */
.author-related-waterfall {
  column-count: 2;
  column-gap: 12px;
}

.author-related-card {
  break-inside: avoid;
  display: block;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.author-related-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-related-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.author-related-body {
  padding: 8px 10px;
}

.author-related-title {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
  margin-bottom: 6px;
}

.author-related-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.author-related-read {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 用户主页信息卡 */
.user-profile-header {
  margin-bottom: 20px;
}

.user-profile-card {
  background: var(--white);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}

.user-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-profile-info {
  flex: 1;
  margin-left: 20px;
  min-width: 0;
}

.user-profile-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-profile-signature {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-message-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 80px;
  padding: 5px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.user-profile-message-btn:hover {
  background: var(--primary-hover);
}

.user-profile-message-btn .layui-icon {
  font-size: 18px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: 4px;
}

.empty-state img {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* 我的页面通用样式 */
.my-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.my-page-header {
  background: var(--white);
  padding: 20px 24px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.my-page-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.my-page-count {
  font-size: 14px;
  color: #999;
}

.message-actions {
  margin-top: 12px;
  text-align: right;
}

.author-stats strong {
  font-size: 18px;
  color: var(--text-primary);
}

/* 广告位 */
.ad-placeholder {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-light);
}

/* 相关推荐 */
.related-list a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.related-list a:last-child {
  border-bottom: none;
}

.related-list a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.related-list a span {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ============================================================
   登录/注册页
   ============================================================ */
.auth-container {
  max-width: 460px;
  margin: 80px auto;
  padding: 0 20px;
}

.auth-box {
  background: var(--white);
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.auth-header {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.auth-header h2 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.auth-tab:hover {
  color: var(--primary);
}

.auth-tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.auth-form {
  padding: 24px;
}

.auth-form .layui-form-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.auth-form .layui-form-label {
  width: 60px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 40px;
}

.auth-form .layui-input-inline {
  flex: 1;
  min-width: 0;
  margin-right:60px;
}

.auth-form .layui-input {
  height: 40px;
  border-radius: 5px;
}

.auth-form .layui-btn {
  width: 100%;
  height: 42px;
  background: var(--primary);
  border-color: var(--primary);
  font-size: 16px;
  border-radius: 5px;
}

.auth-form .layui-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.auth-footer {
  padding: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* 短信验证码行 */
.sms-row {
  display: flex;
  gap: 10px;
}

.sms-row .layui-input {
  flex: 1;
}

.sms-send-btn {
  padding: 0 16px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.sms-send-btn:hover {
  border-color: var(--primary);
}

.sms-send-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* 注册页二维码 */
.register-container {
  max-width: 460px;
  margin: 80px auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
}

.register-box {
  flex: 1;
}

.register-qrcode {
  flex: 1;
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  padding: 80px;
  text-align: center;
  height: fit-content;
}

.register-qrcode .qrcode-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 48px;
}

.register-qrcode p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.register-qrcode small {
  font-size: 14px;
  color: var(--text-muted);
}

/* 图形验证码行 */
.verify-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.verify-row .layui-input {
  flex: 1;
}

.verify-row img {
  height: 40px;
  border-radius: 5px;
  cursor: pointer;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
  .pc-nav {
    display: none;
  }
  
  .pc-search {
    max-width: 200px;
  }
  
  .list-container {
    flex-direction: column;
  }
  
  .list-sidebar {
    width: 100%;
  }
  
  .detail-container {
    flex-direction: column;
  }
  
  .detail-sidebar {
    width: 100%;
  }
  
  .register-container {
    flex-direction: column;
  }
  
  .register-qrcode {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pc-header-inner {
    padding: 0 12px;
  }
  
  .pc-actions .pc-publish-btn {
    display: none;
  }
  
  .waterfall-wrap {
    gap: 10px;
  }
  
  .waterfall-col {
    gap: 10px;
  }
}

/* ============================================================
   消息中心页面
   ============================================================ */
.msg-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px 10px 20px;
  background-color:#fff;
  border-radius: 5px;
}

.msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.msg-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.msg-total-unread {
  font-size: 14px;
  color: #999;
}

.msg-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.msg-tab {
  padding: 6px 12px;
  background: #f5f5f5;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.msg-tab.active {
  background: var(--primary);
  color: #fff;
}

.msg-tab:hover:not(.active) {
  background: #e8e8e8;
}

.msg-tab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
}

.msg-mark-all-read {
  margin-left: auto;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.msg-mark-all-read:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.msg-content {
  min-height: 400px;
}

.msg-item {
	display: flex;
	align-items: center;
	padding: 16px;
	background: #fff;
	border-radius: 5px;
	margin-bottom: 12px;
	position: relative;
	transition: box-shadow 0.2s;
	background-color:#fff;
	border: 1px solid #eee;
}

.msg-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.msg-item-unread {
  background: #f9fffe;
}

.msg-item-main {
  flex: 1;
  display: flex;
  gap: 12px;
  cursor: pointer;
}

.msg-item-avatar {
  position: relative;
  flex-shrink: 0;
}

.msg-item-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.msg-item-unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #ff4d4f;
  border-radius: 50%;
}

.msg-item-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  border-radius: 6px;
}

.msg-item-body {
  flex: 1;
  min-width: 0;
}

.msg-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.msg-item-user {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.msg-item-user a {
  color: #333;
  text-decoration: none;
}

.msg-item-user a:hover {
  color: var(--primary);
}

.msg-item-type {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

.msg-type-like {
  background: #fff1f0;
  color: #ff4d4f;
}

.msg-type-comment {
  background: #e6f7ff;
  color: #1890ff;
}

.msg-item-time {
  flex:1;
  font-size: 13px;
  color: #999;
  margin-left:10px;
}

.msg-item-preview {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-item-info-title {
  color: var(--primary);
  font-weight: 500;
}

.msg-item-delete {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
  opacity: 0;
  margin-left:20px;
}

.msg-item:hover .msg-item-delete {
  opacity: 1;
}

.msg-item-delete:hover {
  background: #fff1f0;
  color: #ff4d4f;
}

.msg-pagination {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.msg-empty {
  text-align: center;
  padding: 80px 20px;
}

.msg-empty img {
  width: 120px;
  opacity: 0.5;
}

.msg-empty p {
  margin-top: 16px;
  font-size: 14px;
  color: #999;
}

/* ============================================================
   发布页面
   ============================================================ */
/* 发布页面样式 */
.publish-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}

.publish-card {
  background: #fff;
  border-radius: 5px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.publish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.publish-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.publish-back {
  color: #00b259;
  text-decoration: none;
  font-size: 14px;
}

.publish-back:hover {
  color: #00994d;
}

.publish-section {
  margin-bottom: 30px;
}

.section-label {
  display: block;
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin-bottom: 12px;
}

/* 分类标签 */
.tab-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-item {
  padding: 8px 20px;
  background: #f5f5f5;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-item.active {
  background: #00b259;
  color: #fff;
}

.tab-item:hover:not(.active) {
  background: #e8e8e8;
}

/* 内容输入 */
#content-input {
  width: 100%;
  height: 110px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

#content-input:focus {
  outline: none;
  border-color: #00b259;
}

.content-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* 图片上传 */
.upload-area {
  position: relative;
}

.upload-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.upload-item {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%;
  background: #f8f8f8;
  border-radius: 5px;
  overflow: hidden;
  cursor: move;
  transition: opacity 0.2s;
}

.upload-item.dragging {
  opacity: 0.6;
}

.upload-item.drag-over {
  outline: 2px dashed #00b259;
  outline-offset: -2px;
  background: rgba(0, 178, 89, 0.1);
}

.upload-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(255, 77, 79, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.upload-item:hover .upload-delete {
  opacity: 1;
}

.upload-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 152px;
  padding: 40px;
  background: #f8f8f8;
  border: 2px dashed #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  color: #999;
  transition: all 0.3s;
}

.upload-add-btn:hover {
  border-color: #00b259;
  color: #00b259;
}

.upload-add-btn i {
  font-size: 32px;
  margin-bottom: 8px;
}

.upload-tip {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* 开关 */
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.switch-label-text {
  font-size: 14px;
  color: #666;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: #00b259;
}

input:checked + .switch-slider:before {
  transform: translateX(24px);
}

/* 电话输入 */
.phone-input-wrap {
  margin-top: 12px;
  display: none; /* 默认隐藏 */
}

#phone-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

#phone-input:focus {
  outline: none;
  border-color: #00b259;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: #00b259;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover:not(:disabled) {
  background: #00994d;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 聊天页面样式 */
.chat-container {
  max-width: 800px;
  margin: 30px auto;
  height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.chat-back {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.chat-back:hover {
  color: #00b259;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.chat-user-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.chat-user-info:hover {
  color: #00b259;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f5f5f5;
}

.chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.chat-message-mine {
  justify-content: flex-end;
}

.chat-msg-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-msg-content {
  max-width: 50%;
  min-width: 0;
  flex-shrink: 0;
}

.chat-msg-bubble {
  background: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  min-width: 0;
}

.chat-message-mine .chat-msg-content {
  text-align: right;
}

.chat-message-mine .chat-msg-bubble {
  background: #00b259;
  color: #fff;
  display: inline-block;
}

.chat-msg-time {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  padding: 0 4px;
}

.chat-message-mine .chat-msg-time {
  text-align: right;
}

.chat-footer {
  padding: 16px 20px;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}

.chat-input-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  padding-top: 10px;
  padding-left: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 14px;
  resize: none;
  font-family: inherit;
  height: 28px;
}

#chat-input:focus {
  outline: none;
  border-color: #00b259;
}

.chat-send-btn {
  padding: 10px 24px;
  background: #00b259;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.chat-send-btn:hover:not(:disabled) {
  background: #00994d;
}

.chat-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 编辑资料页面样式 */
.profile-edit-container {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 20px;
}

.profile-edit-card {
  background: #fff;
  border-radius: 5px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.profile-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.profile-edit-back {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.profile-edit-back:hover {
  color: #00b259;
}

.profile-edit-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.profile-edit-form {
  margin-bottom: 30px;
}

.profile-avatar-section {
  margin-bottom: 30px;
  text-align: center;
  padding: 20px 0;
}

.profile-avatar-section .form-label {
  text-align: left;
  margin-bottom: 16px;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: #fff;
}

.avatar-overlay .layui-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.avatar-overlay span {
  font-size: 12px;
}

.profile-avatar-section .form-tip {
  text-align: center;
  margin-top: 12px;
}

.form-item {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-item input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-item input[type="text"]:focus {
  outline: none;
  border-color: #00b259;
}

.form-item textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-item textarea:focus {
  outline: none;
  border-color: #00b259;
}

.form-tip {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* 性别选择 */
.gender-options {
  display: flex;
  gap: 12px;
}

.gender-item {
  flex: 1;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  color: #666;
}

.gender-item i {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.gender-item:hover {
  background: #e8e8e8;
}

.gender-item.active {
  background: #00b259;
  color: #fff;
}

.gender-item.active i {
  color: #fff;
}

/* 保存按钮 */
.form-actions {
  margin-top: 30px;
}

.profile-save-btn {
  width: 100%;
  padding: 12px;
  background: #00b259;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.profile-save-btn:hover:not(:disabled) {
  background: #00994d;
}

.profile-save-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
