/*!
 * Pose Guide - 定格姿态 WordPress 主题
 * 黑金配色专业设计
 * Version 1.0.0
 */

/* ========================================
   CSS Variables - 黑金配色体系
   ======================================== */
:root {
    --pg-primary: #D4AF37;
    --pg-primary-light: #E8B86D;
    --pg-primary-dark: #BFA25C;
    --pg-secondary: #1A1A1A;
    --pg-secondary-light: #2A2A2A;
    --pg-secondary-dark: #111111;
    --pg-text: #E0E0E0;
    --pg-text-light: #A0A0A0;
    --pg-text-dark: #FFFFFF;
    --pg-border: #333333;
    --pg-border-light: #444444;
    --pg-danger: #E25C5C;
    --pg-success: #5CB85C;
    --pg-warning: #E8A840;
    --pg-bg: #1A1A1A;
    --pg-bg-card: #222222;
    --pg-bg-input: #2C2C2C;
    --pg-radius: 8px;
    --pg-radius-sm: 4px;
    --pg-shadow: 0 2px 12px rgba(0,0,0,0.3);
    --pg-shadow-hover: 0 4px 20px rgba(212,175,55,0.15);
    --pg-transition: all 0.25s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--pg-text);
    background: var(--pg-secondary);
}

a {
    color: var(--pg-primary);
    text-decoration: none;
    transition: var(--pg-transition);
}
a:hover { color: var(--pg-primary-light); text-decoration: underline; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Layout & Container
   ======================================== */
.pg-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.pg-container-sm { max-width: 900px; }
.pg-container-lg { max-width: 1440px; }

.pg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.pg-main {
    flex: 1;
    min-width: 0;
}

.pg-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .pg-row { flex-direction: column; }
    .pg-sidebar { width: 100%; }
}

/* ========================================
   Header
   ======================================== */
.pg-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pg-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--pg-transition);
}

.pg-header .pg-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.pg-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--pg-primary) !important;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}
.pg-logo img { height: 36px; }

.pg-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pg-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--pg-text-light);
    font-size: 15px;
    border-radius: var(--pg-radius-sm);
    transition: var(--pg-transition);
    text-decoration: none !important;
}
.pg-nav a:hover,
.pg-nav .current-menu-item a {
    color: var(--pg-primary);
    background: rgba(212, 175, 55, 0.08);
}

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

.pg-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--pg-primary);
}

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

@media (max-width: 768px) {
    .pg-mobile-toggle { display: block; }
    .pg-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--pg-secondary-light);
        flex-direction: column;
        padding: 12px;
        border-bottom: 1px solid var(--pg-border);
    }
    .pg-nav.active { display: flex; }
}

/* ========================================
   Hero Section
   ======================================== */
.pg-hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 50%, #1A1A1A 100%);
    border-bottom: 1px solid var(--pg-border);
    overflow: hidden;
}

.pg-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.pg-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 16px;
    background: linear-gradient(135deg, var(--pg-primary-light), var(--pg-primary), var(--pg-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg-hero-subtitle {
    font-size: 18px;
    color: var(--pg-text-light);
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pg-hero-search {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}
.pg-hero-search input {
    flex: 1;
    padding: 14px 20px;
    background: var(--pg-bg-input);
    border: 1px solid var(--pg-border);
    border-radius: 50px;
    color: var(--pg-text);
    font-size: 16px;
    outline: none;
    transition: var(--pg-transition);
}
.pg-hero-search input:focus {
    border-color: var(--pg-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.pg-hero-search button {
    padding: 14px 28px;
    background: var(--pg-primary);
    color: var(--pg-secondary-dark);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pg-transition);
}
.pg-hero-search button:hover { background: var(--pg-primary-light); }

.pg-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}

.pg-hero-stat {
    text-align: center;
}

.pg-hero-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--pg-primary);
    display: block;
}

.pg-hero-stat-label {
    font-size: 13px;
    color: var(--pg-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .pg-hero { padding: 48px 0; }
    .pg-hero-title { font-size: 32px; }
    .pg-hero-search { flex-direction: column; padding: 0 20px; }
    .pg-hero-stats { gap: 24px; }
    .pg-hero-stat-number { font-size: 28px; }
}

/* ========================================
   Section
   ======================================== */
.pg-section {
    padding: 48px 0;
}

.pg-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pg-border);
}

