/* ==================== PC端公共样式 ==================== */
/* 智能社区综合服务平台 - PC前端通用样式 */
/* 版本: v2.0.0 | 更新时间: 2025-11-10 */

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主题色 */
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #7b93f0;
    --secondary-color: #764ba2;

    /* 状态色 */
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;

    /* 中性色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e9ecef;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;

    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* ==================== 变量别名（兼容不同命名规范）==================== */
    /* 主题色别名 */
    --color-primary: var(--primary-color);
    --color-primary-dark: var(--primary-dark);
    --color-primary-light: var(--primary-light);
    --color-secondary: var(--secondary-color);

    /* 状态色别名 */
    --color-success: var(--success-color);
    --color-warning: var(--warning-color);
    --color-danger: var(--danger-color);
    --color-info: var(--info-color);

    /* 文本色别名 */
    --color-text-primary: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-text-muted: var(--text-muted);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.8;
    min-width: 1200px;
    font-size: 14px;
}

/* ==================== 通用导航栏 ==================== */
.pc-navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pc-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.pc-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.pc-navbar-brand:hover {
    opacity: 0.9;
}

.pc-navbar-brand i {
    font-size: 28px;
}

.pc-navbar-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.pc-navbar-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.9;
    transition: opacity 0.3s;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.pc-navbar-links a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== 页面容器 ==================== */
.pc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) 20px;
}

.pc-page-header {
    margin-bottom: var(--spacing-xl);
}

.pc-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-page-title i {
    font-size: 32px;
    color: var(--primary-color);
}

.pc-page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== 卡片组件 ==================== */
.pc-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.pc-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.pc-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.pc-card-body {
    font-size: 14px;
    color: var(--text-secondary);
}

.pc-card-footer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== 按钮组件 ==================== */
.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.pc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pc-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.pc-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pc-btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.pc-btn-secondary:hover:not(:disabled) {
    background: #e9ecef;
}

.pc-btn-success {
    background: var(--success-color);
    color: white;
}

.pc-btn-warning {
    background: var(--warning-color);
    color: white;
}

.pc-btn-danger {
    background: var(--danger-color);
    color: white;
}

.pc-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.pc-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* ==================== 徽章组件 ==================== */
.pc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.pc-badge-pending {
    background: #fff3cd;
    color: #856404;
}

.pc-badge-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.pc-badge-completed {
    background: #d4edda;
    color: #155724;
}

.pc-badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.pc-badge-processing {
    background: #cce5ff;
    color: #004085;
}

/* ==================== 加载状态 ==================== */
.pc-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pc-loading.hidden {
    display: none;
}

.pc-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: pc-spin 1s linear infinite;
}

@keyframes pc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pc-loading-text {
    margin-top: 20px;
    color: var(--primary-color);
    font-size: 16px;
}

/* ==================== 提示消息 ==================== */
.pc-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: pc-slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-toast-success {
    background: var(--success-color);
    color: white;
}

.pc-toast-error {
    background: var(--danger-color);
    color: white;
}

.pc-toast-warning {
    background: var(--warning-color);
    color: white;
}

.pc-toast-info {
    background: var(--info-color);
    color: white;
}

.pc-toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
    padding: 0;
    opacity: 0.8;
}

.pc-toast-close:hover {
    opacity: 1;
}

@keyframes pc-slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== 统计卡片 ==================== */
.pc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.pc-stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.pc-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.pc-stat-card.pc-stat-primary {
    border-left-color: var(--primary-color);
}

.pc-stat-card.pc-stat-success {
    border-left-color: var(--success-color);
}

.pc-stat-card.pc-stat-warning {
    border-left-color: var(--warning-color);
}

.pc-stat-card.pc-stat-danger {
    border-left-color: var(--danger-color);
}

.pc-stat-card.pc-stat-info {
    border-left-color: var(--info-color);
}

.pc-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.pc-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pc-stat-icon {
    font-size: 48px;
    opacity: 0.15;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 带图标的统计卡片 */
.pc-stat-card-with-icon {
    position: relative;
    overflow: hidden;
}

/* ==================== 筛选和搜索栏 ==================== */
.pc-filter-bar {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.pc-filter-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.pc-filter-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.pc-filter-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pc-filter-input,
.pc-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.3s;
}

.pc-filter-input:focus,
.pc-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==================== 空状态 ==================== */
.pc-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
}

