/* ============================================
   PicGallery 图片主题 v2.0 - 主样式文件
   匹配参考站 CX-UDY 设计风格
   ============================================ */

/* CSS Variables */
:root {
    --primary: #ff6b6b;
    --primary-light: #ff8e8e;
    --primary-dark: #e55a5a;
    --secondary: #feca57;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #eef1f8;
    --bg-white: #ffffff;
    --border: #eee;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --header-height: 60px;
    --max-width: 1440px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================
   Header
   ============================================ */
.pg-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.pg-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 20px;
}

.pg-logo { flex-shrink: 0; }
.pg-logo a { display: flex; align-items: center; }
.pg-logo img { max-height: 36px; width: auto; }
.pg-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.5px;
}

/* Navigation */
.pg-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.pg-nav::-webkit-scrollbar { display: none; }

.nav-item {
    padding: 18px 14px;
    color: #a1a1a1;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.2s;
    position: relative;
    font-weight: 500;
}
.nav-item:hover {
    color: var(--primary);
}
.nav-item.active {
    color: var(--text);
    font-weight: 600;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Header Right */
.pg-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pg-search {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 20px;
    padding: 6px 12px;
    transition: box-shadow 0.2s;
}
.pg-search:focus-within { box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2); }
.pg-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 140px;
    font-size: 13px;
    color: var(--text);
}
.pg-search button {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    padding: 0;
}

.pg-login-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pg-login-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.pg-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.pg-user-btn:hover {
    background: #f5f5f5;
    color: var(--text);
}

.user-arrow {
    font-size: 10px;
    color: var(--text-muted);
}

/* User Dropdown */
.pg-user-dropdown {
    position: relative;
}

.pg-user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    padding: 6px 0;
    min-width: 160px;
    z-index: 200;
}

/* 桥梁：消除按钮与菜单之间的间隙，防止鼠标移动时hover丢失 */
.pg-user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.pg-user-dropdown:hover .pg-user-dropdown-menu {
    display: block;
}

.pg-user-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.pg-user-dd-item:hover {
    background: #f9f9ff;
    color: var(--primary);
}

.pg-user-dd-item.dd-logout {
    border-top: 1px solid #f5f5f5;
    margin-top: 4px;
    padding-top: 10px;
    color: #999;
}

.pg-user-dd-item.dd-logout:hover {
    background: #fff5f5;
    color: #e55a5a;
}

.dd-icon { font-size: 14px; }

.pg-mobile-menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

/* ============================================
   Category Tabs
   ============================================ */
.pg-cat-tabs {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.pg-cat-tabs::-webkit-scrollbar { display: none; }

.pg-cat-tabs-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 8px;
}

.cat-tab {
    padding: 6px 16px;
    background: var(--bg);
    border-radius: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.cat-tab.active, .cat-tab:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

/* ============================================
   Main Content
   ============================================ */
.pg-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 16px;
}
.pg-container { width: 100%; }

/* ============================================
   Homepage Banner (轮播图)
   ============================================ */
.pg-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: #1a1a1a;
    aspect-ratio: 1200/400;
}
.pg-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.pg-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.pg-banner-slide.active {
    opacity: 1;
}
.pg-banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.pg-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pg-banner-prev, .pg-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    line-height: 1;
}
.pg-banner-prev:hover, .pg-banner-next:hover {
    background: rgba(0, 0, 0, 0.8);
}
.pg-banner-prev { left: 16px; }
.pg-banner-next { right: 16px; }
.pg-banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 20;
}
.pg-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}
.pg-banner-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* ============================================
   Homepage Banner Strip (四图轮播)
   ============================================ */
.pg-banner-strip {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: var(--radius);
}
.pg-banner-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.strip-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.strip-item:hover img { transform: scale(1.08); }

/* 遮罩层 - hover时出现 */
.strip-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.strip-item:hover::after { opacity: 1; }

