/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
  background: #f5f5f7;
  color: #0f1012;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
}

body.admin-mode .global-header,
body.admin-mode .global-footer {
  display: none;
}

body.admin-mode .global-main {
  margin: 0;
  padding: 0;
}

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

/* --- Global Layout --- */
.global-header {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-top {
  border-bottom: 1px solid #e2e8f0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top .header-container {
  height: 64px;
}

.header-bottom {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.header-bottom .header-container {
  height: 48px;
  justify-content: flex-start;
}

.header-nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981; /* 小清新绿 */
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo .logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-search {
  flex: 1 1;
  max-width: 500px;
  margin: 0 40px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  border: 2px solid #10b981; /* 小清新绿 */
  background: #fff;
  padding: 0 48px 0 20px;
  color: #333;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.search-btn {
  position: absolute;
  right: 4px;
  background: #10b981; /* 小清新绿 */
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s;
}

.search-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

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

.header-actions .login-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981; /* 小清新绿 */
  font-size: 14px;
  border: 1px solid #10b981;
  padding: 6px 16px;
  border-radius: 16px;
  transition: all 0.2s;
}

.header-actions .login-link:hover {
  background: #10b981;
  color: #fff;
}

.header-checkin {
  position: relative;
}

.header-checkin-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid #fde68a;
  background: #fffbe6;
  color: #b45309;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.header-checkin-trigger:hover {
  background: #fef3c7;
}

.header-checkin-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 340px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  z-index: 30;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.header-checkin-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.header-checkin-panel-header p {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.header-checkin-primary {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  background: #10b981;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.header-checkin-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.header-checkin-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
}

.header-checkin-balance strong {
  color: #111827;
  font-size: 20px;
}

.header-checkin-calendar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.calendar-header {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-align: center;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 4px;
  gap: 4px;
}

.calendar-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  transition: all 0.2s;
  padding: 0;
}

.calendar-day.other-month {
  color: #d1d5db;
}

.calendar-day.today {
  border-color: #ef4444;
  color: #ef4444;
  font-weight: 600;
}

.calendar-day.checked {
  background: #f0fdf4;
  color: #15803d;
}

.calendar-day.checked .day-number {
  opacity: 0;
}

.calendar-day .check-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #16a34a;
}

.calendar-day.can-retroactive {
  cursor: pointer;
  background: #fff1f0;
  color: #ef4444;
  border-color: #fca5a5;
}

.calendar-day.can-retroactive:hover:not(:disabled) {
  background: #fee2e2;
}

.calendar-day.can-retroactive:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.calendar-day.can-retroactive .day-number {
  opacity: 0;
}

.calendar-day .retro-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 600;
  color: #ef4444;
  white-space: nowrap;
}

.calendar-day.future {
  color: #9ca3af;
}

.header-checkin-log-block {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.header-checkin-log-title {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.header-checkin-log-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4b5563;
  font-size: 12px;
}

.header-checkin-log-empty,
.header-checkin-note,
.header-checkin-message {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.submit-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff1f0;
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.submit-entry-link:hover,
.submit-entry-link.active {
  background: #ef4444;
  color: #fff;
}

.nav-item {
  font-size: 15px;
  color: #475569;
  font-weight: 500;
  transition: all 0.2s;
  padding: 12px 0;
  border-radius: 0;
  position: relative;
}

.nav-item:hover {
  color: #10b981; /* 小清新绿 */
}

.nav-item.active {
  color: #10b981; /* 小清新绿 */
  font-weight: 600;
  background: transparent;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #10b981; /* 小清新绿 */
  border-radius: 3px 3px 0 0;
}

.global-main {
  flex: 1 1;
}

.global-footer {
  background: #fff;
  border-top: 1px solid #eaeaea;
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 48px;
  gap: 48px;
}

.footer-info h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #262626;
}

.footer-info p {
  margin: 0;
  font-size: 14px;
  color: #8c8c8c;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 14px;
  color: #595959;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #1890ff;
}

.footer-copyright {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  font-size: 13px;
  color: #bfbfbf;
}

/* --- Page Content --- */
.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #10b981; /* 小清新绿 */
  margin: 0 0 16px 0;
}

.section-title .icon {
  width: 20px;
  height: 20px;
}

.search-page-card {
  padding-bottom: 16px;
}

.search-page-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  color: #0f172a;
}

.search-page-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
}

.search-empty {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* Top Deals */
.top-deals-container {
  position: relative;
  padding: 0 40px;
}

.top-deals-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-deals-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.top-deals-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.top-deals-nav:disabled {
  cursor: not-allowed;
}

.top-deals-nav-left {
  left: 4px;
}

.top-deals-nav-right {
  right: 4px;
}

.top-deals-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.top-deals-scroll::-webkit-scrollbar {
  display: none;
}

.top-deal-card {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: calc((100% - 48px) / 5);
  min-width: calc((100% - 48px) / 5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  scroll-snap-align: start;
}

.top-deal-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

.top-deal-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-deal-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: #10b981; /* 小清新绿 */
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-bottom-right-radius: 8px;
}

.top-deal-title {
  font-size: 14px;
  color: #333;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-deal-price {
  text-align: center;
}

.top-deal-price .current {
  color: #10b981; /* 小清新绿 */
  font-size: 16px;
  font-weight: 700;
  margin-right: 4px;
}

.top-deal-price .original {
  color: #999;
  font-size: 12px;
  text-decoration: line-through;
}

/* Main Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-gap: 24px;
  gap: 24px;
  align-items: start;
}

/* Feed List */
.feed-list {
  display: flex;
  flex-direction: column;
}

.feed-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
}

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

.feed-item:hover {
  background: #fafafa;
}

.feed-item-img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.feed-item-content {
  flex: 1 1;
  justify-content: space-between;
  min-width: 0;
}

.feed-item-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0 0 4px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-item-tag {
  font-size: 13px;
  color: #8c8c8c;
  margin: 0;
}

.home-skeleton-block,
.home-skeleton-line,
.home-skeleton-chip,
.home-skeleton-action {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.home-skeleton-block::after,
.home-skeleton-line::after,
.home-skeleton-chip::after,
.home-skeleton-action::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: home-skeleton-shimmer 1.35s infinite;
}

.home-skeleton-card {
  pointer-events: none;
}

.home-skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.home-skeleton-title {
  width: 82%;
  margin-top: 10px;
}