.pc-empty-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: var(--spacing-md);
}

.pc-empty-title {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.pc-empty-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

/* ==================== 分页组件 ==================== */
.pc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.pc-pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.pc-pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pc-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pc-pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==================== 模态框 ==================== */
.pc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: pc-fadeIn 0.3s ease-out;
}

.pc-modal.hidden {
    display: none;
}

@keyframes pc-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pc-modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: pc-slideUp 0.3s ease-out;
}

@keyframes pc-slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pc-modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-modal-title {
    font-size: 20px;
    font-weight: 600;
}

.pc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.pc-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.pc-modal-body {
    padding: var(--spacing-lg);
}

.pc-modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* ==================== 标签栏 ==================== */
.pc-tabs {
    display: flex;
    gap: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.pc-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.pc-tab:hover {
    color: var(--primary-color);
}

.pc-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* ==================== 列表项 ==================== */
.pc-list-item {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.pc-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    body {
        min-width: auto;
    }

    .pc-container {
        padding: var(--spacing-md) 16px;
    }

    .pc-navbar-container {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .pc-page-title {
        font-size: 24px;
    }

    .pc-filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .pc-filter-input,
    .pc-filter-select {
        min-width: auto;
        width: 100%;
    }

    .pc-modal-content {
        width: 95%;
    }
}

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }

.hidden { display: none; }

/* ==================== 全局搜索组件 ==================== */
.pc-search-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.pc-search-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pc-search-trigger-placeholder {
    flex: 1;
    font-size: 14px;
    opacity: 0.9;
}

.pc-search-trigger-shortcut {
    font-size: 12px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.pc-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    animation: pc-fadeIn 0.2s ease-out;
}

.pc-search-modal.hidden {
    display: none;
}

.pc-search-container {
    width: 90%;
    max-width: 640px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pc-searchSlideDown 0.3s ease-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

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

.pc-search-input-wrapper {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-search-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.pc-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    padding: 8px 0;
    color: var(--text-primary);
}

.pc-search-input::placeholder {
    color: var(--text-muted);
}

.pc-search-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.pc-search-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.pc-search-filters {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.pc-search-filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.pc-search-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pc-search-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pc-search-results {
    flex: 1;
    overflow-y: auto;
    max-height: 50vh;
}

.pc-search-results-group {
    padding: 12px 20px;
}

.pc-search-results-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pc-search-result-item {
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.pc-search-result-item:hover {
    background: var(--bg-light);
}

.pc-search-result-item.active {
    background: var(--primary-light);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
}

.pc-search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pc-search-result-icon.announcement {
    background: #fff3cd;
    color: #856404;
}

.pc-search-result-icon.activity {
    background: #f8d7da;
    color: #721c24;
}

.pc-search-result-icon.service {
    background: #d1ecf1;
    color: #0c5460;
}

.pc-search-result-icon.resident {
    background: #d4edda;
    color: #155724;
}

.pc-search-result-content {
    flex: 1;
    min-width: 0;
}

.pc-search-result-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-search-result-desc {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-search-result-highlight {
    background: yellow;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0 2px;
}

.pc-search-empty {
    padding: 60px 20px;
    text-align: center;
}

.pc-search-empty-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.pc-search-empty-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pc-search-empty-hint {
    font-size: 14px;
    color: var(--text-muted);
}

.pc-search-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.pc-search-shortcuts {
    display: flex;
    gap: 16px;
}

.pc-search-shortcut {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pc-search-shortcut-key {
    padding: 2px 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
}

/* ==================== 图片上传组件 ==================== */
.pc-image-uploader {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.pc-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.pc-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.pc-upload-area.dragging {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    border-width: 3px;
}

.pc-upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.pc-upload-text {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.pc-upload-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.pc-upload-input {
    display: none;
}

.pc-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.pc-image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.pc-image-preview-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.pc-image-preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    flex-direction: column;
    gap: var(--spacing-sm);
}

.pc-image-preview-progress {
    width: 80%;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.pc-image-preview-progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

.pc-image-preview-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s;
}

.pc-image-preview-item:hover .pc-image-preview-actions {
    opacity: 1;
}

.pc-image-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.pc-image-action-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.pc-image-action-btn.delete {
    background: rgba(231, 76, 60, 0.8);
}

.pc-image-action-btn.delete:hover {
    background: rgba(231, 76, 60, 1);
}

.pc-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.pc-image-preview-item:hover .pc-image-info {
    opacity: 1;
}

.pc-image-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.pc-image-size {
    opacity: 0.8;
}

/* 暗色主题支持 */
[data-theme="dark"] {
    --bg-light: #1a1a1a;
    --bg-white: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #404040;
}

[data-theme="dark"] .pc-upload-area {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pc-upload-area:hover {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .pc-image-preview-item {
    background: rgba(255, 255, 255, 0.05);
}

/* ==================== 骨架屏组件 ==================== */
.pc-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pc-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes pc-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.pc-skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.pc-skeleton-text.large {
    height: 24px;
}

.pc-skeleton-text.small {
    height: 12px;
}

.pc-skeleton-title {
    height: 32px;
    width: 60%;
    margin-bottom: var(--spacing-md);
}

.pc-skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.pc-skeleton-avatar.large {
    width: 64px;
    height: 64px;
}

.pc-skeleton-avatar.small {
    width: 32px;
    height: 32px;
}

.pc-skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
}

.pc-skeleton-button {
    width: 120px;
    height: 40px;
    border-radius: var(--radius-md);
}

.pc-skeleton-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.pc-skeleton-list-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.pc-skeleton-content {
    flex: 1;
}

[data-theme="dark"] .pc-skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

/* ==================== 主题切换按钮 ==================== */
.pc-theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    padding: 3px;
}

.pc-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pc-theme-toggle-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 3px;
    font-size: 14px;
}

[data-theme="dark"] .pc-theme-toggle-slider {
    left: 33px;
    background: #444;
    color: #ffd700;
}

[data-theme="dark"] .pc-theme-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.5);
}

.pc-theme-icon {
    color: #ffd700;
}

[data-theme="dark"] .pc-theme-icon {
    color: #ffd700;
}

/* ==================== 管理后台布局 ==================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* 侧边栏 */
.admin-sidebar {
    width: 240px;
    background: #2c3e50;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.admin-sidebar.collapsed {
    width: 64px;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* 侧边栏头部 */
.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-brand i {
    font-size: 24px;
    flex-shrink: 0;
}

.sidebar-brand-text {
    opacity: 1;
    transition: opacity 0.3s;
}

.admin-sidebar.collapsed .sidebar-brand-text {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* 侧边栏菜单 */
.sidebar-menu {
    padding: 12px 0;
}

.menu-section {
    margin-bottom: 8px;
}

.menu-section-title {
    padding: 12px 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.admin-sidebar.collapsed .menu-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.menu-item {
    position: relative;
}

.menu-item > a,
.menu-item > .menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.menu-item > a:hover,
.menu-item > .menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item.active > a,
.menu-item.active > .menu-link {
    background: linear-gradient(90deg, var(--primary-color), transparent);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.menu-item-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.menu-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s;
}

.admin-sidebar.collapsed .menu-item-text {
    opacity: 0;
    width: 0;
}

.menu-item-arrow {
    font-size: 16px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.admin-sidebar.collapsed .menu-item-arrow {
    opacity: 0;
    width: 0;
}

.menu-item.open .menu-item-arrow {
    transform: rotate(90deg);
}

/* 子菜单 */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.menu-item.open .submenu {
    max-height: 1000px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 56px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.submenu-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.submenu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.admin-main {
    flex: 1;
    margin-left: 240px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-sidebar.collapsed ~ .admin-main {
    margin-left: 64px;
}

/* 顶部栏 */
.admin-header {
    height: 64px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.header-action {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f7fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
    position: relative;
}

.header-action:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.header-action .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f5f7fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-dropdown:hover {
    background: #e9ecef;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 内容区域 */
.admin-content {
    flex: 1;
    padding: 24px;
}

/* 面包屑 */
.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
}

/* ==================== 图片懒加载样式 ==================== */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 100px;
}

.lazy-loading {
    opacity: 0.5;
}

.lazy-error {
    background: #f8d7da;
    color: #721c24;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.lazy-image:not(.lazy-placeholder):not(.lazy-loading):not(.lazy-error) {
    opacity: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== Accessibility 无障碍样式 ==================== */
/* 跳转到主内容链接 */
.pc-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    transition: top 0.2s;
}

.pc-skip-link:focus {
    top: 0;
}

/* 焦点可见性增强 */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 屏幕阅读器专用文本 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ARIA live region */
[aria-live] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 键盘导航焦点指示 */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000CC;
        --text-primary: #000000;
        --text-secondary: #000000;
        --border-color: #000000;
        --bg-light: #FFFFFF;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        --primary-color: #8b9dff;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --text-muted: #808080;
        --border-color: #404040;
        --bg-light: #1e1e1e;
        --bg-white: #2d2d2d;
    }
}

/* 暗色主题 */
[data-theme="dark"] {
    --primary-color: #8b9dff;
    --primary-dark: #7b8df0;
    --primary-light: #9badff;

    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #404040;
    --bg-light: #1e1e1e;
    --bg-white: #2d2d2d;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* ==================== 性能优化样式 ==================== */
/* GPU加速 */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* 平滑滚动 */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* 内容可见性优化 */
.content-visibility-auto {
    content-visibility: auto;
}

/* ==================== 数据表格样式 ==================== */
.pc-datatable-wrapper {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.pc-datatable-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.pc-datatable-toolbar-left,
.pc-datatable-toolbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pc-datatable-search {
    position: relative;
    display: flex;
    align-items: center;
}

.pc-datatable-search i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
}

.pc-datatable-search-input {
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    width: 250px;
    transition: all 0.2s;
}

.pc-datatable-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pc-datatable-container {
    overflow-x: auto;
    max-height: 600px;
}

.pc-datatable {
    width: 100%;
    border-collapse: collapse;
}

.pc-datatable thead {
    position: sticky;
    top: 0;
    background: var(--bg-light);
    z-index: 10;
}

.pc-datatable th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.pc-datatable td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pc-datatable-striped tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.pc-datatable-hover tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.pc-datatable-bordered {
    border: 1px solid var(--border-color);
}

.pc-datatable-bordered th,
.pc-datatable-bordered td {
    border-left: 1px solid var(--border-color);
}

.pc-datatable-bordered th:first-child,
.pc-datatable-bordered td:first-child {
    border-left: none;
}

.pc-datatable tbody tr.selected {
    background: rgba(102, 126, 234, 0.1);
}

.pc-datatable-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 28px;
}

.pc-datatable-sortable:hover {
    background: rgba(0, 0, 0, 0.05);
}

.pc-datatable-sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.pc-datatable-sort-icon.active {
    color: var(--primary-color);
}

.pc-datatable-select-cell {
    text-align: center;
    width: 50px;
}

.pc-datatable-empty,
.pc-datatable-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.pc-datatable-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.pc-datatable-pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pc-datatable-pagination-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pc-datatable-page-size {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
}

.pc-datatable-pagination-buttons {
    display: flex;
    gap: 4px;
}

.pc-datatable-page-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 36px;
}

.pc-datatable-page-btn:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pc-datatable-page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pc-datatable-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pc-dropdown {
    position: relative;
    display: inline-block;
}

.pc-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.pc-dropdown-menu-right {
    left: auto;
    right: 0;
}

.pc-dropdown:hover .pc-dropdown-menu {
    display: block;
}

.pc-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.pc-dropdown-item:hover {
    background: var(--bg-light);
}

.pc-dropdown-item i {
    margin-right: 8px;
    color: var(--text-muted);
}

/* ==================== 表单验证样式 ==================== */
.pc-form-error {
    border-color: var(--danger-color) !important;
}

.pc-form-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.pc-form-success {
    border-color: var(--success-color) !important;
}

.pc-form-success:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1) !important;
}

.pc-form-error-message {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.pc-form-error-message::before {
    content: "⚠ ";
}

/* ==================== 打印样式 ==================== */
@media print {
    .pc-navbar,
    .pc-footer,
    .pc-sidebar,
    button,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .pc-container {
        max-width: 100%;
        padding: 0;
    }

    .pc-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}