/* 名称标签 - hover时居中显示带框 */
.strip-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.strip-item:hover .strip-label {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   Section Header
   ============================================ */
.pg-home-section {
    margin-bottom: 24px;
}
.pg-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.pg-section-title-bar {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bar-line {
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
    display: inline-block;
}
.pg-section-more {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}
.pg-section-more:hover { color: var(--primary); }

/* ============================================
   Grid Layout (多列网格，匹配参考站)
   ============================================ */
.pg-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.pg-masonry-3 { grid-template-columns: repeat(3, 1fr); }
.pg-masonry-4 { grid-template-columns: repeat(4, 1fr); }
.pg-masonry-2 { grid-template-columns: repeat(2, 1fr); }

/* Post Card */
.pg-card {
    margin-bottom: 0;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}
.pg-card:hover {
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
}
.pg-card-link { display: block; color: inherit; }
.pg-card-link:hover { color: inherit; }

.pg-card-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 3/4;
}
.pg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.pg-card:hover .pg-card-img img { transform: scale(1.05); }

.img-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.vip-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--secondary), #ff9f43);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.pg-card-info { padding: 8px 10px; }

.pg-card-title {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    font-weight: 500;
    height: 36px;
}

.pg-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}
.meta-stats { display: flex; gap: 10px; }
.meta-stats span { display: flex; align-items: center; gap: 3px; }

/* Empty State */
.pg-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.pg-empty .empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ============================================
   Ad Slots (广告位)
   ============================================ */