.pg-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pg-text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--pg-primary);
    border-radius: 2px;
}

.pg-section-more {
    font-size: 14px;
    color: var(--pg-primary);
    font-weight: 500;
}

/* ========================================
   Post Card
   ======================================== */
.pg-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.pg-post-card {
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    overflow: hidden;
    transition: var(--pg-transition);
}

.pg-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pg-shadow-hover);
    border-color: var(--pg-primary);
}

.pg-post-card-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--pg-secondary);
}

.pg-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.pg-post-card-difficulty {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(4px);
    color: var(--pg-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid var(--pg-primary);
}

.pg-post-card-body {
    padding: 16px;
}

.pg-post-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.pg-post-card-title a {
    color: var(--pg-text-dark);
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pg-post-card-title a:hover { color: var(--pg-primary); }

.pg-post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--pg-text-light);
}

.pg-post-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.pg-post-card-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--pg-text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--pg-radius-sm);
    transition: var(--pg-transition);
}
.pg-post-card-action:hover { color: var(--pg-primary); background: rgba(212, 175, 55, 0.08); }
.pg-post-card-action.active { color: var(--pg-primary); }

/* ========================================
   Single Post
   ======================================== */
.pg-single {
    padding: 40px 0;
}

.pg-single-header {
    text-align: center;
    margin-bottom: 32px;
}

.pg-single-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--pg-text-dark);
}

.pg-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--pg-text-light);
    flex-wrap: wrap;
}

.pg-single-featured {
    margin-bottom: 32px;
    border-radius: var(--pg-radius);
    overflow: hidden;
    background: var(--pg-bg-card);
}

.pg-single-featured img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    background: var(--pg-secondary);
}

.pg-single-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--pg-text);
}

.pg-single-content h2,
.pg-single-content h3 {
    color: var(--pg-primary);
    margin: 32px 0 16px;
}

.pg-single-content img {
    border-radius: var(--pg-radius);
    margin: 20px 0;
}

.pg-single-content blockquote {
    border-left: 4px solid var(--pg-primary);
    background: var(--pg-bg-card);
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 0 var(--pg-radius-sm) var(--pg-radius-sm) 0;
}

.pg-single-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--pg-border);
    border-bottom: 1px solid var(--pg-border);
    margin: 32px 0;
}

.pg-single-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: 50px;
    color: var(--pg-text-light);
    font-size: 15px;
    cursor: pointer;
    transition: var(--pg-transition);
}
.pg-single-action-btn:hover {
    border-color: var(--pg-primary);
    color: var(--pg-primary);
    box-shadow: var(--pg-shadow-hover);
}
.pg-single-action-btn.active {
    background: var(--pg-primary);
    color: var(--pg-secondary-dark);
    border-color: var(--pg-primary);
}

/* ========================================
   Breadcrumb
   ======================================== */
.pg-breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--pg-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pg-breadcrumb a { color: var(--pg-text-light); }
.pg-breadcrumb a:hover { color: var(--pg-primary); }
.pg-breadcrumb-sep { color: var(--pg-border-light); }

/* ========================================
   Pagination
   ======================================== */
.pg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 0;
}
.pg-pagination a,
.pg-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    color: var(--pg-text-light);
    font-size: 14px;
    text-decoration: none;
    transition: var(--pg-transition);
}
.pg-pagination .current,
.pg-pagination a:hover {
    background: var(--pg-primary);
    color: var(--pg-secondary-dark);
    border-color: var(--pg-primary);
}

/* ========================================
   Buttons
   ======================================== */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--pg-transition);
    text-decoration: none !important;
}

.pg-btn-primary {
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-primary-dark));
    color: var(--pg-secondary-dark);
}
.pg-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3); }

.pg-btn-outline {
    background: transparent;
    border: 1px solid var(--pg-primary);
    color: var(--pg-primary);
}
.pg-btn-outline:hover { background: rgba(212, 175, 55, 0.1); }

.pg-btn-sm { padding: 6px 16px; font-size: 13px; }
.pg-btn-lg { padding: 14px 32px; font-size: 17px; }

.pg-btn-block { display: flex; width: 100%; }

/* ========================================
   Forms
   ======================================== */
.pg-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--pg-bg-input);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    color: var(--pg-text);
    font-size: 15px;
    outline: none;
    transition: var(--pg-transition);
}
.pg-input:focus { border-color: var(--pg-primary); }

