/* ========================================
   成品网站页面样式 - 2026版
   Site Templates Page Styles
======================================== */

:root {
  --primary: #2B6DE8;
  --primary-light: #6366F1;
  --primary-dark: #1e5bc6;
  --secondary: #8B5CF6;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border-light: #e2e8f0;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Hero Section */
.site-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  overflow: hidden;
}

.site-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.site-hero .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-hero-content {
  max-width: 600px;
}

.site-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 14px;
  color: #fff;
  margin-bottom: 24px;
}

.site-hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.site-hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 32px;
}

.site-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
}

.site-hero-feature svg {
  width: 18px;
  height: 18px;
}

.site-hero-illustration {
  width: 400px;
  flex-shrink: 0;
}

.site-hero-illustration svg {
  width: 100%;
  height: auto;
}

/* Main Content */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.site-layout {
  display: flex;
  gap: 30px;
}

/* Sidebar */
.site-sidebar {
  width: 260px;
  flex-shrink: 0;
}

.sidebar-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-title svg {
  width: 22px;
  height: 22px;
}

.sidebar-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  transition: all 0.3s;
}

.sidebar-reset:hover {
  background: rgba(255,255,255,0.3);
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.category-list li {
  margin: 0;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.category-list a:hover,
.category-list a.active {
  color: var(--primary);
  background: linear-gradient(90deg, rgba(43,109,232,0.08) 0%, transparent 100%);
  border-left-color: var(--primary);
}

.category-list a svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.category-list a:hover svg,
.category-list a.active svg {
  opacity: 1;
}

/* Content Area */
.site-content {
  flex: 1;
  min-width: 0;
}

/* Stats Banner */
.stats-banner {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.stat-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
}

.stat-icon.purple {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #9333ea;
}

.stat-icon.orange {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #ea580c;
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-info h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.stat-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Template Grid */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.template-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.template-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.template-card:hover .template-thumb img {
  transform: scale(1.05);
}

.template-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  gap: 12px;
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.template-overlay .btn-preview,
.template-overlay .btn-buy {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-preview {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-preview:hover {
  background: rgba(255,255,255,0.3);
}

.btn-buy {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  color: #fff;
}

.btn-buy:hover {
  transform: scale(1.05);
}

.template-info {
  padding: 20px;
}

.template-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-id {
  font-size: 13px;
  color: var(--text-muted);
}

.template-price {
  font-size: 13px;
  color: var(--text-muted);
}

.template-price strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: #fff;
  border-radius: 16px;
}

.empty-state svg {
  width: 120px;
  height: 120px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.empty-state h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.layui-laypage a, 
.layui-laypage span {
  background-color: transparent !important;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
  background-color: var(--primary) !important;
  border-radius: 8px !important;
}

/* ========================================
   Detail Page Styles - 模板详情页
======================================== */

/* Compact Hero */
.site-hero-compact {
  padding: 100px 0 50px;
}

.site-hero-compact .site-hero-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.site-hero-compact .site-hero-subtitle {
  font-size: 15px;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb-nav a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.breadcrumb-nav a:hover {
  color: #fff;
}

.breadcrumb-nav .sep {
  color: rgba(255,255,255,0.4);
}

.breadcrumb-nav .current {
  color: #fff;
}

/* Detail Layout */
.detail-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Preview Section */
.detail-preview {
  width: 450px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}

.preview-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.preview-image {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-actions {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Info Section */
.detail-info {
  flex: 1;
  min-width: 0;
}

.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}

/* Template Header */
.template-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.template-detail-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

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

.tag {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.tag-primary {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4f46e5;
}

.tag-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
}

.template-id-badge {
  padding: 8px 16px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Package Section */
.section-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
}

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

.package-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.package-option:hover {
  border-color: #c7d2fe;
}

.package-option.active {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  border-color: var(--primary);
}

.package-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.package-option.active .package-radio {
  border-color: var(--primary);
}

.radio-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s;
}

.package-option.active .radio-dot {
  transform: scale(1);
}

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

.package-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.package-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.package-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.package-specs .highlight {
  color: var(--danger);
  font-weight: 500;
}

.package-price {
  text-align: right;
  flex-shrink: 0;
}

.package-price .price-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.package-price .price-unit {
  font-size: 13px;
  color: var(--text-muted);
}

/* Buy Section */
.buy-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.btn-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* Features Card */
.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 24px;
}

.card-title svg {
  color: var(--primary);
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 12px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.feature-icon.blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.feature-icon.purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #7c3aed;
}

.feature-icon.orange {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #ea580c;
}

.feature-icon.green {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
}

.feature-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.feature-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Notice Card */
.notice-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
}

.notice-card .card-title svg {
  color: #d97706;
}

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

.notice-list {
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 16px 20px;
}

.notice-list p {
  margin: 0 0 12px;
}

.notice-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 2;
}

.notice-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #d97706;
  border-radius: 50%;
}

/* ========================================
   Responsive Styles
======================================== */
@media (max-width: 1200px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .site-hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .site-hero-content {
    max-width: 100%;
  }
  
  .site-hero-features {
    justify-content: center;
  }
  
  .site-hero-illustration {
    width: 280px;
    margin-top: 40px;
  }
  
  .site-layout {
    flex-direction: column;
  }
  
  .site-sidebar {
    width: 100%;
  }
  
  .sidebar-card {
    position: static;
  }
  
  .category-list {
    display: flex;
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }
  
  .category-list a {
    padding: 10px 16px;
    border-radius: 8px;
    border-left: none;
    background: var(--bg-light);
  }
  
  .category-list a:hover,
  .category-list a.active {
    background: var(--primary);
    color: #fff;
  }
  
  .stats-banner {
    flex-wrap: wrap;
  }
  
  .stat-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .site-hero {
    padding: 100px 0 60px;
  }
  
  .site-hero-title {
    font-size: 32px;
  }
  
  .site-hero-subtitle {
    font-size: 15px;
  }
  
  .site-hero-features {
    flex-direction: column;
    align-items: center;
  }
  
  .site-hero-illustration {
    display: none;
  }
  
  .site-main {
    padding: 24px 16px 40px;
  }
  
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .template-info {
    padding: 14px;
  }
  
  .template-name {
    font-size: 14px;
  }
  
  .template-price strong {
    font-size: 18px;
  }
  
  .stats-banner {
    display: none;
  }
  
  .sidebar-header {
    padding: 16px 20px;
  }
  
  .sidebar-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .site-hero-title {
    font-size: 26px;
  }
  
  .site-hero-feature {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .template-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .template-thumb {
    aspect-ratio: 4/3;
  }
  
  .category-list a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .stat-card {
    flex: 1 1 100%;
  }
}

/* ========================================
   Detail Page Responsive
======================================== */
@media (max-width: 992px) {
  .detail-layout {
    flex-direction: column;
  }
  
  .detail-preview {
    width: 100%;
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .preview-image {
    aspect-ratio: 4/3;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-hero-compact {
    padding: 90px 0 40px;
  }
  
  .site-hero-compact .site-hero-title {
    font-size: 24px;
  }
  
  .breadcrumb-nav {
    font-size: 13px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .template-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .template-detail-name {
    font-size: 22px;
  }
  
  .package-option {
    flex-wrap: wrap;
    padding: 14px 16px;
  }
  
  .package-specs {
    gap: 8px;
  }
  
  .package-price {
    width: 100%;
    text-align: left;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-light);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-hero-compact .site-hero-title {
    font-size: 20px;
  }
  
  .detail-preview {
    max-width: 100%;
  }
  
  .package-name {
    font-size: 15px;
  }
  
  .package-specs {
    font-size: 12px;
  }
  
  .package-price .price-num {
    font-size: 20px;
  }
  
  .btn-buy-now {
    font-size: 16px;
    padding: 14px;
  }
  
  .feature-item {
    padding: 12px;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
  }
  
  .feature-text h4 {
    font-size: 14px;
  }
  
  .notice-list li {
    font-size: 12px;
  }
}