.pg-ad-slot {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.pg-ad-slot a {
    display: block;
}
.pg-ad-slot img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Category Tab Right Text
   ============================================ */
.pg-cat-tabs-right {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   Hot Tags
   ============================================ */
.pg-hot-tags { margin: 30px 0; }
.pg-hot-tags-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.pg-tag-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    display: block;
}
.pg-tag-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.pg-tag-card:hover img { transform: scale(1.1); }
.tag-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 10px;
}
.tag-info { color: #fff; }
.tag-name { font-size: 13px; font-weight: 500; }
.tag-count { color: rgba(255, 255, 255, 0.8); font-size: 11px; margin-top: 2px; }

/* ============================================
   Site Stats
   ============================================ */
.pg-site-stats {
    display: flex;
    justify-content: space-around;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.pg-stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   Load More Button
   ============================================ */
.pg-load-more {
    text-align: center;
    padding: 20px 0;
}
.pg-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.pg-load-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}
.pg-load-more-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}
.pg-load-more-btn.loading .load-text::after {
    content: '...';
    animation: dots 1s infinite;
}
@keyframes dots {
    0%, 33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

/* ============================================
   Pagination
   ============================================ */
.pg-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pg-pagination a, .pg-pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.pg-pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pg-pagination .current {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: transparent;
}

/* ============================================
   Article Detail
   ============================================ */
.pg-breadcrumb {
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pg-breadcrumb a { color: var(--text-light); }
.pg-breadcrumb a:hover { color: var(--primary); }
.pg-breadcrumb .sep { margin: 0 2px; }
.pg-keyboard-hint {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.pg-article {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Image Viewer */
.pg-image-viewer {
    position: relative;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.image-counter {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 10;
}
.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    line-height: 1;
}
.image-nav:hover { background: rgba(0, 0, 0, 0.8); }
.image-nav.prev { left: 16px; }
.image-nav.next { right: 16px; }
.image-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.image-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
.pg-click-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

/* Thumbnail Strip */
.pg-thumb-strip {
    display: flex;
    gap: 8px;
    padding: 16px;
    overflow-x: auto;
    background: #fafafa;
    scrollbar-width: thin;
}
.thumb-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    transition: border-color 0.2s;
}
.thumb-item:hover { border-color: var(--primary-light); }
.thumb-item.active { border-color: var(--primary); }
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-item.locked {
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb-item.locked .locked-placeholder { font-size: 24px; opacity: 0.5; }
.thumb-item.more-locked {
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Article Info */
.pg-article-info { padding: 20px 24px; }
.pg-article-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #222;
}
.np-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    vertical-align: middle;
}
.vip-tag {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--secondary), #ff9f43);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}
.pg-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-cat { color: var(--primary); }
.pg-article-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn.liked {
    background: #fff5f5;
    border-color: var(--primary);
    color: var(--primary);
}

/* Favorite Button */
.fav-btn.active {
    background: #fffbe6;
    border-color: #feca57;
    color: #e17055;
}
.fav-btn.active .icon { color: #feca57; }

/* VIP Notice */
.pg-vip-notice {
    margin: 0 24px 24px;
    padding: 24px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5f5 100%);
    border-radius: 10px;
    border: 1px solid var(--secondary);
    text-align: center;
}
.vip-icon { font-size: 36px; margin-bottom: 8px; }
.vip-title { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.vip-desc { font-size: 14px; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.vip-desc strong { color: var(--primary); }
.vip-btn {
    display: inline-block;
    padding: 10px 32px;
    background: linear-gradient(135deg, var(--secondary), #ff9f43);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(254, 202, 87, 0.4);
    transition: transform 0.2s;
}
.vip-btn:hover { color: #fff; transform: translateY(-1px); }

/* Article Content */
.pg-article-content {
    padding: 0 24px 24px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}
.pg-article-content p { margin-bottom: 14px; }

/* Article Tags */
.pg-article-tags {
    padding: 0 24px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.pg-article-tags a {
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-light);
}
.pg-article-tags a:hover { background: var(--primary); color: #fff; }

/* ============================================
   Related Posts
   ============================================ */
.pg-related-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.pg-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.pg-related-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
    transition: transform 0.2s;
}
.pg-related-card:hover { transform: translateY(-2px); }
.rel-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}
.rel-img img { width: 100%; height: 100%; object-fit: cover; }
.rel-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.rel-title {
    padding: 8px;
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: #fafafa;
}

/* ============================================
   Comments
   ============================================ */
.pg-comments-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.pg-comment-form { margin-bottom: 24px; }
.comment-user-info { margin-bottom: 10px; font-size: 13px; color: var(--text-light); }
.comment-user-info a { color: var(--primary); margin-left: 10px; }
.comment-guest-form { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.comment-guest-form input {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 13px;
}
.comment-guest-form input:focus { border-color: var(--primary); }
.comment-input-row { display: flex; gap: 12px; align-items: flex-end; }
.comment-input-row textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}
.comment-input-row textarea:focus { border-color: var(--primary); }
.comment-submit-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: transform 0.2s;
}
.comment-submit-btn:hover { transform: translateY(-1px); }

.pg-comment-list { list-style: none; }
.pg-comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}
.pg-comment-item:last-child { border-bottom: none; }
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-name { font-size: 13px; font-weight: 600; color: var(--text); }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-content { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 6px; word-wrap: break-word; }
.comment-footer { font-size: 12px; }
.comment-reply { color: var(--text-muted); }
.comment-reply:hover { color: var(--primary); }
.pg-comment-children {
    margin-top: 10px;
    background: #fafafa;
    border-radius: var(--radius-sm);
    padding: 10px;
}
.pg-comment-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pg-no-comments { text-align: center; padding: 30px; color: var(--text-muted); }

/* ============================================
   Page Content / 404
   ============================================ */
.pg-page-header { padding: 20px 0; text-align: center; }
.pg-page-title { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.pg-page-desc { color: var(--text-muted); font-size: 13px; }
.pg-page-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
}
.pg-page-content h1, .pg-page-content h2, .pg-page-content h3 { margin: 20px 0 12px; color: var(--text); }
.pg-page-content p { margin-bottom: 14px; }
.pg-page-content img { border-radius: var(--radius-sm); margin: 10px 0; }

.pg-404 { padding: 40px 0; }
.error-404 { text-align: center; padding: 40px 20px; }
.error-code {
    font-size: 120px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}
.error-title { font-size: 24px; margin-bottom: 10px; }
.error-desc { color: var(--text-muted); margin-bottom: 24px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }
.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s;
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); }
.btn-secondary {
    padding: 10px 24px;
    background: var(--bg-white);
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.pg-recommend { margin-top: 40px; }

/* ============================================
   Floating VIP Badge
   ============================================ */
.pg-float-vip {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.pg-float-vip-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #8364e8);
    color: #fff;
    font-size: 11px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
    transition: transform 0.2s;
    cursor: pointer;
    border: none;
}
.pg-float-vip-btn:hover {
    transform: scale(1.08);
    color: #fff;
}
.pg-float-vip-btn .vip-icon-sm {
    font-size: 18px;
    margin-bottom: 2px;
}
@media (max-width: 768px) {
    .pg-float-vip { display: flex; bottom: 80px; }
}

/* ============================================
   Nav Dropdown
   ============================================ */
.pg-nav-dropdown {
    position: relative;
}
.pg-nav-dropdown > .nav-item {
    cursor: pointer;
}
.pg-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    padding: 8px 0;
    min-width: 140px;
    z-index: 200;
}
.pg-nav-dropdown:hover .pg-nav-dropdown-menu {
    display: block;
}
.pg-nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
}
.pg-nav-dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary);
}
.pg-nav-dropdown-arrow {
    font-size: 10px;
    margin-left: 2px;
}

