/* ============================================
   派工之家 UI v2 - 匹配首页UI.png 设计
   ============================================ */

/* ----- CSS Variables ----- */
:root {
  --ui-primary: #1a1a2e;
  --ui-primary-light: #2d3561;
  --ui-accent: #c9a96e;
  --ui-accent-light: #d4b87a;
  --ui-accent-dark: #a88b52;
  --ui-gold-gradient: linear-gradient(135deg, #c9a96e 0%, #d4b87a 100%);
  
  --ui-bg-body: #ffffff;
  --ui-bg-card: #ffffff;
  --ui-bg-section: #f8f8f8;
  --ui-bg-footer: #f5f5f5;
  --ui-bg-navbar: rgba(255, 255, 255, 0.95);
  
  --ui-text: #1a1a1a;
  --ui-text-secondary: #666666;
  --ui-text-muted: #999999;
  --ui-text-inverse: #ffffff;
  --ui-text-gold: #c9a96e;
  
  --ui-border: #e5e5e5;
  --ui-border-light: rgba(0,0,0,0.06);
  --ui-shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --ui-shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  
  --ui-radius-sm: 6px;
  --ui-radius-md: 10px;
  --ui-radius-lg: 16px;
  --ui-radius-xl: 24px;
  
  --ui-font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --ui-font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  
  /* Compatibility aliases for old pages */
  --primary: var(--ui-accent);
  --primary-hover: var(--ui-accent-dark);
  --bg-page: var(--ui-bg-body);
  --bg-card: var(--ui-bg-card);
  --text: var(--ui-text);
  --text-secondary: var(--ui-text-secondary);
  --text-muted: var(--ui-text-muted);
  --border: var(--ui-border);
  --warning: #f5a623;
  --info: #1890ff;
  --success: #52c41a;
  --error: #ff4d4f;
}

[data-theme="dark"] {
  --ui-bg-body: #0a0e1a;
  --ui-bg-card: #141824;
  --ui-bg-section: #141824;
  --ui-bg-footer: #070a12;
  --ui-bg-navbar: rgba(10, 14, 26, 0.95);
  
  --ui-text: #f0f0f0;
  --ui-text-secondary: #a0a0a0;
  --ui-text-muted: #666666;
  --ui-text-inverse: #f0f0f0;
  
  --ui-border: #2a2a3e;
  --ui-border-light: rgba(255,255,255,0.06);
  --ui-shadow-card: 0 4px 20px rgba(0,0,0,0.35);
  --ui-shadow-hover: 0 12px 40px rgba(0,0,0,0.45);
  
  /* Compatibility aliases */
  --bg-page: var(--ui-bg-body);
  --bg-card: var(--ui-bg-card);
  --text: var(--ui-text);
  --text-secondary: var(--ui-text-secondary);
  --text-muted: var(--ui-text-muted);
  --border: var(--ui-border);
  --primary: var(--ui-accent);
  --primary-hover: var(--ui-accent-dark);
  --warning: #f5a623;
  --info: #1890ff;
  --success: #52c41a;
  --error: #ff4d4f;
}

/* ----- Base Overrides ----- */
body {
  font-family: var(--ui-font-sans);
  background: var(--ui-bg-body);
  color: var(--ui-text);
}

/* ----- Navbar ----- */
.site-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: var(--ui-bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ui-border-light);
  transition: all 0.3s ease;
}
.site-navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar-logo .logo-img {
  height: 36px;
  width: auto;
  transition: opacity 0.3s;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.navbar-menu .nav-item {
  display: block;
  padding: 0 18px;
  color: var(--ui-text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 64px;
  transition: color 0.25s;
  position: relative;
}
.navbar-menu .nav-item:hover {
  color: var(--ui-text);
}
.navbar-menu .nav-item.active {
  color: var(--ui-text);
}
.navbar-menu .nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--ui-accent);
  border-radius: 1px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--ui-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  background: none;
  white-space: nowrap;
}

.nav-btn-text {
  color: var(--ui-text);
}
.nav-btn-text:hover {
  color: var(--ui-accent);
}

.nav-btn-outline {
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
}
.nav-btn-outline:hover {
  border-color: var(--ui-accent);
  color: var(--ui-accent);
}

.nav-btn-primary {
  background: var(--ui-gold-gradient);
  color: #1a1a1a;
  font-weight: 600;
}
.nav-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,169,110,0.3);
}

.nav-btn-ghost {
  color: var(--ui-text-secondary);
  font-size: 13px;
}
.nav-btn-ghost:hover {
  color: var(--ui-text);
}