.home-skeleton-price {
  width: 58%;
  margin-top: 10px;
}

.home-feed-skeleton {
  cursor: default;
}

.home-skeleton-feed-title {
  width: min(520px, 86%);
  height: 18px;
  margin-top: 4px;
}

.home-skeleton-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.home-skeleton-chip {
  width: 72px;
  height: 22px;
  border-radius: 6px;
}

.home-skeleton-feed-price {
  width: 210px;
  height: 24px;
  margin-top: 34px;
}

.home-skeleton-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.home-skeleton-action {
  width: 84px;
  height: 32px;
  border-radius: 8px;
}

.home-load-error {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #64748b;
  text-align: center;
}

.home-load-error p {
  margin: 0;
}

.home-retry-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #10b981;
  border-radius: 8px;
  background: #fff;
  color: #047857;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.home-retry-btn:hover {
  background: #ecfdf5;
}

.detail-skeleton-breadcrumb {
  gap: 10px;
}

.detail-skeleton-breadcrumb .home-skeleton-line {
  width: 76px;
}

.detail-skeleton-card {
  min-height: 520px;
}

.detail-skeleton-media {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-skeleton-author {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.detail-skeleton-author .home-skeleton-line:nth-child(1) {
  width: 42%;
}

.detail-skeleton-author .home-skeleton-line:nth-child(2) {
  width: 88%;
}

.detail-skeleton-author .home-skeleton-line:nth-child(3) {
  width: 72%;
}

.detail-skeleton-title {
  width: min(680px, 92%);
  height: 28px;
}

.detail-skeleton-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.detail-skeleton-price-main {
  width: 150px;
  height: 34px;
}

.detail-skeleton-price-sub {
  width: 96px;
  height: 18px;
}

.detail-skeleton-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.detail-skeleton-paragraph,
.detail-skeleton-benefits,
.detail-skeleton-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-skeleton-paragraph {
  margin-top: 22px;
}

.detail-skeleton-paragraph .home-skeleton-line:nth-child(1),
.detail-skeleton-benefits .home-skeleton-line:nth-child(2) {
  width: 94%;
}

.detail-skeleton-paragraph .home-skeleton-line:nth-child(2),
.detail-skeleton-benefits .home-skeleton-line:nth-child(3) {
  width: 82%;
}

.detail-skeleton-paragraph .home-skeleton-line:nth-child(3),
.detail-skeleton-benefits .home-skeleton-line:nth-child(4) {
  width: 68%;
}

.detail-skeleton-benefits {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.detail-skeleton-benefits .home-skeleton-line:nth-child(1),
.detail-skeleton-side .home-skeleton-line:nth-child(1) {
  width: 48%;
}

.detail-skeleton-side .home-skeleton-line:nth-child(2) {
  width: 88%;
}

.detail-skeleton-side .home-skeleton-line:nth-child(3) {
  width: 72%;
}

@keyframes home-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.feed-promotion-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-top: 6px;
}

.feed-promotion-label,
.feed-promotion-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.feed-promotion-label {
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
}

.feed-promotion-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.feed-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 32px;
}

.feed-item-price .current {
  color: #10b981; /* 小清新绿 */
  font-size: 22px;
  font-weight: 700;
  margin-right: 6px;
}

.feed-item-price .original {
  color: #999;
  font-size: 13px;
  text-decoration: line-through;
  margin-right: 6px;
}

.feed-item-price .discount {
  background: #34d399; /* 浅一号的绿 */
  color: #fff;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
}

.feed-item-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Feed Item Redesigned */
.feed-item {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

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

.feed-item:hover {
  background: #fafafa;
}

.feed-item-link {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.feed-item-header {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.feed-item-time {
  font-size: 12px;
  color: #999;
  padding: 2px 8px;
  border-radius: 4px;
}

.feed-platform-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  white-space: nowrap;
}

.feed-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.feed-item-actions .l {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-item-actions .r {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-vote-group {
  display: flex;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.feed-vote-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.15s;
}

.feed-vote-btn:hover {
  background: #f9fafb;
}

.feed-vote-up {
  border-right: 1px solid #e5e7eb;
  color: #16a34a;
}

.feed-vote-up:hover {
  background: #f0fdf4;
}

.feed-vote-down {
  color: #dc2626;
}

.feed-vote-down:hover {
  background: #fef2f2;
}

.feed-comment-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: all 0.15s;
}

.feed-comment-link:hover {
  background: #f3f4f6;
  color: #374151;
}

.feed-buy-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #10b981;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.feed-buy-btn:hover {
  background: #059669;
}

.home-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 18px;
}

.home-pagination-btn {
  min-width: 84px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
}

.home-pagination-btn:hover:not(:disabled) {
  border-color: #10b981;
  color: #047857;
}

.home-pagination-btn:disabled {
  cursor: not-allowed;
  color: #9ca3af;
  background: #f9fafb;
}

.home-pagination-status {
  min-width: 150px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 640px) {
  .feed-item-actions {
    padding-left: 0;
    flex-wrap: wrap;
  }

  .feed-item-link {
    flex-direction: column;
  }

  .feed-item-img {
    width: 100%;
    height: 200px;
  }

  .home-pagination {
    gap: 8px;
  }

  .home-pagination-status {
    min-width: 0;
    font-size: 13px;
  }
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.baoliao-page {
  max-width: 960px;
}

.baoliao-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.baoliao-hero-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #10b981;
  font-size: 13px;
  font-weight: 600;
}

.baoliao-hero h1 {
  margin: 0;
  color: #111827;
  font-size: 36px;
  line-height: 1.2;
}

.baoliao-hero p {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.8;
}

.baoliao-rules-link {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.08);
}

.baoliao-card {
  padding: 28px;
  border: 1px solid #f3f4f6;
}

.baoliao-url-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
}

.baoliao-url-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #9ca3af;
}

.baoliao-url-input input,
.baoliao-field input,
.baoliao-field select,
.baoliao-check-control input,
.baoliao-template-box textarea {
  width: 100%;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 14px;
  outline: none;
}

.baoliao-fetch-btn,
.baoliao-submit-btn,
.baoliao-mini-btn,
.baoliao-chip {
  border: none;
  cursor: pointer;
}

.baoliao-fetch-btn {
  height: 48px;
  border-radius: 12px;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.baoliao-url-help {
  margin: 10px 0 0;
  color: #9ca3af;
  font-size: 13px;
}

.baoliao-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 16px;
}