/* ============================================
   Category Page Filter Bar
   ============================================ */
.pg-filter-bar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.pg-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.pg-filter-row:last-child {
    margin-bottom: 0;
}
.pg-filter-label {
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}
.pg-filter-tag {
    padding: 4px 12px;
    border-radius: 14px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}
.pg-filter-tag:hover {
    background: var(--bg);
    color: var(--primary);
}
.pg-filter-tag.active {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   Footer
   ============================================ */
.pg-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 24px 16px;
    margin-top: 40px;
}
.pg-footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.pg-footer-links { margin-bottom: 12px; }
.pg-footer-links a { color: var(--text-light); text-decoration: none; font-size: 13px; margin: 0 10px; }
.pg-footer-links a:hover { color: var(--primary); }
.pg-footer-copyright { color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }
.pg-footer-icp { color: var(--text-muted); font-size: 12px; }
.pg-footer-icp a { color: var(--text-muted); }

/* ============================================
   Back to Top
   ============================================ */
.pg-back-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 90;
    transition: all 0.2s;
}
.pg-back-top:hover { border-color: var(--primary); color: var(--primary); }
.pg-back-top.show { display: flex; }

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
    .pg-masonry, .pg-masonry-4 { grid-template-columns: repeat(3, 1fr); }
    .pg-banner-strip-track { grid-template-columns: repeat(2, 1fr); }
    .pg-hot-tags-grid { grid-template-columns: repeat(4, 1fr); }
    .pg-related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    .pg-nav { display: none; }
    .pg-search { display: none; }
    .pg-mobile-menu-btn { display: block; }

    .pg-masonry, .pg-masonry-3, .pg-masonry-4, .pg-masonry-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .pg-banner-strip-track { grid-template-columns: repeat(2, 1fr); }
    .pg-hot-tags-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .pg-related-grid { grid-template-columns: repeat(2, 1fr); }

    .pg-article-info { padding: 16px; }
    .pg-article-title { font-size: 18px; }
    .pg-vip-notice { margin: 0 16px 16px; padding: 16px; }
    .pg-article-content { padding: 0 16px 16px; }
    .pg-article-tags { padding: 0 16px 16px; }
    .pg-related-section, .pg-comments-section { padding: 16px; }
    .pg-page-content { padding: 20px 16px; }

    body { padding-bottom: 60px; }
    .pg-back-top { bottom: 70px; }

    .pg-banner { aspect-ratio: 2/1; }
    .pg-site-stats { flex-wrap: wrap; gap: 12px; }
    .pg-keyboard-hint { display: none; }
}

@media (max-width: 480px) {
    .pg-hot-tags-grid { grid-template-columns: repeat(2, 1fr); }
    .pg-image-viewer { min-height: 250px; }
    .image-nav { width: 36px; height: 36px; font-size: 20px; }
}

/* ============================================
   User Center (个人中心)
   ============================================ */
.pg-user-center { padding: 20px 0 40px; }

.pg-uc-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}

/* Sidebar */
.pg-uc-sidebar {
    position: sticky;
    top: 80px;
}