.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-card);
  color: var(--ui-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  font-size: 14px;
}
.theme-toggle-btn:hover {
  background: var(--ui-accent);
  color: #1a1a1a;
}

/* ----- Main Content ----- */
.site-main {
  padding-top: 0;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ui-bg-footer);
  color: var(--ui-text-secondary);
  font-size: 13px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--ui-border-light);
}

.footer-brand .footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}
.footer-brand .footer-slogan {
  font-family: var(--ui-font-serif);
  font-size: 16px;
  color: var(--ui-text);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.footer-brand .footer-desc {
  line-height: 1.8;
  color: var(--ui-text-muted);
  margin-bottom: 20px;
  font-size: 13px;
}
.footer-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-text-secondary);
  font-size: 12px;
}
.footer-badges i {
  color: var(--ui-accent);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: var(--ui-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 13px;
}
.footer-col ul li a:hover {
  color: var(--ui-accent);
}

.footer-contact h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ui-text);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.footer-contact .contact-time {
  color: var(--ui-text-muted);
  font-size: 12px;
  margin-bottom: 16px;
}
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--ui-bg-body);
  border: 1px solid var(--ui-border);
  color: var(--ui-text);
  border-radius: var(--ui-radius-sm);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.25s;
  margin-bottom: 20px;
}
.footer-btn:hover {
  background: var(--ui-accent);
  color: #1a1a1a;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ui-bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-text-secondary);
  text-decoration: none;
  transition: all 0.25s;
  font-size: 14px;
}
.footer-social a:hover {
  background: var(--ui-accent);
  color: #1a1a1a;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: var(--ui-text-muted);
  font-size: 12px;
}

/* ----- Toast ----- */
.ui-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  z-index: 10000;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.ui-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   通用页面内容样式
   ============================================ */

/* Page Banner */
.page-banner {
  position: relative;
  width: 100%;
  height: 320px;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner .banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.4) 100%);
  z-index: 1;
}
.page-banner .banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}
.page-banner .banner-content h1 {
  font-family: var(--ui-font-serif);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 4px;
}
.page-banner .banner-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
}

/* Page Section */
.page-section {
  padding: 60px 0;
  background: var(--ui-bg-section);
}
.page-section-alt {
  background: var(--ui-bg-body);
}

.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Page Title */
.page-title {
  font-family: var(--ui-font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--ui-text);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.page-title-center {
  text-align: center;
}

.page-desc {
  font-size: 16px;
  color: var(--ui-text-secondary);
  line-height: 1.8;
  max-width: 800px;
}
.page-desc-center {
  text-align: center;
  margin: 0 auto;
}

/* Card Grid */
.ui-card-grid-5, .card-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.ui-card-grid-4, .card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ui-card-grid-3, .card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ui-card-grid-2, .card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Info Card (white bg, shadow, rounded) */
.ui-info-card {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  padding: 32px;
  box-shadow: var(--ui-shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.ui-info-card:hover {
  box-shadow: var(--ui-shadow-hover);
}

/* Filter Bar */
.ui-filter-bar {
  background: var(--ui-bg-card);
  border-bottom: 1px solid var(--ui-border-light);
  padding: 20px 0;
}
.ui-filter-bar .filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.ui-filter-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-border-light);
}
.ui-filter-group:last-child {
  border-bottom: none;
}
.ui-filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-text);
  white-space: nowrap;
  padding-top: 6px;
  min-width: 80px;
}
.ui-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ui-filter-option {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--ui-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.ui-filter-option:hover {
  color: var(--ui-accent);
  border-color: var(--ui-accent);
}
.ui-filter-option.active {
  color: var(--ui-accent);
  border-color: var(--ui-accent);
  background: rgba(201,169,110,0.08);
}

/* ============================================
   首页专属样式 - Hero / Section / Card
   ============================================ */

/* ----- Hero Banner ----- */
.hero-banner {
  position: relative;
  width: 100%;
  height: 600px;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-banner .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.2) 100%);
  z-index: 1;
}
.hero-banner .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-title {
  font-family: var(--ui-font-serif);
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 4px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-tagline {
  font-family: var(--ui-font-serif);
  font-size: 24px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  letter-spacing: 6px;
}
.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

/* Search Box */
.hero-search-box {
  display: flex;
  align-items: center;
  width: 560px;
  max-width: 100%;
  height: 46px;
  background: #ffffff;
  border-radius: 999px;
  padding: 3px 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.hero-search-box .search-type {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 0 18px;
  border-right: 1px solid #e8e8e8;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  height: 100%;
  user-select: none;
}
.hero-search-box .search-type i {
  font-size: 10px;
  color: #666666;
}
.hero-search-box input {
  flex: 1;
  padding: 0 14px;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333333;
  background: transparent;
  height: 100%;
}
.hero-search-box input::placeholder {
  color: #aaaaaa;
}
.hero-search-box .search-btn {
  padding: 0 22px;
  height: 100%;
  background: #1e3a5f;
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}
.hero-search-box .search-btn:hover {
  background: #152a45;
}

/* Hot Tags */
.hero-hot-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero-hot-tags span {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.hero-hot-tags a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-hot-tags a:hover {
  color: var(--ui-accent);
}

/* ----- Features Bar ----- */
.features-bar {
  background: var(--ui-bg-card);
  padding: 40px 0;
  border-bottom: 1px solid var(--ui-border-light);
}
.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,169,110,0.1), rgba(201,169,110,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ui-accent);
  flex-shrink: 0;
}
.feature-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 13px;
  color: var(--ui-text-muted);
}