.baoliao-section-header h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.baoliao-section-badge,
.baoliao-muted-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #10b981;
  font-size: 12px;
}

.baoliao-muted-tag {
  background: #f3f4f6;
  color: #6b7280;
}

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

.baoliao-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.baoliao-field > span,
.baoliao-textarea-title > span {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.baoliao-field input,
.baoliao-field select,
.baoliao-check-control,
.baoliao-template-box {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.baoliao-field select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.baoliao-field-full {
  grid-column: 1 / -1;
}

.baoliao-category-field {
  display: flex !important;
  flex-direction: column !important;
}

.baoliao-category-wrapper {
  position: relative;
  width: 100%;
}

.baoliao-category-layout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.baoliao-category-search {
  min-height: 48px;
  display: flex;
  flex: 1 1;
}

.baoliao-category-search:focus-within {
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.baoliao-category-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.baoliao-category-row::-webkit-scrollbar {
  display: none;
}

.baoliao-category-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #374151;
  line-height: 46px;
  padding: 0;
}

.baoliao-category-input::placeholder {
  color: #9ca3af;
}

.baoliao-category-selected {
  flex: 1 1;
  border-radius: 12px;
}

.baoliao-category-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.baoliao-category-selected-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.baoliao-category-clear-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.baoliao-category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.baoliao-category-crumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 500;
}

.baoliao-category-crumb:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -14px;
  color: #94a3b8;
}

.baoliao-category-crumb.is-current {
  background: #10b981;
  color: #fff;
  font-weight: 700;
}

.baoliao-category-helper {
  margin: 8px 2px 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

.baoliao-category-helper.is-success {
  color: #059669;
}

.baoliao-category-helper.is-warning {
  color: #d97706;
}

.baoliao-category-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  cursor: default;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.baoliao-category-chip svg {
  color: #9ca3af;
  flex-shrink: 0;
}

.baoliao-category-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 280px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
}

.baoliao-category-option {
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}

.baoliao-category-option:hover,
.baoliao-category-option.is-active {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 500;
}

@media (max-width: 768px) {
  .baoliao-form-grid {
    grid-template-columns: 1fr;
  }

  .baoliao-category-input {
    font-size: 13px;
  }

  .baoliao-category-selected-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .baoliao-category-breadcrumb {
    gap: 12px 8px;
  }
}

.baoliao-notice-box {
  min-height: auto;
  padding: 16px;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  background: #ecfdf5;
}

.baoliao-notice-box strong,
.baoliao-notice-box p,
.baoliao-upload-card strong,
.baoliao-upload-card p,
.baoliao-proof-box p {
  margin: 0;
}

.baoliao-notice-box strong {
  color: #047857;
  font-size: 14px;
}

.baoliao-notice-box p {
  margin-top: 6px;
  color: #10b981;
  font-size: 13px;
}

.baoliao-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.baoliao-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.baoliao-chip.active {
  background: #fee2e2;
  color: #ef4444;
}

.baoliao-input-affix {
  display: flex;
  align-items: center;
  gap: 12px;
}

.baoliao-input-affix em {
  color: #9ca3af;
  font-size: 13px;
  font-style: normal;
}

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

.baoliao-check-item {
  display: grid;
  grid-template-columns: 20px 88px minmax(0, 1fr);
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
}

.baoliao-check-item > span,
.baoliao-check-inline span {
  color: #374151;
  font-size: 14px;
}

.baoliao-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.baoliao-check-control {
  display: flex;
  align-items: center;
}

.baoliao-mini-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #10b981;
  font-size: 13px;
  font-weight: 600;
}

.baoliao-benefit-stack {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 18px;
}

.baoliao-benefit-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.baoliao-benefit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.baoliao-benefit-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}

.baoliao-benefit-body {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 0 18px 18px;
}

.baoliao-benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.baoliao-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #111827;
  cursor: pointer;
}

.baoliao-benefit-pill-tag {
  padding: 2px 6px;
  border-radius: 6px;
  background: #d1fae5;
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
}

.baoliao-benefit-pill-name {
  font-size: 14px;
  font-weight: 600;
}

.baoliao-benefit-pill-meta {
  color: #6b7280;
  font-size: 12px;
}

.baoliao-benefit-pill-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.baoliao-benefit-empty {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
}

.baoliao-benefit-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.baoliao-benefit-modal {
  width: min(520px, 100%);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.baoliao-benefit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

.baoliao-benefit-modal-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.baoliao-benefit-modal-header h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
  border-radius: 2px;
}

.baoliao-benefit-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
}

.baoliao-benefit-modal-body input,
.baoliao-benefit-modal-body textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  background: #fafafa;
  transition: all 0.2s ease;
}

.baoliao-benefit-modal-body input:focus,
.baoliao-benefit-modal-body textarea:focus {
  outline: none;
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.baoliao-benefit-modal-body input::placeholder,
.baoliao-benefit-modal-body textarea::placeholder {
  color: #9ca3af;
}

.baoliao-benefit-modal-body textarea {
  resize: vertical;
  min-height: 100px;
}

.baoliao-benefit-modal-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.baoliao-benefit-modal-row input {
  flex: 1 1;
}

.baoliao-benefit-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #4b5563;
  font-size: 14px;
  padding: 8px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.baoliao-benefit-checkbox:hover {
  background: #e5e7eb;
}

.baoliao-benefit-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #10b981;
  cursor: pointer;
}

.baoliao-benefit-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 24px;
  background: #fafafa;
}