.pg-textarea {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--pg-bg-input);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    color: var(--pg-text);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: var(--pg-transition);
    min-height: 100px;
}
.pg-textarea:focus { border-color: var(--pg-primary); }

.pg-form-group { margin-bottom: 20px; }
.pg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pg-text-light);
}

.pg-form-row { display: flex; gap: 12px; }
.pg-form-row .pg-form-group { flex: 1; }
@media (max-width: 480px) { .pg-form-row { flex-direction: column; } }

/* ========================================
   Auth Modal
   ======================================== */
.pg-auth-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.pg-auth-modal.active { display: flex; }

.pg-auth-box {
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pg-auth-box h2 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--pg-text-dark);
}

.pg-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--pg-border);
}

.pg-auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    color: var(--pg-text-light);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: var(--pg-transition);
}
.pg-auth-tab.active {
    color: var(--pg-primary);
    border-bottom-color: var(--pg-primary);
}

.pg-auth-form { display: none; }
.pg-auth-form.active { display: block; }

.pg-vcode-row {
    display: flex;
    gap: 8px;
}
.pg-vcode-row img {
    height: 44px;
    border-radius: var(--pg-radius-sm);
    cursor: pointer;
}

.pg-auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--pg-text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

.pg-auth-message {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}
.pg-auth-message.success { color: var(--pg-success); }
.pg-auth-message.error { color: var(--pg-danger); }

/* ========================================
   Core Comments
   ======================================== */
.pg-comments {
    margin-top: 40px;
}

.pg-comments-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg-text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pg-border);
}

.pg-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pg-comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 48px;
}

@media (max-width: 480px) {
    .pg-comment-list .children { padding-left: 24px; }
}

.pg-comment {
    margin-bottom: 0;
}

.pg-comment-body {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--pg-border);
}

.pg-comment-avatar {
    flex-shrink: 0;
}
.pg-comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--pg-border);
}

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

.pg-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pg-comment-author {
    font-weight: 600;
    font-size: 15px;
    color: var(--pg-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-badge-admin,
.pg-badge-author {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.pg-badge-admin {
    background: var(--pg-primary);
    color: var(--pg-secondary-dark);
}

.pg-badge-author {
    background: var(--pg-secondary-light);
    color: var(--pg-primary);
    border: 1px solid var(--pg-primary);
}

.pg-comment-time {
    font-size: 12px;
    color: var(--pg-text-light);
}

.pg-comment-reply-to {
    font-size: 13px;
    color: var(--pg-text-light);
    font-weight: 400;
}
.pg-comment-reply-to a { color: var(--pg-primary); }

.pg-comment-pending {
    font-size: 13px;
    color: var(--pg-warning);
    font-style: italic;
    margin-bottom: 8px;
}

.pg-comment-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--pg-text);
}

.pg-comment-text p { margin: 0 0 8px; }
.pg-comment-text p:last-child { margin-bottom: 0; }

.pg-comment-actions {
    margin-top: 8px;
}
.pg-comment-actions .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--pg-text-light);
    cursor: pointer;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: var(--pg-radius-sm);
    transition: var(--pg-transition);
}
.pg-comment-actions .comment-reply-link:hover {
    color: var(--pg-primary);
    background: rgba(212, 175, 55, 0.08);
}

/* Comment Form */
.pg-comment-respond {
    margin-top: 32px;
    padding: 24px;
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
}

.pg-comment-respond h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--pg-text-dark);
}

.pg-comment-respond .pg-form-group {
    margin-bottom: 16px;
}

.pg-comment-respond textarea {
    min-height: 120px;
}

.pg-form-cookies { font-size: 13px; color: var(--pg-text-light); }

/* ========================================
   Sidebar / Widget
   ======================================== */
.pg-widget {
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.pg-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pg-text-dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pg-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pg-widget-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--pg-primary);
    border-radius: 2px;
}

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

.pg-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 14px;
}
.pg-widget ul li:last-child { border-bottom: none; }
.pg-widget ul li a { color: var(--pg-text-light); }
.pg-widget ul li a:hover { color: var(--pg-primary); }

/* Tag Cloud */
.pg-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pg-tagcloud a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--pg-secondary);
    border: 1px solid var(--pg-border);
    border-radius: 50px;
    color: var(--pg-text-light);
    font-size: 13px;
    text-decoration: none;
    transition: var(--pg-transition);
}
.pg-tagcloud a:hover {
    background: var(--pg-primary);
    color: var(--pg-secondary-dark);
    border-color: var(--pg-primary);
    text-decoration: none;
}

