* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif; color: #333; background: #f7f8fa; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: bold; color: #00465f; }
.logo img { height: 36px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: #444; padding: 4px 2px; }
.nav a:hover, .nav a.active { color: #006c93; border-bottom: 2px solid #006c93; }
.nav .login-link { color: #006c93; border: 1px solid #006c93; border-radius: 4px; padding: 4px 14px; }

/* 横幅 */
.banner { background: linear-gradient(135deg, #00465f, #0d87b3); color: #fff; padding: 70px 0; text-align: center; }
.banner h1 { font-size: 34px; margin-bottom: 12px; }
.banner p { font-size: 16px; opacity: .9; }

/* 三栏内容 */
.main-content { padding: 36px 16px; }
.columns { display: flex; gap: 24px; }
.col { flex: 1; background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.col-title { font-size: 18px; color: #00465f; border-left: 4px solid #006c93; padding-left: 10px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.col-title .more { font-size: 13px; color: #888; font-weight: normal; }
.article-list { list-style: none; }
.article-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eee; }
.article-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.article-list li a:hover { color: #006c93; }
.article-list .date { font-size: 12px; color: #999; flex-shrink: 0; }
.article-list .empty { color: #999; justify-content: center; }
.article-list.full li { padding: 12px 0; }

/* 详情页 */
.detail-wrap { padding: 36px 16px; min-height: 400px; }
.detail-title { font-size: 26px; margin-bottom: 10px; color: #00465f; }
.detail-meta { color: #999; font-size: 13px; margin-bottom: 20px; display: flex; gap: 16px; }
.detail-content { background: #fff; border-radius: 8px; padding: 24px; line-height: 1.9; }
.back-link { display: inline-block; margin-top: 20px; color: #006c93; }

/* 底部 */
.site-footer { background: #013a52; color: #cfd6e4; text-align: center; padding: 26px 0; font-size: 13px; margin-top: 40px; }
.site-footer a { color: #cfd6e4; }
.site-footer a:hover { color: #fff; }

/* 右侧悬浮栏 */
.float-bar { position: fixed; right: 14px; top: 40%; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.float-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; padding: 10px 4px; background: #006c93; color: #fff; border-radius: 8px; font-size: 12px; }
.float-item:hover { background: #005575; }
.float-item .icon { font-size: 20px; }
.float-item .qr-tip { display: none; position: absolute; right: 74px; top: 0; width: 130px; background: #fff; color: #555; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; text-align: center; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.float-item.wechat:hover .qr-tip { display: block; }

/* 后台 */
.admin-body { background: #eef1f5; }
/* 登录页：左宣传 + 右登录 */
.login-main { background: linear-gradient(135deg, #f2f6fc, #e8f0fb); padding: 60px 0; min-height: calc(100vh - 64px - 110px); }
.login-columns { display: flex; align-items: center; gap: 60px; }
.login-promo { flex: 1.2; }
.login-promo h2 { font-size: 30px; color: #00465f; margin-bottom: 10px; }
.promo-slogan { font-size: 18px; color: #0d87b3; margin-bottom: 22px; }
.promo-points { list-style: none; }
.promo-points li { position: relative; padding-left: 26px; margin-bottom: 14px; color: #4a5568; font-size: 15px; line-height: 1.7; }
.promo-points li::before { content: '✔'; position: absolute; left: 0; color: #006c93; font-weight: bold; }
.login-panel { flex: 1; max-width: 400px; background: #fff; border-radius: 12px; padding: 34px 32px; box-shadow: 0 6px 24px rgba(26,60,110,.12); }
.login-panel h3 { font-size: 20px; color: #00465f; margin-bottom: 20px; text-align: center; }
.login-panel .field { margin-bottom: 16px; }
.login-panel .field label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.login-panel .field input { width: 100%; padding: 10px 12px; border: 1px solid #d7dce3; border-radius: 6px; font-size: 14px; }
.login-panel .field input:focus { outline: none; border-color: #006c93; }
.field-links { display: flex; justify-content: space-between; margin-bottom: 16px; }
.forget-link { font-size: 13px; color: #006c93; }
.forget-link:hover { text-decoration: underline; }
.apply-link { font-size: 13px; color: #006c93; }
.apply-link:hover { text-decoration: underline; }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 40px; }
.pwd-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); cursor: pointer; font-size: 15px; user-select: none; }
/* 申请账号页 */
.apply-panel { flex: 1; max-width: 480px; background: #fff; border-radius: 12px; padding: 34px 32px; box-shadow: 0 6px 24px rgba(0,70,95,.12); }
.apply-panel .admin-form label { font-size: 13px; color: #4a5568; font-weight: 600; margin: 16px 0 7px; letter-spacing: .5px; }
.apply-panel .admin-form label:first-child { margin-top: 4px; }
.apply-panel .admin-form input[type=text],
.apply-panel .admin-form input[type=email],
.apply-panel .admin-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dde5ec;
  border-radius: 8px;
  font-size: 14px;
  color: #2d3748;
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.apply-panel .admin-form input::placeholder,
.apply-panel .admin-form textarea::placeholder { color: #a8b3bf; }
.apply-panel .admin-form input:hover,
.apply-panel .admin-form textarea:hover { border-color: #b7c6d3; }
.apply-panel .admin-form input:focus,
.apply-panel .admin-form textarea:focus {
  outline: none;
  border-color: #006c93;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,108,147,.15);
}
.apply-panel .admin-form textarea { resize: vertical; line-height: 1.6; }
.apply-panel .apply-actions { margin-top: 26px; }
.apply-panel .apply-actions .btn { padding: 11px 28px; font-size: 15px; border-radius: 8px; }
.apply-panel h3 { font-size: 20px; color: #00465f; margin-bottom: 8px; text-align: center; }
.apply-tip { text-align: center; font-size: 13px; color: #999; margin-bottom: 20px; }
.apply-success { background: #e9f7ec; color: #1a7f37; padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.required { color: #d33; }
.apply-actions { margin-top: 22px; display: flex; gap: 14px; }
.intention-cell { max-width: 220px; }
.done-text { color: #999; }

/* ========== 新后台布局 ========== */
/* 头部用户区 */
.user-area { display: flex; align-items: center; gap: 18px; }
.gear-link { font-size: 20px; color: #556; text-decoration: none; }
.gear-link:hover { color: #006c93; }
.gear-icon { display: inline-block; transition: transform .4s; }
.gear-link:hover .gear-icon { transform: rotate(90deg); }
.user-dropdown { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.user-trigger:hover { background: #f0f4f8; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #006c93, #0d87b3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.user-name { font-size: 14px; color: #2d3748; font-weight: 600; }
.user-role { font-size: 12px; color: #8a97a5; }
.caret { color: #8a97a5; font-size: 12px; }
.user-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 140px; padding: 6px; z-index: 300; }
.user-menu a { display: block; padding: 9px 14px; font-size: 14px; color: #374151; border-radius: 6px; }
.user-menu a:hover { background: #f0f4f8; color: #006c93; }
.user-menu .menu-logout { color: #c0392b; }

/* 后台主页：项目卡片 */
.admin-home-main { padding: 40px 0; min-height: calc(100vh - 64px - 110px); background: #eef1f5; }
.home-title-bar { margin-bottom: 26px; }
.home-title-bar h2 { font-size: 24px; color: #00465f; }
.home-sub { font-size: 13px; color: #8a97a5; margin-top: 6px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.project-card { background: #fff; border-radius: 14px; padding: 28px 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; border: 1px solid transparent; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,70,95,.16); border-color: rgba(0,108,147,.25); }
.project-logo { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 18px; background: linear-gradient(135deg, #006c93, #0d87b3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-logo img { width: 100%; height: 100%; object-fit: cover; }
.project-char { color: #fff; font-size: 30px; font-weight: bold; }
.project-name { font-size: 15px; color: #2d3748; font-weight: 600; }
.empty-card { cursor: default; }

/* 设置页布局：左侧导航 + 右侧内容 */
.settings-main { padding: 30px 0; min-height: calc(100vh - 64px - 110px); background: #eef1f5; }
.settings-columns { display: flex; gap: 24px; align-items: flex-start; }
.settings-side { width: 200px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 84px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { padding: 11px 16px; font-size: 14px; color: #4a5568; border-radius: 8px; border-left: 3px solid transparent; }
.side-nav a:hover { background: #f0f4f8; color: #006c93; }
.side-nav a.active { background: rgba(0,108,147,.08); color: #006c93; font-weight: 600; border-left-color: #006c93; }
.settings-content { flex: 1; background: #fff; border-radius: 12px; padding: 26px; box-shadow: 0 2px 8px rgba(0,0,0,.06); min-width: 0; }
.settings-form { max-width: 560px; }
.form-actions { margin-top: 22px; display: flex; gap: 14px; }
.pwd-hint { font-size: 12px; color: #999; font-weight: normal; }

/* 权限管理 */
.perm-block { border: 1px solid #e8edf2; border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.perm-user-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.perm-user-meta { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.perm-projects { display: flex; flex-wrap: wrap; gap: 10px; }
.perm-item { display: inline-flex; align-items: center; gap: 6px; background: #f6f9fb; border: 1px solid #e0e8ef; border-radius: 8px; padding: 7px 14px; font-size: 13px; color: #4a5568; cursor: pointer; }
.perm-item:hover { border-color: #006c93; }
.perm-item input { accent-color: #006c93; }

/* 产品管理 */
.product-thumb { width: 60px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; vertical-align: middle; }
.img-count { font-size: 12px; color: #8a97a5; margin-left: 6px; }
.img-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.img-item { position: relative; width: 110px; height: 80px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #f8fafc; }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-del { position: absolute; top: 2px; right: 4px; width: 18px; height: 18px; line-height: 16px; text-align: center; background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; cursor: pointer; font-size: 13px; }
.img-del:hover { background: #c0392b; }

/* 账号详情页 */
.detail-section { border: 1px solid #e8edf2; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.section-title { font-size: 16px; color: #00465f; margin-bottom: 16px; padding-left: 10px; border-left: 3px solid #006c93; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.detail-field label { display: block; font-size: 13px; color: #4a5568; font-weight: 600; margin-bottom: 6px; }
.detail-field input { width: 100%; padding: 9px 12px; border: 1.5px solid #dde5ec; border-radius: 8px; font-size: 14px; background: #f8fafc; transition: border-color .2s, box-shadow .2s, background .2s; }
.detail-field input:focus { outline: none; border-color: #006c93; background: #fff; box-shadow: 0 0 0 3px rgba(0,108,147,.15); }
.upload-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.upload-item { width: 200px; }
.upload-item > label { display: block; font-size: 13px; color: #4a5568; font-weight: 600; margin-bottom: 8px; }
.upload-preview { width: 200px; height: 130px; border: 1.5px dashed #c9d4de; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 8px; background: #f8fafc; }
.upload-preview img { width: 100%; height: 100%; object-fit: contain; }
.upload-tip { font-size: 12px; color: #a8b3bf; }

@media (max-width: 900px) {
  .settings-columns { flex-direction: column; }
  .settings-side { width: 100%; position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .user-meta { display: none; }
}
.login-btn { width: 100%; padding: 11px; background: #006c93; color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; letter-spacing: 6px; }
.login-btn:hover { background: #005575; }
.no-register { margin-top: 16px; text-align: center; font-size: 12px; color: #999; }
.login-error { color: #d33; font-size: 13px; margin-bottom: 10px; }
@media (max-width: 900px) {
  .login-columns { flex-direction: column; gap: 30px; }
  .login-promo { text-align: center; }
  .promo-points li { text-align: left; }
}
.admin-wrap { max-width: 1000px; margin: 30px auto; background: #fff; border-radius: 10px; padding: 24px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.admin-top h2 { color: #00465f; }
.admin-msg { color: #1a7f37; background: #e9f7ec; padding: 8px 12px; border-radius: 6px; margin-bottom: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { border-bottom: 1px solid #eee; padding: 10px 8px; text-align: left; }
.admin-table th { background: #f4f6f9; color: #555; }
.btn { display: inline-block; padding: 7px 16px; background: #006c93; color: #fff; border-radius: 6px; font-size: 14px; border: none; cursor: pointer; }
.btn:hover { background: #005575; }
.btn-plain { background: #fff; color: #006c93; border: 1px solid #006c93; }
.btn-sm { padding: 3px 10px; font-size: 13px; }
.btn-danger { background: #d33; }
.admin-form label { display: block; margin: 14px 0 6px; font-size: 14px; color: #555; }
.admin-form input[type=text], .admin-form select, .admin-form textarea { width: 100%; padding: 9px; border: 1px solid #d7dce3; border-radius: 6px; font-size: 14px; }
.admin-form textarea { resize: vertical; }
.admin-form .check-line { display: flex; align-items: center; gap: 8px; }
.admin-form .check-line input { width: auto; }
.admin-form > div:last-child { margin-top: 20px; }

/* 响应式 */
@media (max-width: 900px) {
  .columns { flex-direction: column; }
  .nav { gap: 12px; font-size: 13px; flex-wrap: wrap; }
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; }
}

/* ===== 产品表单美化 ===== */
.product-form { max-width: 100%; }
.product-form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid #f0f1f3; margin-top: 8px; }
.product-form-actions .btn { min-width: 100px; text-align: center; }

/* 表单卡片 */
.form-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 22px; margin-bottom: 18px; }
.form-card-title { font-size: 16px; color: #00465f; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #f0f1f3; display: flex; align-items: center; gap: 6px; }
.form-card-title::before { content: ''; display: inline-block; width: 4px; height: 16px; background: #006c93; border-radius: 2px; }
.form-card-hint { font-size: 12px; color: #999; font-weight: normal; }
.form-row { display: flex; gap: 16px; }
.form-col { flex: 1; }
.form-col-sm { max-width: 160px; flex: 0 0 160px; }
.required { color: #d33; }

/* 表单输入框美化 */
.product-form input[type=text], .product-form input[type=number], .product-form select, .product-form textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid #dde5ec; border-radius: 8px; font-size: 14px; color: #2d3748; background: #f8fafc; transition: border-color .2s, box-shadow .2s, background .2s;
}
.product-form input[type=text]:focus, .product-form input[type=number]:focus, .product-form select:focus, .product-form textarea:focus {
  outline: none; border-color: #006c93; background: #fff; box-shadow: 0 0 0 3px rgba(0,108,147,.12);
}
.product-form input::placeholder, .product-form textarea::placeholder { color: #a8b3bf; }
.product-form textarea { resize: vertical; line-height: 1.6; }
.product-form select { cursor: pointer; }
.product-form label { font-size: 13px; color: #4a5568; font-weight: 600; margin: 14px 0 7px; letter-spacing: .3px; }
.product-form .check-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.product-form .check-line input { width: auto; accent-color: #006c93; }

/* 图片列表 */
.img-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.img-item { position: relative; width: 110px; height: 110px; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; background: #f8fafc; }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(0,0,0,.55); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; line-height: 1; }
.img-del:hover { background: rgba(209,51,51,.85); }
.btn-add-img { margin-top: 6px; border: 1.5px dashed #006c93; color: #006c93; background: #f0f7fa; border-radius: 8px; padding: 8px 16px; }
.btn-add-img:hover { background: #e0eff5; }

/* 预览面板响应式 */
@media (max-width: 900px) {
  .product-edit-layout { flex-direction: column; }
  .product-preview-panel { width: 100%; position: static; }
}

/* ===== 前台产品列表页 ===== */
.product-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.product-card { width: calc(33.333% - 16px); background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); transform: translateY(-2px); }
.product-card-img { width: 100%; height: 200px; background: #f5f6f8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-placeholder { color: #bbb; font-size: 14px; }
.product-card-info { padding: 16px; }
.product-card-info h3 { font-size: 16px; color: #333; margin-bottom: 8px; }
.product-card-summary { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card-price { display: flex; align-items: baseline; gap: 10px; }
.product-card-price .price { font-size: 18px; color: #d33; font-weight: bold; }
.product-card-price .orig-price { font-size: 12px; color: #bbb; text-decoration: line-through; }
.empty-tip { text-align: center; padding: 60px 0; color: #999; font-size: 16px; }

/* 前台产品分类分组 */
.product-category-section { margin-bottom: 36px; }
.product-category-heading { font-size: 22px; color: #00465f; margin-bottom: 6px; padding-left: 12px; border-left: 4px solid #006c93; }
.product-category-desc { font-size: 14px; color: #8a97a5; margin-bottom: 16px; padding-left: 16px; }

/* ===== 前台产品详情页 ===== */
.product-detail-wrap { padding: 20px 0; }
.product-detail-top { display: flex; gap: 30px; margin-top: 16px; }
.detail-carousel { flex: 0 0 480px; }
.detail-carousel-main { width: 480px; height: 360px; background: #f5f6f8; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.detail-carousel-placeholder { color: #bbb; font-size: 14px; }
.detail-carousel-img { display: none; width: 100%; height: 100%; object-fit: cover; }
.detail-carousel-img.active { display: block; }
.detail-carousel-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.detail-carousel-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.detail-carousel-thumb.active { border-color: #006c93; }
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { font-size: 24px; color: #00465f; margin-bottom: 12px; }
.detail-summary { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 20px; }
.detail-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.detail-price { font-size: 28px; color: #d33; font-weight: bold; }
.detail-orig-price { font-size: 14px; color: #bbb; text-decoration: line-through; }
.detail-actions { display: flex; gap: 12px; }
.detail-images-section { margin-top: 40px; }
.detail-section-title { font-size: 20px; color: #00465f; border-left: 4px solid #006c93; padding-left: 10px; margin-bottom: 20px; }
.detail-images-list { display: flex; flex-direction: column; gap: 0; }
.detail-image-item { width: 100%; display: block; }

/* 前台产品页响应式 */
@media (max-width: 900px) {
  .product-card { width: calc(50% - 12px); }
  .product-detail-top { flex-direction: column; }
  .detail-carousel { flex: none; }
  .detail-carousel-main { width: 100%; height: 260px; }
}

/* ===== 面包屑导航 ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8a97a5; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f1f3; }
.breadcrumb a { color: #006c93; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #c0c8d0; }
.breadcrumb-current { color: #4a5568; font-weight: 600; }

/* ===== 项目管理优化 ===== */
.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filter-input { padding: 7px 12px; border: 1px solid #d7dce3; border-radius: 6px; font-size: 14px; min-width: 180px; }
.filter-select { padding: 7px 12px; border: 1px solid #d7dce3; border-radius: 6px; font-size: 14px; }
.desc-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8a97a5; }
.status-toggle { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; cursor: pointer; }
.status-on { background: #e9f7ec; color: #1a7f37; }
.status-off { background: #fef0f0; color: #c0392b; }
.drag-handle-col { width: 30px; text-align: center; color: #c0c8d0; }
.drag-handle { cursor: grab; color: #c0c8d0; text-align: center; user-select: none; font-size: 16px; }
.drag-handle:hover { color: #006c93; }
.project-row.dragging { opacity: .5; background: #f0f7fa; }

/* Logo 上传区域 */
.logo-upload-area { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 10px; }
.logo-preview { width: 100px; height: 100px; border: 1.5px dashed #c9d4de; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f8fafc; cursor: pointer; flex-shrink: 0; }
.logo-preview:hover { border-color: #006c93; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-placeholder { color: #a8b3bf; font-size: 12px; text-align: center; }
.logo-actions { display: flex; flex-direction: column; gap: 8px; }
.logo-tip { font-size: 12px; color: #a8b3bf; }

/* 首页项目分类分组 */
.project-category-group { margin-bottom: 28px; }
.project-category-title { font-size: 16px; color: #00465f; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid #006c93; }
.project-desc { font-size: 12px; color: #8a97a5; line-height: 1.5; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ===== 后台移动端自适应 ===== */
@media (max-width: 768px) {
  /* 头部 */
  .header-inner { height: auto; padding: 8px 0; flex-wrap: wrap; gap: 8px; }
  .logo { font-size: 14px; gap: 6px; }
  .logo img { height: 28px; }
  .logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
  .user-area { gap: 10px; }
  .gear-link { font-size: 18px; }
  .avatar { width: 30px; height: 30px; font-size: 14px; }
  .caret { display: none; }
  .user-menu { right: -10px; min-width: 120px; }

  /* 容器 */
  .container { padding: 0 10px; }

  /* 后台主页 */
  .admin-home-main { padding: 16px 0; }
  .home-title-bar h2 { font-size: 18px; }
  .project-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .project-card { padding: 16px 10px; }
  .project-logo { width: 48px; height: 48px; border-radius: 12px; }
  .project-char { font-size: 20px; }
  .project-name { font-size: 13px; }

  /* 设置页布局 */
  .settings-main { padding: 12px 0; }
  .settings-columns { flex-direction: column; gap: 12px; }
  .settings-side { width: 100%; position: static; padding: 8px; border-radius: 10px; }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .side-nav a { padding: 8px 12px; font-size: 13px; border-left: none; border-bottom: 2px solid transparent; border-radius: 6px; }
  .side-nav a.active { border-left: none; border-bottom-color: #006c93; }
  .settings-content { padding: 14px; border-radius: 10px; }

  /* 后台表格 */
  .admin-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .admin-top h2 { font-size: 18px; }
  .admin-wrap { padding: 14px; border-radius: 10px; margin: 12px auto; }
  .admin-table { font-size: 12px; display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
  .admin-table th { position: sticky; top: 0; z-index: 1; }

  /* 表单 */
  .admin-form input[type=text], .admin-form select, .admin-form textarea { font-size: 13px; padding: 8px; }
  .form-actions { flex-wrap: wrap; }
  .btn { padding: 8px 14px; font-size: 13px; }
  .btn-sm { padding: 4px 8px; font-size: 12px; }

  /* 产品表单 */
  .product-edit-layout { flex-direction: column; gap: 16px; }
  .product-preview-panel { width: 100%; position: static; }
  .form-card { padding: 14px; }
  .form-card-title { font-size: 15px; }
  .form-row { flex-direction: column; gap: 10px; }
  .form-col-sm { max-width: 100%; flex: 1; }
  .img-item { width: 80px; height: 80px; }

  /* 权限管理 */
  .perm-block { padding: 12px; }
  .perm-user-row { flex-wrap: wrap; gap: 8px; }
  .perm-projects { gap: 6px; }
  .perm-item { padding: 5px 10px; font-size: 12px; }

  /* 账号详情页 */
  .detail-section { padding: 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .upload-row { flex-direction: column; gap: 14px; }
  .upload-item { width: 100%; }
  .upload-preview { width: 100%; height: 160px; }

  /* 登录页 */
  .login-main { padding: 20px 0; }
  .login-columns { flex-direction: column; gap: 20px; }
  .login-promo { text-align: center; }
  .login-promo h2 { font-size: 22px; }
  .promo-slogan { font-size: 15px; }
  .login-panel { padding: 20px 18px; max-width: 100%; }
  .apply-panel { padding: 20px 18px; max-width: 100%; }

  /* 底部 */
  .site-footer { padding: 16px 0; font-size: 12px; }

  /* 悬浮栏 */
  .float-bar { right: 8px; }
  .float-item { width: 52px; padding: 8px 4px; font-size: 11px; }
}

@media (max-width: 480px) {
  .logo span { max-width: 100px; font-size: 12px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .side-nav a { padding: 6px 10px; font-size: 12px; }
  .admin-table { font-size: 11px; }
  .product-card { width: 100%; }
}
@media (max-width: 600px) {
  .product-card { width: 100%; }
}

/* ===== 申请成功页 ===== */
.success-page { text-align: center; padding: 60px 20px; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 24px; background: #1a7f37; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.success-title { font-size: 26px; color: #00465f; margin-bottom: 12px; }
.success-desc { font-size: 15px; color: #666; line-height: 1.8; margin-bottom: 28px; }
.success-actions { display: flex; gap: 14px; justify-content: center; }