.baoliao-benefit-cancel,
.baoliao-benefit-confirm {
  min-width: 100px;
  height: 44px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.baoliao-benefit-cancel {
  background: #fff;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
}

.baoliao-benefit-cancel:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.baoliao-benefit-confirm {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.baoliao-benefit-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.baoliao-benefit-confirm:active {
  transform: translateY(0);
}

.baoliao-textarea-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.baoliao-template-box {
  padding: 12px 14px;
  min-height: 180px;
  border-color: #fca5a5;
  background: #fffafa;
}

.baoliao-template-box textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.8;
}

.baoliao-template-box span {
  display: block;
  margin-top: 8px;
  color: #9ca3af;
  font-size: 12px;
  text-align: right;
}

.baoliao-image-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.baoliao-image-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.baoliao-image-label {
  width: 80px;
  flex-shrink: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.baoliao-required {
  color: #ef4444;
  margin-right: 4px;
}

.baoliao-image-content {
  flex: 1 1;
  min-width: 0;
}

.baoliao-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.baoliao-image-item {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f9fafb;
}

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

.baoliao-image-item.is-focus {
  border-color: #ef4444;
}

.baoliao-focus-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #fee2e2;
  color: #ef4444;
  font-size: 12px;
  padding: 2px 6px;
  border-bottom-right-radius: 8px;
}

.baoliao-image-upload-btn {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.2s;
}

.baoliao-image-upload-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.baoliao-image-upload-btn.is-uploading {
  cursor: wait;
  border-color: #ef4444;
  color: #ef4444;
}

.baoliao-image-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.baoliao-image-item:hover .baoliao-image-remove-btn {
  opacity: 1;
}

.baoliao-image-remove-btn:hover {
  background: #ef4444;
}

.baoliao-upload-plus {
  font-size: 24px;
  font-weight: 300;
}

.baoliao-image-hint {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: #9ca3af;
}

.baoliao-tips {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 24px;
}

.baoliao-tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 13px;
}

.baoliao-submit-bar {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.baoliao-submit-btn {
  min-width: 160px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.baoliao-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.baoliao-spinner {
  animation: baoliao-spin 1s linear infinite;
}

@keyframes baoliao-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.baoliao-submit-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
}

.baoliao-submit-message.is-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.baoliao-submit-message.is-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.rank-num {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: #bfbfbf;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-num.top3 {
  background: #10b981; /* 小清新绿 */
}

.rank-info {
  flex: 1 1;
  min-width: 0;
}

.rank-title {
  font-size: 14px;
  color: #333;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-hot {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-item {
  cursor: pointer;
}

.article-title {
  font-size: 14px;
  color: #333;
  margin: 0 0 6px 0;
  line-height: 1.4;
  transition: color 0.2s;
}

.article-item:hover .article-title {
  color: #f5222d;
}

.article-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(18, 20, 24, 0.9);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.01em;
  z-index: 1000;
}

@media (max-width: 768px) {
  .header-top .header-container {
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .header-bottom .header-container {
    padding: 0 16px;
  }

  .header-search {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .header-nav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .header-nav-wrap {
    gap: 16px;
    padding: 8px 0;
  }

  .submit-entry-link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .baoliao-hero,
  .baoliao-textarea-title,
  .baoliao-check-item {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .baoliao-card {
    padding: 20px;
  }

  .baoliao-url-bar,
  .baoliao-form-grid,
  .baoliao-upload-grid {
    grid-template-columns: 1fr;
  }

  .baoliao-check-item {
    display: flex;
  }
}

/* --- Detail Page Styles --- */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a:hover {
  color: #10b981; /* 小清新绿 */
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* Detail Main */
.detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Detail Header Card */
.detail-header-card {
  display: flex;
  gap: 24px;
  padding: 24px;
}

.detail-img-box {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  flex-shrink: 0;
}

.detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-platform {
  background: #f5222d;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-discount {
  background: #34d399; /* 浅一号的绿 */
  color: #fff;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
}

.detail-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-price .current {
  font-size: 28px;
  font-weight: 700;
  color: #10b981; /* 小清新绿 */
}

.detail-price .original {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

.detail-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1 1;
}

.deal-extra-grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.deal-extra-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.deal-extra-card h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 16px;
}

.deal-extra-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.deal-extra-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
}

.deal-extra-item strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
}

.deal-extra-item p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.detail-actions-left {
  display: flex;
  gap: 16px;
}

.btn-icon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.btn-icon-action:hover {
  color: #10b981;
}

.btn-icon-action span {
  font-size: 12px;
}

.btn-icon-action.active {
  color: #10b981;
}

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #10b981; /* 小清新绿 */
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 0 24px;
  height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-buy:hover {
  background: #059669; /* 深一号的绿 */
}

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  padding: 0 20px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #10b981;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-share:hover {
  background: #e2e8f0;
}

.btn-share.active {
  color: #047857;
  background: #dcfce7;
}

.detail-action-message {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
}

/* Chart Styles */
.price-trend-chart {
  padding: 20px 0;
}

.chart-plot {
  width: 100%;
  position: relative;
  margin-bottom: 20px;
}

.chart-svg {
  width: 100%;
  height: 200px;
}

.chart-x-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #999;
  font-size: 12px;
}

.price-stats {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #666;
}

.price-stats strong {
  color: #f5222d;
}

/* Comments Styles */
.comment-list {
  display: flex;
  flex-direction: column;
}

.comment-compose {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  background: #f8fafc;
}

.comment-compose-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.comment-compose-footer a {
  color: #10b981;
  font-weight: 600;
}

.comment-submit-btn {
  min-width: 106px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 0;
}

.comment-textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
  font-size: 14px;
  color: #0f172a;
  outline: none;
}

.comment-textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.comment-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

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

.user-avatar {
  width: 32px;
  height: 32px;
  background: #ffccc7;
  color: #f5222d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.comment-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #999;
}

