/* ========== 页面内容共享样式（iframe内） ========== */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --admin-color: #00d4aa;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-active: rgba(102, 126, 234, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
    background: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
}

/* 页面通用 */
.page-section {
    margin-bottom: 24px;
}

.page-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-section-title .icon {
    font-size: 18px;
}

.page-section-title .more {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--primary);
    cursor: pointer;
}

/* 卡片 */
.p-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: all var(--transition);
    margin-bottom: 12px;
}

.p-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-active);
}

.p-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.p-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.p-card-icon.admin {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(0, 168, 132, 0.2) 100%);
}

.p-card-body {
    flex: 1;
    min-width: 0;
}

.p-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-card-value {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.p-card-value.admin {
    background: linear-gradient(135deg, var(--admin-color) 0%, #00a884 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 统计网格 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 列表 */
.p-list {
    list-style: none;
}

.p-list-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    cursor: pointer;
}

.p-list-item:last-child {
    border-bottom: none;
}

.p-list-item:hover {
    padding-left: 6px;
}

.p-list-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    flex-shrink: 0;
}

.p-list-item .text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-list-item .date {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* 状态标签 */
.p-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.p-status-pending { background: rgba(255, 152, 0, 0.15); color: #ff9800; }
.p-status-approved { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.p-status-rejected { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.p-status-processing { background: rgba(33, 150, 243, 0.15); color: #2196f3; }

/* 表单 */
.p-form-group {
    margin-bottom: 16px;
}

.p-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.p-form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.p-form-input,
.p-form-select,
.p-form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}

.p-form-input:focus,
.p-form-select:focus,
.p-form-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.p-form-input::placeholder,
.p-form-textarea::placeholder {
    color: var(--text-muted);
}

.p-form-textarea {
    min-height: 80px;
    resize: vertical;
}

.p-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.p-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 按钮 */
.p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all var(--transition);
    width: 100%;
}

.p-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.p-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.p-btn-admin {
    background: linear-gradient(135deg, var(--admin-color) 0%, #00a884 100%);
    color: white;
}

.p-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.p-btn-secondary:hover {
    background: var(--bg-hover);
}

/* 信息列表 */
.p-info-list {
    list-style: none;
}

.p-info-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.p-info-item:last-child {
    border-bottom: none;
}

.p-info-item .label {
    color: var(--text-muted);
    min-width: 70px;
    flex-shrink: 0;
}

.p-info-item .value {
    color: var(--text-secondary);
    flex: 1;
}

/* 表格 */
.p-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.p-table th {
    text-align: left;
    padding: 8px 10px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.p-table td {
    padding: 10px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.p-table tr:hover td {
    color: var(--text-primary);
}

/* 标签云 */
.p-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.p-tag {
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition);
}

.p-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary);
}

/* 提示框 */
.p-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.p-alert-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.25);
    color: var(--primary);
}

.p-alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: #4caf50;
}

/* 空状态 */
.p-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.p-empty .icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}