/* ----- Section ----- */
.ui-section {
  padding: 60px 0;
  background: var(--ui-bg-section);
}
.ui-section-alt {
  background: var(--ui-bg-body);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section-title {
  font-family: var(--ui-font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ui-text);
  letter-spacing: 2px;
}
.section-subtitle {
  font-size: 13px;
  color: var(--ui-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.section-more:hover {
  color: var(--ui-accent);
}
.section-more i {
  font-size: 12px;
}

/* ----- Cards ----- */
.category-card {
  position: relative;
  border-radius: var(--ui-radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover img {
  transform: scale(1.08);
}
.category-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.category-card .card-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}
.category-card .card-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.category-card .play-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}

/* Product Card */
.product-card {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  overflow: hidden;
  box-shadow: var(--ui-shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--ui-shadow-hover);
  transform: translateY(-4px);
}
.product-card .card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-img img {
  transform: scale(1.05);
}
.product-card .card-body {
  padding: 16px;
}
.product-card .card-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card .card-body .card-info {
  font-size: 13px;
  color: var(--ui-text-muted);
  margin-bottom: 10px;
}
.product-card .card-body .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card .card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ui-accent);
}
.product-card .card-price small {
  font-size: 12px;
  font-weight: 400;
}
.product-card .card-likes {
  font-size: 12px;
  color: var(--ui-text-muted);
}

/* Package Card */
.package-card {
  background: linear-gradient(135deg, #1a2332, #0f1724);
  border-radius: var(--ui-radius-md);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.package-card.recommended {
  background: linear-gradient(135deg, #1e2d42, #162233);
  border: 1px solid rgba(201,169,110,0.3);
}
.package-card .rec-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--ui-gold-gradient);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 0 8px;
}
.package-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.package-card .package-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--ui-accent-light);
  margin-bottom: 16px;
}
.package-card .package-price small {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
}
.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.package-card ul li {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.package-card ul li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ui-accent);
  flex-shrink: 0;
}
.package-card .package-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  text-align: center;
  border-radius: var(--ui-radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.package-card .package-btn:hover {
  background: var(--ui-gold-gradient);
  color: #1a1a1a;
  border-color: transparent;
}
.package-card.recommended .package-btn {
  background: var(--ui-gold-gradient);
  color: #1a1a1a;
  border-color: transparent;
}

/* Designer Card */
.designer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  padding: 20px;
  box-shadow: var(--ui-shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.designer-card:hover {
  box-shadow: var(--ui-shadow-hover);
  transform: translateY(-4px);
}
.designer-card .designer-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--ui-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.designer-card .designer-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 4px;
}
.designer-card .designer-info .designer-meta {
  font-size: 13px;
  color: var(--ui-text-muted);
  margin-bottom: 2px;
}
.designer-card .designer-info .designer-tag {
  font-size: 12px;
  color: var(--ui-text-muted);
}

/* Community Section */
.community-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  height: 520px;
}
.community-card {
  position: relative;
  border-radius: var(--ui-radius-md);
  overflow: hidden;
  cursor: pointer;
}
.community-card.large {
  grid-column: 1;
  grid-row: 1 / span 3;
}
.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.community-card:hover img {
  transform: scale(1.05);
}
.community-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.community-card .card-overlay h4 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}
.community-card .card-overlay p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.community-card .card-overlay .card-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.community-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

/* ============================================
   兼容性样式 - 旧页面使用的类名
   ============================================ */