/* ========================================
   User Center
   ======================================== */
.pg-user-center {
    padding: 40px 0;
}

.pg-user-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    margin-bottom: 24px;
}

.pg-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--pg-primary);
    object-fit: cover;
}

.pg-user-info h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--pg-text-dark);
}

.pg-user-info p {
    margin: 0;
    font-size: 14px;
    color: var(--pg-text-light);
}

.pg-user-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--pg-border);
    background: var(--pg-bg-card);
    border-radius: var(--pg-radius) var(--pg-radius) 0 0;
}

.pg-user-tab {
    padding: 14px 24px;
    background: none;
    border: none;
    color: var(--pg-text-light);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--pg-transition);
}
.pg-user-tab.active {
    color: var(--pg-primary);
    border-bottom-color: var(--pg-primary);
}

/* ========================================
   Submit Page
   ======================================== */
.pg-submit-page {
    padding: 40px 0;
}

.pg-submit-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 32px;
}

.pg-submit-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
    color: var(--pg-text-dark);
}

.pg-submit-preview {
    text-align: center;
    margin-bottom: 16px;
}

.pg-submit-preview img {
    max-height: 240px;
    border-radius: var(--pg-radius);
    display: inline-block;
}

/* ========================================
   Archive / Search Page
   ======================================== */
.pg-archive-header {
    padding: 32px 0;
    text-align: center;
    border-bottom: 1px solid var(--pg-border);
    margin-bottom: 32px;
}

.pg-archive-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pg-text-dark);
    margin: 0 0 8px;
}

.pg-archive-desc {
    color: var(--pg-text-light);
    font-size: 15px;
    margin: 0;
}

.pg-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--pg-text-light);
}
.pg-no-posts h3 { font-size: 20px; margin: 0 0 8px; }

/* ========================================
   Footer
   ======================================== */
.pg-footer {
    background: var(--pg-secondary-dark);
    border-top: 1px solid var(--pg-border);
    padding: 40px 0 24px;
    margin-top: 60px;
}

.pg-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

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

.pg-footer-about h3 {
    font-size: 18px;
    color: var(--pg-primary);
    margin: 0 0 12px;
}

.pg-footer-about p {
    font-size: 14px;
    color: var(--pg-text-light);
    line-height: 1.7;
    margin: 0;
}

.pg-footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--pg-text-dark);
    margin: 0 0 12px;
}

.pg-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pg-footer-col ul li {
    margin-bottom: 8px;
}

.pg-footer-col ul li a {
    font-size: 14px;
    color: var(--pg-text-light);
    text-decoration: none;
}
.pg-footer-col ul li a:hover { color: var(--pg-primary); }

.pg-footer-bottom {
    text-align: center;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid var(--pg-border);
    font-size: 13px;
    color: var(--pg-text-light);
}

/* ========================================
   Admin Settings Page
   ======================================== */
.pg-admin-wrap { max-width: 960px; }

.pg-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.pg-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pg-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #555;
    border-radius: 26px;
    cursor: pointer;
    transition: var(--pg-transition);
}

.pg-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--pg-transition);
}

.pg-toggle input:checked + .pg-toggle-slider { background: var(--pg-primary); }
.pg-toggle input:checked + .pg-toggle-slider::before { transform: translateX(22px); }

.pg-media-field { display: flex; gap: 8px; align-items: center; }
.pg-media-field input { flex: 1; }

/* ========================================
   Loading Spinner
   ======================================== */
.pg-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.pg-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--pg-border);
    border-top: 3px solid var(--pg-primary);
    border-radius: 50%;
    animation: pg-spin 0.8s linear infinite;
}

@keyframes pg-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Toast Notifications
   ======================================== */
.pg-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 12px 28px;
    background: var(--pg-bg-card);
    border: 1px solid var(--pg-primary);
    border-radius: 50px;
    color: var(--pg-text-dark);
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
}
.pg-toast.active { display: block; }
.pg-toast.error { border-color: var(--pg-danger); }
.pg-toast.success { border-color: var(--pg-success); }

/* ========================================
   Utilities
   ======================================== */