.comment-content {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.comment-actions {
  display: flex;
  gap: 16px;
}

.comment-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.comment-action-btn:hover {
  color: #666;
}

.comment-reply-compose {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.comment-reply-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-reply-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.comment-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-reply-target {
  color: #10b981;
  font-weight: 600;
}

/* Sidebar Specifics */
.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
}

.related-img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.related-title {
  font-size: 14px;
  color: #333;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-price {
  color: #10b981; /* 小清新绿 */
  font-weight: 600;
  font-size: 16px;
}

.advice-list {
  margin: 0;
  padding: 0 0 0 20px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.advice-list li {
  margin-bottom: 8px;
}

.advice-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .detail-header-card {
    flex-direction: column;
    padding: 20px;
  }
  
  .detail-img-box {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.auth-page-shell {
  max-width: 560px;
}

.auth-card {
  margin-top: 24px;
  padding: 28px;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  color: #0f172a;
}

.auth-subtitle {
  margin: 8px 0 24px;
  color: #64748b;
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.auth-input {
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.auth-submit {
  margin-top: 4px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #10b981;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-error {
  margin: 0;
  color: #ef4444;
  font-size: 13px;
}

.auth-success {
  margin: 0;
  color: #059669;
  font-size: 13px;
}

.auth-switch {
  margin: 16px 0 0;
  color: #64748b;
  font-size: 14px;
}

.auth-switch a {
  color: #10b981;
  margin-left: 6px;
  font-weight: 600;
}

/* Avatar Upload Overlay */
.avatar-upload-container {
  transition: all 0.2s ease;
}

.avatar-upload-container:hover .avatar-upload-overlay {
  opacity: 1 !important;
}

.profile-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #dcfce7;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main h1 {
  margin: 0;
  font-size: 24px;
  color: #0f172a;
}

.profile-main p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.profile-logout-btn {
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  cursor: pointer;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.profile-stat-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #475569;
}

.profile-stat-item span {
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
}

.profile-stat-item em {
  font-style: normal;
  color: #64748b;
  font-size: 12px;
}

.profile-joined-time {
  margin: 14px 0 0;
  font-size: 13px;
  color: #64748b;
}

.profile-favorite-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.profile-favorite-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.worker-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.worker-admin-field {
  min-width: 220px;
  flex: 1 1;
}

.worker-admin-action {
  margin-top: 0;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.worker-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.worker-admin-stat {
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.worker-admin-stat span {
  color: #64748b;
  font-size: 13px;
}

.worker-admin-stat strong {
  color: #0f172a;
  font-size: 22px;
}

.worker-admin-btn {
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.worker-admin-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.worker-admin-btn.danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.worker-admin-status-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worker-admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 600;
}

.worker-admin-table-wrap {
  overflow-x: auto;
}

.worker-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.worker-admin-table th,
.worker-admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  color: #334155;
}

.worker-admin-table th {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  background: #f8fafc;
}

.worker-admin-task-name {
  font-weight: 600;
  color: #0f172a;
}

.worker-admin-task-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.worker-admin-task-error {
  margin-top: 8px;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.5;
}

.worker-admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worker-admin-empty {
  padding: 18px 0;
  text-align: center;
  color: #64748b;
}

@media (max-width: 900px) {
  .worker-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .worker-admin-grid {
    grid-template-columns: 1fr;
  }

  .worker-admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .worker-admin-action,
  .worker-admin-btn {
    width: 100%;
  }
}

.profile-favorite-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-favorite-info {
  padding: 10px;
}

.profile-favorite-info h4 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 14px;
}

.profile-favorite-info span {
  color: #10b981;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .auth-card {
    margin-top: 0;
    padding: 20px;
  }

  .profile-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-favorite-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Admin Domestic B-End Style Redesign --- */

.admin-layout {
  min-height: 100vh;
  display: flex;
  background: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

.admin-sider {
  width: 256px;
  background: #001529;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
  z-index: 10;
}

.admin-logo {
  height: 64px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #002140;
  overflow: hidden;
}

.admin-logo-icon {
  width: 32px;
  height: 32px;
  background: #1677ff;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.admin-logo h1 {
  color: #fff;
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.admin-menu {
  padding: 16px 0;
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: all 0.3s;
  margin-bottom: 4px;
}

.admin-menu-item:hover {
  color: #fff;
}

.admin-menu-item.active {
  background: #1677ff;
  color: #fff;
}

.admin-main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-header {
  height: 64px;
  background: #fff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  z-index: 9;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-header-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #595959;
}

.admin-input-small {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  width: 100px;
  transition: all 0.3s;
}

.admin-input-small:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
  outline: none;
}

.admin-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0 8px;
  transition: all 0.3s;
}

.admin-header-user:hover {
  background: rgba(0, 0, 0, 0.025);
}

.admin-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.admin-username {
  font-size: 14px;
  color: #595959;
}

.admin-btn-link {
  background: transparent;
  border: none;
  color: #595959;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  transition: color 0.3s;
}

.admin-btn-link:hover {
  color: #1677ff;
}

.admin-content-wrap {
  padding: 24px;
  flex: 1 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Admin Login --- */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5 url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXSpQhwvleQvfpW.svg') no-repeat center 110px;
  background-size: 100%;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  background: transparent;
}

.admin-login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-login-brand svg {
  color: #1890ff;
  width: 44px;
  height: 44px;
}

.admin-login-brand h1 {
  font-size: 30px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.admin-login-desc {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 40px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-login-field label {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

.admin-login-field input {
  height: 44px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 0 14px;
  font-size: 15px;
  color: #0f172a;
  transition: all 0.2s;
}

.admin-login-field input:focus {
  border-color: #1890ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.admin-login-btn {
  height: 44px;
  border-radius: 8px;
  background: #1890ff;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.admin-login-btn:hover {
  background: #40a9ff;
}

.admin-login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.admin-login-error {
  padding: 10px 14px;
  background: #fff1f2;
  border: 1px solid #fecaca;
  color: #be123c;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.admin-page-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.muted-text {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
}

.admin-chip.success {
  background: #ecfdf5;
  color: #047857;
}

.admin-error-banner {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f2;
  color: #be123c;
  font-size: 14px;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-top: 18px;
}

.admin-metric-card {
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #dbe5ef;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-metric-card p,
.admin-metric-card span {
  margin: 0;
}

.admin-metric-card p {
  font-size: 13px;
  color: #64748b;
}

.admin-metric-card strong {
  font-size: 30px;
  color: #0f172a;
}

.admin-metric-card span {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.admin-metric-card.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.admin-metric-card.danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.admin-link-grid,
.admin-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.admin-panel-grid.full-width {
  grid-template-columns: 1fr;
}

.admin-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Admin Modal --- */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.admin-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: adminModalSlideIn 0.2s ease-out;
}

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

.admin-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.admin-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1 1;
}

.admin-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #059669;
}

.admin-link-copy {
  min-width: 0;
  flex: 1 1;
}

.admin-link-copy h3,
.admin-subsection-header h3,
.admin-detail-card h3,
.admin-detail-block h3,
.admin-table-card-header h3 {
  margin: 0;
}

.admin-link-copy p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.admin-subsection-header,
.admin-table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-text-link {
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.admin-list-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.admin-list-item h4,
.admin-list-item p,
.admin-list-meta p {
  margin: 0;
}

.admin-list-item h4 {
  font-size: 15px;
  color: #0f172a;
}

.admin-list-item p,
.admin-list-meta p {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.admin-list-meta {
  min-width: 180px;
  text-align: right;
}

.admin-list-meta span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}

.admin-segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: #eef2f7;
}

.admin-segmented button,
.admin-table-actions button,
.admin-inline-actions button,
.admin-detail-actions button {
  border: none;
  cursor: pointer;
}

.admin-segmented button {
  min-width: 72px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: #475569;
  background: transparent;
}

.admin-segmented button.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.admin-tabs .admin-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-tabs .admin-tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

.admin-tabs .admin-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #ef4444;
  border-radius: 10px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.admin-filter-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #374151;
}

.admin-check-row input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.admin-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.admin-filter-field input,
.admin-filter-field select,
.admin-filter-field textarea {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
}

.admin-filter-field textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  font-size: 14px;
}

.admin-table.hoverable tbody tr:hover {
  background: #f8fafc;
}

.admin-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td strong {
  color: #0f172a;
  font-size: 14px;
}

.admin-table td span {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.admin-table-actions,
.admin-inline-actions,
.admin-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-table-actions button {
  height: 28px;
  border-radius: 6px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  white-space: nowrap;
}

.admin-table-actions button.icon-btn {
  width: 28px;
  padding: 0;
  border-color: transparent;
  color: #64748b;
}

.admin-table-actions button:hover {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.admin-table-actions button.danger {
  color: #ef4444;
}

.admin-table-actions button.icon-btn.danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.admin-inline-actions button,
.admin-detail-actions button,
.admin-primary-btn,
.admin-secondary-btn,
.admin-danger-btn {
  height: 34px;
  border-radius: 10px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}

.admin-primary-btn {
  background: #10b981;
  color: #fff;
}

.admin-secondary-btn,
.admin-inline-actions button,
.admin-detail-actions button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.admin-danger-btn {
  background: #fff1f2;
  border: 1px solid #fecaca;
  color: #be123c;
}

.admin-secondary-btn:disabled,
.admin-primary-btn:disabled,
.admin-danger-btn:disabled,
.admin-table-actions button:disabled,
.admin-inline-actions button:disabled,
.admin-detail-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-search-dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  padding: 6px;
}

.admin-search-option {
  width: 100%;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
}

.admin-search-option:hover,
.admin-search-option:focus-visible {
  background: rgba(14, 165, 233, 0.1);
  outline: none;
}

.admin-search-option strong {
  font-size: 13px;
}

.admin-search-option span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.admin-input-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.admin-input-action-row input {
  min-width: 0;
}

.admin-input-action-button {
  height: 38px;
  white-space: nowrap;
}

.admin-summary-grid,
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.admin-summary-card,
.admin-detail-card,
.admin-detail-block {
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.admin-summary-card span,
.admin-detail-card span {
  color: #64748b;
  font-size: 13px;
}

.admin-summary-card strong,
.admin-detail-card strong {
  display: block;
  margin-top: 10px;
  color: #0f172a;
  font-size: 26px;
}

.admin-card-stack,
.admin-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-product-cell {
  display: flex;
  gap: 12px;
  min-width: 220px;
}

.admin-product-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}

.admin-product-copy {
  min-width: 0;
}

.admin-product-copy strong,
.admin-product-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
}

.admin-tag.warning {
  background: #fef3c7;
  color: #b45309;
}

.admin-tag.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-tag.muted {
  background: #e2e8f0;
  color: #475569;
}

.admin-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-empty-state {
  padding: 28px 12px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.admin-form-group {
  margin-bottom: 16px;
}

.admin-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
}

.admin-form-group input,
.admin-form-group textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.admin-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

@media (max-width: 1280px) {
  .admin-link-grid {
    grid-template-columns: 1fr;
  }

  .admin-metrics-grid,
  .admin-summary-grid,
  .admin-detail-grid,
  .admin-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-content {
    padding: 16px;
  }

  .admin-topbar,
  .admin-page-header,
  .admin-subsection-header,
  .admin-table-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-metrics-grid,
  .admin-summary-grid,
  .admin-detail-grid,
  .admin-filter-grid,
  .admin-filter-grid.compact {
    grid-template-columns: 1fr;
  }

  .admin-list-item {
    flex-direction: column;
  }

  .admin-list-meta {
    min-width: 0;
    text-align: left;
  }
}

.admin-layout-v2 {
  position: relative;
  background: #f3f4f6;
}

.admin-sider-v2 {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 244px;
  height: 100vh;
  padding: 12px 12px 16px;
  background: linear-gradient(180deg, #141c2f 0%, #10182a 100%);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  overflow-y: auto;
}

.admin-logo-v2 {
  height: auto;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-logo-copy h1 {
  font-size: 15px;
}

.admin-logo-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.admin-logo-v2 .admin-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ff6a3d;
  font-size: 14px;
}

.admin-menu-v2 {
  gap: 18px;
  padding: 8px 4px 16px;
}

.admin-menu-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-menu-group-title {
  margin: 0;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.admin-menu-group-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-menu-item-v2 {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.admin-menu-item-v2:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-menu-item-v2.active {
  background: rgba(255, 106, 61, 0.16);
  color: #ff8059;
}

.admin-menu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.admin-menu-item-label {
  flex: 1 1;
}

.admin-menu-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 106, 61, 0.16);
  color: #ff8b68;
  font-size: 11px;
  font-weight: 600;
}

.admin-sider-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-sider-footer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 61, 0.22);
  color: #ff8b68;
  font-size: 13px;
  font-weight: 700;
}

.admin-sider-footer strong,
.admin-sider-footer p {
  margin: 0;
}

.admin-sider-footer strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.admin-sider-footer p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.admin-main-v2 {
  margin-left: 244px;
  min-height: 100vh;
  gap: 16px;
}

.admin-header-v2 {
  height: auto;
  margin: 16px 16px 0;
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow: none;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.admin-header-title-block {
  min-width: 220px;
}

.admin-header-title {
  display: block;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.admin-header-subtitle {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 12px;
}

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 320px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #9ca3af;
}

.admin-search-box input {
  flex: 1 1;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 13px;
}

.admin-search-box input:focus {
  outline: none;
}

.admin-header-right-v2 {
  gap: 12px;
}

.admin-header-scope-v2 {
  padding: 6px 8px 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.admin-header-scope-v2 span {
  color: #6b7280;
  font-size: 12px;
}

.admin-header-scope-v2 .admin-input-small {
  width: 76px;
  height: 28px;
  border: none;
  background: #f3f4f6;
}

.admin-icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #6b7280;
}

.admin-icon-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
}

.admin-header-date {
  color: #9ca3af;
  font-size: 12px;
}

.admin-header-user-v2 {
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.admin-content-wrap-v2 {
  padding: 0 16px 16px;
}

.admin-dashboard-v2 {
  gap: 16px;
}

.admin-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-dashboard-hero h2 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  font-weight: 700;
}

.admin-dashboard-hero p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.admin-dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.admin-dashboard-metric-card {
  padding: 18px 20px;
  border: 1px solid #ebeef3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.admin-dashboard-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard-metric-head span,
.admin-dashboard-metric-card p {
  color: #9ca3af;
}

.admin-dashboard-metric-card strong,
.admin-dashboard-live-card strong {
  display: block;
  margin-top: 14px;
  color: #111827;
  font-size: 34px;
  line-height: 1;
}

.admin-dashboard-metric-card p,
.admin-dashboard-live-card p,
.admin-dashboard-live-card span {
  margin: 0;
  font-size: 13px;
}

.admin-dashboard-metric-card p {
  margin-top: 12px;
  color: #22c55e;
}

.admin-dashboard-metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.admin-dashboard-metric-card.soft-red .admin-dashboard-metric-icon {
  background: #fff1f2;
  color: #fb7185;
}

.admin-dashboard-metric-card.soft-blue .admin-dashboard-metric-icon {
  background: #eff6ff;
  color: #60a5fa;
}

.admin-dashboard-metric-card.soft-green .admin-dashboard-metric-icon {
  background: #ecfdf5;
  color: #22c55e;
}

.admin-dashboard-metric-card.soft-orange .admin-dashboard-metric-icon {
  background: #fff7ed;
  color: #fb923c;
}

.admin-dashboard-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  grid-gap: 16px;
  gap: 16px;
}

.admin-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
}

.admin-visual-card {
  min-height: 360px;
}

.admin-trend-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-trend-chart-svg {
  width: 100%;
  height: 260px;
}

.admin-trend-grid-vertical,
.admin-trend-grid-horizontal {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.admin-trend-area {
  fill: rgba(255, 106, 61, 0.1);
}

.admin-trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-trend-line.expose {
  stroke: #ff6a3d;
}

.admin-trend-line.orders {
  stroke: #f59e0b;
}

.admin-trend-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: #9ca3af;
  font-size: 12px;
}

.admin-bar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.admin-bar-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
  color: #4b5563;
  font-size: 13px;
}

.admin-bar-item-head strong {
  color: #111827;
}

.admin-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.admin-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff825f 0%, #ff5a36 100%);
}