/* Old filter bar compatibility */
.filter-bar {
  background: var(--ui-bg-card);
  border-bottom: 1px solid var(--ui-border-light);
}
.filter-bar .filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}
.filter-bar .filter-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-border-light);
}
.filter-bar .filter-group:last-child {
  border-bottom: none;
}
.filter-bar .filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-text);
  white-space: nowrap;
  padding-top: 6px;
  min-width: 80px;
}
.filter-bar .filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-bar .filter-option {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--ui-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.filter-bar .filter-option:hover {
  color: var(--ui-accent);
  border-color: var(--ui-accent);
}
.filter-bar .filter-option.active {
  color: var(--ui-accent);
  border-color: var(--ui-accent);
  background: rgba(201,169,110,0.08);
}

/* Old person card (zhimo) compatibility */
.zhimo-person-card {
  width: 220px;
  flex-shrink: 0;
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  padding: 20px;
  box-shadow: var(--ui-shadow-card);
  color: var(--ui-text);
}
.zhimo-person-rank {
  font-size: 12px;
  font-weight: 600;
  color: var(--ui-accent);
  margin-bottom: 10px;
}
.zhimo-person-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.zhimo-follow-btn {
  padding: 6px 16px;
  border: 1px solid var(--ui-accent);
  background: transparent;
  color: var(--ui-accent);
  border-radius: var(--ui-radius-sm);
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.25s;
}
.zhimo-follow-btn:hover {
  background: var(--ui-accent);
  color: #1a1a1a;
}
.zhimo-view-btn {
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--ui-gold-gradient);
  color: #1a1a1a;
  border-radius: var(--ui-radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}

/* Old case grid compatibility */
.zhimo-case-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.zhimo-case-card {
  border-radius: var(--ui-radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--ui-bg-card);
  box-shadow: var(--ui-shadow-card);
  transition: box-shadow 0.3s;
}
.zhimo-case-card:hover {
  box-shadow: var(--ui-shadow-hover);
}
.zhimo-case-img {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.zhimo-case-img i {
  font-size: 32px;
  color: var(--ui-text-muted);
}
.zhimo-case-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  background: var(--ui-accent);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
}
.zhimo-case-info {
  padding: 12px;
}
.zhimo-case-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ui-text);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zhimo-case-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ui-text-muted);
}

/* Old product grid compatibility (mall page) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-grid .product-card {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  overflow: hidden;
  box-shadow: var(--ui-shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-grid .product-card:hover {
  box-shadow: var(--ui-shadow-hover);
  transform: translateY(-4px);
}
.product-grid .product-card .product-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.product-grid .product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-grid .product-card .product-info {
  padding: 16px;
}
.product-grid .product-card .product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-grid .product-card .product-spec {
  font-size: 12px;
  color: var(--ui-text-muted);
  margin-bottom: 12px;
}
.product-grid .product-card .product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-grid .product-card .product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ui-accent);
}
.product-grid .product-card .product-btn {
  padding: 6px 14px;
  background: var(--ui-gold-gradient);
  color: #1a1a1a;
  border: none;
  border-radius: var(--ui-radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.product-grid .product-card .product-btn:hover {
  opacity: 0.9;
}

/* Person row list */
.person-row-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Pagination compatibility */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--ui-radius-sm);
  font-size: 13px;
  color: var(--ui-text-secondary);
  text-decoration: none;
  border: 1px solid var(--ui-border);
  transition: all 0.2s;
}
.pagination li.active span {
  background: var(--ui-accent);
  color: #1a1a1a;
  border-color: var(--ui-accent);
}
.pagination li a:hover {
  border-color: var(--ui-accent);
  color: var(--ui-accent);
}

/* ===== User Center ===== */
.user-center {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Sidebar */
.user-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-border);
  overflow: hidden;
  box-shadow: var(--ui-shadow-card);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.user-sidebar .user-profile {
  padding: 32px 20px;
  text-align: center;
  border-bottom: 1px solid var(--ui-border);
  background: linear-gradient(180deg, var(--ui-bg-card) 0%, var(--ui-bg-body) 100%);
}
.user-sidebar .user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ui-accent);
  margin-bottom: 12px;
}
.user-sidebar .user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 4px;
}
.user-sidebar .user-phone {
  font-size: 13px;
  color: var(--ui-text-muted);
}
.user-sidebar .user-menu {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}
.user-sidebar .user-menu li a,
.user-sidebar .user-menu li button {
  display: block;
  padding: 12px 24px;
  color: var(--ui-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.user-sidebar .user-menu li a:hover,
.user-sidebar .user-menu li button:hover {
  color: var(--ui-accent);
  background: var(--ui-bg-body);
}
.user-sidebar .user-menu li a.active {
  color: var(--ui-accent);
  border-left-color: var(--ui-accent);
  background: var(--ui-bg-body);
  font-weight: 600;
}
.user-sidebar .user-menu li .logout-form {
  display: block;
  margin: 0;
  padding: 0;
}
.user-sidebar .user-menu li .logout-btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  color: var(--ui-text-secondary);
  font-size: 14px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.user-sidebar .user-menu li .logout-btn:hover {
  color: var(--ui-accent);
  background: var(--ui-bg-body);
}

/* Main content */
.user-main {
  flex: 1;
  min-width: 0;
  padding: 30px 24px;
}

/* Section */
.user-section {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-border);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--ui-shadow-card);
}
.user-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-border);
}