.pg-text-center { text-align: center; }
.pg-text-primary { color: var(--pg-primary); }
.pg-mt-2 { margin-top: 16px; }
.pg-mt-3 { margin-top: 24px; }
.pg-mb-2 { margin-bottom: 16px; }
.pg-mb-3 { margin-bottom: 24px; }
.pg-hidden { display: none !important; }

/* Selection highlight */
::selection {
    background: var(--pg-primary);
    color: var(--pg-secondary-dark);
}

/* ========== 文章详情页：左图右文布局（v2.6 改造）========== */
.pg-single-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 左侧画廊 */
.pg-single-gallery {
    flex: 0 0 55%;
    max-width: 55%;
    position: sticky;
    top: 100px;
}

.pg-single-slider {
    position: relative;
}

.pg-single-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

.pg-single-track {
    display: flex;
    transition: transform 0.35s ease;
}

.pg-single-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.pg-single-slide img.pg-single-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 75vh;
    cursor: zoom-in;
}

/* 左右箭头 */
.pg-single-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.pg-single-arrow:hover { background: rgba(0,0,0,0.75); }
.pg-single-arrow--prev { left: 12px; }
.pg-single-arrow--next { right: 12px; }

/* 放大按钮 */
.pg-single-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.pg-single-zoom-btn:hover { background: rgba(0,0,0,0.75); }

/* 图片计数 */
.pg-single-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 12px;
    z-index: 2;
}

/* 图片标题 */
.pg-single-captions { display: none; }

/* 缩略图条 */
.pg-single-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pg-single-thumb-btn {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}
.pg-single-thumb-btn.active,
.pg-single-thumb-btn:hover {
    opacity: 1;
    border-color: var(--pg-primary, #D4AF37);
}
.pg-single-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 占位符 */
.pg-single-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #f5f5f5;
    border-radius: 12px;
    color: #999;
    gap: 12px;
}

/* 右侧内容区 */
.pg-single-content {
    flex: 1;
    min-width: 0;
}

.pg-single-header {
    margin-bottom: 24px;
}

.pg-single-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--pg-text-dark, #1a1a1a);
}

.pg-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--pg-text-light, #888);
}

.pg-single-meta-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
    color: var(--pg-text-light, #888);
    transition: all 0.2s;
}
.pg-single-meta-btn:hover,
.pg-single-meta-btn.active {
    border-color: var(--pg-primary, #D4AF37);
    color: var(--pg-primary, #D4AF37);
}

/* 难度标签 */
.pg-difficulty-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.pg-difficulty-beginner { background: #4CAF50; }
.pg-difficulty-easy     { background: #8BC34A; }
.pg-difficulty-medium   { background: #FF9800; }
.pg-difficulty-hard     { background: #F44336; }
.pg-difficulty-expert   { background: #9C27B0; }

/* 标签 */
.pg-single-tags {
    margin: 20px 0;
    font-size: 14px;
    color: var(--pg-text-light, #888);
}
.pg-single-tags a {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 12px;
    margin: 2px 4px;
    font-size: 13px;
    color: var(--pg-text-light, #888);
    text-decoration: none;
    transition: background 0.2s;
}
.pg-single-tags a:hover {
    background: var(--pg-primary, #D4AF37);
    color: #fff;
}

/* 正文 */
.pg-single-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--pg-text-dark, #1a1a1a);
    margin: 24px 0;
}

/* 要点解析 */
.pg-tips-section {
    background: #faf8f0;
    border-left: 4px solid var(--pg-primary, #D4AF37);
    border-radius: 0 12px 12px 0;
    padding: 24px;
    margin: 32px 0;
}
.pg-tips-title {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--pg-primary-dark, #8B6914);
}
.pg-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pg-tips-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.pg-tips-item:last-child { border-bottom: none; }
.pg-tips-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background: var(--pg-primary, #D4AF37);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.pg-tips-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

/* 相关推荐 */
.pg-related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.pg-related-title {
    font-size: 24px;
    margin: 0 0 24px;
}
.pg-post-grid--small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 评论区 */
.pg-single-comments {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

/* 响应式 */
@media (max-width: 992px) {
    .pg-single-inner {
        flex-direction: column;
    }
    .pg-single-gallery {
        flex: none;
        max-width: 100%;
        position: static;
    }
    .pg-post-grid--small {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pg-single-title { font-size: 24px; }
    .pg-post-grid--small {
        grid-template-columns: 1fr;
    }
}