.admin-dashboard-feed,
.admin-dashboard-ranking {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-dashboard-feed-item,
.admin-dashboard-ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.admin-dashboard-feed-item:last-child,
.admin-dashboard-ranking-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-dashboard-feed-item h4,
.admin-dashboard-ranking-item h4,
.admin-static-page-title h2 {
  margin: 0;
  color: #111827;
}

.admin-dashboard-feed-item p,
.admin-dashboard-ranking-item p {
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: 12px;
}

.admin-dashboard-feed-item strong {
  color: #ff6a3d;
  font-size: 18px;
}

.admin-dashboard-ranking-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff1f2;
  color: #ff6a3d;
  font-size: 13px;
  font-weight: 700;
}

.admin-dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.admin-dashboard-shortcut {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #ebeef3;
  border-radius: 14px;
  color: inherit;
  background: #fafafa;
}

.admin-dashboard-shortcut:hover {
  border-color: #ffd2c5;
  background: #fff;
}

.admin-dashboard-shortcut-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff1f2;
  color: #ff6a3d;
}

.admin-dashboard-shortcut-copy {
  flex: 1 1;
}

.admin-dashboard-shortcut-copy h4,
.admin-dashboard-shortcut-copy p,
.admin-static-feed-item strong,
.admin-static-inline-value {
  margin: 0;
}