/* Quick links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--ui-bg-body);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  transition: all 0.2s;
  position: relative;
}
.quick-link:hover {
  border-color: var(--ui-accent);
  transform: translateY(-2px);
  box-shadow: var(--ui-shadow-hover);
}
.quick-link-icon {
  font-size: 28px;
  line-height: 1;
}
.quick-link-text {
  font-size: 14px;
  color: var(--ui-text-secondary);
  font-weight: 500;
}
.quick-link-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--ui-accent);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Order stats */
.order-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.order-stat {
  text-align: center;
  padding: 16px;
  background: var(--ui-bg-body);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
}
.order-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--ui-accent);
  margin-bottom: 4px;
}
.order-stat-label {
  font-size: 13px;
  color: var(--ui-text-muted);
}

/* Order card */
.order-card {
  background: var(--ui-bg-body);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.order-card:hover {
  box-shadow: var(--ui-shadow-hover);
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--ui-bg-card);
  border-bottom: 1px solid var(--ui-border);
  font-size: 13px;
  color: var(--ui-text-muted);
}
.order-card-body {
  padding: 16px;
}
.order-product {
  display: flex;
  gap: 16px;
  align-items: center;
}
.order-product-img {
  width: 64px;
  height: 64px;
  border-radius: var(--ui-radius-sm);
  object-fit: cover;
  border: 1px solid var(--ui-border);
}
.order-product-info {
  flex: 1;
  min-width: 0;
}
.order-product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ui-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-product-spec {
  font-size: 12px;
  color: var(--ui-text-muted);
}
.order-product-price {
  text-align: right;
  flex-shrink: 0;
}
.order-product-price .price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ui-accent);
}
.order-product-price .qty {
  font-size: 12px;
  color: var(--ui-text-muted);
  text-align: right;
  margin-top: 2px;
}
.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--ui-bg-card);
  border-top: 1px solid var(--ui-border);
}
.order-total {
  font-size: 13px;
  color: var(--ui-text-secondary);
}
.order-total .price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ui-accent);
}
.order-actions {
  display: flex;
  gap: 8px;
}
.order-btn {
  padding: 7px 18px;
  border-radius: var(--ui-radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.order-btn.outline {
  background: transparent;
  border: 1px solid var(--ui-border);
  color: var(--ui-text-secondary);
}
.order-btn.outline:hover {
  border-color: var(--ui-accent);
  color: var(--ui-accent);
}
.order-btn.primary {
  background: var(--ui-gold-gradient);
  border: none;
  color: #1a1a1a;
}
.order-btn.primary:hover {
  opacity: 0.9;
}

/* Responsive: User Center */
@media (max-width: 1024px) {
  .user-center { flex-direction: column; }
  .user-sidebar { width: 100%; position: static; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .order-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .user-center { padding: 20px 12px 40px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .order-stats { grid-template-columns: repeat(2, 1fr); }
  .order-card-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .order-product { flex-direction: column; align-items: flex-start; }
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ui-card-grid-5, .card-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .ui-card-grid-4, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ui-card-grid-3, .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(3, 1fr); height: 420px; }
  .community-card.large { grid-column: 1; grid-row: 1 / span 3; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-group { grid-template-columns: repeat(2, 1fr); }
  .zhimo-case-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .hero-banner { height: 500px; }
  .hero-title { font-size: 36px; }
  .hero-tagline { font-size: 18px; }
  .hero-search-box { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .ui-card-grid-5, .card-grid-5, .ui-card-grid-4, .card-grid-4, .ui-card-grid-3, .card-grid-3 { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .community-card.large { grid-column: 1; grid-row: auto; }
  .community-card { aspect-ratio: 16/10; }
  .footer-links-group { grid-template-columns: 1fr; }
  .page-banner { height: 240px; }
  .page-banner .banner-content h1 { font-size: 28px; }
  .zhimo-case-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

/* ===== User Panel: My Favorites ===== */
.favorite-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ui-border);
  padding-bottom: 12px;
}
.favorite-tab {
  padding: 8px 20px;
  border-radius: var(--ui-radius-sm);
  font-size: 14px;
  color: var(--ui-text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.favorite-tab:hover {
  color: var(--ui-accent);
  border-color: var(--ui-border);
}
.favorite-tab.active {
  background: var(--ui-accent);
  color: #1a1a1a;
  font-weight: 600;
}
.favorite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.favorite-card {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  overflow: hidden;
  transition: all 0.2s;
}
.favorite-card:hover {
  box-shadow: var(--ui-shadow-hover);
  transform: translateY(-2px);
}
.favorite-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.favorite-card-info {
  padding: 16px;
}
.favorite-card-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ui-text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.favorite-card-meta {
  font-size: 13px;
  color: var(--ui-text-muted);
  margin-bottom: 8px;
}
.favorite-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ui-accent);
  margin-bottom: 12px;
}
.favorite-card-actions {
  display: flex;
  gap: 8px;
}

/* ===== User Panel: Address Management ===== */
.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.address-card {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  padding: 20px;
  transition: all 0.2s;
}
.address-card.default {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 1px var(--ui-accent);
}
.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.address-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ui-text);
}
.address-card-phone {
  font-size: 14px;
  color: var(--ui-text-muted);
}
.address-card-default {
  padding: 2px 10px;
  background: var(--ui-accent);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--ui-radius-sm);
}
.address-card-detail {
  font-size: 14px;
  color: var(--ui-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.address-card-actions {
  display: flex;
  gap: 10px;
}
.address-card-btn {
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.address-card-btn:hover {
  border-color: var(--ui-accent);
  color: var(--ui-accent);
}
.address-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  background: var(--ui-bg-body);
  border-radius: var(--ui-radius-md);
  border: 2px dashed var(--ui-border);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 160px;
}
.address-add-card:hover {
  border-color: var(--ui-accent);
  color: var(--ui-accent);
}
.address-add-icon {
  font-size: 32px;
  font-weight: 300;
  color: var(--ui-text-muted);
}
.address-add-text {
  font-size: 14px;
  color: var(--ui-text-secondary);
}

/* ===== User Panel: My Reviews ===== */
.review-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ui-border);
  padding-bottom: 12px;
}
.review-tab {
  padding: 8px 20px;
  border-radius: var(--ui-radius-sm);
  font-size: 14px;
  color: var(--ui-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.review-tab:hover {
  color: var(--ui-accent);
  border-color: var(--ui-border);
}
.review-tab.active {
  background: var(--ui-accent);
  color: #1a1a1a;
  font-weight: 600;
}
.review-card {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  padding: 20px;
  margin-bottom: 16px;
}
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.review-card-product {
  display: flex;
  gap: 12px;
  align-items: center;
}
.review-card-img {
  width: 48px;
  height: 48px;
  border-radius: var(--ui-radius-sm);
  object-fit: cover;
  border: 1px solid var(--ui-border);
}
.review-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ui-text);
}
.review-card-spec {
  font-size: 12px;
  color: var(--ui-text-muted);
  margin-top: 2px;
}
.review-card-date {
  font-size: 13px;
  color: var(--ui-text-muted);
}
.review-card-rating {
  font-size: 14px;
  color: var(--ui-accent);
  margin-bottom: 8px;
}
.review-card-content {
  font-size: 14px;
  color: var(--ui-text-secondary);
  line-height: 1.6;
}
.review-card-images {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.review-card-images img {
  width: 80px;
  height: 80px;
  border-radius: var(--ui-radius-sm);
  object-fit: cover;
  border: 1px solid var(--ui-border);
}

/* ===== User Panel: My Orders tabs ===== */
.order-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ui-border);
  padding-bottom: 12px;
}
.order-tab {
  padding: 8px 20px;
  border-radius: var(--ui-radius-sm);
  font-size: 14px;
  color: var(--ui-text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.order-tab:hover {
  color: var(--ui-accent);
  border-color: var(--ui-border);
}
.order-tab.active {
  background: var(--ui-accent);
  color: #1a1a1a;
  font-weight: 600;
}

/* ===== Detail Pages: Shared Components ===== */
.detail-section {
  margin-bottom: 40px;
}
.detail-section .section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-border);
}
.level-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--ui-radius-sm);
  font-size: 12px;
  font-weight: 600;
}
.info-row {
  display: flex;
  gap: 40px;
  margin-bottom: 12px;
  font-size: 14px;
}
.info-row .label {
  color: var(--ui-text-muted);
  min-width: 80px;
}
.info-row .value {
  color: var(--ui-text);
}