.pg-uc-user-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.pg-uc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.pg-uc-user-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.pg-uc-user-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pg-uc-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #feca57, #ff9f43);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pg-uc-vip-badge.grey {
    background: #e2e2e2;
    color: #999;
}

.pg-uc-vip-badge .vip-expiry {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.9;
}

/* Points Card */
.pg-uc-points-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg-uc-points-card .points-label {
    font-size: 13px;
    color: var(--text-light);
}

.pg-uc-points-card .points-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Nav */
.pg-uc-nav {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pg-uc-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.pg-uc-nav-item:last-child { border-bottom: none; }
.pg-uc-nav-item:hover { background: #f9f9ff; color: var(--primary); }
.pg-uc-nav-item.active { color: var(--primary); background: #fff5f5; font-weight: 600; }
.pg-uc-nav-item.logout { color: #999; }
.pg-uc-nav-item.logout:hover { color: #e55a5a; background: #fff5f5; }

.nav-icon { font-size: 16px; flex-shrink: 0; }

/* Main Content */
.pg-uc-main {
    min-height: 600px;
}

.pg-uc-page { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.pg-uc-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.pg-uc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 14px;
}

/* Overview */
.pg-uc-overview {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.pg-uc-overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pg-uc-overview-item:last-child { border-bottom: none; }
.pg-uc-overview-item .overview-label { color: var(--text-muted); font-size: 14px; }
.pg-uc-overview-item .overview-value { color: var(--text); font-size: 14px; font-weight: 500; }
.text-vip { color: #ff9f43; font-weight: 600; }
.text-normal { color: var(--text-muted); }

/* Shortcuts */
.pg-uc-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pg-uc-shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.pg-uc-shortcut-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.shortcut-icon { font-size: 24px; }
.shortcut-text { flex: 1; font-size: 15px; font-weight: 500; }
.shortcut-arrow { color: var(--text-muted); font-size: 18px; }

/* VIP Status Banner */
.pg-uc-vip-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    margin-bottom: 24px;
}

.pg-uc-vip-status.is-vip {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
}

.vip-status-icon { font-size: 40px; }
.vip-status-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.vip-status-sub { font-size: 13px; color: var(--text-light); }

/* Benefits */
.pg-uc-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pg-uc-benefit-item {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.benefit-icon { font-size: 28px; }
.benefit-text { font-size: 13px; color: var(--text-light); }

/* VIP Plans */
.pg-uc-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pg-uc-plan-card {
    background: var(--bg-white);
    border: 2px solid #eee;
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pg-uc-plan-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.pg-uc-plan-card.featured { border-color: var(--primary); }
.pg-uc-plan-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0.08;
}

.plan-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 3px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.plan-name { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.plan-duration { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.plan-price { margin-bottom: 8px; }
.price-currency { font-size: 18px; color: var(--primary); font-weight: 600; }
.price-amount { font-size: 36px; color: var(--primary); font-weight: 700; }
.plan-points { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.plan-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

.plan-actions { display: flex; gap: 10px; }
.pg-uc-buy-btn {
    flex: 1;
    padding: 10px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.pg-uc-buy-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pg-uc-buy-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.points-btn { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-color: transparent; }
.points-btn:hover:not(:disabled) { color: #fff; opacity: 0.9; }
.cash-btn { background: var(--bg-white); }
.cash-btn:hover:not(:disabled) { background: #f9f9ff; }

/* Pay Notice */
.pg-uc-pay-notice {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 20px;
}
.notice-title { font-size: 14px; font-weight: 600; color: #d48806; margin-bottom: 8px; }
.notice-content { font-size: 13px; color: #666; line-height: 1.6; }

/* Points Info */
.pg-uc-points-info {
    margin-top: 20px;
    padding: 14px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    text-align: center;
}
.points-current { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.points-current strong { color: var(--primary); font-size: 16px; }
.points-tip { font-size: 12px; color: var(--text-muted); }

/* Toast */
.pg-uc-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.pg-uc-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.pg-uc-toast.success { background: #52c41a; }
.pg-uc-toast.error { background: #ff4d4f; }

/* Pay Modal */
.pg-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.pg-pay-modal.show { display: flex; }

.pg-pay-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.pg-pay-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    overflow: hidden;
    animation: payModalIn 0.3s ease;
}

@keyframes payModalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pg-pay-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 16px;
}

.pg-pay-modal-close {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.pg-pay-modal-body {
    padding: 12px 0;
}

.pg-pay-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.pg-pay-method:hover { background: #f9f9ff; }

.pay-icon { font-size: 24px; }
.pay-name { flex: 1; font-size: 15px; font-weight: 500; }
.pay-arrow { color: #ccc; font-size: 18px; }

.pg-pay-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* Online Pay Button */
.online-btn {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff;
    border-color: transparent;
}
.online-btn:hover:not(:disabled) { color: #fff; opacity: 0.9; }

/* No Plans */
.pg-uc-no-plans {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .pg-uc-container {
        grid-template-columns: 1fr;
    }
    .pg-uc-sidebar {
        position: static;
    }
    .pg-uc-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pg-uc-plans-grid {
        grid-template-columns: 1fr;
    }
    .pg-uc-shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

/* Favorites */
.pg-uc-fav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.pg-uc-fav-item {
    display: block;
    padding: 14px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.pg-uc-fav-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.fav-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.fav-time { font-size: 12px; color: var(--text-muted); }

@media (max-width: 768px) { .pg-uc-fav-grid { grid-template-columns: 1fr; } }

/* Points */
.pg-uc-points-overview { margin-bottom: 20px; }
.points-card {
    background: linear-gradient(135deg, #6c5ce7, #8364e8);
    color: #fff;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.points-card .points-label { font-size: 14px; opacity: 0.9; }
.points-card .points-value { font-size: 36px; font-weight: 700; display: block; margin-top: 4px; }

.pg-uc-rules-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.pg-uc-rules-list { display: flex; flex-direction: column; gap: 8px; }
.rule-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid #f5f5f5;
}
.rule-item:last-child { border-bottom: none; }
.rule-pts { color: var(--primary); font-weight: 600; }

/* Table */
.pg-uc-table-wrap { overflow-x: auto; }
.pg-uc-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
    background: var(--bg-white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.pg-uc-table th {
    background: #f8f9ff; padding: 10px 12px; text-align: left;
    font-weight: 600; color: var(--text-light); border-bottom: 1px solid #eee; white-space: nowrap;
}
.pg-uc-table td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; }
.pg-uc-table tr:last-child td { border-bottom: none; }
.text-green { color: #52c41a; }
.text-red { color: #ff4d4f; }
.text-orange { color: #fa8c16; }

/* Empty State */
.pg-uc-empty {
    text-align: center; padding: 40px 20px;
    color: var(--text-muted); font-size: 14px;
}

/* Badges */
.pg-uc-badges { margin-bottom: 24px; }
.pg-uc-badges-grid {
    display: flex; flex-wrap: wrap; gap: 12px;
}
.pg-uc-badge-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: var(--bg-white);
    border: 2px solid #eee; border-radius: 20px;
    box-shadow: var(--shadow);
}
.badge-icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #fff;
}
.badge-name { font-size: 13px; font-weight: 500; }

/* Profile Form */
.pg-uc-profile-form {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    max-width: 500px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 8px 12px; border: 1px solid #ddd;
    border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
    background: #fff;
}
.form-group input:disabled { background: #f5f5f5; color: var(--text-muted); }
.form-group textarea { resize: vertical; }
.pg-uc-submit-btn {
    padding: 10px 24px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-size: 14px; cursor: pointer; transition: opacity 0.2s;
}
.pg-uc-submit-btn:hover { opacity: 0.9; }
.pg-uc-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Orders */
.pg-uc-orders-wrap { min-height: 200px; }

@media (max-width: 768px) {
    .pg-uc-container { grid-template-columns: 1fr; }
    .pg-uc-sidebar {
        position: static;
    }
    .pg-uc-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pg-uc-plans-grid {
        grid-template-columns: 1fr;
    }
    .pg-uc-shortcuts-grid {
        grid-template-columns: 1fr;
    }
}