.admin-dashboard-shortcut-copy h4 {
  color: #111827;
  font-size: 15px;
}

.admin-dashboard-shortcut-copy p {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.admin-dashboard-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.admin-dashboard-live-card {
  padding: 18px;
  border-radius: 16px;
  background: #fafafa;
}

.admin-dashboard-live-card p {
  color: #6b7280;
}

.admin-dashboard-live-card span {
  display: block;
  margin-top: 10px;
  color: #9ca3af;
  line-height: 1.5;
}

.admin-static-page-hero {
  padding: 4px 0;
}

.admin-static-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-static-page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff1f2;
  color: #ff6a3d;
}

.admin-static-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-static-feed-item strong,
.admin-static-inline-value {
  color: #111827;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .admin-dashboard-metric-grid,
  .admin-dashboard-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-chart-grid,
  .admin-dashboard-shortcuts,
  .admin-static-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-header-left {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search-box {
    min-width: 0;
  }
}

@media (max-width: 960px) {
  .admin-layout-v2 {
    flex-direction: column;
  }

  .admin-sider-v2 {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .admin-header-v2,
  .admin-content-wrap-v2 {
    margin: 0;
  }

  .admin-main-v2 {
    margin-left: 0;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .admin-dashboard-metric-grid,
  .admin-dashboard-live-grid {
    grid-template-columns: 1fr;
  }

  .admin-header-v2,
  .admin-dashboard-hero,
  .admin-dashboard-feed-item,
  .admin-dashboard-ranking-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-right-v2 {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.admin-baoliao-detail-header {
  display: flex;
  gap: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #f9fafb;
}

.admin-baoliao-detail-image {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-baoliao-detail-info {
  flex: 1 1;
  min-width: 0;
}

.admin-baoliao-detail-info h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #111827;
}

.admin-baoliao-detail-info p {
  margin: 0 0 12px;
  font-size: 14px;
}

.admin-baoliao-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-baoliao-price-row .final-price {
  font-size: 24px;
  font-weight: 700;
  color: #ef4444;
}

.admin-baoliao-price-row .unit-price {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
}

.admin-baoliao-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.admin-baoliao-section h5 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.admin-baoliao-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-baoliao-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.admin-baoliao-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: #4b5563;
}

.admin-baoliao-list li {
  margin-bottom: 6px;
}

.admin-baoliao-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.admin-reject-row {
  display: flex;
  gap: 12px;
}

.admin-reject-input {
  flex: 1 1;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.admin-reject-input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.admin-danger-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.admin-danger-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.admin-danger-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-product-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 12px;
}

.price-highlight {
  color: #ef4444;
}

.admin-error-text {
  color: #dc2626;
  font-size: 14px;
}

.admin-success-text {
  color: #16a34a;
  font-size: 14px;
}

/* --- Baoliao Detail Modal (Redesigned) --- */
.admin-baoliao-detail-modal {
  max-width: 960px;
}

.baoliao-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.baoliao-detail-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0;
  margin: -24px -24px 20px -24px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}

.baoliao-reject-group {
  display: flex;
  gap: 8px;
  flex: 1 1;
  max-width: 420px;
}

.baoliao-reject-group .admin-reject-input {
  flex: 1 1;
}

.baoliao-detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.baoliao-product-hero {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.baoliao-product-gallery {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.baoliao-gallery-main {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.baoliao-gallery-empty {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

.baoliao-gallery-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.baoliao-gallery-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.15s;
  flex-shrink: 0;
}

.baoliao-gallery-thumb.is-active {
  border-color: #3b82f6;
  opacity: 1;
}

.baoliao-gallery-thumb:hover {
  opacity: 1;
}

.baoliao-product-meta {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.baoliao-product-meta h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.baoliao-product-desc {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.baoliao-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border-radius: 10px;
  border: 1px solid #fecaca;
}

.baoliao-final-price {
  font-size: 26px;
  font-weight: 700;
  color: #dc2626;
}

.baoliao-unit-price {
  font-size: 15px;
  color: #9ca3af;
  text-decoration: line-through;
}

.baoliao-quantity {
  font-size: 13px;
  color: #6b7280;
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.baoliao-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.baoliao-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.baoliao-tag-platform {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.baoliao-tag-category {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.baoliao-tag-status.pending {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.baoliao-tag-status.approved {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.baoliao-tag-status.rejected {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.baoliao-tag-status.published {
  background: #ede9fe;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.baoliao-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #4b5563;
}

.baoliao-meta-row strong {
  color: #374151;
}

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

.baoliao-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.baoliao-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.baoliao-info-icon {
  font-size: 16px;
}

.baoliao-info-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.baoliao-info-list {
  margin: 0;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 4px 12px;
  gap: 4px 12px;
  font-size: 13px;
}

.baoliao-info-list dt {
  color: #9ca3af;
  font-weight: 400;
  white-space: nowrap;
}

.baoliao-info-list dd {
  margin: 0;
  color: #374151;
  word-break: break-all;
}

.baoliao-info-mono {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 11px !important;
  letter-spacing: -0.3px;
}

.baoliao-link-sm {
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
}

.baoliao-link-sm:hover {
  text-decoration: underline;
}

.baoliao-reject-reason {
  margin: 0 16px 12px;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
  color: #991b1b;
}

.baoliao-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.baoliao-section-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #3b82f6;
  border-radius: 2px;
}

.baoliao-links-section,
.baoliao-images-section,
.baoliao-extra-section {
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
}

.baoliao-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.baoliao-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: all 0.15s;
}

.baoliao-link-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

.baoliao-link-btn-primary {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.baoliao-link-btn-primary:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.baoliao-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.baoliao-image-grid-small {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.baoliao-image-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  transition: all 0.15s;
  aspect-ratio: 1;
  cursor: pointer;
}

.baoliao-image-item.is-focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

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

.baoliao-image-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  text-align: center;
}

.baoliao-coupon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.baoliao-coupon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 8px;
  font-size: 13px;
}

.baoliao-coupon-type {
  font-weight: 600;
  color: #a16207;
  white-space: nowrap;
  min-width: 60px;
}

.baoliao-coupon-value {
  color: #854d0e;
  flex: 1 1;
}

.baoliao-coupon-link {
  color: #ca8a04;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.baoliao-coupon-link:hover {
  text-decoration: underline;
}

.baoliao-gift-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.baoliao-gift-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
}

.baoliao-gift-name {
  font-weight: 600;
  color: #166534;
}

.baoliao-gift-value {
  color: #15803d;
}

.baoliao-text-blocks {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.baoliao-text-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
}

.baoliao-text-label {
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
  min-width: 70px;
}

.baoliao-text-value {
  color: #374151;
  word-break: break-all;
}

@media (max-width: 1024px) {
  .baoliao-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baoliao-product-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .baoliao-product-gallery {
    width: 100%;
  }

  .baoliao-gallery-main {
    width: 100%;
    height: 220px;
  }

  .baoliao-gallery-empty {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .baoliao-info-grid {
    grid-template-columns: 1fr;
  }

  .baoliao-detail-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .baoliao-reject-group {
    max-width: 100%;
  }

  .baoliao-image-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

/*!***********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./components/site-frame.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************/
.jingfen-frame{background:#f5f5f5;min-height:100vh;color:#444}.jingfen-header{background:#fff;border-top:3px solid #ed2433;border-bottom:1px solid #eee}.jingfen-header-inner{max-width:1200px;margin:auto;min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}.jingfen-brand{color:#e62131;font-size:26px;font-weight:700;text-decoration:none;white-space:nowrap}.jingfen-brand span{font-size:12px;color:#888;font-weight:400;margin-left:20px}.jingfen-search{display:flex;width:360px;max-width:100%;height:36px}.jingfen-search input{min-width:0;width:100%;border:1px solid #e3e3e3;padding:8px 12px;background:#fff}.jingfen-search button{background:#ed2433;color:#fff;border:0;padding:0 22px;white-space:nowrap;cursor:pointer}.jingfen-footer{text-align:center;color:#888;padding:20px;font-size:12px;line-height:1.8}.jingfen-header a:focus-visible,.jingfen-header input:focus-visible,.jingfen-header button:focus-visible{outline:2px solid #c91424;outline-offset:4px}@media(min-width:1440px){.jingfen-header-inner{max-width:1320px}}@media(max-width:1230px){.jingfen-header-inner{margin:0 24px}}@media(max-width:1020px){.jingfen-brand span{display:none}}@media(max-width:580px){.jingfen-header-inner{margin:0 12px;min-height:110px;flex-direction:column;align-items:stretch;justify-content:center;gap:12px;padding:14px 0}.jingfen-brand{font-size:22px}.jingfen-search{width:100%}}