/* Case grid (designer/supervisor detail) */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  overflow: hidden;
  transition: all 0.2s;
}
.case-card:hover {
  box-shadow: var(--ui-shadow-hover);
  transform: translateY(-2px);
}
.case-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.case-info {
  padding: 16px;
}
.case-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ui-text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-meta {
  font-size: 13px;
  color: var(--ui-text-muted);
}

/* Review list (detail pages) */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-item {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  padding: 20px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.reviewer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-text);
}
.review-date {
  font-size: 13px;
  color: var(--ui-text-muted);
}
.review-rating {
  color: var(--ui-accent);
  margin-bottom: 8px;
  font-size: 14px;
}
.review-content {
  font-size: 14px;
  color: var(--ui-text-secondary);
  line-height: 1.6;
}

/* Service packages (supervisor detail) */
.service-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-package {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  padding: 24px;
  transition: all 0.2s;
}
.service-package:hover {
  box-shadow: var(--ui-shadow-hover);
  border-color: var(--ui-accent);
}
.package-header {
  margin-bottom: 16px;
}
.package-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 8px;
}
.package-desc {
  font-size: 13px;
  color: var(--ui-text-muted);
  line-height: 1.5;
}

/* ===== Article Detail ===== */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ui-text-secondary);
}
.article-content p {
  margin-bottom: 16px;
}
.article-content h2,
.article-content h3 {
  color: var(--ui-text);
  margin: 24px 0 12px;
}
.article-content img {
  max-width: 100%;
  border-radius: var(--ui-radius-md);
  margin: 16px 0;
}

/* ===== Video List ===== */
.video-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.video-list-card {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.video-list-card:hover {
  box-shadow: var(--ui-shadow-hover);
  transform: translateY(-2px);
}
.video-list-cover {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.video-list-cover img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.video-list-info {
  padding: 12px;
}
.video-list-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ui-text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-list-stats {
  font-size: 12px;
  color: var(--ui-text-muted);
  display: flex;
  gap: 12px;
}

/* ===== Cart Page ===== */
.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.cart-header {
  display: grid;
  grid-template-columns: 50px 2fr 120px 120px 120px 100px;
  gap: 16px;
  padding: 12px 20px;
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ui-text-muted);
  font-weight: 500;
}
.cart-checkbox {
  width: 18px; height: 18px;
  cursor: pointer;
}
.cart-col-product { text-align: left; }
.cart-col { text-align: center; }
.cart-item {
  display: grid;
  grid-template-columns: 50px 2fr 120px 120px 120px 100px;
  gap: 16px;
  padding: 16px 20px;
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  margin-bottom: 12px;
  align-items: center;
  border: 1px solid var(--ui-border);
}
.item-check {
  display: flex;
  align-items: center;
}
.cart-item-info {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--ui-radius-sm);
  object-fit: cover;
  border: 1px solid var(--ui-border);
}
.cart-item-detail { flex: 1; }
.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ui-text);
  margin-bottom: 4px;
}
.cart-item-spec {
  font-size: 12px;
  color: var(--ui-text-muted);
}
.cart-item-price {
  text-align: center;
  font-size: 14px;
  color: var(--ui-text);
}
.cart-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-body);
  border-radius: var(--ui-radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--ui-text-secondary);
}
.qty-input {
  width: 40px;
  height: 28px;
  border: 1px solid var(--ui-border);
  background: var(--ui-bg-card);
  text-align: center;
  font-size: 14px;
  color: var(--ui-text);
  border-radius: var(--ui-radius-sm);
}
.cart-subtotal {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-accent);
}
.cart-action {
  text-align: center;
}
.cart-delete {
  background: none;
  border: none;
  color: var(--ui-text-muted);
  cursor: pointer;
  font-size: 13px;
}
.cart-delete:hover { color: #e74c3c; }
.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  margin-top: 20px;
}
.cart-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cart-total {
  font-size: 14px;
  color: var(--ui-text-secondary);
}
.cart-total-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--ui-accent);
}
.checkout-btn {
  padding: 12px 40px;
  background: var(--ui-gold-gradient);
  color: #1a1a1a;
  border: none;
  border-radius: var(--ui-radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.checkout-btn:hover { opacity: 0.9; }
.item-subtotal { text-align: center; }

/* ===== Checkout Page ===== */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  gap: 24px;
}
.checkout-main { flex: 1; min-width: 0; }
.checkout-section {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  padding: 24px;
  margin-bottom: 20px;
}
.checkout-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 20px;
}
.address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.address-item {
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  cursor: pointer;
  transition: all 0.2s;
}
.address-item.selected,
.address-item:hover {
  border-color: var(--ui-accent);
}
.address-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ui-text);
  margin-bottom: 4px;
}
.address-phone {
  font-size: 13px;
  color: var(--ui-text-muted);
  margin-bottom: 8px;
}
.address-detail {
  font-size: 14px;
  color: var(--ui-text-secondary);
}
.address-add {
  padding: 16px;
  border: 2px dashed var(--ui-border);
  border-radius: var(--ui-radius-md);
  text-align: center;
  color: var(--ui-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.address-add:hover {
  border-color: var(--ui-accent);
  color: var(--ui-accent);
}
.checkout-product {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-border);
}
.checkout-product:last-child { border-bottom: none; }
.checkout-product-img {
  width: 64px; height: 64px;
  border-radius: var(--ui-radius-sm);
  object-fit: cover;
  border: 1px solid var(--ui-border);
}
.checkout-product-info { flex: 1; }
.checkout-product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ui-text);
  margin-bottom: 4px;
}
.checkout-product-spec {
  font-size: 12px;
  color: var(--ui-text-muted);
}
.checkout-product-price {
  font-size: 14px;
  color: var(--ui-text);
  min-width: 80px;
  text-align: right;
}
.checkout-product-qty {
  font-size: 13px;
  color: var(--ui-text-muted);
  min-width: 40px;
  text-align: right;
}
.payment-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  cursor: pointer;
  transition: all 0.2s;
}
.payment-method:hover,
.payment-method.selected {
  border-color: var(--ui-accent);
}
.payment-icon { font-size: 20px; }
.payment-name {
  font-size: 14px;
  color: var(--ui-text);
}
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-body);
  color: var(--ui-text);
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.form-textarea:focus {
  outline: none;
  border-color: var(--ui-accent);
}
.order-summary {
  width: 340px;
  flex-shrink: 0;
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ui-text-secondary);
  border-bottom: 1px solid var(--ui-border);
}
.summary-row.total {
  border-bottom: none;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ui-text);
}
.summary-row.total .price {
  color: var(--ui-accent);
}
.submit-order-btn {
  width: 100%;
  padding: 14px;
  background: var(--ui-gold-gradient);
  color: #1a1a1a;
  border: none;
  border-radius: var(--ui-radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: opacity 0.2s;
}
.submit-order-btn:hover { opacity: 0.9; }

/* ===== Help Page ===== */
.category-btn {
  padding: 8px 16px;
  border-radius: var(--ui-radius-sm);
  font-size: 14px;
  color: var(--ui-text-secondary);
  background: var(--ui-bg-body);
  border: 1px solid var(--ui-border);
  cursor: pointer;
  transition: all 0.2s;
}
.category-btn:hover,
.category-btn.active {
  background: var(--ui-accent);
  color: #1a1a1a;
  border-color: var(--ui-accent);
  font-weight: 600;
}
.mobile-only { display: none; }
.faq-group { margin-bottom: 24px; }
.faq-item {
  background: var(--ui-bg-card);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--ui-text);
}
.faq-icon {
  font-size: 12px;
  color: var(--ui-text-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-content {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--ui-text-secondary);
  line-height: 1.6;
  display: none;
}
.faq-item.open .faq-content { display: block; }

/* ===== Home Page ===== */
.hero-search-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--ui-text);
  font-size: 15px;
  outline: none;
  font-family: inherit;
}
.hero-search-input::placeholder { color: var(--ui-text-muted); }

/* ===== Comments Page ===== */
.filter-tab {
  padding: 8px 20px;
  border-radius: var(--ui-radius-sm);
  font-size: 14px;
  color: var(--ui-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.filter-tab:hover {
  color: var(--ui-accent);
  border-color: var(--ui-border);
}
.filter-tab.active {
  background: var(--ui-accent);
  color: #1a1a1a;
  font-weight: 600;
}

/* ===== Monitor Page ===== */
.btn-primary {
  padding: 10px 24px;
  background: var(--ui-gold-gradient);
  color: #1a1a1a;
  border: none;
  border-radius: var(--ui-radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover { opacity: 0.9; }

/* Responsive additions */
@media (max-width: 1024px) {
  .favorite-grid { grid-template-columns: repeat(2, 1fr); }
  .address-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .service-packages { grid-template-columns: repeat(2, 1fr); }
  .video-list-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-header { display: none; }
  .cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .checkout-container { flex-direction: column; }
  .order-summary { width: 100%; position: static; }
}
@media (max-width: 768px) {
  .favorite-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .service-packages { grid-template-columns: 1fr; }
  .video-list-grid { grid-template-columns: 1fr; }
  .mobile-only { display: block; }
}

/* Hide old layout elements that conflict */
.top-bar { display: none !important; }
.footer { display: none !important; }
.main-content { padding-top: 0 !important; }
